gamegos / cesi

CeSI is a web interface for managing multiple supervisors from the same place.
GNU General Public License v3.0
577 stars 185 forks source link

can't manage grouped process(2.6.5) #57

Closed beanslee2012 closed 5 years ago

beanslee2012 commented 5 years ago

Hi, When i do a grouped config in supervisord,and i can't do any thing in the browers with that group's member, the background log file show: <Fault 10: 'BAD_NAME: test1'> /api/v2/nodes/api/processes/test1/stop/

i think it shoud be groupname:test1 ?

thank you!

inSeek commented 5 years ago

I had the same problem, so I made a quick fix, and tested on my own server, it works... if you couldn't wait for merging, maybe you can try it from my fork

f9n commented 5 years ago

Hi, it's my fault. I just tested for a few programs. I didn't define any group while i was testing.

It is interesting that if you create a group in supervisor, Supervisor XmlRpc runs with group name and process name for processes which belongs this group. :))))

The process name ain't already unique. Why are they doing this?

inSeek commented 5 years ago

@f9n done :)

another interesting thing is, if you did not put a program in a group, rpc service will give it a group which named by its name ,then you still can manage it with group_name (same as program_name):program_name... I think it's a design for consistency?

f9n commented 5 years ago

I merged the pull request :+1: Thanks again. I'll publish the new version soon.