Closed Bug 788147 Opened 13 years ago Closed 13 years ago

supervisor fails to reload itself on first installation

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

Details

(Whiteboard: [puppet])

Attachments

(1 file)

e.g.: ue Sep 04 05:49:04 -0700 2012 /Stage[main]/Supervisord::Base/Service[supervisord] (err): Failed to call refresh: Could not restart Service[supervisord]: Execution of '/usr/bin/supervisorctl reload' returned 2: at /etc/puppet/production/modules/supervisord/manifests/base.pp:47 That suggests either that the start is failing, or that puppet's not using "status" correctly.
This is causing failures - albiet one-time failures - on all of the HP's right now.
> info: /Stage[main]/Supervisord::Base/File[/etc/supervisord.conf]: Scheduling refresh of Service[supervisord] > debug: Service[supervisord](provider=redhat): Executing '/sbin/service supervisord status' > debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig supervisord' > debug: Service[supervisord](provider=redhat): Executing '/sbin/service supervisord start' > debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig supervisord' > debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig supervisord on' > notice: /Stage[main]/Supervisord::Base/Service[supervisord]/ensure: ensure changed 'stopped' to 'running' > debug: /Stage[main]/Supervisord::Base/Service[supervisord]: The container Class[Supervisord::Base] will propagate my refresh event > debug: Service[supervisord](provider=redhat): Executing '/sbin/service supervisord status' > debug: Service[supervisord](provider=redhat): Executing '/usr/bin/supervisorctl reload' > err: /Stage[main]/Supervisord::Base/Service[supervisord]: Failed to call refresh: Could not restart Service[supervisord]: Execution of '/usr/bin/supervisorctl reload' returned 2: at /etc/puppet/production/modules/supervisord/manifests/base.pp:47 So it is correctly starting it, but the reload isn't working: [root@relabs08 ~]# /usr/bin/supervisorctl reload error: <class 'socket.error'>, [Errno 2] No such file or directory: file: <string> line: 1 Possibly related: [root@relabs08 ~]# supervisorctl unix:///var/tmp/supervisor.sock no such file So I think this is not preventing production right now, but will hurt next time you change supervisord settings, as it won't reload correctly. I suspect the problem is in supervisord.conf -- the socket should be specified in [unix_http_server]:file, not [supervisord]:http_port
Assignee: nobody → rail
that parameter changed names between supervisord 2.x and 3.x
I managed to connect to the supervisord server via supervisorctl with this change.
Attachment #658152 - Flags: review?(dustin)
Attachment #658152 - Flags: review?(dustin) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: