Ubuntu 上的 Supervisord 出现新错误

发布于 2024-12-06 09:26:21 字数 1079 浏览 1 评论 0原文

这个错误似乎已经出现在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

各空 2024-12-13 09:26:21

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

枉心 2024-12-13 09:26:21

事实证明,磁盘已满。

As it turns out, the disk was full.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文