[GH-ISSUE #303] При старте сервера в консоль сыпятся ошибки и не отображаются страницы в браузере. #240

Closed
opened 2026-10-13 19:52:16 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @jMurr on GitHub (Aug 17, 2019).
Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/303

Версия monitorrent: 1.1.10
Устройство: D-Link NAS-325
Архитектура: ARMv6 (armel)
OS: Debian 10 (Buster)

Python 3.7.3
При запуске из консоли (не сервисом) немного думает и насыпает такие сообщения:
root@sc:/opt/monitorrent# python3 server.py

/opt/monitorrent/monitorrent/upgrade_manager.py:35: UserWarning: 'connection' argument to configure() is expected to be a sqlalchemy.engine.Connection instance, got <sqlalchemy.orm.session.ContextSession object at 0xb51747d0>
  migration_context = MigrationContext.configure(session)
Server started on 0.0.0.0:6687

А после попытки открыть URL в браузерах, страница пуста, а вконсоль сыпятся такие ошибки и при попытке открыть/обновить страницу, каждый раз появляются такие вот строки:

TypeError('process_response() takes 4 positional arguments but 5 were given')
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate
    req.respond()
  File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond
    self.server.gateway(self).respond()
  File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond
    response = self.req.server.wsgi_app(self.env, self.start_response)
  File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 286, in __call__
    process_response(req, resp, resource, req_succeeded)
TypeError: process_response() takes 4 positional arguments but 5 were given
TypeError('process_response() takes 4 positional arguments but 5 were given')
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate
    req.respond()
  File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond
    self.server.gateway(self).respond()
  File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond
    response = self.req.server.wsgi_app(self.env, self.start_response)
  File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 286, in __call__
    process_response(req, resp, resource, req_succeeded)
TypeError: process_response() takes 4 positional arguments but 5 were given

При использовании Python 2.7.16 monitorrent даже не стартует:
root@sc:/opt/monitorrent# python ./server.py

Traceback (most recent call last):
  File "./server.py", line 2, in <module>
    from builtins import range
ImportError: No module named builtins

и вываливается в bash (шел).
Увы Docker-а под данную архитектуру нету...
Какие логи надо прислать или, что ещё можно/нужно сделать?

Originally created by @jMurr on GitHub (Aug 17, 2019). Original GitHub issue: https://github.com/werwolfby/monitorrent/issues/303 Версия monitorrent: 1.1.10 Устройство: D-Link NAS-325 Архитектура: ARMv6 (armel) OS: Debian 10 (Buster) **Python 3.7.3** При запуске из консоли (не сервисом) немного думает и насыпает такие сообщения: root@sc:/opt/monitorrent# **python3 server.py** ``` /opt/monitorrent/monitorrent/upgrade_manager.py:35: UserWarning: 'connection' argument to configure() is expected to be a sqlalchemy.engine.Connection instance, got <sqlalchemy.orm.session.ContextSession object at 0xb51747d0> migration_context = MigrationContext.configure(session) Server started on 0.0.0.0:6687 ``` А после попытки открыть URL в браузерах, страница пуста, а вконсоль сыпятся такие ошибки и при попытке открыть/обновить страницу, каждый раз появляются такие вот строки: ``` TypeError('process_response() takes 4 positional arguments but 5 were given') Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate req.respond() File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond self.server.gateway(self).respond() File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond response = self.req.server.wsgi_app(self.env, self.start_response) File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 286, in __call__ process_response(req, resp, resource, req_succeeded) TypeError: process_response() takes 4 positional arguments but 5 were given TypeError('process_response() takes 4 positional arguments but 5 were given') Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate req.respond() File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond self.server.gateway(self).respond() File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond response = self.req.server.wsgi_app(self.env, self.start_response) File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 286, in __call__ process_response(req, resp, resource, req_succeeded) TypeError: process_response() takes 4 positional arguments but 5 were given ``` При использовании **Python 2.7.16** monitorrent даже не стартует: root@sc:/opt/monitorrent# **python ./server.py** ``` Traceback (most recent call last): File "./server.py", line 2, in <module> from builtins import range ImportError: No module named builtins ``` и вываливается в bash (шел). Увы Docker-а под данную архитектуру нету... Какие логи надо прислать или, что ещё можно/нужно сделать?
Author
Owner

@Akior commented on GitHub (Aug 23, 2019):

Попробуйте откатить falcon до falcon==1.0.0

<!-- gh-comment-id:524282012 --> @Akior commented on GitHub (Aug 23, 2019): Попробуйте откатить falcon до falcon==1.0.0
Author
Owner

@jMurr commented on GitHub (Aug 28, 2019):

Попробуйте откатить falcon до falcon==1.0.0

У меня такой пакет не установлен вообще:
$ apt list --installed python3*
Listing... Done
python3-apt/stable,now 1.8.4 armel [installed,automatic]
python3-asn1crypto/stable,now 0.24.0-1 all [installed,automatic]
python3-cffi-backend/stable,now 1.12.2-1 armel [installed,automatic]
python3-crypto/stable,now 2.6.1-9+b1 armel [installed,automatic]
python3-cryptography/stable,now 2.6.1-3 armel [installed,automatic]
python3-dbus/stable,now 1.2.8-3 armel [installed,automatic]
python3-dev/stable,now 3.7.3-1 armel [installed,automatic]
python3-distro-info/stable,now 0.21 all [installed,automatic]
python3-distutils/stable,now 3.7.3-1 all [installed,automatic]
python3-entrypoints/stable,now 0.3-1 all [installed,automatic]
python3-gi/stable,now 3.30.4-1 armel [installed,automatic]
python3-keyring/stable,now 17.1.1-1 all [installed,automatic]
python3-keyrings.alt/stable,now 3.1.1-1 all [installed,automatic]
python3-lib2to3/stable,now 3.7.3-1 all [installed,automatic]
python3-minimal/stable,now 3.7.3-1 armel [installed,automatic]
python3-pip/stable,now 18.1-5 all [installed]
python3-pkg-resources/stable,now 40.8.0-1 all [installed,automatic]
python3-pycurl/stable,now 7.43.0.2-0.1 armel [installed,automatic]
python3-secretstorage/stable,now 2.3.1-2 all [installed,automatic]
python3-setuptools/stable,now 40.8.0-1 all [installed,automatic]
python3-six/stable,now 1.12.0-1 all [installed,automatic]
python3-software-properties/stable,now 0.96.20.2-2 all [installed,automatic]
python3-sqlalchemy-ext/stable,now 1.2.18+ds1-2 armel [installed,automatic]
python3-sqlalchemy/stable,now 1.2.18+ds1-2 all [installed]
python3-wheel/stable,now 0.32.3-2 all [installed,automatic]
python3-xdg/stable,now 0.25-5 all [installed,automatic]
python3.7-dev/stable,now 3.7.3-2 armel [installed,automatic]
python3.7-minimal/stable,now 3.7.3-2 armel [installed,automatic]
python3.7/stable,now 3.7.3-2 armel [installed,automatic]
python3/stable,now 3.7.3-1 armel [installed,automatic]

<!-- gh-comment-id:525908722 --> @jMurr commented on GitHub (Aug 28, 2019): > Попробуйте откатить falcon до falcon==1.0.0 У меня такой пакет не установлен вообще: $ apt list --installed python3* _Listing... Done python3-apt/stable,now 1.8.4 armel [installed,automatic] python3-asn1crypto/stable,now 0.24.0-1 all [installed,automatic] python3-cffi-backend/stable,now 1.12.2-1 armel [installed,automatic] python3-crypto/stable,now 2.6.1-9+b1 armel [installed,automatic] python3-cryptography/stable,now 2.6.1-3 armel [installed,automatic] python3-dbus/stable,now 1.2.8-3 armel [installed,automatic] python3-dev/stable,now 3.7.3-1 armel [installed,automatic] python3-distro-info/stable,now 0.21 all [installed,automatic] python3-distutils/stable,now 3.7.3-1 all [installed,automatic] python3-entrypoints/stable,now 0.3-1 all [installed,automatic] python3-gi/stable,now 3.30.4-1 armel [installed,automatic] python3-keyring/stable,now 17.1.1-1 all [installed,automatic] python3-keyrings.alt/stable,now 3.1.1-1 all [installed,automatic] python3-lib2to3/stable,now 3.7.3-1 all [installed,automatic] python3-minimal/stable,now 3.7.3-1 armel [installed,automatic] python3-pip/stable,now 18.1-5 all [installed] python3-pkg-resources/stable,now 40.8.0-1 all [installed,automatic] python3-pycurl/stable,now 7.43.0.2-0.1 armel [installed,automatic] python3-secretstorage/stable,now 2.3.1-2 all [installed,automatic] python3-setuptools/stable,now 40.8.0-1 all [installed,automatic] python3-six/stable,now 1.12.0-1 all [installed,automatic] python3-software-properties/stable,now 0.96.20.2-2 all [installed,automatic] python3-sqlalchemy-ext/stable,now 1.2.18+ds1-2 armel [installed,automatic] python3-sqlalchemy/stable,now 1.2.18+ds1-2 all [installed] python3-wheel/stable,now 0.32.3-2 all [installed,automatic] python3-xdg/stable,now 0.25-5 all [installed,automatic] python3.7-dev/stable,now 3.7.3-2 armel [installed,automatic] python3.7-minimal/stable,now 3.7.3-2 armel [installed,automatic] python3.7/stable,now 3.7.3-2 armel [installed,automatic] python3/stable,now 3.7.3-1 armel [installed,automatic]_
Author
Owner

@Akior commented on GitHub (Aug 29, 2019):

Это пакет который Вы ставили из requirements.
Установка для python.

pip3 install falcon==1.0.0

Попробуйте откатить falcon до falcon==1.0.0

У меня такой пакет не установлен вообще:
$ apt list --installed python3*
Listing... Done python3-apt/stable,now 1.8.4 armel [installed,automatic] python3-asn1crypto/stable,now 0.24.0-1 all [installed,automatic] python3-cffi-backend/stable,now 1.12.2-1 armel [installed,automatic] python3-crypto/stable,now 2.6.1-9+b1 armel [installed,automatic] python3-cryptography/stable,now 2.6.1-3 armel [installed,automatic] python3-dbus/stable,now 1.2.8-3 armel [installed,automatic] python3-dev/stable,now 3.7.3-1 armel [installed,automatic] python3-distro-info/stable,now 0.21 all [installed,automatic] python3-distutils/stable,now 3.7.3-1 all [installed,automatic] python3-entrypoints/stable,now 0.3-1 all [installed,automatic] python3-gi/stable,now 3.30.4-1 armel [installed,automatic] python3-keyring/stable,now 17.1.1-1 all [installed,automatic] python3-keyrings.alt/stable,now 3.1.1-1 all [installed,automatic] python3-lib2to3/stable,now 3.7.3-1 all [installed,automatic] python3-minimal/stable,now 3.7.3-1 armel [installed,automatic] python3-pip/stable,now 18.1-5 all [installed] python3-pkg-resources/stable,now 40.8.0-1 all [installed,automatic] python3-pycurl/stable,now 7.43.0.2-0.1 armel [installed,automatic] python3-secretstorage/stable,now 2.3.1-2 all [installed,automatic] python3-setuptools/stable,now 40.8.0-1 all [installed,automatic] python3-six/stable,now 1.12.0-1 all [installed,automatic] python3-software-properties/stable,now 0.96.20.2-2 all [installed,automatic] python3-sqlalchemy-ext/stable,now 1.2.18+ds1-2 armel [installed,automatic] python3-sqlalchemy/stable,now 1.2.18+ds1-2 all [installed] python3-wheel/stable,now 0.32.3-2 all [installed,automatic] python3-xdg/stable,now 0.25-5 all [installed,automatic] python3.7-dev/stable,now 3.7.3-2 armel [installed,automatic] python3.7-minimal/stable,now 3.7.3-2 armel [installed,automatic] python3.7/stable,now 3.7.3-2 armel [installed,automatic] python3/stable,now 3.7.3-1 armel [installed,automatic]

<!-- gh-comment-id:526036941 --> @Akior commented on GitHub (Aug 29, 2019): Это пакет который Вы ставили из requirements. Установка для python. pip3 install falcon==1.0.0 > > Попробуйте откатить falcon до falcon==1.0.0 > > У меня такой пакет не установлен вообще: > $ apt list --installed python3* > _Listing... Done python3-apt/stable,now 1.8.4 armel [installed,automatic] python3-asn1crypto/stable,now 0.24.0-1 all [installed,automatic] python3-cffi-backend/stable,now 1.12.2-1 armel [installed,automatic] python3-crypto/stable,now 2.6.1-9+b1 armel [installed,automatic] python3-cryptography/stable,now 2.6.1-3 armel [installed,automatic] python3-dbus/stable,now 1.2.8-3 armel [installed,automatic] python3-dev/stable,now 3.7.3-1 armel [installed,automatic] python3-distro-info/stable,now 0.21 all [installed,automatic] python3-distutils/stable,now 3.7.3-1 all [installed,automatic] python3-entrypoints/stable,now 0.3-1 all [installed,automatic] python3-gi/stable,now 3.30.4-1 armel [installed,automatic] python3-keyring/stable,now 17.1.1-1 all [installed,automatic] python3-keyrings.alt/stable,now 3.1.1-1 all [installed,automatic] python3-lib2to3/stable,now 3.7.3-1 all [installed,automatic] python3-minimal/stable,now 3.7.3-1 armel [installed,automatic] python3-pip/stable,now 18.1-5 all [installed] python3-pkg-resources/stable,now 40.8.0-1 all [installed,automatic] python3-pycurl/stable,now 7.43.0.2-0.1 armel [installed,automatic] python3-secretstorage/stable,now 2.3.1-2 all [installed,automatic] python3-setuptools/stable,now 40.8.0-1 all [installed,automatic] python3-six/stable,now 1.12.0-1 all [installed,automatic] python3-software-properties/stable,now 0.96.20.2-2 all [installed,automatic] python3-sqlalchemy-ext/stable,now 1.2.18+ds1-2 armel [installed,automatic] python3-sqlalchemy/stable,now 1.2.18+ds1-2 all [installed] python3-wheel/stable,now 0.32.3-2 all [installed,automatic] python3-xdg/stable,now 0.25-5 all [installed,automatic] python3.7-dev/stable,now 3.7.3-2 armel [installed,automatic] python3.7-minimal/stable,now 3.7.3-2 armel [installed,automatic] python3.7/stable,now 3.7.3-2 armel [installed,automatic] python3/stable,now 3.7.3-1 armel [installed,automatic]_
Author
Owner

@jMurr commented on GitHub (Sep 2, 2019):

Спасибо!
Стоял фалкон 2.0.0. С этой версией хоть и выругался в консоль, но запустился!
Потестим, потянет ли его мой старичок д-линк.

pip3 install falcon==1.0.0

UPD
Не долго музыка играла, не долго мучался старик...
При выполнении ошибка
Или это может быть из-за того что базу с виндового компа взял, но пути ж поправил?
При попытке добавить новый торрент, название его не высвечивается, а в консоль тоже ошибки сыпятся..

При обновлении существующего торента.

INFO
Check for changes Ассасины Ву / Wu Assassins FAILED
Exception while execute topic
Traceback (most recent call last):
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 736, in execute
episodes = self._prepare_request(topic)
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 799, in prepare_request
show = self.tracker.parse_url(topic.url, True)
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 510, in parse_url
result = LostFilmShow(original_name=title_block.find('div', class
='title-en').text,
AttributeError: 'NoneType' object has no attribute 'text'

При попытке добавить новый

AttributeError("'NoneType' object has no attribute 'text'")
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate
req.respond()
File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond
self.server.gateway(self).respond()
File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 189, in call
responder(req, resp, **params)
File "/opt/monitorrent/monitorrent/rest/topics.py", line 41, in on_get
title = self.tracker_manager.prepare_add_topic(url)
File "/opt/monitorrent/monitorrent/plugin_managers.py", line 99, in prepare_add_topic
parsed_url = tracker.prepare_add_topic(url)
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 671, in prepare_add_topic
parsed_url = self.tracker.parse_url(url)
File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 510, in parse_url
result = LostFilmShow(original_name=title_block.find('div', class_='title-en').text,
AttributeError: 'NoneType' object has no attribute 'text'

<!-- gh-comment-id:527156482 --> @jMurr commented on GitHub (Sep 2, 2019): Спасибо! Стоял фалкон 2.0.0. С этой версией хоть и выругался в консоль, но запустился! Потестим, потянет ли его мой старичок д-линк. > pip3 install falcon==1.0.0 **UPD** Не долго музыка играла, не долго мучался старик... При выполнении ошибка Или это может быть из-за того что базу с виндового компа взял, но пути ж поправил? При попытке добавить новый торрент, название его не высвечивается, а в консоль тоже ошибки сыпятся.. При обновлении существующего торента. > **INFO** > **Check for changes Ассасины Ву / Wu Assassins FAILED** > **Exception while execute topic** > Traceback (most recent call last): > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 736, in execute > episodes = self._prepare_request(topic) > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 799, in _prepare_request > show = self.tracker.parse_url(topic.url, True) > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 510, in parse_url > result = LostFilmShow(original_name=title_block.find('div', class_='title-en').text, > AttributeError: 'NoneType' object has no attribute 'text' При попытке добавить новый > AttributeError("'NoneType' object has no attribute 'text'") > Traceback (most recent call last): > File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1273, in communicate > req.respond() > File "/usr/local/lib/python3.7/dist-packages/cheroot/server.py", line 1077, in respond > self.server.gateway(self).respond() > File "/usr/local/lib/python3.7/dist-packages/cheroot/wsgi.py", line 143, in respond > response = self.req.server.wsgi_app(self.env, self.start_response) > File "/usr/local/lib/python3.7/dist-packages/falcon/api.py", line 189, in __call__ > responder(req, resp, **params) > File "/opt/monitorrent/monitorrent/rest/topics.py", line 41, in on_get > title = self.tracker_manager.prepare_add_topic(url) > File "/opt/monitorrent/monitorrent/plugin_managers.py", line 99, in prepare_add_topic > parsed_url = tracker.prepare_add_topic(url) > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 671, in prepare_add_topic > parsed_url = self.tracker.parse_url(url) > File "/opt/monitorrent/monitorrent/plugins/trackers/lostfilm.py", line 510, in parse_url > result = LostFilmShow(original_name=title_block.find('div', class_='title-en').text, > AttributeError: 'NoneType' object has no attribute 'text' >
Author
Owner

@Akior commented on GitHub (Sep 7, 2019):

Для лоста фикс здесь:
https://github.com/werwolfby/monitorrent/issues/304

<!-- gh-comment-id:529147508 --> @Akior commented on GitHub (Sep 7, 2019): Для лоста фикс здесь: https://github.com/werwolfby/monitorrent/issues/304
Author
Owner

@jMurr commented on GitHub (Sep 9, 2019):

Для лоста фикс здесь:
#304

спасибо, вроде получилось

<!-- gh-comment-id:529261843 --> @jMurr commented on GitHub (Sep 9, 2019): > Для лоста фикс здесь: > #304 спасибо, вроде получилось
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
werwolfby/monitorrent#240
No description provided.