Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(V7.3.0-rc1) RuntimeError: Could not connect with the Tribler Core within 60 seconds #4695

Open
devos50 opened this issue Jul 22, 2019 · 26 comments

Comments

@devos50
Copy link
Contributor

commented Jul 22, 2019

Received a few of these reports already:

Traceback (most recent call last):
File "/usr/share/tribler/TriblerGUI/event_request_manager.py", line 136, in <lambda>
self.reply.error.connect(lambda error: self.on_error(error, reschedule_on_err=reschedule_on_err))
File "/usr/share/tribler/TriblerGUI/event_request_manager.py", line 81, in on_error
raise RuntimeError("Could not connect with the Tribler Core within 60 seconds")
RuntimeError: Could not connect with the Tribler Core within 60 seconds

Could this be to the database I/O at startup?

@devos50 devos50 added the bug label Jul 22, 2019

@devos50 devos50 added this to the V7.3: Gigachannels milestone Jul 22, 2019

@ichorid

This comment has been minimized.

Copy link
Contributor

commented Jul 22, 2019

I've checked the Pony database by adding a 120sec sleep on initialization. Starting up Tribler produced no error in this case.

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 23, 2019

Maybe the core is too busy doing stuff that the HTTP request to /events is not coming through? Since @Dmole said that it works correctly in beta 6, I will review all commits between beta 6 and RC1.

See v7.3.0-beta6...v7.3.0-rc1

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 23, 2019

@Dmole which OS are you using?

@Dmole

This comment has been minimized.

Copy link
Contributor

commented Jul 23, 2019

@devos50 Ubuntu 18.04 on an SSD

Is there a proper way to start headless yet?
(may be useful to debug this)

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 23, 2019

@Dmole thanks!

If possible, could you extract the log file that Tribler generates when running it? It should be located in /tmp and look something like USERNAME-tribler-XXXXX.log (there might be multiple ones so please attach the one that is most recently edited). This will help us to see where Tribler hangs.

Alternatively, you can run Tribler and redirect stdout and stderr to your console. You can do so by running the following commands:

cd /usr/share/tribler
/usr/bin/python2.7 run_tribler.py

Tribler will then generate some output.

Thanks for your help! 👍

@devos50 devos50 changed the title RuntimeError: Could not connect with the Tribler Core within 60 seconds (V7.3.0-rc1) RuntimeError: Could not connect with the Tribler Core within 60 seconds Jul 23, 2019

@Dmole

This comment has been minimized.

Copy link
Contributor

commented Jul 23, 2019

INFO    1563897119.15        single_application:28   (root)  __init__()
INFO    1563897119.22        single_application:54   (root)    self._outSocket.error() = '0'
INFO    1563897119.22        single_application:56   (root)  received QLocalSocket.ConnectionRefusedError; removing server.
INFO    1563897119.22        single_application:68   (root)  close()
INFO    1563897119.22        single_application:75   (root)  close(): returning
INFO    1563897119.22        single_application:64   (root)  __init__(): returning
QFont::setPointSize: Point size <= 0 (-1), must be greater than 0
QFont::setPointSize: Point size <= 0 (-1), must be greater than 0
INFO    1563897119.87                    driver:124  (root)  Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
INFO    1563897119.93                    driver:124  (root)  Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
INFO    1563897120.55     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897120.65     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897121.18     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897121.18     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
Traceback (most recent call last):
  File "run_tribler.py", line 96, in <module>
    start_tribler_core(base_path, api_port)
  File "run_tribler.py", line 47, in start_tribler_core
    from Tribler.Core.Session import Session
  File "/usr/share/tribler/Tribler/Core/Session.py", line 21, in <module>
    from Tribler.Core.APIImplementation.LaunchManyCore import TriblerLaunchMany
  File "/usr/share/tribler/Tribler/Core/APIImplementation/LaunchManyCore.py", line 23, in <module>
    from ipv8.messaging.anonymization.community import TunnelSettings
  File "/usr/share/tribler/Tribler/pyipv8/ipv8/messaging/anonymization/community.py", line 15, in <module>
    from .payload import *
  File "/usr/share/tribler/Tribler/pyipv8/ipv8/messaging/anonymization/payload.py", line 8, in <module>
    from six import ensure_str
ImportError: cannot import name ensure_str
INFO    1563897121.70     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897121.70     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897122.23     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897122.23     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897122.75     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897122.76     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897123.28     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897123.28     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897123.81     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897123.81     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897124.34     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897124.34     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897124.87     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897124.87     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897125.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897125.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897125.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897125.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897126.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897126.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897126.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897126.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897127.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897127.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897127.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897127.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897128.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897128.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897128.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897128.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897129.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897129.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897129.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897129.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897130.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897130.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897130.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897130.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897131.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897131.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897131.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897131.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897132.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897132.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897132.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897132.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897133.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897133.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897133.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897133.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897134.40     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897134.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897134.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897134.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897135.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897135.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897135.90     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897135.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897136.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897136.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897136.90     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897136.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897137.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897137.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897137.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897137.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897138.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897138.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897138.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897138.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897139.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897139.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897139.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897139.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897140.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897140.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897140.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897140.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897141.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897141.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897141.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897141.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897142.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897142.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897142.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897142.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897143.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897143.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897143.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897143.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897144.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897144.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897144.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897144.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897145.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897145.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897145.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897145.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897146.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897146.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897146.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897146.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897147.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897147.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897147.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897147.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897148.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897148.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897148.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897148.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897149.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897149.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897149.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897149.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897150.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897150.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897150.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897150.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897151.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897151.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897151.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897151.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897152.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897152.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897152.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897152.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897153.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897153.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897153.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897153.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897154.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897154.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897154.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897154.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897155.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897155.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897155.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897155.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897156.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897156.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897156.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897156.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897157.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897157.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897157.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897157.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897158.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897158.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897158.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897158.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897159.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897159.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897159.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897159.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897160.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897160.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897160.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897160.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897161.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897161.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897161.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897161.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897162.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897162.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897162.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897162.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897163.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897163.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897163.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897163.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897164.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897164.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897164.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897164.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897165.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897165.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897165.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897165.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897166.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897166.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897166.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897166.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897167.40     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897167.40     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897167.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897167.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897168.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897168.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897168.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897168.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897169.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897169.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897169.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897169.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897170.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897170.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897170.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897170.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897171.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897171.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897171.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897171.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897172.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897172.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897172.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897172.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897173.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897173.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897173.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897173.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897174.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897174.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897174.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897174.90     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897175.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897175.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897175.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897175.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897176.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897176.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897176.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897176.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897177.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897177.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897177.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897177.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897178.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897178.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897178.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897178.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897179.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897179.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897179.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897179.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897180.39     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897180.39     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
INFO    1563897180.89     event_request_manager:132  (TriblerGUI)  Will connect to events endpoint
INFO    1563897180.89     event_request_manager:79   (TriblerGUI)  Got Tribler core error: 1
ERROR   1563897180.89            tribler_window:73   (root)  Traceback (most recent call last):
  File "/usr/share/tribler/TriblerGUI/event_request_manager.py", line 136, in <lambda>
    self.reply.error.connect(lambda error: self.on_error(error, reschedule_on_err=reschedule_on_err))
  File "/usr/share/tribler/TriblerGUI/event_request_manager.py", line 81, in on_error
    raise RuntimeError("Could not connect with the Tribler Core within 60 seconds")
RuntimeError: Could not connect with the Tribler Core within 60 seconds

INFO    1563897184.48               run_tribler:142  (root)  Shutting down Tribler

Maybe log files should be sent with bug reports,
or the last stack trace with start_tribler_core in it.

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 23, 2019

@Dmole aha, it seems that you have an older version of six installed. We should actually try to upgrade six in the Debian postinstall script if it is already installed.

For now, could you run pip install six --upgrade --user and try to run Tribler again? I will do a proper fix for this tonight or tomorrow.

@Dmole

This comment has been minimized.

Copy link
Contributor

commented Jul 23, 2019

Yes that worked.

@synctext

This comment has been minimized.

Copy link
Member

commented Jul 25, 2019

Had the exact same error on my Ubuntu box.

pip install six --upgrade --user
Installing collected packages: six
Successfully installed six-1.12.0

However this pip stuff (six-1.12.0) conflict with the apt-get debian matters: "python-six" (1.11.0-2). It's a hard coded dependency. We require 1.12 sadly, or else the cannot import name ensure_str ImportError is triggered.

sudo apt-get install TRIBLER python-cherrypy3 python-configobj python-cryptography python-matplotlib python-twisted python-six python-dateutil python-cycler python-twisted-core python-service-identity python-openssl python-automat
...
Setting up python-six (1.11.0-2) ...
Setting up python-cryptography (2.1.4-1ubuntu1.3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

What to do?

@synctext synctext reopened this Jul 25, 2019

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 25, 2019

As far as I'm aware, we do not have python-six as hard-coded apt dependency, see here.

@synctext do you get any error regarding this dependency conflict? The only way this could go wrong, if any of our apt dependencies relies specifically on python-six version 1.11.0 (or lower). However, we have the same situation for the pony package (where we need at least pony 0.7.9).

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 25, 2019

Also, having two version of six installed (one with apt, version 1.11.0 and another one with pip, version 1.12.0) is usually not a problem. The six installed by pip is not installed system-wide (as indicated by the --user flag).

@qstokkink

This comment has been minimized.

Copy link
Contributor

commented Jul 25, 2019

There could be a conflict between the sixes. This will probably be resolved upon removal of the apt version.

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 25, 2019

Removing the six installed by apt could be dangerous since there might be system packages depending on it. If this is a problem, the only proper solution I see for now is to rewrite all ensure_text and ensure_str (or copy these methods over to Tribler), and use six (1.11.0) from apt.

@synctext

This comment has been minimized.

Copy link
Member

commented Jul 25, 2019

Tribler does not use the pip version, but fails on the old ap-get one.
Seems I can't get rid of the Debian version, as an amateur sys-admin..:

sudo apt-get remove python-six                                                Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libllvm6.0 libllvm6.0:i386 libllvm7 libllvm7:i386 libqtwebkit4 libssl1.0.0:i386 libtidy-0.99-0
  python-asn1crypto python-attr python-backports.functools-lru-cache python-certifi python-click
  python-colorama python-constantly python-funcsigs python-glade2 python-hyperlink python-idna
  python-incremental python-ipaddress python-meliae python-pam python-pluggy python-py
  python-pyasn1-modules python-repoze.lru python-serial python-socks python-subprocess32 python-twisted-bin
  python-webencodings python-webob python-zope.interface x11proto-dri2-dev x11proto-gl-dev
Use 'sudo apt autoremove' to remove them.
@Dmole

This comment has been minimized.

Copy link
Contributor

commented Jul 25, 2019

@synctext what evidence do you have of a conflict?
both are installed for me and Tribler works fine.
Also 530 things directly depend on six so removing it would be bad;

apt-cache rdepends python-six | wc -l
530
@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Jul 25, 2019

@synctext if you path settings are correct, the Python libraries in your user space should have preference over the ones installed by apt. Also, your screenshot does not show an error. My best guess is that six is already removed.

To check which version Tribler is using, you can run the following commands:

python -v
import six

and post the output here 👍

@synctext

This comment has been minimized.

Copy link
Member

commented Jul 25, 2019

Yeah, path settings seems to have an anomaly, often goes wrong in past year. But standard Ubuntu box.

>apt-cache rdepends python-six | wc -l
530
>python -v
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
import site # precompiled from /usr/lib/python2.7/site.pyc
# /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
import os # precompiled from /usr/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
# /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
# /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
import stat # precompiled from /usr/lib/python2.7/stat.pyc
# /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
# /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
# /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
# /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
import types # precompiled from /usr/lib/python2.7/types.pyc
# /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
# /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
# /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
import abc # precompiled from /usr/lib/python2.7/abc.pyc
# /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
import _weakref # builtin
# /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
# /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
# /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
# /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
import re # precompiled from /usr/lib/python2.7/re.pyc
# /usr/lib/python2.7/sre_compile.pyc matches /usr/lib/python2.7/sre_compile.py
import sre_compile # precompiled from /usr/lib/python2.7/sre_compile.pyc
import _sre # builtin
# /usr/lib/python2.7/sre_parse.pyc matches /usr/lib/python2.7/sre_parse.py
import sre_parse # precompiled from /usr/lib/python2.7/sre_parse.pyc
# /usr/lib/python2.7/sre_constants.pyc matches /usr/lib/python2.7/sre_constants.py
import sre_constants # precompiled from /usr/lib/python2.7/sre_constants.pyc
import _locale # builtin
# /usr/lib/python2.7/_sysconfigdata.pyc matches /usr/lib/python2.7/_sysconfigdata.py
import _sysconfigdata # precompiled from /usr/lib/python2.7/_sysconfigdata.pyc
# /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc matches /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.py
import _sysconfigdata_nd # precompiled from /usr/lib/python2.7/plat-x86_64-linux-gnu/_sysconfigdata_nd.pyc
# /usr/lib/python2.7/sitecustomize.pyc matches /usr/lib/python2.7/sitecustomize.py
import sitecustomize # precompiled from /usr/lib/python2.7/sitecustomize.pyc
import encodings # directory /usr/lib/python2.7/encodings
# /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
# /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
import _codecs # builtin
# /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
# /usr/lib/python2.7/encodings/utf_8.pyc matches /usr/lib/python2.7/encodings/utf_8.py
import encodings.utf_8 # precompiled from /usr/lib/python2.7/encodings/utf_8.pyc
Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so", 2);
import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.x86_64-linux-gnu.so
>>> import six
# /usr/lib/python2.7/dist-packages/six.pyc matches /usr/lib/python2.7/dist-packages/six.py
import six # precompiled from /usr/lib/python2.7/dist-packages/six.pyc
# /usr/lib/python2.7/__future__.pyc matches /usr/lib/python2.7/__future__.py
import __future__ # precompiled from /usr/lib/python2.7/__future__.pyc
# /usr/lib/python2.7/functools.pyc matches /usr/lib/python2.7/functools.py
import functools # precompiled from /usr/lib/python2.7/functools.pyc
import _functools # builtin
import itertools # builtin
import operator # builtin
# /usr/lib/python2.7/StringIO.pyc matches /usr/lib/python2.7/StringIO.py
import StringIO # precompiled from /usr/lib/python2.7/StringIO.pyc
@synctext

This comment has been minimized.

Copy link
Member

commented Jul 25, 2019

Closing, not a Tribler specific issue.

@synctext synctext closed this Jul 25, 2019

@synctext

This comment has been minimized.

Copy link
Member

commented Aug 2, 2019

RC2 and others broken on Ubuntu 18.04.2 LTS.

Python six 1.11.0 in Debian is too old for us to use. (Perfect storm according to @qstokkink )
Our Debian installer hard-coded checks for Debian packages. It does not see the pip installs. So for Python Six we need the new 1.12.0. Dependency packages like python-cherrypy3 hard link to the old 1.11.0 sadly.

sudo dpkg -i ~/Downloads/tribler_7.3.0-rc2_all.deb
Selecting previously unselected package tribler.
(Reading database ... 419844 files and directories currently installed.)
Preparing to unpack .../tribler_7.3.0-rc2_all.deb ...
Unpacking tribler (7.3.0-rc2) ...
dpkg: dependency problems prevent configuration of tribler:
 tribler depends on python-cherrypy3; however:
  Package python-cherrypy3 is not installed.
 tribler depends on python-configobj; however:
  Package python-configobj is not installed.
 tribler depends on python-cryptography; however:
  Package python-cryptography is not installed.
 tribler depends on python-matplotlib; however:
  Package python-matplotlib is not installed.
 tribler depends on python-twisted; however:
  Package python-twisted is not installed.

dpkg: error processing package tribler (--install):
 dependency problems - leaving unconfigured

@synctext synctext reopened this Aug 2, 2019

@synctext

This comment has been minimized.

Copy link
Member

commented Aug 2, 2019

We need to do this properly some day, but could today simply rewrite all ensure_text and ensure_str.
Properly: runtime version check and pip versus .deb $PYTHONPATH priorities
ugly hack: runtime extend when import Six does not give an ensure_text()

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Aug 2, 2019

Oh, that's quite a problem. Could we copy ensure_text and ensure_str in our code base (ugly...) and keep using the old six? Also, this was not caught by our application testers since they already had cherrypy installed.

The cherrypy dependency is used to setup our VoD server. It is an excellent candidate for removal if someone wants to take on the challenge of refactoring our video server.

@devos50 devos50 self-assigned this Aug 2, 2019

@synctext

This comment has been minimized.

Copy link
Member

commented Aug 2, 2019

sure! please do a temp code copy hacky approach. @qstokkink will review and approve :-)

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Aug 2, 2019

@synctext one question, have you tried installing tribler with the -f flag? It will automatically install the required dependencies on your system (asking since your error indicates missing apt dependency packages, which are not by default installed when installing a deb file).

@qstokkink

This comment has been minimized.

@synctext

This comment has been minimized.

Copy link
Member

commented Aug 2, 2019

fixed! thnx

@synctext synctext closed this Aug 2, 2019

@devos50

This comment has been minimized.

Copy link
Contributor Author

commented Sep 8, 2019

Unfortunately, this error is present in the reporter again (report 27008):

Traceback (most recent call last):
File "TriblerGUI\event_request_manager.py", line 136, in <lambda>
File "TriblerGUI\event_request_manager.py", line 81, in on_error
RuntimeError: Could not connect with the Tribler Core within 60 seconds

Although this time, it seems that the hard disk of the user running Tribler was running out of space. We never really tested this so it could be that this error is caused by a lack of disk space.

@devos50 devos50 reopened this Sep 8, 2019

@devos50 devos50 removed the _Top Priority_ label Sep 8, 2019

@devos50 devos50 removed their assignment Sep 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.