ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    httpd dead but pid file exists

    IT Discussion
    apache rhel 5.11
    8
    85
    6.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wirestyle22W
      wirestyle22
      last edited by wirestyle22

      the apache service status shows httpd dead but pid file exists. I cannot stop the service but when i start it, it treats it as starting properly. There is nothing is the logs about this error.

      I also noticed that if I checked for apache updates with yum check-update httpd I get the following output

      Loaded plugins: kmod, rhnplugin, security
      Traceback (most recent call last):
        File "/usr/bin/yum", line 29, in ?
          yummain.user_main(sys.argv[1:], exit_code=True)
        File "/usr/share/yum-cli/yummain.py", line 309, in user_main
          errcode = main(args)
        File "/usr/share/yum-cli/yummain.py", line 157, in main
          base.getOptionsConfig(args)
        File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
          self.conf
        File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
          conf = property(fget=lambda self: self._getConfig(),
        File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
          self.plugins.run('init')
        File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
          func(conduitcls(self, self.base, conf, **kwargs))
        File "/usr/lib/yum-plugins/rhnplugin.py", line 125, in init_hook
          login_info = up2dateAuth.getLoginInfo(timeout=timeout)
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 219, in getLoginInfo
          login(timeout=timeout)
        File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 170, in login
          server = rhnserver.RhnServer(timeout=timeout)
        File "/usr/share/rhn/up2date_client/rhnserver.py", line 155, in __init__
          self._server = rpcServer.getServer(timeout=timeout)
        File "/usr/share/rhn/up2date_client/rpcServer.py", line 156, in getServer
          timeout=timeout)
      TypeError: __init__() got an unexpected keyword argument 'timeout'
      
      

      This is an old rhel 5 machine ๐Ÿ˜ž

      I can't stop the service even if I try to rename the old pid file

      black3dynamiteB stacksofplatesS 2 Replies Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        You are root?

        wirestyle22W 1 Reply Last reply Reply Quote 1
        • wirestyle22W
          wirestyle22 @scottalanmiller
          last edited by

          @scottalanmiller said in httpd dead but pid file exists:

          You are root?

          Yes I'm root

          1 Reply Last reply Reply Quote 0
          • wirestyle22W
            wirestyle22
            last edited by

            I am seeing a new entry in the logs:

            PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
            
            1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite @wirestyle22
              last edited by black3dynamite

              @wirestyle22 said in httpd dead but pid file exists:

              I can't stop the service even if I try to rename the old pid file

              What about disabling the httpd service and then restart the server?

              wirestyle22W 1 Reply Last reply Reply Quote 0
              • wirestyle22W
                wirestyle22 @black3dynamite
                last edited by wirestyle22

                @black3dynamite said in httpd dead but pid file exists:

                @wirestyle22 said in httpd dead but pid file exists:

                I can't stop the service even if I try to rename the old pid file

                What about disabling the httpd service and then restart the server?

                This is going to sound stupid, but this is rhel 5. I see that I can disable service on startup but I actually don't see the option to disable the service. I also need to put a reboot request in to reboot a production server.

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @wirestyle22
                  last edited by black3dynamite

                  @wirestyle22 said in httpd dead but pid file exists:

                  @black3dynamite said in httpd dead but pid file exists:

                  @wirestyle22 said in httpd dead but pid file exists:

                  I can't stop the service even if I try to rename the old pid file

                  What about disabling the httpd service and then restart the server?

                  This is going to sound stupid, but this is rhel 5. I see that I can disable service on startup but I actually don't see the option to disable the service. I also need to put a reboot request in to reboot a production server.

                  Hope these links help.

                  https://httpd.apache.org/docs/2.2/stopping.html

                  https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/s1-apache-startstop

                  wirestyle22W 1 Reply Last reply Reply Quote 0
                  • wirestyle22W
                    wirestyle22 @black3dynamite
                    last edited by

                    @black3dynamite said in httpd dead but pid file exists:

                    @wirestyle22 said in httpd dead but pid file exists:

                    @black3dynamite said in httpd dead but pid file exists:

                    @wirestyle22 said in httpd dead but pid file exists:

                    I can't stop the service even if I try to rename the old pid file

                    What about disabling the httpd service and then restart the server?

                    This is going to sound stupid, but this is rhel 5. I see that I can disable service on startup but I actually don't see the option to disable the service. I also need to put a reboot request in to reboot a production server.

                    Hope these links help.

                    https://httpd.apache.org/docs/2.2/stopping.html

                    https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/deployment_guide/s1-apache-startstop

                    None of these disable

                    1 Reply Last reply Reply Quote 0
                    • black3dynamiteB
                      black3dynamite
                      last edited by

                      This should disable httpd on each runlevel
                      chkconfig --level 2345 httpd off

                      wirestyle22W 1 Reply Last reply Reply Quote 0
                      • black3dynamiteB
                        black3dynamite
                        last edited by

                        And according to the system manager manual, chkconfig --del httpd will remove the service from chkconfig management, and any symbolic links in /etc/rc[0-6].d which pertain to it are removed.

                        1 Reply Last reply Reply Quote 0
                        • wirestyle22W
                          wirestyle22 @black3dynamite
                          last edited by

                          @black3dynamite said in httpd dead but pid file exists:

                          This should disable httpd on each runlevel
                          chkconfig --level 2345 httpd off

                          apachectl status
                          ELinks: Connection refused

                          black3dynamiteB 1 Reply Last reply Reply Quote 0
                          • black3dynamiteB
                            black3dynamite @wirestyle22
                            last edited by

                            @wirestyle22 said in httpd dead but pid file exists:

                            @black3dynamite said in httpd dead but pid file exists:

                            This should disable httpd on each runlevel
                            chkconfig --level 2345 httpd off

                            apachectl status
                            ELinks: Connection refused

                            This user issue was related to postfix. Yours could be something else but the firsts is worth trying.
                            https://unix.stackexchange.com/a/170023

                            1 Reply Last reply Reply Quote 0
                            • black3dynamiteB
                              black3dynamite
                              last edited by

                              Another tip for finding out whatโ€™s happening.
                              https://serverfault.com/a/174041

                              1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite
                                last edited by black3dynamite

                                Have you already tried temporarily disabling SELinux too?

                                wirestyle22W 1 Reply Last reply Reply Quote 0
                                • wirestyle22W
                                  wirestyle22 @black3dynamite
                                  last edited by

                                  @black3dynamite Someone already had it disabled. Cardinal sin

                                  1 Reply Last reply Reply Quote 1
                                  • wirestyle22W
                                    wirestyle22
                                    last edited by wirestyle22

                                    Rebooted last night. Same error.

                                    1 Reply Last reply Reply Quote 0
                                    • wirestyle22W
                                      wirestyle22
                                      last edited by wirestyle22

                                      cat httpd.pid
                                      1848
                                      
                                       ps aux | grep 1848
                                      root      3017  0.0  0.0   4024   672 pts/0    S+   09:16   0:00 grep 1848
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • wirestyle22W
                                        wirestyle22
                                        last edited by wirestyle22

                                        Turned on debug mode, haven't seen any debug entries yet

                                        1 Reply Last reply Reply Quote 0
                                        • wirestyle22W
                                          wirestyle22
                                          last edited by

                                          [Tue Oct 22 10:03:19 2019] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
                                          [Tue Oct 22 10:03:19 2019] [notice] Digest: generating secret for digest authentication ...
                                          [Tue Oct 22 10:03:19 2019] [notice] Digest: done
                                          [Tue Oct 22 10:03:19 2019] [info] APR LDAP: Built with OpenLDAP LDAP SDK
                                          [Tue Oct 22 10:03:19 2019] [info] LDAP: SSL support available
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • stacksofplatesS
                                            stacksofplates @wirestyle22
                                            last edited by

                                            @wirestyle22 said in httpd dead but pid file exists:

                                            I cannot stop the service

                                            Did you try killing the pid, ensuring the pid file is removed and then restarting?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 3 / 5
                                            • First post
                                              Last post