Comments (13)
I can vouch that it doesn't work for me.
MacOS 10.12.3
Hey stupid question: With the commandline version of the daemon I see python. What version of python is required for all this to run properly?
Note: The commandline version doesn't work for me either.
from lbry-desktop.
@drakythe installing the daemon from source is (relatively) painless: https://github.com/lbryio/lbry/blob/master/INSTALL.md
If you're also not seeing the daemon run properly when run directly, that may explain why it is not launching when the browser runs either.
Could you share the output of why it is failing? Thank you!
from lbry-desktop.
Sure, output I get when I try to run the daemon is this:
lbrynet-daemon-v0.9.1-macos $ ./lbrynet-daemon
2017-03-22 15:28:59,201 INFO lbrynet.lbrynet_daemon.DaemonControl:92: Starting lbrynet-daemon from command line
2017-03-22 15:28:59,804 INFO lbrynet.lbrynet_daemon.DaemonControl:126: Making attempt 1 / 5 to startup
2017-03-22 15:28:59,807 INFO lbrynet.lbrynet_daemon.DaemonServer:56: Using non-authenticated API
2017-03-22 15:28:59,808 INFO lbrynet.lbrynet_daemon.DaemonServer:40: Daemon already running, exiting app
Unhandled error in Deferred:
2017-03-22 15:28:59,808 CRITICAL twisted:154: Unhandled error in Deferred:
2017-03-22 15:28:59,810 CRITICAL twisted:154:
Traceback (most recent call last):
File "site-packages/twisted/internet/defer.py", line 1299, in _inlineCallbacks
File "site-packages/lbrynet/lbrynet_daemon/DaemonServer.py", line 47, in start
File "site-packages/lbrynet/lbrynet_daemon/DaemonServer.py", line 41, in _setup_server
SystemExit: 1
And it just hangs there. If I force exit the script with a ctrl+c I get this
^CUnhandled Error
Traceback (most recent call last):
File "daemon.py", line 4, in <module>
File "site-packages/lbrynet/lbrynet_daemon/DaemonControl.py", line 97, in start
File "site-packages/twisted/internet/base.py", line 1199, in run
File "site-packages/twisted/internet/base.py", line 1208, in mainLoop
--- <exception caught here> ---
File "site-packages/twisted/internet/base.py", line 801, in runUntilCurrent
File "site-packages/twisted/internet/base.py", line 584, in stop
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.
2017-03-22 15:31:22,319 CRITICAL twisted:154: Unhandled Error
Traceback (most recent call last):
File "daemon.py", line 4, in <module>
File "site-packages/lbrynet/lbrynet_daemon/DaemonControl.py", line 97, in start
File "site-packages/twisted/internet/base.py", line 1199, in run
File "site-packages/twisted/internet/base.py", line 1208, in mainLoop
--- <exception caught here> ---
File "site-packages/twisted/internet/base.py", line 801, in runUntilCurrent
File "site-packages/twisted/internet/base.py", line 584, in stop
twisted.internet.error.ReactorNotRunning: Can't stop reactor that isn't running.
2017-03-22 15:31:22,321 INFO lbrynet.lbrynet_daemon.Daemon:523: Closing lbrynet session
2017-03-22 15:31:22,322 INFO lbrynet.lbrynet_daemon.Daemon:524: Status at time of shutdown: initializing
2017-03-22 15:31:22,323 INFO lbrynet.lbrynet_daemon.ExchangeRateManager:163: Stopping exchange rate manager
Further, if I leave it running for a bit, and then ctrl+c it I get
^C2017-03-22 15:31:02,036 INFO lbrynet.lbrynet_daemon.Daemon:523: Closing lbrynet session
2017-03-22 15:31:02,037 INFO lbrynet.lbrynet_daemon.Daemon:524: Status at time of shutdown: initializing
2017-03-22 15:31:02,037 INFO lbrynet.lbrynet_daemon.ExchangeRateManager:163: Stopping exchange rate manager
Which seems to indicate it reached further than the first message, but it never goes anywhere or gives any further output. And no matter how long I wait a curl against localhost/127.0.0.1 won't return anything.
This is all on my iMac. Out of curiosity I installed the app on my Air, and it worked without issue. I have not yet tried just the daemon, but I imagine it works just fine.
from lbry-desktop.
@drakythe Can you check your task/process manager and ensure there is not already a frozen copy running? The output seems to indicate that. Though it certainly didn't handle it cleanly.
from lbry-desktop.
@kauffj I'm not 100% sure what I'm looking for, but reviewing my Activity Monitor does not seem to indicate a running lbry process, either under that name, a Daemon name, or a python process. Can you give me the exact task I should be looking for?
from lbry-desktop.
@drakythe Sounds like probably a bug on our end. The way the app is spawning and killing the daemon process is being changed (literally by the guy sitting next to me as I type this), so let's wait until the next release and see if this is cleaned up.
from lbry-desktop.
@alexliebowitz is this fixed?
from lbry-desktop.
Hmm, I guess I'd call it "mostly fixed." It's really more of a category of problems that all cause the same symptom. If memory serves, we decided that it usually happens because there's a hung daemon process running and the app latches onto that instead of starting a new one.
The main thing we've done to reduce that issue is that we now stop the daemon by issuing a daemon_stop
API call instead of SIGTERM. We don't have numbers on this, but IIRC closing with SIGTERM would very often leave a hung daemon process hanging around, so it's possible that that alone already reduced this issue by 80%+.
Things we can do in the future:
- Continue to improve general daemon stability to reduce spontaneous hangs
- Add fallback logic so even hung daemons can respond to the 'stop' call and try do a clean shutdown. I could even imagine a mini event loop that runs if the main one crashes.
- On startup, use heuristics to detect if the current daemon process is hung (maybe make an RPC call that should throw an error if the daemon is hung?). Then either give the user the option to force kill it through the interface (with a warning about the risks), or tell them they need to kill it manually. Most of the infrastructure for this is already there from when I revamped the upgrade system.
We could close this issue now since it seems like it's improved a lot already, and getting it down to 0 will be a gradual process. Or we could leave it open until we're confident that we've got it down to an acceptable level.
from lbry-desktop.
@kauffj is this related to the same issue Niko and I have been seeing on Linux with daemon start up? I have to retry it many times before it gets past "starting daemon....".
from lbry-desktop.
from lbry-desktop.
I ran into some issues as well.
I resolved it by prepending the install commands with "python"; forcing it to use macOS's installed version of python, as opposed to the build version.
Working on a script to see if it helps.
from lbry-desktop.
Logfile from a Linux user with daemon startup issues
from lbry-desktop.
https://github.com/sleepdefic1t/lbryBuilder
let me know if this helps.
from lbry-desktop.
Related Issues (20)
- Name for post always changes to "post" when uploading
- Cannont connect since yesterday HOT 3
- Version 0.53.9 HOT 1
- Crash on upload screen HOT 5
- Support node LTS (v18)
- Update the Foundation's repo and shift devel there.
- No feed refresh HOT 2
- Bus error (core dumped) #13 0x00007fddff3edd0a __libc_start_main (libc.so.6 + 0x23d0a) Stack trace #14 0x000055efd9c3b66a n/a (/tmp/.mount_LBRY*/lbry + 0x1c9366a)
- On tab of watched content, it does not add new videos automatically, have to switch to other tab and back
- lbry-desktop Error: write EPIPE on archlinux
- Add picture-in-picture mode (or just allow right-clicking the video?)
- An ability to download into folders based on channel/options to prefix-name downloads based on metadata
- LBRY app error on startup: Wallet server took a bit too long to respond HOT 6
- [MacOS] The Wallet Server Took A Bit Too Long. HOT 2
- Add support for secure connection to hub HOT 1
- Unmaintained HOT 3
- How to persist fullscreen mode in browser like youtube.com playlist does?
- MacOS: The hyperlink to sign the petition for crypto sends to a broken website
- Change from Google reCaptcha to something more private
- the transaction was rejected by network rules.\n\nTX rejected: orphan transaction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lbry-desktop.