lbry-desktop icon indicating copy to clipboard operation
lbry-desktop copied to clipboard

shutdown on startup, with message "The daemon has unexpectedly shutdown. Goodbye."

Open ghost opened this issue 9 years ago • 24 comments

The Issue

Steps to reproduce

1.Open LBRY app on mac os 10.12.5 2.LBRY app shuts down on its own, with error message "The daemon has unexpectedly shutdown. Goodbye." 3.

Expected behaviour

Tell us what should happen I think the App should open, and allow me access to its goodness.

Actual behaviour

Tell us what happens instead The app shuts down, and denies me all the goodness.

System Configuration

I cant access that. App closes on startup.

  • LBRY Daemon version:v0.13
  • LBRY App version:v0.12.2
  • LBRY Installation ID:
  • Operating system:Mac OS 10.12.5

Anything Else

Screenshots

ghost avatar Jun 26 '17 18:06 ghost

@TrompoMax thanks for reporting this! However, we cannot debug without more details.

Can you send your lbrynet.log file to [email protected] and reference this ticket (lbry-app #291)?

kauffj avatar Jun 26 '17 19:06 kauffj

Where would I find lbrynet.log?

ghost avatar Jun 26 '17 19:06 ghost

Oops, meant to include this link: https://lbry.io/faq/lbry-directories.

kauffj avatar Jun 26 '17 19:06 kauffj

I do not have a LBRY folder in my applications support folder sub directory of Library. This may be part of the problem.

I ran the software from Terminal, and this is the readout. Does this help at all?

max-cranleys-macbook:~ workingaccount$ /Applications/LBRY.app/Contents/MacOS/LBRY ; exit; Checking for lbrynet daemon lbrynet daemon needs to be launched Launching daemon: /Applications/LBRY.app/Contents/Resources/app/dist/lbrynet-daemon 2017-06-26 12:55:43,901 INFO lbrynet.lbrynet_daemon.DaemonControl:92: Starting lbrynet-daemon from command line 2017-06-26 12:55:44,220 INFO lbrynet.lbrynet_daemon.DaemonServer:64: Using non-authenticated API 2017-06-26 12:55:44,222 INFO lbrynet.lbrynet_daemon.Daemon:254: Starting lbrynet-daemon 2017-06-26 12:55:44,309 INFO lbrynet.lbrynet_daemon.ExchangeRateManager:174: Starting exchange rate manager 2017-06-26 12:55:44,480 INFO lbrynet.lbrynet_daemon.Daemon:281: Platform: {"lbrynet_version": "0.13.1rc1", "platform": "Darwin-16.6.0-x86_64-i386-64bit", "os_system": "Darwin", "python_version": "2.7.13", "os_release": "16.6.0", "lbryum_version": "2.8.2", "ip": "2601:644:0:9285:1d0:6c38:e129:1d32", "lbryschema_version": "0.0.7", "processor": "i386", "build": "rc"} 2017-06-26 12:55:44,485 INFO lbrynet.lbrynet_daemon.Daemon:488: Loading databases 2017-06-26 12:55:44,489 INFO lbrynet.lbrynet_daemon.Daemon:516: Upgrading your databases 2017-06-26 12:55:44,489 INFO lbrynet.db_migrator.migrate1to2:9: Doing the migration 2017-06-26 12:55:44,492 ERROR lbrynet.lbrynet_daemon.DaemonControl:128: Failed to startup Traceback (most recent call last): File "site-packages/lbrynet/lbrynet_daemon/DaemonControl.py", line 125, in start_server_and_listen File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator File "site-packages/lbrynet/lbrynet_daemon/DaemonServer.py", line 49, in start File "site-packages/twisted/internet/defer.py", line 1297, in _inlineCallbacks File "site-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator File "site-packages/lbrynet/lbrynet_daemon/Daemon.py", line 262, in setup File "site-packages/twisted/python/threadpool.py", line 246, in inContext File "site-packages/twisted/python/threadpool.py", line 262, in File "site-packages/twisted/python/context.py", line 118, in callWithContext File "site-packages/twisted/python/context.py", line 81, in callWithContext File "site-packages/lbrynet/db_migrator/dbmigrator.py", line 9, in migrate_db File "site-packages/lbrynet/db_migrator/migrate1to2.py", line 10, in do_migration File "site-packages/lbrynet/db_migrator/migrate1to2.py", line 37, in migrate_blockchainname_db OperationalError: no such table: claim_ids 2017-06-26 12:55:44,492 INFO lbrynet.lbrynet_daemon.Daemon:412: Closing lbrynet session 2017-06-26 12:55:44,493 INFO lbrynet.lbrynet_daemon.Daemon:413: Status at time of shutdown: loading_db 2017-06-26 12:55:44,494 INFO lbrynet.lbrynet_daemon.Daemon:412: Closing lbrynet session 2017-06-26 12:55:44,495 INFO lbrynet.lbrynet_daemon.Daemon:413: Status at time of shutdown: loading_db The daemon has exited. Did not request daemon stop, so quitting in 5 seconds. Quitting. logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed.

[Process completed]

ghost avatar Jun 26 '17 20:06 ghost

Thanks, the issue is clear from that log so no need to email.

kauffj avatar Jun 26 '17 20:06 kauffj

My pleasure. Thank you!

ghost avatar Jun 26 '17 20:06 ghost

@TrompoMax, another user had a similar issue on MAC and this was suggested: Fix: to manually bypass this, delete blockchainname.db and db_revision in the lbrynet data folder.

Looks like you had an older installation, so this directory may be different. Can you search your pc for those files? Maybe then you will find the directory.

We will be working on a guide on how to do a fresh install while preserving most of your data (wallet especially!)

tzarebczan avatar Jun 26 '17 21:06 tzarebczan

I did have an older version of the app installed, yes. Please do let me know when that guide is complete. I can't find those files, unfortunately.

ghost avatar Jun 26 '17 21:06 ghost

@TrompoMax I can confirm that what @tzarebczan works as I was having the issue, too. Click Go in Finder at the top of the screen, use this location exactly: ~/Library/Application Support/LBRY, and voila! You should be able to see those two files mentioned and delete them. Make sure to empty the trash, too. All you do then is reopen LBRY.app and you should be good. :)

iretrala avatar Jun 27 '17 05:06 iretrala

Yep, that did it. Thanks guys!

ghost avatar Jun 27 '17 05:06 ghost

Great! We will still work on a guide on how to clean install and then possibly copy over pertinent files.

tzarebczan avatar Jun 27 '17 20:06 tzarebczan

@iretrala thanks for the tip, that was going to be part of the documentation (or how to show hidden files). If you are on Slack, PM me and I'll throw you a couple LBC (my handle is jiggytom).

tzarebczan avatar Jun 27 '17 20:06 tzarebczan

Ya, thanks again. Just for clarity, there are at least 2 Library folders in MacOS. One for each user, and one for the system. All of my apps, including LBRY are in my main system applications directory, so I assumed the library folder you were asking me to look into was in that one. The files I was looking for were actually in my user Library folder.

ghost avatar Jun 27 '17 20:06 ghost

I'm going to close this, since this isn't an issue with the app itself (it's the daemon), the daemon devs know, and a help article is in the pipeline. Thanks all!

kauffj avatar Jun 27 '17 21:06 kauffj

For anyone experiencing this issue on linux: the files where located in ~/.lbrynet and removing them fixed the issue.

fapdash avatar Jul 09 '17 12:07 fapdash

I have tried everything without succes please Help ! Do I lost my wallet now?

SANOEK60 avatar Sep 20 '17 11:09 SANOEK60

Have you looked at https://lbry.io/faq/startup-troubleshooting ?

What os? Please provide logs.

tzarebczan avatar Sep 20 '17 12:09 tzarebczan

Already tried everything No results ? IOS Mac pro

SANOEK60 avatar Sep 20 '17 12:09 SANOEK60

I replied to you on slack, give a reboot, Uninstall, reinstall a try. Then follow my other instructions about the log file.

tzarebczan avatar Sep 20 '17 13:09 tzarebczan

I have Deleted all files from previous instalation do not find backup files ...

SANOEK60 avatar Sep 20 '17 13:09 SANOEK60