Hi Chris,

I tried that and got similar error msgs.

I am wondering if something needs to be defined upstream for Apache, Tomcat
or maybe even Java?




On Wed, Nov 21, 2018 at 11:37 AM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Lou,
>
> On 11/21/18 11:18, Lou Wallace wrote:
> > Hi Everyone,
> >
> > So still having issues with mod_jk. I have downloaded
> >
> > wget
> > http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-conne
> ctors-1.2.46-src.tar.gz
> <http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz>
> >
> >
> wget
> > http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-conne
> ctors-1.2.46-src.tar.gz.sha1
> <http://www.eu.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.46-src.tar.gz.sha1>
> >
> >  and make install, and everything seems fine
> >
> > I then edited the httpd.conf file and added
> >
> > LoadModule jk_module modules/mod_jk.so
> >
> > JkWorkersFile "/etc/httpd/conf/workers.properties" JkLogFile
> > "/var/log/mod_jk.log" JkLogLevel  info JkLogStampFormat "[%a %b %d
> > %H:%M:%S %Y] " JkOptions     +ForwardKeySize +ForwardURICompat
> > -ForwardDirectories JkRequestLogFormat     "%w %V %T"
> >
> > then I edited workers.properties and added
> >
> > worker.list=app1,app2
> >
> > worker.app1.type=ajp13 worker.app1.host=app1.example.com
> > worker.app1.port=8201 worker.app1.socket_timeout=10
> >
> > worker.app2.type=ajp13 worker.app2.host=app2.example.com
> > worker.app2.port=8201 worker.app1.socket_timeout=10
> >
> > Then when I restart Apache using systemctl restart httpd I get
> >
> > Job for httpd.service failed because the control process exited
> > with error code. See "systemctl status httpd.servic e" and
> > "journalctl -xe" for details.
> >
> > So checking mod_jk log I see
> >
> > [Wed Nov 21 15:54:19 2018] [11957:140478724515968] [warn]
> > jk_map_handle_duplicates::jk_map.c (456): Duplicate key $
> >
> > and the httpd log last entries are
> >
> > [Wed Nov 21 15:54:13.789384 2018] [mpm_prefork:notice] [pid 7569]
> > AH00170: caught SIGWINCH, shutting down gracefully [Wed Nov 21
> > 15:54:19.910325 2018] [core:notice] [pid 11957] SELinux policy
> > enabled; httpd running as context system_u:system_r:httpd_t:s0 [Wed
> > Nov 21 15:54:19.911278 2018] [suexec:notice] [pid 11957] AH01232:
> > suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Nov 21
> > 15:54:19.916294 2018] [jk:warn] [pid 11957] No JkShmFile defined in
> > httpd.conf. Using default /etc/httpd/logs/jk-runtime-status [Wed
> > Nov 21 15:54:19.916632 2018] [jk:emerg] [pid 11957] Initializing
> > shm:/etc/httpd/logs/jk-runtime-status.11957 errno=13. Unable to
> > start due to shared memory failure. [Wed Nov 21 15:54:19.916639
> > 2018] [jk:emerg] [pid 11957] Initializing
> > shm:/etc/httpd/logs/jk-runtime-status.11957 errno=13. Unable to
> > start due to shared memory failure.
> >
> > I am not sure if the first 3 are connected to mod_jk, I included
> > them for those who know far more then me (almost everyone I
> > suspect) just in case
> >
> > And ideas, hints or thoughts?
>
> I wonder if your shared-memory file is corrupt. Try deleting the file
> /etc/httpd/logs/jk-runtime-status (or maybe
> /etc/httpd/logs/jk-runtime-status*) and restarting.
>
> I've never seen any errors like the ones you are showing above, so
> this is just a shot in the dark.
>
> Also, try a complete "stop" and "start" instead of a graceful shutdown.
>
> - -chris
>
> > On Fri, Nov 16, 2018 at 9:56 AM Lou Wallace
> > <mrlouwall...@gmail.com> wrote:
> >
> >> Hi All,
> >>
> >> I am in need of some help in getting mod_jk installed on a new
> >> google cloud server.
> >>
> >> Right now it has Apache, Tomcat, Java, mysql, perl and python
> >> installed. But mod_jk isn't there.
> >>
> >> When I try yum install mod_jk it isn't found in any of the
> >> mirrors.
> >>
> >> I've been to the Tomcat site and when I try and get binaries or
> >> source it sees I am on a windows pc and forces me to those
> >> directories.
> >>
> >> So, if someone can give me a simple set of commands to do this it
> >> would be awesome. Also is there other tomcat connectors needed
> >> with java?
> >>
> >> Preferable it will be done from the ssh client on the cloud
> >> server.
> >>
> >> Thanks!
> >>
> >> Lou
> >>
> >
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlv1icIACgkQHPApP6U8
> pFhLoBAAm5fQnozzXl2DH6p2tBCqos3FZga7u5ogbNrMULOtC4r0NMI3fqvOL03u
> SUA19NaNJyczj0LthEeLlXQfaWp2KniaLvPyrjCVGEbZejpx3fACVpCdYn5OplQB
> JNyP4gH7k1XFWlVcwtTsQugvVYlFNDp8qUaNfzHfvZ+DQhEGWEt9k0T8PWDmULJA
> ms+wQSLajDfeHqbt+EZ5HyV6x5vUJJfQirai7ExVWOp2bVM4SZXhQC0FozQGJKm/
> 883OTq2HbyhDn1wUh4xgG43vua5hY7HLbcJlDtkUYe2EpNAOyjP1p7vPgSQTukOB
> mLHTAeQFcnHCgmYRmK6A5Lf/qW3DKKFQpV3clrltEzh9csbZiTP2c/koWVWiXY64
> kXc4syCeuNRHOxjzpX0VWAnTTYh0FpPg7ITTlt3AsQMP5d5D07UOzvqhMaxi38m1
> xNzmx5DnW/5iLlOM8KX528U7mATnKEUHL9q6pEtGDd8Mug6JqRgcW0T+oheb0ISg
> J1nL3te0/oOGccuiUKn7NJfujSEVrb2guRG24cIZS5I9Ym7jnOZSWtN1KEpxnZfY
> sF7/JHxMLNSy7zrqQNooXFCi4CDn6W6hpwQd0Nz1Y/i1XOnfLQFWBvPTJGqezSJN
> PVh+QclAW7nasqgBzKb3IQPQ0uVYX3F0VKUaOxszLbsas6Dzjwk=
> =qjE+
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to