python - Ubuntu 上 supervisord 的新错误

标签 python ubuntu node.js 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 网络服务器的运行,但我无法再运行 supervisord。

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

最佳答案

_get_default_tempdir 只是通过在临时目录中写入和删除随机文件来检查对临时目录的访问。所以你可能想检查你的临时目录的权限:'/tmp', '/var/tmp', '/usr/tmp', '/usr/lib/python2.6'

关于python - Ubuntu 上 supervisord 的新错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7518297/

相关文章:

python - 无法在 Mac OS 中使用 Python select.poll?

python - 当我们执行 sudo apt-get upgrade python3 时会发生什么

c++ - 如何从 NanAsyncWorker 返回一个新对象?

javascript - 如何运行 promise 数组

javascript - Node.js http 基本身份验证

macos - 安装nodejs时出错...SSL_COMP_get_compression_methods

python - 如何使用 Python 在 MySQL 数据库中存储 API 响应?

python - 使用命令行中的 python 文件可执行文件去除空格和注释

python - 当主 python 文件需要以 root 身份运行时,以普通用户身份运行 "child"python 文件

linux - Ubuntu 中的 PATH 变量设置在哪里?