gpt4 book ai didi

redis - 将 redis 与 Bokeh 服务器一起使用。权限被拒绝 : '/bokehpids.json'

转载 作者:可可西里 更新时间:2023-11-01 10:59:48 24 4
gpt4 key购买 nike

我正在尝试使用 supervisor 以 redis 作为后端来运行 bokeh-server,但在启动时收到此错误消息:

Traceback (most recent call last):
File "/usr/share/nginx/test-status/flask/bin/bokeh-server", line 7, in <module>
bokeh.server.run()
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/__init__.py", line 175, in run
start_server(args)
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/__init__.py", line 179, in start_server
start.start_simple_server(args)
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/start.py", line 54, in start_simple_server
start_redis()
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/start.py", line 40, in start_redis
save=redis_save)
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/services.py", line 81, in start_redis
stdin=subprocess.PIPE
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/services.py", line 32, in __init__
self.add_to_pidfile()
File "/usr/share/nginx/test-status/flask/lib/python2.7/site-packages/bokeh/server/services.py", line 46, in add_to_pidfile
with open(self.pidfilename, "w+") as f:
IOError: [Errno 13] Permission denied: '/bokehpids.json'

请注意,如果我使用内存作为后端,我可以使用 supervisor 运行服务器,并且我可以使用 redis 作为后端手动运行 bokeh-server 就好了。有谁知道我应该更改的权限在哪里?

最佳答案

原来它试图访问根目录中的 pid 文件......

我通过更改主管配置文件中的目录解决了这个问题:

[program:bokeh]
...
directory=/usr/share/nginx/test-status
...

关于redis - 将 redis 与 Bokeh 服务器一起使用。权限被拒绝 : '/bokehpids.json' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29524932/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com