Parse error for workers.properties
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libapache-mod-jk (Debian) |
Fix Released
|
Unknown
|
|||
libapache-mod-jk (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libapache-mod-jk
I'm running libapache-mod-jk 1.2.28-2 on Ubuntu 10.04 and I have this content in my workers.properties file:
worker.list = dev
worker.dev.type = ajp13
worker.dev.host = localhost
worker.dev.port = 8009
Apache doesn't start and my mod_jk.log shows this error:
[Fri Jun 11 10:57:26.414 2010] [4853:2129983296] [error] wc_create_
[Fri Jun 11 10:57:26.414 2010] [4853:2129983296] [error] build_worker_
Do you see the "aj113" instead of "ajp13"? When I remove the space char before and after the equal char in the corresponding line, I get this im my logs:
[Fri Jun 11 10:59:05.457 2010] [4889:3785144128] [error] ajp_validate:
[Fri Jun 11 10:59:05.457 2010] [4889:3785144128] [error] wc_create_
[Fri Jun 11 10:59:05.457 2010] [4889:3785144128] [error] build_worker_
Do you see the "localhsst" instead of "localhost"? When I remove all spaces in my workers.properties, Apache starts without any errors. My config now contains:
worker.list=dev
worker.
worker.
worker.
I haven't changed this config for years and it worked flawlessly with all previous mod_jk versions.
This bug could be critical for people updating a production machine from a previous Ubuntu release to lucid lynx, because it takes some time to recognize that you have to remove spaces to get mod_jk up again.
Changed in libapache-mod-jk (Debian): | |
status: | Unknown → Confirmed |
Changed in libapache-mod-jk (Debian): | |
status: | Confirmed → Fix Released |
I had the same problem on 10.04 LTS, but I built apache 2.2-17 and mod_jk 1.2.31 myself.
For example the mod_jk parser read socket_tieout instead of timeout.
Removing all whitespaces from the beginning of all lines solved it.