Уведомления

Группа в Telegram: @pythonsu

#1 Март 5, 2020 13:26:57

yohoho
Зарегистрирован: 2020-03-05
Сообщения: 9
Репутация: +  0  -
Профиль   Отправить e-mail  

Проблема с tor2web.

Не понимаю, что ему нехватает.

 tor2web.service - LSB: Start the Tor2web proxy.
   Loaded: loaded (/etc/init.d/tor2web; generated)
   Active: failed (Result: exit-code) since Thu 2020-03-05 10:57:13 UTC; 23min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 398 ExecStart=/etc/init.d/tor2web start (code=exited, status=1/FAILURE)
Mar 05 10:57:12 server.domain.com systemd[1]: Starting LSB: Start the Tor2web proxy....
Mar 05 10:57:12 server.domain.com tor2web[398]: Starting Tor2web tor2web...Starting tor (via systemctl): tor.service.
Mar 05 10:57:12 server.domain.com tor2web[398]: Tor2web Startup Failure: TRANSLATION config.mode require config.onion configuration
Mar 05 10:57:13 server.domain.com tor2web[398]: Tor2web Startup Failure: TRANSLATION config.mode require config.onion configuration
Mar 05 10:57:13 server.domain.com tor2web[398]:  failed!
Mar 05 10:57:13 server.domain.com systemd[1]: tor2web.service: Control process exited, code=exited, status=1/FAILURE
Mar 05 10:57:13 server.domain.com systemd[1]: tor2web.service: Failed with result 'exit-code'.
Mar 05 10:57:13 server.domain.com systemd[1]: Failed to start LSB: Start the Tor2web proxy..
 -- Subject: A start job for unit tor2web.service has begun execution
-- A start job for unit tor2web.service has begun execution.
Mar 05 10:57:12 server.domain.com tor2web[398]: Starting Tor2web tor2web...Starting tor (via systemctl): tor.service.
Mar 05 10:57:12 server.domain.com audit[432]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/bin/dash" pid=432 comm="tor2web" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:12 server.domain.com kernel: audit: type=1400 audit(1583405832.480:10): apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/bin/dash" pid=432 comm="tor2web" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:12 server.domain.com audit[434]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/sbin/ldconfig" pid=434 comm="python3" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:12 server.domain.com audit[433]: AVC apparmor="DENIED" operation="open" profile="usr.bin.tor2web" name="/etc/ssl/openssl.cnf" pid=433 comm="python3" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 05 10:57:12 server.domain.com audit[436]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/bin/dash" pid=436 comm="python3" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:12 server.domain.com tor2web[398]: Tor2web Startup Failure: TRANSLATION config.mode require config.onion configuration
Mar 05 10:57:13 server.domain.com audit[438]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/bin/dash" pid=438 comm="tor2web" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:13 server.domain.com audit[440]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/sbin/ldconfig" pid=440 comm="python3" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:13 server.domain.com audit[439]: AVC apparmor="DENIED" operation="open" profile="usr.bin.tor2web" name="/etc/ssl/openssl.cnf" pid=439 comm="python3" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Mar 05 10:57:13 server.domain.com audit[442]: AVC apparmor="DENIED" operation="exec" profile="usr.bin.tor2web" name="/usr/bin/dash" pid=442 comm="python3" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Mar 05 10:57:13 server.domain.com tor2web[398]: Tor2web Startup Failure: TRANSLATION config.mode require config.onion configuration
Mar 05 10:57:13 server.domain.com tor2web[398]:  failed!
Mar 05 10:57:13 server.domain.com systemd[1]: tor2web.service: Control process exited, code=exited, status=1/FAILURE
-- An ExecStart= process belonging to unit tor2web.service has exited.
Mar 05 10:57:13 server.domain.com systemd[1]: tor2web.service: Failed with result 'exit-code'.
-- The unit tor2web.service has entered the 'failed' state with result 'exit-code'.
-- Subject: A start job for unit tor2web.service has failed
-- A start job for unit tor2web.service has finished with a failure.

Отредактировано yohoho (Март 5, 2020 17:26:39)

Офлайн

#2 Март 6, 2020 13:54:45

yohoho
Зарегистрирован: 2020-03-05
Сообщения: 9
Репутация: +  0  -
Профиль   Отправить e-mail  

Проблема с tor2web.

Решилось выгрузкой apparmor.
Теперь так:

 ● tor2web.service - LSB: Start the Tor2web proxy.
   Loaded: loaded (/etc/init.d/tor2web; generated)
   Active: active (running) since Thu 2020-03-05 19:37:33 UTC; 16h ago
     Docs: man:systemd-sysv-generator(8)
  Process: 391 ExecStart=/etc/init.d/tor2web start (code=exited, status=0/SUCCESS)
    Tasks: 3 (limit: 3567)
   Memory: 76.1M
   CGroup: /system.slice/tor2web.service
           ├─434 python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
           └─436 /bin/python3 /usr/lib/python3/dist-packages/tor2web/t2w.py --pidfile /var/run/tor2web/t2w.pid --uid tor2web --gid tor2web --command=start
Mar 06 11:43:43 server.domain.com tor2web[391]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1613, in unwindGenerator
Mar 06 11:43:43 server.domain.com tor2web[391]:     return _cancellableInlineCallbacks(gen)
Mar 06 11:43:43 server.domain.com tor2web[391]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks
Mar 06 11:43:43 server.domain.com tor2web[391]:     _inlineCallbacks(None, g, status)
Mar 06 11:43:43 server.domain.com tor2web[391]: --- <exception caught here> ---
Mar 06 11:43:43 server.domain.com tor2web[391]:   File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
Mar 06 11:43:43 server.domain.com tor2web[391]:     result = g.send(result)
Mar 06 11:43:43 server.domain.com tor2web[391]:   File "/usr/lib/python3/dist-packages/tor2web/t2w.py", line 712, in process
Mar 06 11:43:43 server.domain.com tor2web[391]:     self.redirect("https://" + request.host + request.uri)
Mar 06 11:43:43 server.domain.com tor2web[391]: builtins.TypeError: can only concatenate str (not "bytes") to str
Кто может подсказать куда копать? ИХ саппорт просто игнорирует.

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version