glideinwms frontend init.d script occasionally fails

Description

The init.d script for the glideinwms frontend occasionally fails when restart or start is run because the glideinwms frontend is still running. The shutdown of the gwms fe takes some time but the init.d script returns fairly quickly so on occasion when doing a restart or running the service with start soon after running stop, the startup fails with a process already running error:

Traceback (most recent call last):
File "/usr/sbin/glideinFrontend", line 334, in ?
main(sys.argv[1])
File "/usr/sbin/glideinFrontend", line 309, in main
pid_obj.register()
File "/usr/lib/python2.4/site-packages/glideinwms/lib/pidSupport.py", line 73, in register
raise AlreadyRunning, "Another process already running"
glideinwms.lib.pidSupport.AlreadyRunning: Another process already running

As a fix, I'd suggest putting a sleep 10 or something similar in the stop function so that the glideinwms processes have time to shutdown.

Freshdesk Tickets

None

Activity

Show:
Suchandra Thapa
December 2, 2014, 5:24 PM

Sure, I can let you know by tomorrow.

Tim Cartwright
December 2, 2014, 5:28 PM

Whenever you get the chance. This is certainly lower priority than any acceptance testing that you have.

Tim Cartwright
June 9, 2016, 7:44 PM

, you were going to look at this ticket in late 2014… Could you do so soon?

Suchandra Thapa
June 9, 2016, 8:36 PM

Looks like this is fixed, there are checks in the stop function and running stop appears to wait properly until the frontend is stopped. I couldn't trigger this.

Tim Cartwright
June 9, 2016, 8:41 PM

Thanks, !

Fixed

Assignee

Parag Mhashilkar

Reporter

Suchandra Thapa

Priority

Minor

Fix versions

None

Labels

Components

Due date

None
Configure