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

Crash on Boot #8496

Closed
benmordecai opened this issue Mar 10, 2025 · 3 comments
Closed

Crash on Boot #8496

benmordecai opened this issue Mar 10, 2025 · 3 comments

Comments

@benmordecai
Copy link

Fresh install 8.1.0, never used. Installed from Flathub on Arch with KDE, updated as of 3/10/2025. Launching from terminal yields:

rg.tribler.Tribler 
INFO:__main__:Run Tribler: {'torrent': '', 'log_level': 'INFO', 'server': False}
INFO:__main__:Root state dir: /home/ben/.Tribler
INFO:tribler.tribler_config:Load: /home/ben/.Tribler/8.0/configuration.json.
INFO:__main__:Creating session. API port: 0. API key: 4fe6f00379bb3be9b90e61aa932c7160.
INFO:RESTManager:Starting RESTManager...
INFO:RESTManager:Set security scheme and apply to all endpoints
INFO:RESTManager:Remove head
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/apispec/ext/marshmallow/openapi.py:134: UserWarning: Multiple schemas resolved to the name AddTrackerRequest. The name has been modified. Either manually add each of the schemas with a different name or provide a custom schema_name_resolver.
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/apispec/ext/marshmallow/openapi.py:134: UserWarning: Multiple schemas resolved to the name AddTrackerResponse. The name has been modified. Either manually add each of the schemas with a different name or provide a custom schema_name_resolver.
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/apispec/ext/marshmallow/openapi.py:134: UserWarning: Multiple schemas resolved to the name File. The name has been modified. Either manually add each of the schemas with a different name or provide a custom schema_name_resolver.
/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/apispec/ext/marshmallow/openapi.py:134: UserWarning: Multiple schemas resolved to the name GetMetainfoResponse. The name has been modified. Either manually add each of the schemas with a different name or provide a custom schema_name_resolver.
INFO:RESTManager:Http enabled
INFO:RESTManager:Starting HTTP REST API server on port 0...
INFO:RESTManager:HTTP REST API server started on port 36257
INFO:RESTManager:Swagger docs: http://127.0.0.1:36257/docs
INFO:RESTManager:Swagger JSON: http://127.0.0.1:36257/docs/swagger.json
INFO:Socks5Server:Started SOCKS5 server on port 42661
INFO:Socks5Server:Started SOCKS5 server on port 38817
INFO:Socks5Server:Started SOCKS5 server on port 38289
INFO:Socks5Server:Started SOCKS5 server on port 34465
INFO:Socks5Server:Started SOCKS5 server on port 38089
INFO:tribler.core.libtorrent.download_manager.download_manager:Creating a session
INFO:tribler.core.libtorrent.download_manager.download_manager:Hops: 0.
INFO:tribler.core.libtorrent.download_manager.download_manager:Libtorrent ip+port set to 0.0.0.0:0
INFO:tribler.core.libtorrent.download_manager.download_manager:could not load libtorrent state, got exception: FileNotFoundError(2, 'No such file or directory'). starting from scratch
INFO:tribler.core.libtorrent.download_manager.download_manager:Started libtorrent session for 0 hops on port 42323
********************************************************************************
A OperationalError occurred
********************************************************************************
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbapiprovider.py", line 55, in wrap_dbapi_exceptions
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbapiprovider.py", line 231, in connect
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbapiprovider.py", line 352, in connect
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbproviders/sqlite.py", line 666, in _connect
sqlite3.OperationalError: unable to open database file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "src/tribler/run.py", line 249, in main
  File "/home/runner/work/tribler/tribler/src/tribler/core/session.py", line 236, in start
  File "/home/runner/work/tribler/tribler/pyipv8/ipv8/loader.py", line 174, in load
  File "/home/runner/work/tribler/tribler/pyipv8/ipv8/loader.py", line 200, in _launch
  File "/home/runner/work/tribler/tribler/src/tribler/core/components.py", line 147, in prepare
  File "/home/runner/work/tribler/tribler/src/tribler/core/database/store.py", line 198, in __init__
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/core.py", line 765, in bind
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/core.py", line 787, in _bind
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbproviders/sqlite.py", line 345, in __init__
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbapiprovider.py", line 131, in __init__
  File "<string>", line 2, in connect
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/pony/orm/dbapiprovider.py", line 72, in wrap_dbapi_exceptions
pony.orm.dbapiprovider.OperationalError: unable to open database file

********************************************************************************
Error while showing a message box: [Errno 2] No such file or directory: 'xmessage'

@benmordecai
Copy link
Author

This could be a packaging problem. Uninstalling from Flatpak and installing AUR tribler-bin succeeds.

@qstokkink
Copy link
Contributor

First things first, what is causing this error is that the database file cannot be written to your user "home" directory.

What I see from https://github.com/flathub/org.tribler.Tribler/blob/master/org.tribler.Tribler.yaml#L20, is that --persist=.Tribler is being used. My intuition would be that the Flatpak does not have permission to write into your ~/.Tribler directory. Changing your directory permissions should resolve that.

If that doesn't solve your issue, this issue should probably be moved to https://github.com/flathub/org.tribler.Tribler then.

@benmordecai
Copy link
Author

Thanks for the fast response. I was mainly just testing Tribler and decided to ultimately uninstall. I'll close the issue and others can resume if the above doesn't help them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants