OTRS 5 Daemon wont start

Moderator: crythias

Locked
computertech
Znuny newbie
Posts: 1
Joined: 25 Jan 2016, 21:39
Znuny Version: 5.0.6
Real Name: Adam Hatton
Company: NKOL

OTRS 5 Daemon wont start

Post by computertech »

I've been using version 3.2 since it was released with very few issues. I went into the GUI to add in some SMTP authentication settings and I wasn't able to apply them. I thought it would be a good time to get the system up to date hoping it would take care of the glitch with entering the setting through the GUI. I followed the upgrade path from 3.2->3.3->4->5.0.5 on a CentOS 6.5 box. All of the versions worked fine until I did the 5.0.5 upgrade. It did fix the first glitch of not accepting changes through the GUI but the daemon won't run. The system is mostly functional except for the tasks handled by the daemon. (I can create and close tickets, all of my old tickets are in there but I can't get email notifications and there is the red "OTRS daemon is not running" banner on every users screen.

Here is a github page on the daemon https://otrs.github.io/doc/manual/admin ... aemon.html. Below is what i've tried based on it.

The /opt/otrs/var/cron/otrs_daemon cron job exists.
The daemon exists as well in /opt/otrs/bin/otrs.Daemon.pl
I have executed "/opt/otrs/bin/Cron.sh start" to get the otrs cron jobs going.
I've tried to manually start the daemon with "/opt/otrs/bin/otrs.Daemon.pl start"
Also "/opt/otrs/bin/otrs.Daemon.pl status" doesn't return the status.
Both of the above commands just return me to the command prompt with no errors.
The daemon is supposed to send logs to /opt/otrs/var/log/Daemon/*.log but the Daemon directory is not there, I assume it must have to start at least once to create the folder.

Anyone have any ideas on how to get this daemon running?
OTRS 5.0.6 (private) on Linux CentOS 6.5 with MySQL database.
fsidoli
Znuny newbie
Posts: 24
Joined: 24 Nov 2011, 12:01
Znuny Version: 5.0.20
Real Name: Fabrizio Sidoli

Re: OTRS 5 Daemon wont start

Post by fsidoli »

Hi,

What does /var/log/otrs.log tell you?

Thanks,
Fab
tundeoyeyemi
Znuny newbie
Posts: 3
Joined: 30 Jul 2015, 16:13
Znuny Version: 4.0.1
Real Name: Tunde Oyeyemi

Re: OTRS 5 Daemon wont start

Post by tundeoyeyemi »

I guess your Cron.sh is already running that is why Daemon is not starting.

1. First stop the Cron.sh with this command ( should be run as otrs user not root, you can change from root to otrs user by simply type "su otrs" if you are already login as root.
/opt/otrs/bin/Cron.sh stop

2. Start the Daemon.pl using
/opt/otrs/bin/otrs.Daemon.pl start

3. Now start the Cron.sh using
/opt/otrs/bin/Cron.sh start

You should be fine.
Locked