Uploaded image for project: 'StoRM'
  1. StoRM
  2. STOR-1400

StoRM WebDAV service enters failed state when stopped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.11.21
    • 1.11.20
    • webdav
    • Security Level: Public (Visbile by non-authn users.)
    • None

      Starting the WebDAV service works fine but when stopping, the service remains in a failed state:

      Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: storm-webdav.service: main process exited, code=exited, status=143/n/a
      Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Stopped StoRM WebDAV service.
      Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Unit storm-webdav.service entered failed state.
      Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: storm-webdav.service failed.
      Apr 16 16:06:07 omii005-vm03.cnaf.infn.it systemd[1]: Started StoRM WebDAV service.
      

      Exit code 143 means that the program received a SIGTERM signal to instruct it to exit. The JVM catches the signal, does a clean shutdown, i.e. it runs all registered shutdown hooks, but still exits with an exit code of 143. That's just how Java works.

      We should be able to suppress this by adding the exit code into the unit file as a "success" exit status:

      [Service]
      SuccessExitStatus=143
      

            vianello Enrico Vianello
            vianello Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: