Finding the process blocking emhttpd


Recommended Posts

I seem to run into a common problem - every time I'm troubleshooting something, I loose the web GUI.

 

When resolving some problems with my CP install I discovered this seems to happen because some other process is blocking the web server from responding. I guess this is a symptom of an integrated webserver in the control program.

 

What I'm wondering.. is how do I find out what process is blocking emhttp from responding. When I figured out my last problem was CP, i was able to look for the couchpotato_v2 start command and kill that and the GUI would come back, but now I just installed the new version of simple features.. and the gui locked up. So I had to uninstall everything and install the add-ons one at a time until the gui locked up again - turns out it was a problem connecting to my SMTP server.

 

Is there some system, or could something be added to the plugins to tell what process emhttp is waiting for? Right now as a last resort I'm doing this...

 

- ps aux and look for a emhttp event that is running

- go to /usr/local/emhttp/plugins and look at all of the plugin folders for scripts that run on that event

- look through each of the event scripts and look for the processes in ps

- kill them off until I get the GUI back

 

It seems tedious and slow and a pain.. is there any easier way?

 

Cheers,

 

whiteatom

Link to comment

I had a feeling this may not get much response... This may be a request for Tom.

The current "events" script waits for each event handler to complete. emhttp will not proceed if an event handler is running.    You can replace the event handler with one of your own that performs tasks in parallel, but until you write one, I think the current script logs the events in the syslog. Look there for the last event invoked.

 

Joe L.

Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.