Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-7818

Package based upgrade does not support instances running as non-root

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Dev in Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0.0, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 7.0.0, 7.0.1, 7.1.0
    • Fix Version/s: None
    • Component/s: upgrade
    • Support Ticket IDs:

      Description

      The rpm based postinstall.sh script should run ./upgrade as the user the DS is running as.

      RPM's must be installed as root, but if the admin has changed the file ownership for security purposes, the RPM upgrade changes the file ownership back to root which will make systemd actions fail.

      The upgrade always succeeds

      >>>> OpenDJ data was successfully upgraded from version
      
      6.5.3.bf0bc197e34116bfcbd48ad06a9752ddef711b90 to
      6.5.4.a0990baffa115f3cbfb0ed4960685204b2bdb4f3
      

      However, the systemd service fails to start...permissions problem obtaining an exclusive lock...

      [root@ds01 ~]# systemctl start opendj
      Job for opendj.service failed because the control process exited with error code. See "systemctl status opendj.service" and "journalctl -xe" for details.
      [root@ds01 ~]# systemctl status opendj.service
      opendj.service - ForgeRock DS/OpenDJ 6.5.3-1
       Loaded: loaded (/usr/lib/systemd/system/opendj.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Tue 2021-02-09 16:28:48 UTC; 16s ago
       Process: 30537 ExecStart=/opt/opendj/bin/start-ds --quiet (code=exited, status=98)
       Main PID: 6321 (code=exited, status=143)
      
      Feb 09 16:28:48 ds01.local start-ds[30537]: The Directory Server could not acquire an exclusive lock on file /opt/opendj...
      Feb 09 16:28:48 ds01.local systemd[1]: opendj.service: control process exited, code=exited status=98
      Feb 09 16:28:48 ds01.local systemd[1]: Failed to start ForgeRock DS/OpenDJ 6.5.3-1.
      Feb 09 16:28:48 ds01.local systemd[1]: Unit opendj.service entered failed state.
      Feb 09 16:28:48 ds01.local systemd[1]: opendj.service failed.
      Hint: Some lines were ellipsized, use -l to show in full.

        Attachments

          Activity

            People

            Assignee:
            lee.trujillo Lee Trujillo
            Reporter:
            lee.trujillo Lee Trujillo
            Dev Assignee:
            Lee Trujillo Lee Trujillo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: