[contestms] Re: Restarting in loop

  • From: Damien Leroy <damien.leroy@xxxxxxxx>
  • To: contestms@xxxxxxxxxxxxx
  • Date: Sat, 22 Apr 2017 17:05:32 +0000

Problem solved. It was because I was executing CMS in virtualenv without
sourcing activate (source ~/cms_venv/bin/activate) because it was launched
through the supervisor daemon.
For the records, I now configure supervisor to run the following command :
  bash -c "source ~/cms_venv/bin/activate && ~/cms_venv/bin/python
~/cms/scripts/cmsResourceService -a 1 0"

Damien L.

On Fri, 14 Apr 2017 at 23:52 Stefano Maggiolo <s.maggiolo@xxxxxxxxx> wrote:

Uhm (and sorry for limited debugging but I'm on my phone) maybe take a
look in the code at how RS launched the services and try that? Maybe
manually succeeds because you use a different line...

On 14 Apr 2017 10:47 pm, "Damien Leroy" <damien.leroy@xxxxxxxx> wrote:

Logs of the ResourceService are the restart of everything while the other
ones are empty... hum weird, I'm sure it is a stupid thing.

Damien

On Fri, 14 Apr 2017 at 22:52 Stefano Maggiolo <s.maggiolo@xxxxxxxxx>
wrote:

You should be able to see their logs in the log directory, maybe they'll
have some info.

On 14 Apr 2017 9:19 pm, "Damien Leroy" <damien.leroy@xxxxxxxx> wrote:

Hi Stefano,
They are not started, so "dying at start" option. If I launch one
manually, it runs without problem.

Damien L.

On Fri, 14 Apr 2017 at 21:54 Stefano Maggiolo <s.maggiolo@xxxxxxxxx>
wrote:

Hey Damien, are the services running and RS doesn't understand it, or
are they legitimately dying at start?

If the latter, try running one manually and paste the logs, otherwise
can you tell us the command line for a CMS service you see with ps? Better
if one that RS started.

On 14 Apr 2017 8:05 pm, "Damien Leroy" <damien.leroy@xxxxxxxx> wrote:

Hi,
I've just reinstalled CMS (1.3) on an Ubuntu on EC2. It restarts all
services in loop, over and over...
It is probably a stupid error on my side but as my log is limited to
this, so how am I suppose to approach the problem ?

ubuntu@ip-172-31-32-61:~/efs/cms$
/home/ubuntu/efs/cms_venv/bin/python
/home/ubuntu/efs/cms/scripts/cmsResourceService -a 1 0
2017-04-14 18:51:46,288 - INFO [<unknown>] Using configuration file
./config/cms.conf.
2017-04-14 18:51:49,811 - INFO [Resource,0] Established connection
with 172.31.32.61:29000 (LogService,0).
2017-04-14 18:51:49,972 - INFO [Resource,0] ResourceService 0 up and
running!
2017-04-14 18:51:49,990 - INFO [Resource,0] Restarting
(AdminWebServer, 0)...
2017-04-14 18:51:50,027 - INFO [Resource,0] Restarting (Checker, 0)...
2017-04-14 18:51:50,067 - INFO [Resource,0] Restarting
(ContestWebServer, 0)...
2017-04-14 18:51:50,106 - INFO [Resource,0] Restarting
(EvaluationService, 0)...
2017-04-14 18:51:50,144 - INFO [Resource,0] Restarting
(PrintingService, 0)...
2017-04-14 18:51:50,196 - INFO [Resource,0] Restarting (ProxyService,
0)...
2017-04-14 18:51:50,233 - INFO [Resource,0] Restarting
(ScoringService, 0)...
2017-04-14 18:51:50,271 - INFO [Resource,0] Restarting (Worker, 0)...
2017-04-14 18:51:55,126 - INFO [Resource,0] Restarting
(AdminWebServer, 0)...
2017-04-14 18:51:55,163 - INFO [Resource,0] Restarting (Checker, 0)...
2017-04-14 18:51:55,199 - INFO [Resource,0] Restarting
(ContestWebServer, 0)...
2017-04-14 18:51:55,235 - INFO [Resource,0] Restarting
(EvaluationService, 0)...
2017-04-14 18:51:55,271 - INFO [Resource,0] Restarting
(PrintingService, 0)...
2017-04-14 18:51:55,309 - INFO [Resource,0] Restarting (ProxyService,
0)...
2017-04-14 18:51:55,346 - INFO [Resource,0] Restarting
(ScoringService, 0)...
2017-04-14 18:51:55,381 - INFO [Resource,0] Restarting (Worker, 0)...
2017-04-14 18:52:00,136 - INFO [Resource,0] Restarting
(AdminWebServer, 0)...
[...]

Thanks guys
Damien L.
Belgian Olympiad


Other related posts: