Hi. I have a problem with NAV 4.3.1. When I start or restart it the following "services" won't start: Failed: eventengine ipdevpoll servicemon smsd I can start them manually and then they works. I also tried to reinstall NAV with "aptitude reinstall nav" but same problem.
I'm running Debian Wheezy 64-bit. What can be the problem?
Regards Mattias Söderholm
On Fri, 4 Sep 2015 10:01:59 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
When I start or restart it the following "services" won't start: Failed: eventengine ipdevpoll servicemon smsd
I can start them manually and then they works.
Exactly how did you start them manually? Did you use the shell scripts in /etc/nav/init.d - or did you run the binaries in /usr/lib/nav directly?
Did any of them log anything useful to their respective log files in /var/log/nav when they failed to start?
Hi. I started the binaries directly from /usr/lib/nav. I only checked ipdevpold log file before i started the binaries, but it was empty.
/Mattias
----- Ursprungligt meddelande ----- Från: "Morten Brekkevold" morten.brekkevold@uninett.no Till: "Mattias Söderholm" mattias.soderholm@malax.fi Kopia: "nav-users" nav-users@uninett.no Skickat: fredag, 4 sep 2015 15:15:49 Ämne: Re: Problem starting some services on NAV 4.3.1
On Fri, 4 Sep 2015 10:01:59 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
When I start or restart it the following "services" won't start: Failed: eventengine ipdevpoll servicemon smsd
I can start them manually and then they works.
Exactly how did you start them manually? Did you use the shell scripts in /etc/nav/init.d - or did you run the binaries in /usr/lib/nav directly?
Did any of them log anything useful to their respective log files in /var/log/nav when they failed to start?
On Fri, 4 Sep 2015 15:26:36 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
I started the binaries directly from /usr/lib/nav. I only checked ipdevpold log file before i started the binaries, but it was empty.
The `nav` command interfaces with the daemon init scripts in /etc/nav/init.d . If you invoke these scripts manually, any startup error messages swallowed by the `nav` command will be dumped to screen.
Thank you for the information, I found the problem but do not know how to fix it. The problem was some errors with bash_completion when example ipdevpoll starts. I disabled bash_completion for now (also uninstalled it) and it's working now.
The problem seems to be: ipdevpoll() { su - ${user} -c "${IPDEVPOLLD} ${OPTIONS}" }
Or anywhere su command is used in the starting scripts when bash_completion is enabled!
/Mattias
----- Ursprungligt meddelande ----- Från: "Morten Brekkevold" morten.brekkevold@uninett.no Till: "Mattias Söderholm" mattias.soderholm@malax.fi Kopia: "nav-users" nav-users@uninett.no Skickat: fredag, 4 sep 2015 15:35:58 Ämne: Re: Problem starting some services on NAV 4.3.1
On Fri, 4 Sep 2015 15:26:36 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
I started the binaries directly from /usr/lib/nav. I only checked ipdevpold log file before i started the binaries, but it was empty.
The `nav` command interfaces with the daemon init scripts in /etc/nav/init.d . If you invoke these scripts manually, any startup error messages swallowed by the `nav` command will be dumped to screen.
On Mon, 7 Sep 2015 07:43:31 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
Thank you for the information, I found the problem but do not know how to fix it. The problem was some errors with bash_completion when example ipdevpoll starts. I disabled bash_completion for now (also uninstalled it) and it's working now.
The problem seems to be: ipdevpoll() { su - ${user} -c "${IPDEVPOLLD} ${OPTIONS}" }
Or anywhere su command is used in the starting scripts when bash_completion is enabled!
I'm not even sure how to reproduce this. I have bash-completion installed and enabled (though the default method of enabling it should enable it only for interactive shells), but everything still works out-of-the-box for me.
-- Morten Brekkevold UNINETT
Got it working now. I had the code inserted in /etc/profiles and that was the problem. I now instead inserted the code to ~/.bashrc file.
/Mattias
----- Ursprungligt meddelande ----- Från: "Morten Brekkevold" morten.brekkevold@uninett.no Till: "Mattias Söderholm" mattias.soderholm@malax.fi Kopia: "nav-users" nav-users@uninett.no Skickat: torsdag, 10 sep 2015 11:08:41 Ämne: Re: Problem starting some services on NAV 4.3.1
On Mon, 7 Sep 2015 07:43:31 +0300 Mattias Söderholm mattias.soderholm@malax.fi wrote:
Thank you for the information, I found the problem but do not know how to fix it. The problem was some errors with bash_completion when example ipdevpoll starts. I disabled bash_completion for now (also uninstalled it) and it's working now.
The problem seems to be: ipdevpoll() { su - ${user} -c "${IPDEVPOLLD} ${OPTIONS}" }
Or anywhere su command is used in the starting scripts when bash_completion is enabled!
I'm not even sure how to reproduce this. I have bash-completion installed and enabled (though the default method of enabling it should enable it only for interactive shells), but everything still works out-of-the-box for me.
-- Morten Brekkevold UNINETT