OTRS Daemon is not running

Moderator: crythias

Locked
vinc535
Znuny newbie
Posts: 13
Joined: 02 May 2013, 11:32
Znuny Version: 5.0.6
Real Name: Vincent
Company: N/A

OTRS Daemon is not running

Post by vinc535 »

Dear all,

I have just done a new installation of the lastest OTRS 5.0.6 on CentOS7, the installation went well, but I am facing the message "OTRS Daemon is not running" in the Web UI.
I checked that the daemon was running, and it is:
bash-4.2$ ./otrs.Daemon.pl status
otrs.Daemon.pl - the otrs daemon
Copyright (C) 2001-2016 xxx, http://otrs.com/
Daemon running
bash-4.2$

Daemon modules are there:

bash-4.2$ ls
BaseTaskWorker.pm SchedulerFutureTaskManager.pm SchedulerTaskWorker
SchedulerCronTaskManager.pm SchedulerGenericAgentTaskManager.pm SchedulerTaskWorker.pm

I tried to see if there was any log file present, but no, no log files:
bash-4.2$ cd /opt/otrs/var/log/Daemon/
bash-4.2$ ls -la
total 0
drwxrws---. 2 otrs apache 6 Feb 4 18:48 .
drwxrwsr-x. 3 otrs apache 19 Feb 4 18:48 ..

Any clue?
Thank you so much!
V.
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: OTRS Daemon is not running

Post by jjurkus »

There are two daemons.

Try this:

Code: Select all

su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs
This will at least start both of them. If you still get the message you might want to look in the system logs; admin -> system log in the webinterface.
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
vinc535
Znuny newbie
Posts: 13
Joined: 02 May 2013, 11:32
Znuny Version: 5.0.6
Real Name: Vincent
Company: N/A

Re: OTRS Daemon is not running

Post by vinc535 »

Hi there!
Thank you for you nice suggestion. I tried and here is the result:
[root@cacti ~]# su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs
otrs.Daemon.pl - the otrs daemon
Copyright (C) 2001-2016 xxx, http://otrs.com/

Daemon already running!
/opt/otrs/bin/Cron.sh: line 44: cd: /root: Permission denied
Cron.sh - start/stop OTRS cronjobs
Copyright (C) 2001-2012 xxx, http://otrs.org/
(using /opt/otrs) done
[root@cacti ~]#

I will investigate this "Permission denied" that might be my issue and keep you informed.
V.
jjurkus
Znuny newbie
Posts: 54
Joined: 29 Jan 2016, 15:36
Znuny Version: 6.0.17

Re: OTRS Daemon is not running

Post by jjurkus »

No, I have that too. It's just the directory you're in at the moment, the user otrs does not have rights to that directory.
OTRS 6.0.x on CentOS 7 with a PostgreSQL database.
vinc535
Znuny newbie
Posts: 13
Joined: 02 May 2013, 11:32
Znuny Version: 5.0.6
Real Name: Vincent
Company: N/A

[SOLVED] OTRS Daemon is not running

Post by vinc535 »

Dear all,

I solved it, thanks to your good suggestion.

su -c "/opt/otrs/bin/otrs.Daemon.pl start ; /opt/otrs/bin/Cron.sh start" -s /bin/bash otrs

V.
Locked