Michael Mirman
2016-06-26 17:04:45 UTC
Did you look in p4d.log - how the server was stopped?
If there is nothing at all in that regard in p4d.log, then it might be that the system killed the server the hard way.
Here's what I would do:
Make sure the server is started with a command (or a simple script) that redirects all output (stdout as well as stderr) to a file. This way, not only there might be some errors, which wouldn't get otherwise to p4d.log, but also you will have a time stamp on that file, which will tell you when last time p4d said anything.
Did the whole system restart/reboot? Is there anything that would make the system go into some kind of hibernation? The bottom line is, if there is nothing in the p4d log, it looks like "something" kills the server, and we need to identify the killer.
You can also have a script that spits out the time stamp before and after starting p4d - something simple like
#! /bin/sh
echo "Starting p4d" `date` >> logfile
p4d whatever >> logfile 2>&1 (without -d)
echo "p4d ended" `date` >> logfile
and the init.d setting would make this script to start during the reboot.
The content of logfile may help diagnose the problem.
--
Michael Mirman
MathWorks, Inc.
508-647-7555
-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of Jibberish
Sent: Sunday, June 26, 2016 10:20 AM
To: perforce-***@perforce.com
Subject: [p4] Server is unexpectedly restarting but nothing in logs?
Posted on behalf of forum user 'Jibberish'.
So I've got a Perforce server up and running on a Linux box, but for some
reason p4d is not running whenever I log on to the system every morning? It
seems to start up just fine, but I can't find any errors in the
syslog.��I'm sorta new to Linux and Perforce, any idea where else
I should look? Are there any perforce specific logs I should be checking?
This isn't in production yet, so I've got some time to figure it out.
Thanks in advance!
If there is nothing at all in that regard in p4d.log, then it might be that the system killed the server the hard way.
Here's what I would do:
Make sure the server is started with a command (or a simple script) that redirects all output (stdout as well as stderr) to a file. This way, not only there might be some errors, which wouldn't get otherwise to p4d.log, but also you will have a time stamp on that file, which will tell you when last time p4d said anything.
Did the whole system restart/reboot? Is there anything that would make the system go into some kind of hibernation? The bottom line is, if there is nothing in the p4d log, it looks like "something" kills the server, and we need to identify the killer.
You can also have a script that spits out the time stamp before and after starting p4d - something simple like
#! /bin/sh
echo "Starting p4d" `date` >> logfile
p4d whatever >> logfile 2>&1 (without -d)
echo "p4d ended" `date` >> logfile
and the init.d setting would make this script to start during the reboot.
The content of logfile may help diagnose the problem.
--
Michael Mirman
MathWorks, Inc.
508-647-7555
-----Original Message-----
From: perforce-user [mailto:perforce-user-***@perforce.com] On Behalf Of Jibberish
Sent: Sunday, June 26, 2016 10:20 AM
To: perforce-***@perforce.com
Subject: [p4] Server is unexpectedly restarting but nothing in logs?
Posted on behalf of forum user 'Jibberish'.
So I've got a Perforce server up and running on a Linux box, but for some
reason p4d is not running whenever I log on to the system every morning? It
seems to start up just fine, but I can't find any errors in the
syslog.��I'm sorta new to Linux and Perforce, any idea where else
I should look? Are there any perforce specific logs I should be checking?
This isn't in production yet, so I've got some time to figure it out.
Thanks in advance!
--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/4840-server-is-unexpectedly-restarting-but-nothing-in-logs
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.p
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/4840-server-is-unexpectedly-restarting-but-nothing-in-logs
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.p