我创建了一个基于 Python 的 Web 服务器,并制作了它的快照,并在快照商店上传了稳定版本。当我在 Ubuntu 核心机器上下载并运行该服务器时,它会抛出以下错误:
File "/snap/alphawebserver/14/lib/python3.5/site-packages/cherrypy/_cprequest.py", line 628, in respond
self._do_respond(path_info)
File "/snap/alphawebserver/14/lib/python3.5/site-packages/cherrypy/_cprequest.py", line 687, in _do_respond
response.body = self.handler()
File "/snap/alphawebserver/14/lib/python3.5/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/snap/alphawebserver/14/lib/python3.5/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/snap/alphawebserver/14/lib/python3.5/site-packages/cherryserver.py", line 25, in index
with open(storagedirectory+'adminlogin.json', 'w') as outfile:
PermissionError: [Errno 13] Permission denied: '/home/alphaict/snap/alphawebserver/adminlogin.json'
你能告诉我如何修复该错误吗?
这是 Ubuntu 核心问题还是 snap 问题?
还有一个提示,当我运行 Web 服务器时,devmode
它运行良好。
谢谢