-
Bug
-
Resolution: Fixed
-
Medium
-
6.6.7, 6.10.1
-
1
-
Severity 3 - Minor
-
Summary
According to the guide of installing Confluence on Linux Server, if the installer is run as root, Confluence will be installed as a service. Although, it doesn't get installed as a service on Ubuntu.
Testing Environment
Ubuntu 18.04 LTS
Confluence installer 6.10.1
Steps to reproduce
- Download installer of Confluence.
- Add the execute flag to the installer.
- Run the installer as root.
Expected Results
Confluence should be installed as a service.
Actual Result
Confluence doesn't get installed as a service.
Workaround
Installer does create the /etc/init.d/confluence file, though it doesn't have the run levels in it.
So, if we will directly enable the service, Ubuntu throws an error.
update-rc.d: error: confluence Default-Start contains no runlevels, aborting.
We need to add the following lines on the top of /etc/init.d/confluence file, but after the shebang.
### BEGIN INIT INFO # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: ### END INIT INFO
After the above change, run the following command again to install Confluence as a service.
systemctl enable confluence
Diagnosis
This issue does not happen in CentOS, which means it might be an issue with update-rc.d scripts in Ubuntu.
- relates to
-
PSR-147 You do not have permission to view this issue
A fix for this issue is available to Server and Data Center customers in Confluence 6.10.3
Upgrade now or check out the Release Notes to see what other issues are resolved.
If you're running the Confluence 6.6 Enterprise release, a fix for this issue is now available in Confluence 6.6.14, which you can find in the Download Archives.
If you're running the Confluence 6.13 Enterprise release, a fix for this issue is now available in Confluence 6.13.5, which you can find in the Download Archives.