Content
installation on linux mint (ubuntu 16.04) failed (solved)
Added by der kaeptn over 8 years ago
hi,
installation of openproject from packaging failed on linux mint - or at least stuck.
everything runs okay, but after openproject configure it failes to start openproject.
seems to me to have something to do with the new systemd daemon-starter.
as i dont know much about systemd i am stuck with the problem. the error simply sais:
Failed to restart openproject.service: Unit openproject.service not found.
it seems to me as it tries to start openproject with the old init-system (upstart in ubuntu?).
as i normaly work in debian i never used that neither. but my friend wants to have it installed on his linux mint (based on ubuntu 16.04) so i have to get it running somehow.
somebody can help me?
is it posible to start openproject as daemon by hand? if so - how?
if i run openproject it gives me no advice to that direction.
if i run “service openproject start”
Failed to start openproject.service: Unit openproject.service not found.
if i run “service openproject”
This job runs via upstart, invoking upstart now…
initctl: invalid command: openproject
Try `initctl —help’ for more information.
any idea?
thanks in advance
update:
after following the link in the reply to https://community.openproject.com/topics/6580
(the same problem) i found the bug in the bugtracker where somebody has already worked out a solution.
as i thought, the upstart-scripts are broken, the user rolf wrote a new startupscript for systemd.
i placed this script in /lib/systemd/system/openproject.service :
[Unit]
Description=Openproject
After=network.target apache2.service
[Service]
Type=simple
StandardOutput=null
StandardError=null
Restart=always
ExecStart=/usr/bin/openproject run web
[Install]
WantedBy=multi-user.target
after that i removed all old init-stuff of openproject on /etc/init.d and /etc/init
and did as rolf mentioned:
systemctl daemon-reload
systemctl enable openproject.service
systemctl start openproject.service
now it seems to work.
so everybody who was looking for a solution for ubuntu 16.04 or linux mint - this seemes to be it.
many thanks to rolf :)