Ubuntu 上的 Supervisord 出现新错误
这个错误似乎已经出现在 ubuntu 上的最新一组升级中,
Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 9, in <module>
load_entry_point('supervisor==3.0a10', 'console_scripts', 'supervisord')()
File "/usr/local/lib/python2.6/dist-packages/supervisor-3.0a10-py2.6.egg/supervisor/supervisord.py", line 364, in main
options = ServerOptions()
File "/usr/local/lib/python2.6/dist-packages/supervisor-3.0a10-py2.6.egg/supervisor/options.py", line 406, in __init__
existing_directory, default=tempfile.gettempdir())
File "/usr/lib/python2.6/tempfile.py", line 254, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.6/tempfile.py", line 201, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/usr/lib/python2.6']
我认为这是一个 python 的问题。
我正在运行 Supervisord 进程来保持 Node.js Web 服务器运行,但我无法再运行 Supervisord。
有谁知道如何解决这个问题或者知道一个非常可靠的替代方案来保持我的node.js网络服务器运行(除了看似明显的“不要编写崩溃的东西”)?
This error seems to have shown up in the latest set of upgrades on ubuntu
Traceback (most recent call last):
File "/usr/local/bin/supervisord", line 9, in <module>
load_entry_point('supervisor==3.0a10', 'console_scripts', 'supervisord')()
File "/usr/local/lib/python2.6/dist-packages/supervisor-3.0a10-py2.6.egg/supervisor/supervisord.py", line 364, in main
options = ServerOptions()
File "/usr/local/lib/python2.6/dist-packages/supervisor-3.0a10-py2.6.egg/supervisor/options.py", line 406, in __init__
existing_directory, default=tempfile.gettempdir())
File "/usr/lib/python2.6/tempfile.py", line 254, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.6/tempfile.py", line 201, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/usr/lib/python2.6']
I think it's a python thing.
I'm running a supervisord process to keep a node.js webserver running, but am no longer able to run supervisord.
Does anyone know how to fix this or know of a very reliable alternative to keeping my node.js webserver running (apart from the seemingly obvious "don't write stuff that crashes")?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
_get_default_tempdir 只是通过在临时目录中写入和删除随机文件来检查对临时目录的访问。因此,您可能需要检查临时目录的权限:'/tmp'、'/var/tmp'、'/usr/tmp'、'/usr/lib/python2.6'
_get_default_tempdir just checks access to the temp dirs by writing and deleting a random file into temp dir. So you might want to check permissions on your temp dirs: '/tmp', '/var/tmp', '/usr/tmp', '/usr/lib/python2.6'
事实证明,磁盘已满。
As it turns out, the disk was full.