Skip to content

HTTP 500 error trying to read logs on web server #627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jpblair opened this issue Jun 29, 2015 · 4 comments
Closed

HTTP 500 error trying to read logs on web server #627

jpblair opened this issue Jun 29, 2015 · 4 comments
Labels

Comments

@jpblair
Copy link

jpblair commented Jun 29, 2015

When trying to click a process name to see its logs, I get a generic 500 error. Here's the log printout with log level set to BLATHER:

2015-06-29 10:11:38 response = self.callback()
2015-06-29 10:11:38 raise RPCError(getattr(Faults, why))
2015-06-29 10:11:38 File "/usr/lib/python2.7/dist-packages/supervisor/web.py", line 165, in call
2015-06-29 10:11:38 File "/usr/lib/python2.7/dist-packages/supervisor/web.py", line 46, in more
2015-06-29 10:11:38 body = self.render()
2015-06-29 10:11:38 File "/usr/lib/python2.7/dist-packages/supervisor/web.py", line 197, in render
2015-06-29 10:11:38 File "/usr/lib/python2.7/dist-packages/supervisor/rpcinterface.py", line 577, in readProcessStdoutLog
2015-06-29 10:11:38 RPCError
2015-06-29 10:11:38 2015-06-29 14:11:38,512 TRAC Web interface error:Traceback (most recent call last):
2015-06-29 10:11:38 tail = rpcinterface.readProcessLog(processname, -1024, 0)
2015-06-29 10:11:38 return self._readProcessLog(name, offset, length, 'stdout')
2015-06-29 10:11:38 File "/usr/lib/python2.7/dist-packages/supervisor/rpcinterface.py", line 566, in _readProcessLog
2015-06-29 10:11:38 2015-06-29 14:11:38,512 TRAC 10.128.133.188:56588 - - [29/Jun/2015:14:11:38 +0000] "GET /tail.html?processname=webskedconsumer%3A00 HTTP/1.1" 500 288
2015-06-29 10:11:38 2015-06-29 14:11:38,510 BLAT read event caused by <socket._socketobject object at 0x7ff3e9069a60>
2015-06-29 10:11:38 2015-06-29 14:11:38,510 BLAT read event caused by <socket._socketobject object at 0x7ff3e83a5360>

@mnaberez mnaberez added the web label Jun 29, 2015
@mnaberez
Copy link
Member

What version of Supervisor are you using?

@jpblair
Copy link
Author

jpblair commented Jun 29, 2015

3.0, which I see isn't the latest. I'm installing using the command pip install supervisor-stdout==0.1.1. Should I be doing this differently to get the latest version?

mnaberez added a commit that referenced this issue Nov 15, 2015
This is helpful for troubleshooting issues like #627 where the
traceback doesn't show the contents of the RPCError.

2015-06-29 10:11:38 RPCError
becomes:
2015-06-29 10:11:38 RPCError: code=20, text:'NO_FILE: /nonexistent'
mnaberez added a commit that referenced this issue Nov 15, 2015
This is helpful for troubleshooting issues like #627 where the
traceback doesn't show the contents of the RPCError.

2015-06-29 10:11:38 RPCError
becomes:
2015-06-29 10:11:38 RPCError: code=20, text:'NO_FILE: /nonexistent'
@jpblair
Copy link
Author

jpblair commented Nov 16, 2015

@mnaberez What do I need to do to get this fix? Do I need to wait until a new release version?

@mnaberez
Copy link
Member

I fixed it on master and 3.2-branch. It will be included in the next release (3.2.0).

pfuender pushed a commit to pfuender/supervisor that referenced this issue Dec 30, 2015
* upstream/master: (61 commits)
  Fix a typo
  Merge pull request Supervisor#703 from gudata/patch-1
  Add pypy3 to tox.ini and .travis.yml
  Use `make html` to build the docs under tox
  Fix package name for Sphinx
  Fix import for Mock
  Add docs to travis build
  Test that doc building + readme are correct
  Add Supervisor 3.2.0 release date to Supervisor 4 changelog
  Fix system.multicall() broken by faster start/stop patch In past versions, startProcess() and stopProcess() would always return a callback.  50d1857 changed this so they may return either a callback or a bool, but the code that handles system.multicall() was not updated.  If multicall was used with stopProcess() followed by startProcess(), it would try to start the process before it had finished stopping.  This broke the restart process link on the web interface.
  Added supervisor_checks to the docs.
  Fix typo in docs
  Clarify behavior of user= option. Closes Supervisor#695
  Fix start/stop buttons on web broken by faster start/stop patch In past versions, startProcess() and stopProcess() would always return a callback.  50d1857 changed this so they may return either a callback or a bool, but the web interface was not updated.
  Show error messages when clearing a log on the web interface
  Move code for start and stop actions near each other
  Show errors when stopping a process on the web interface
  Show string description for unexpected faults
  Show all error messages in TailView. Fixes Supervisor#627
  Implement __str__ so code and text of RPCError are logged This is helpful for troubleshooting issues like Supervisor#627 where the traceback doesn't show the contents of the RPCError.
  ...
alexsilva pushed a commit to alexsilva/supervisor that referenced this issue Jun 22, 2019
This is helpful for troubleshooting issues like Supervisor#627 where the
traceback doesn't show the contents of the RPCError.

2015-06-29 10:11:38 RPCError
becomes:
2015-06-29 10:11:38 RPCError: code=20, text:'NO_FILE: /nonexistent'

(cherry picked from commit 3149e16)
alexsilva pushed a commit to alexsilva/supervisor that referenced this issue Jun 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants