3 Replies Latest reply on Jan 8, 2008 2:19 PM by Robert Holloway

    Strange workers.properties problem (Apache / mod_jk)

    Robert Holloway Newbie

      We have a production cluster and a qa / dev cluster.

      All are using Apache and mod_jk.

      We have staging sites set up on the production cluster that point to the QA site and IP addresses in the QA cluster... we have several of these "staging" sites that work just fine and point to the same QA cluster with no problems.

      I just recently added another, but when I uncomment the block in workers.properties, suddenly all of the sites on the whole box go down EXCEPT for the staging site, which works fine.

      Comment the block out, restart apache-- now everything comes right back instantly, but of course the staging site doesn't work.

      Here is the relevant block in workers.properties:

      ########################################################
      #qa.bpp worker configuration
      #Q-bpp Node1
      worker.qa-bpp1.port=8009
      worker.qa-bpp1.host=10.2.2.185
      worker.qa-bpp1.type=ajp13
      worker.qa-bpp1.lbfactor=1
      #
      #Q-bpp Node2
      worker.qa-bpp2.port=8009
      worker.qa-bpp2.host=10.2.2.186
      worker.qa-bpp2.type=ajp13
      worker.qa-bpp2.lbfactor=1
      #
      # Load-balancing behaviour
      worker.qa-bpp.type=lb
      worker.qa-bpp.balance_workers=qa-bpp1,qa-bpp2
      ##########################################################


      Here is what I have in mod_jk.conf:

      <VirtualHost *:80>
      ServerAdmin ULadmin
      DocumentRoot /var/www/html
      ServerName stag.bpp
      ErrorLog /var/log/http/stag.bpp-error_log
      CustomLog /var/log/http/stag.bpp-access_log common
      JkMount /* qa-bpp




      The blocks look right to me, I have looked at the file for extra whitespace / codes and have found none, I have looked at the block before and after this block to see if there are any errors in those and have found none.

      The QA and DEV site are working fine in those clusters.

      The block above *IS* in the workers.list list.

      Any ideas?

        • 1. Re: Strange workers.properties problem (Apache / mod_jk)
          Robert Holloway Newbie

          Further information:

          I found this in the logs:


          [Tue Jan 08 12:54:32 2008][14659:5216] [error] wc_create_worker::jk_worker.c (137): Unknown worker type 1 for worker qa-bpp2
          [Tue Jan 08 12:54:32 2008][14659:5216] [error] validate::jk_lb_worker.c (1260): Failed creating worker qa-bpp2
          [Tue Jan 08 12:54:32 2008][14659:5216] [error] validate::jk_lb_worker.c (1308): NULL parameters
          [Tue Jan 08 12:54:32 2008][14659:5216] [error] wc_create_worker::jk_worker.c (161): validate failed for qa-bpp
          [Tue Jan 08 12:54:32 2008][14659:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp

          • 2. Re: Strange workers.properties problem (Apache / mod_jk)
            Robert Holloway Newbie

            Here are all of the entries going back to when I created the block in workers.properties:


            [Mon Dec 24 10:07:01 2007][10229:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-bpp
            [Mon Dec 24 10:07:01 2007][10229:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp
            [Mon Dec 24 11:13:18 2007][10229:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-bpp
            [Mon Dec 24 11:13:18 2007][10229:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp
            [Tue Dec 25 01:26:43 2007][10229:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-bpp
            [Tue Dec 25 01:26:43 2007][10229:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp
            [Tue Dec 25 08:08:19 2007][10229:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-bpp
            [Tue Dec 25 08:08:19 2007][10229:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp
            [Fri Jan 04 15:49:15 2008][26514:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-avd
            [Fri Jan 04 15:49:15 2008][26514:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-avd
            [Tue Jan 08 09:32:28 2008][14659:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-avd
            [Tue Jan 08 09:32:28 2008][14659:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-avd
            [Tue Jan 08 09:36:48 2008][14659:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-avd
            [Tue Jan 08 09:36:48 2008][14659:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-avd
            [Tue Jan 08 12:13:11 2008][14659:5216] [error] wc_create_worker::jk_worker.c (149): factory for lb failed for qa-avd
            [Tue Jan 08 12:13:11 2008][14659:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-avd
            [Tue Jan 08 12:54:32 2008][14659:5216] [error] wc_create_worker::jk_worker.c (137): Unknown worker type 1 for worker qa-bpp2
            [Tue Jan 08 12:54:32 2008][14659:5216] [error] wc_create_worker::jk_worker.c (161): validate failed for qa-bpp
            [Tue Jan 08 12:54:32 2008][14659:5216] [error] build_worker_map::jk_worker.c (259): failed to create worker qa-bpp


            Thanks in advance to anyone that can give me some direction.

            • 3. Re: Strange workers.properties problem (Apache / mod_jk) (SO
              Robert Holloway Newbie

              mod_jk was running out of shared memory.

              Added the line:

              JkShmSize 256

              to the mod_jk.conf file, uncommented the block and restarted and this fixed the problem immediately.

              Found the solution here:
              http://www.techienuggets.com/Comments?tx=5155