Cherrypy с noip [решено] - PullRequest
       87

Cherrypy с noip [решено]

0 голосов
/ 16 апреля 2020

Я занимаюсь разработкой проекта в университете. У меня есть старый linux p c, который используется в качестве сервера. Я установил noip как в официальном руководстве, и это работает. Теперь я пытаюсь выставить мою веб-страницу из моей локальной сети (все работает локально), но у меня есть эта ошибка:

pcelementary@pcelementary-X51L:~/IoT$ python3 webpage.py
[16/Apr/2020:14:47:06] ENGINE Bus STARTING
CherryPy Checker:
The config entry 'tool.session.on' is invalid, because the 'tool' config namespace is unknown.
section: [/]

[16/Apr/2020:14:47:06] ENGINE Started monitor thread 'Autoreloader'.
[16/Apr/2020:14:47:06] ENGINE Serving on http://192.168.1.184:8080
[16/Apr/2020:14:47:06] ENGINE Bus STARTED
Connected to mqtt.eclipse.org with result code: 0
[16/Apr/2020:14:48:12] ENGINE Restarting because /home/pcelementary/IoT/webpage.py changed.
[16/Apr/2020:14:48:12] ENGINE Stopped thread 'Autoreloader'.
[16/Apr/2020:14:48:12] ENGINE Bus STOPPING
[16/Apr/2020:14:48:12] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.1.184', 8080)) shut down
[16/Apr/2020:14:48:12] ENGINE Bus STOPPED
[16/Apr/2020:14:48:12] ENGINE Bus EXITING
[16/Apr/2020:14:48:12] ENGINE Bus EXITED
[16/Apr/2020:14:48:12] ENGINE Waiting for child threads to terminate...
[16/Apr/2020:14:48:12] ENGINE Re-spawning python3 webpage.py
[16/Apr/2020:14:48:13] ENGINE Bus STARTING
CherryPy Checker:
The config entry 'tool.session.on' is invalid, because the 'tool' config namespace is unknown.
section: [/]

[16/Apr/2020:14:48:13] ENGINE Started monitor thread 'Autoreloader'.
[16/Apr/2020:14:48:13] ENGINE Error in HTTP server: shutting down
Traceback (most recent call last):
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cherrypy/process/servers.py", line 225, in _start_http_thread
    self.httpserver.start()
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cheroot/server.py", line 1801, in start
    self.prepare()
  File "/home/pcelementary/.local/lib/python3.6/site-packages/cheroot/server.py", line 1760, in prepare
    raise socket.error(msg)
OSError: No socket could be created -- (('79.35.205.107', 8080): [Errno 99] Cannot assign requested address)

[16/Apr/2020:14:48:13] ENGINE Bus STOPPING
[16/Apr/2020:14:48:13] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('79.35.205.107', 8080)) already shut down
[16/Apr/2020:14:48:13] ENGINE Stopped thread 'Autoreloader'.
[16/Apr/2020:14:48:13] ENGINE Bus STOPPED
[16/Apr/2020:14:48:13] ENGINE Bus EXITING
[16/Apr/2020:14:48:13] ENGINE Bus EXITED

Я только переключил локальный IP с тем, который я нашел в моем Страница без IP, как я делал, используя протокол s sh. Я не знаю, в чем проблема.

...