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

[main] crash when starting with [ipv8] enabled = False #6265

Closed
qstokkink opened this issue Aug 18, 2021 · 0 comments · Fixed by #6278
Closed

[main] crash when starting with [ipv8] enabled = False #6265

qstokkink opened this issue Aug 18, 2021 · 0 comments · Fixed by #6278
Assignees

Comments

@qstokkink
Copy link
Contributor

Using this config (http_port and key removed):

[api]
    http_enabled = True
    http_port = <redacted>
    key = <redacted>
[ipv8]
enabled = False

Tribler crashes on startup with the following tracebacks:

[PID:2824] 2021-08-18 13:17:01,247 - ERROR <error_handler:37> ErrorHandler.gui_error(): tribler_gui.utilities.CreationTraceback: 
  File "/home/quinten/Documents/tribler/src/run_tribler.py", line 131, in <module>
    sys.exit(app.exec_())
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/utilities.py", line 395, in trackback_wrapper
    callback(*args, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/core_manager.py", line 97, in on_request_error
    self.start_tribler_core(core_args=core_args, core_env=core_env)
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/core_manager.py", line 177, in start_tribler_core
    connect(self.core_process.finished, self.on_core_finished)


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/utilities.py", line 398, in trackback_wrapper
    raise exc from CreationTraceback(traceback_str)
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/utilities.py", line 395, in trackback_wrapper
    callback(*args, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-gui/tribler_gui/core_manager.py", line 87, in on_core_finished
    raise RuntimeError(exception_msg)
RuntimeError: The Tribler core has unexpectedly finished with exit code 1 and status: 0!

Traceback (most recent call last):
  File "/home/quinten/Documents/tribler/src/run_tribler.py", line 66, in <module>
    start_tribler_core(base_path, api_port, api_key, root_state_dir, gui_test_mode=gui_test_mode)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/start_core.py", line 120, in start_tribler_core
    loop.run_until_complete(core_session(config, components=list(components_gen(config))))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/start_core.py", line 38, in core_session
    await session.start()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/base.py", line 74, in start
    await gather(*coros, return_exceptions=not self.failfast)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/base.py", line 158, in start
    await self.run()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/implementation/gigachannel.py", line 34, in run
    community = giga_channel_cls(
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/metadata_store/community/gigachannel_community.py", line 95, in __init__
    super().__init__(my_peer, endpoint, Network(), max_peers=50, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/remote_query_community/community.py", line 134, in __init__
    super().__init__(my_peer, endpoint, network=network, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/tribler_community.py", line 11, in __init__
    super().__init__(*args, **kwargs)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/community.py", line 41, in __init__
    super().__init__(self.community_id, my_peer, endpoint, network)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/overlay.py", line 24, in __init__
    EndpointListener.__init__(self, endpoint)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/messaging/interfaces/endpoint.py", line 134, in __init__
    self.my_estimated_wan = self.my_estimated_lan
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/messaging/interfaces/endpoint.py", line 148, in my_estimated_lan
    self._my_estimated_lan = (self._get_lan_address(True)[0], self.endpoint.get_address()[1])
TypeError: 'Mock' object is not subscriptable

(Timestamp: 1629285421247, traceback timestamp: 1629285415252)

[PID:2824] 2021-08-18 13:17:01,251 - INFO - SentryReporter(286) - Event from exception: The Tribler core has unexpectedly finished with exit code 1 and status: 0!

Traceback (most recent call last):
  File "/home/quinten/Documents/tribler/src/run_tribler.py", line 66, in <module>
    start_tribler_core(base_path, api_port, api_key, root_state_dir, gui_test_mode=gui_test_mode)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/start_core.py", line 120, in start_tribler_core
    loop.run_until_complete(core_session(config, components=list(components_gen(config))))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/start_core.py", line 38, in core_session
    await session.start()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/base.py", line 74, in start
    await gather(*coros, return_exceptions=not self.failfast)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/base.py", line 158, in start
    await self.run()
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/components/implementation/gigachannel.py", line 34, in run
    community = giga_channel_cls(
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/metadata_store/community/gigachannel_community.py", line 95, in __init__
    super().__init__(my_peer, endpoint, Network(), max_peers=50, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/remote_query_community/community.py", line 134, in __init__
    super().__init__(my_peer, endpoint, network=network, **kwargs)
  File "/home/quinten/Documents/tribler/src/tribler-core/tribler_core/modules/tribler_community.py", line 11, in __init__
    super().__init__(*args, **kwargs)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/community.py", line 41, in __init__
    super().__init__(self.community_id, my_peer, endpoint, network)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/overlay.py", line 24, in __init__
    EndpointListener.__init__(self, endpoint)
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/messaging/interfaces/endpoint.py", line 134, in __init__
    self.my_estimated_wan = self.my_estimated_lan
  File "/home/quinten/Documents/tribler/src/pyipv8/ipv8/messaging/interfaces/endpoint.py", line 148, in my_estimated_lan
    self._my_estimated_lan = (self._get_lan_address(True)[0], self.endpoint.get_address()[1])
TypeError: 'Mock' object is not subscriptable

(Timestamp: 1629285421247, traceback timestamp: 1629285415252)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants