Critical error on FreeBSD - 2006/08/18 04:19Hello, All!
First, thanx for really good project! ;)
Second... I can run it only in QuickStart mode... Then I install it (python setup.py install), it installed normally, but then I run it (palabre start), it show me an error: "Fatal error 'mutex is on list' at line 540" I work on FreeBSD, and I'm not a profy on it...
Could You help me, or just say, where can I find info... (I'm searched Google many times, but can't find anything)
Re:Critical error on FreeBSD - 2006/08/21 09:26Hi !
I have no idea for this problem, and no BSD system to test :(
But if Palabre starts ok in quickqstart mode, and based on the error message you post here, it a threading problem .. maybe python BSD handles threads differently ... or there's a missing dependency .... can't tell
#!/usr/bin/bash
#
stop (){
#First we want to kill the original servers, so we don't get errors.
echo "Killing old palabre server."
for oldpid in `ps a | grep QuickStarter.py | cut -c 1-7`; do
kill $oldpid
if [[ $1 == "-v" ]]
then
echo 'Killed: '$oldpid
fi
done
rm -f /var/run/palabre.pid
}
start (){
#Now we can start the servers up.
if [[ $2 == "-v" ]]
then
echo "Starting up the new Palabre server..."
fi
sudo nohup python /PATH/TO/PALABRE/QuickStarter.py &
#Create the pid file...
ps a | grep QuickStarter.py | cut -c 1-7 > /var/run/palabre.pid
#Done now!
}
case "$1" in
start)
if [[ ! -e /var/run/palabre.pid ]]
then
start $2
if [[ -e /var/run/palabre.pid ]]
then
echo "Startup [SUCCESS]"
fi
else
if [[ $2 == "-v" ]]
then
echo "Palabre is already running these processes:"
#Toldja! Checks before displaying pid file.
if [[ -e /var/run/palabre.pid ]]
then
cat /var/run/palabre.pid
fi
echo "Try calling palabrectl restart in order to kill old processes."
else
echo "palabre is already running. Try calling palabrectl restart."
fi
echo "Startup [FAILED]"
fi
;;
restart)
stop $2
if [[ $2 == "-v" ]]
then
echo "Waiting for the old servers to die..."
fi
sleep 4
start $2
if [[ -e /var/run/palabre.pid ]]
then
echo "Startup [SUCCESS]"
fi
;;
stop)
if [[ -e /var/run/palabre.pid ]];
then
stop $2
echo "Palabre shutdown [SUCCESS]"
else
echo "There are no registered palabre servers running right now. Attempting to kill anyways."
stop $2
fi
;;
*)
echo "Usage: palabrectl (start|stop|restart) [-v]"
esac
Haven't tested it ... tell me if there's any error ...
Re:Critical error on FreeBSD - 2006/08/22 07:182Célio: First, thank You very much for Your answer!
Second, I'm too think, that this is the problem of the FreeBSD or Python under FreeBSD, and I sorry, for asking You about this... But I'm don't know anyone, who now Python (I'm learn it myself)... I'm not bad programmer under Windows and in Web-development, not under FreeBSD =)))
Third, sorry for my bad english =)))
I'm just receive Your answer, and will try it, of course. Anyway, I'll test it and post in this forum any result and any solve of the problem, if I'll solve it (I must do it =)))))
One more time, big thanx and respect for Your work!!! ;)
Re:Critical error on FreeBSD - 2006/08/24 21:32Oh...
As I promise, tell about solve of the problem...
But... I don't solve it, just come up thru backdoor ;) I don't want do it, but, I think, I'll use other server (or will write someone myself - we'll see)...
So... I can't run Palabre with code, You show me, but I run it simply with: nohup python QuickStarter.py
All work fine, but I'm already start searching of another way or another program... May be 'Red5' (but i'll have BIG problems with Java on FreeBSD), may be, I'll rewrite 'Jabber' for my needs... Don't know...
Anyway, Célio, THANX a lot for Your work and for Your programm... It's Python under FreeBSD (or my "bad" hands ;) problem, not Your...