网站/服务器大部分运行正常,尽管我收到很多错误消息

时间:2019-07-16 09:29:40

标签: python cherrypy

我有一个运行在CherryPy上的网站,尽管在终端中收到了这些错误消息,但仍无法解决。

有人可以带我到哪里寻找解决方案吗?

提前谢谢!

为什么会显示“ ModuleNotFoundError:没有名为'tkinter'的模块”,不知道,因为我没有在代码中使用tkinter ...

ENGINE Listening for SIGTERM.
[16/Jul/2019:09:29:00] ENGINE Listening for SIGHUP.
[16/Jul/2019:09:29:00] ENGINE Listening for SIGUSR1.
[16/Jul/2019:09:29:00] ENGINE Bus STARTING
[16/Jul/2019:09:29:00] ENGINE Started monitor thread 'Autoreloader'.
[16/Jul/2019:09:29:01] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x7f2c4af9b4a8>>
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/wspbus.py", line 230, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/_cpserver.py", line 180, in start
    super(Server, self).start()
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/servers.py", line 177, in start
    portend.free(*self.bind_addr, timeout=Timeouts.free)
  File "/usr/local/lib/python3.6/dist-packages/portend.py", line 119, in free
    raise Timeout("Port {port} not free on {host}.".format(**locals()))
portend.Timeout: Port 443 not free on 0.0.0.0.

[16/Jul/2019:09:29:01] ENGINE Error in background task thread function <bound method Autoreloader.run of <cherrypy.process.plugins.Autoreloader object at 0x7f2c4b003b00>>.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/plugins.py", line 517, in run
    self.function(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/plugins.py", line 669, in run
    for filename in self.sysfiles() | self.files:
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/plugins.py", line 634, in sysfiles
    return set(filter(None, map(self._file_for_module, mods)))
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/plugins.py", line 640, in _file_for_module
    cls._archive_for_zip_module(module)
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/plugins.py", line 648, in _archive_for_zip_module
    return module.__loader__.archive
  File "/usr/local/lib/python3.6/dist-packages/importmagic/six.py", line 118, in __getattr__
    _module = self._resolve()
  File "/usr/local/lib/python3.6/dist-packages/importmagic/six.py", line 105, in _resolve
    return _import_module(self.mod)
  File "/usr/local/lib/python3.6/dist-packages/importmagic/six.py", line 76, in _import_module
    __import__(name)
ModuleNotFoundError: No module named 'tkinter'

[16/Jul/2019:09:29:01] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/wspbus.py", line 268, in start
    self.publish('start')
  File "/usr/local/lib/python3.6/dist-packages/cherrypy/process/wspbus.py", line 248, in publish
    raise exc
cherrypy.process.wspbus.ChannelFailures: Timeout('Port 443 not free on 0.0.0.0.',)

[16/Jul/2019:09:29:01] ENGINE Bus STOPPING
[16/Jul/2019:09:29:01] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 443)) already shut down
[16/Jul/2019:09:29:01] ENGINE Stopped thread 'Autoreloader'.
[16/Jul/2019:09:29:01] ENGINE Bus STOPPED
[16/Jul/2019:09:29:01] ENGINE Bus EXITING
[16/Jul/2019:09:29:01] ENGINE Bus EXITED

0 个答案:

没有答案