Current time: 11-23-2024, 01:20 PM Hello There, Guest! (LoginRegister)


Post Reply 
daemon not running properly?
Author Message
chrisi99 Offline
Junior Member
*

Posts: 28
Joined: Jun 2008
Reputation: 0
Post: #1
daemon not running properly?
- OS : Ubuntu 8.04
- ispCP Version RC4
- Keine Mods/Addons
- VM-Ware-Image auf einem Root
------------------------------------


I am (unfortunately) still experiencing problems with the webmail.

The ispcp_daemon seems to be running...


Code:
notroot@ubuntu:/var/log$ sudo /etc/init.d/ispcp_daemon restart
* Stopping ispCP GUI-Backend communication Daemon ispcp_daemon                                                     [fail]
* Starting ispCP GUI-Backend communication Daemon ispcp_daemon
[ OK ]

still changes are not made "Modification in Progress" ...

whats the reason for that behavior?

any help is appreciated!

best wishes
Chris
06-30-2008 07:16 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: daemon not running properly?
What is the status in coresponding table (domain, domain_aliases etc) for the "Modification in Progress"?
Did you try to kill the daemon and then try a start followed by a restart?
Can you post /etc/init.d/ispcp_daemon file?
Is anything relevant in logs regarding this?
06-30-2008 07:22 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chrisi99 Offline
Junior Member
*

Posts: 28
Joined: Jun 2008
Reputation: 0
Post: #3
RE: daemon not running properly?
hi!

the status column reads "toadd" or "change"

Stopping the daemon results in a "fail"... strange!

Code:
* Starting ispCP GUI-Backend communication Daemon ispcp_daemon                                                     [ OK ]
Quote:PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=ispcp_daemon
DAEMON=/var/www/ispcp/daemon/$NAME
PID=/var/run/$NAME.pid
DESC="ispCP GUI-Backend communication Daemon"
LOGDIR=/var/log/ispcp

LOGFILE=${LOGDIR}/${NAME}.log
DIETIME=3

START=1

# Debian LSB extensions (will be used if init-functions doesn't override them):
log_daemon_msg() {
if [ ! -z "${2:-}" ]; then
log_success_msg "${1:-}: ${2:-}"
else
log_success_msg "${1:-}"
fi
}
log_end_msg() {
local status="$1"
}

# if not present (e.g. *BSD) make sure to provide compatible methods via /etc/default/$NAME
if [ -f /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
fi

test -x $DAEMON || {
if [ "$1" = "stop" ]; then
log_warning_msg "$DAEMON not installed, but stopping anyway."
else
exit 5
fi }

# Read config file if present.
if [ -r /etc/default/$NAME ]; then
. /etc/default/$NAME
fi

if [ $START -eq 0 ]; then
log_warning_msg "Not starting $DESC: edit /etc/default/$NAME."
exit 1
fi

case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"

start_daemon -p $PID $DAEMON -p $PID
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"

killproc -p $PID $DAEMON

log_end_msg $?

[ ! -f "$PID" ] || rm -f $PID
;;
restart|force-reload)
log_daemon_msg "Stopping $DESC" "$NAME"

killproc -p $PID $DAEMON

log_end_msg $?

[ ! -f "$PID" ] || rm -f $PID

[ -n "$DIETIME" ] && sleep "$DIETIME"

log_daemon_msg "Starting $DESC" "$NAME"

start_daemon -p $PID $DAEMON -- -p $PID

log_end_msg $?
;;
status)
log_daemon_msg "Checking status of $DESC"

pidofproc $DAEMON

status="$?"
log_end_msg "$status"

case "$status" in
0)
log_success_msg "$NAME running"
;;
1)
log_warning_msg "$NAME not running (but pid file found)"
;;
;;
2)
log_warning_msg "$NAME not running (but lock file found)"
;;
3)
log_warning_msg "$NAME not running"
;;
4|*)
log_failure_msg "Service status is unknown"
exit 1
;;
esac
;;

*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac

exit 0

i checked the ispcp logfiles ... but nothing obvious occured...
06-30-2008 07:28 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: daemon not running properly?
try to manually execute ispcp/engine/ispcp-rqst-mngr to add you mofication. About logs i should look in /var/log/syslog and /var/log/daemon.log. Try to kill ispcp_daemon and see if fail is repeating.
Try to stop daemon and with ps aux | grep ispcp_daemon see if all istances are stoped.
Then run daemon and with same check verify is instance of daemon is running.
If is stopped corectely and then started you dont have to worry about fail message. Is caused by /lib/lsb/init-functions. Try to update this file (check debian lenny version)
06-30-2008 08:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chrisi99 Offline
Junior Member
*

Posts: 28
Joined: Jun 2008
Reputation: 0
Post: #5
RE: daemon not running properly?
running it manually (always) does the trick. I could not find out, why it does not work "out of the box" though... what could prevent it from running properly?


Code:
notroot@ubuntu:/var/www$ ps aux | grep ispcp_daemon
notroot  23985  0.0  0.1   1700   448 ?        S    Jun29   0:00 /var/www/ispcp/daemon/ispcp_daemon -- -p /var/run/ispcp_daemon.pid
notroot  25132  0.0  0.2   3004   756 pts/0    R+   21:07   0:00 grep ispcp_daemon

is the output while running the system... does that look right to you? Maybe running it as underprivileged User (ubuntu standard) causes problems?

Code:
notroot@ubuntu:/var/www$ killall ispcp_daemon
notroot@ubuntu:/var/www$ /etc/init.d/ispcp_daemon start
* Starting ispCP GUI-Backend communication Daemon ispcp_daemon                                                     [ OK ]

Code:
notroot@ubuntu:/var/www$ killall ispcp_daemon
ispcp_daemon: no process killed
notroot@ubuntu:/var/www$ ps aux | grep ispcp_daemon
notroot  25207  0.0  0.2   3004   756 pts/0    R+   21:11   0:00 grep ispcp_daemon

a "start" brings it up again:

Code:
notroot@ubuntu:/var/www$ ps aux | grep ispcp_daemon
notroot  25261  0.0  0.1   1700   448 ?        S    21:12   0:00 /var/www/ispcp/daemon/ispcp_daemon -- -p /var/run/ispcp_daemon.pid

no errors there...

the daemon.log reads:


Jun 30 21:12:14 ubuntu ispcp_daemon[25261]: ispCP daemon v1.1 started!


the syslog states:

Code:
Jun 30 21:10:15 ubuntu kernel: [1593552.158158] ispcp_daemon[25194]: segfault at 00000046 eip b7ec71e9 esp bfd86ed8 error 4
Jun 30 21:12:06 ubuntu ispcp_daemon[25223]: ispCP daemon v1.1 started!
Jun 30 21:12:06 ubuntu kernel: [1593662.984675] ispcp_daemon[25223]: segfault at 00000046 eip b7ebc1e9 esp bfdd6f28 error 4
Jun 30 21:12:14 ubuntu ispcp_daemon[25261]: ispCP daemon v1.1 started!
Jun 30 21:15:01 ubuntu /USR/SBIN/CRON[25301]: (root) CMD (/var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl$
...

thanks for your help!
07-01-2008 05:08 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #6
RE: daemon not running properly?
With this i can`t help. Daemon crashes when is initialized. What you can try is to rebuild daemon and try overwrite existing one.
07-01-2008 05:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chrisi99 Offline
Junior Member
*

Posts: 28
Joined: Jun 2008
Reputation: 0
Post: #7
RE: daemon not running properly?
the installation itself worked like a charm though ... strange Sad

can you help me with rebuilding the daemon?

thanks alot for helping me! Smile
07-01-2008 05:37 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #8
RE: daemon not running properly?
Download last ispcp version.
Change to ispcp directory resulted after extract files
make clean install
Go to /tmp/ispcp/var/www/ispcp/daemon
Stop/Kill running instance of ispcp_daemon.
Copy ispcp_daemon in /var/www/ispcp/daemon (overwrite the old one)
Start new daemon.
See in logs if still have crash.
Delete /tmp/ispcp
07-01-2008 05:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
chrisi99 Offline
Junior Member
*

Posts: 28
Joined: Jun 2008
Reputation: 0
Post: #9
RE: daemon not running properly?
hi!

the proplem seems to derive from the following while installing the needed packages with

Code:
sudo apt-get install $(cat ./docs/Ubuntu/ubuntu-packages-hardy)

at a certain point it says:

Code:
libnet-libidn-perl is already the newest version.
libnet-netmask-perl is already the newest version.
libnet-smtp-server-perl is already the newest version.
E: Couldn't find package libperl5.10

and aborts the installation. How can I get past this?

kind regards
Chris
07-01-2008 06:51 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #10
RE: daemon not running properly?
try modify docs/Ubuntu/ubuntu-packages-hardy and change libperl5.10 in libperl5.8
07-01-2008 07:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)