Redmine dying / ignoring incoming connections
Added by leonidas d. over 15 years ago
Hello,
i am expiriencing strange issues with ruby/redmine on our server. I am trying to describe the problem to my best..
Basically what happens is that, after some hours, redmine seems to stop working. The process is still running, but connections (port 3000) time out. We could not figure out what causes the problem. A temporary solution was to run a script a few times a day, automatically, which restarts redmine, but even this seems to fail often.
Clearly using a script to restart redmine frequently is not a solution, its a workaround and thus not useful in the long term.
We are unclear of the origin of the problem - and i am, personally, not the big linux man, .. so i can only hope that somebody here knows about this problem and can help us out. What may be useful, as well, would be a legitime init.d script for redmine on a gentoo distribution.
I now attach some information on our server:
Linux version 2.6.18-hardened-r6 (root@masked.masked.at) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #3 Sat Apr 7 11:47:55 CEST 2007
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
Portage useflags:
net-mail/mailgraph vhosts
dev-lang/php sockets mysqli ctype xml simplexml ftp gd session xmlreader xmlwriter force-cgi-redirect
This is our startscript:
#!/sbin/runscript
start() {ebegin "Starting Redmine"
start-stop-daemon --start \
--background \
--chuid masked \
--pidfile /var/run/redmine.pid \
--make-pidfile \
--exec "/home/masked/redmine.masked.com/./startDaemon"
- --name redmine
eend $?
}
stop() {- pid=`cat /var/run/redmine.pid`
- echo "trying to kill $pid"
- kill -s 2 $pid
- rm /var/run/redmine.pid
- -- name redmine
- killall -s 2 ruby
eend $?
}
ebegin "Stopping redmine"
start-stop-daemon --stop \
--exec "/home/kobald/redmine.masked.com/./startDaemon" \
--pidfile /var/run/redmine.pid