Ubuntu 上的 supervisord 中的新错误 [英] New error in supervisord on Ubuntu

查看:52
本文介绍了Ubuntu 上的 supervisord 中的新错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误似乎已经出现在 ubuntu 的最新升级集中

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']

我认为这是一个蟒蛇.

我正在运行一个 supervisord 进程来保持 node.js 网络服务器的运行,但我不再能够运行 supervisord.

I'm running a supervisord process to keep a node.js webserver running, but am no longer able to run supervisord.

有谁知道如何解决这个问题或知道一个非常可靠的替代方法来保持我的 node.js 网络服务器运行(除了看似明显的不要写会崩溃的东西")?

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")?

推荐答案

_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'

这篇关于Ubuntu 上的 supervisord 中的新错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆