lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 413 forks source link

Blank content listings in app. #7242

Closed BloodyMess closed 3 years ago

BloodyMess commented 3 years ago

Bug No content is displayed in the tiles where they are normally listed. I've noticed that the desktop app has been getting slower and slower at showing content when starting up for a week or so. Now there isn't any content showing up at all in the top section. Some content is eventually listed after a long delay in the "CableTube Escape Artists" section, but it cannot be viewed or downloaded. I have left the desktop app running for hours, but listings and accessibility never improves beyond this anymore.

I have tried the remedies suggested on the LBRY Startup Troubleshooting page, but they did no good.

To Reproduce Steps to reproduce the behavior:

  1. Launch LBRY desktop
  2. Wait
  3. See the error: Lots of blank tiles where there should be content listed.

Expected behavior I expect the content listings to be populated with entries instead of blank placeholders.

Screenshots Screenshot from 2021-10-10 15-52-01

System Configuration

LBRY Daemon: 0.99.0 LBRY App: 0.51.2 OS: elementaryOS 5.1.7 Hera (Linux-5.4.0-87-x86_64)

Additional context Here is a sample of the log file. There are more entries like these added every ten seconds or so:

2021-10-10 14:59:17,059 WARNING  lbry.wallet.network:83: Wallet server (spv14.lbry.com:50001) returned an error. Code: -32000 Message: query timed out
2021-10-10 14:59:17,060 ERROR    lbry.extras.daemon.daemon:701: error handling api request
Traceback (most recent call last):
  File "lbry/extras/daemon/daemon.py", line 693, in _process_rpc_call
  File "lbry/extras/daemon/daemon.py", line 2492, in jsonrpc_claim_search
  File "lbry/wallet/ledger.py", line 889, in claim_search
  File "lbry/wallet/ledger.py", line 772, in _inflate_outputs
  File "lbry/wallet/network.py", line 84, in send_request
  File "lbry/wallet/network.py", line 74, in send_request
  File "lbry/wallet/rpc/session.py", line 483, in send_request
lbry.wallet.rpc.jsonrpc.RPCError: (-32000, 'query timed out')

Here is the section of the log file for the latest startup:

2021-10-10 14:58:34,982 INFO     lbry.extras.daemon.daemon:471: RPC server listening on TCP 127.0.0.1:5279
2021-10-10 14:58:34,983 INFO     lbry.extras.daemon.daemon:481: media server listening on TCP 127.0.0.1:5280
2021-10-10 14:58:34,983 INFO     lbry.extras.daemon.components:74: Loading databases
2021-10-10 14:58:34,983 INFO     lbry.extras.daemon.components:77: db_revision file not found. Creating it
2021-10-10 14:58:34,983 INFO     lbry.wallet.database:438: connecting to database: /home/<username>/.local/share/lbry/lbrynet/lbrynet.sqlite
2021-10-10 14:58:34,984 INFO     lbry.extras.daemon.components:535: detecting external ip
2021-10-10 14:58:34,984 INFO     lbry.extras.daemon.exchange_rate_manager:215: Starting exchange rate manager
2021-10-10 14:58:37,986 WARNING  lbry.extras.daemon.components:465: upnp discovery failed: M-SEARCH for 192.168.1.254:1900 timed out
2021-10-10 14:58:37,987 ERROR    lbry.extras.daemon.components:552: failed to setup upnp
2021-10-10 14:58:40,688 ERROR    lbry.extras.daemon.exchange_rate_manager:96: Exchange rate error (BTCLBC from UPbit):
Traceback (most recent call last):
  File "lbry/extras/daemon/exchange_rate_manager.py", line 77, in get_rate
  File "lbry/extras/daemon/exchange_rate_manager.py", line 189, in get_rate_from_response
KeyError: 0
2021-10-10 14:58:43,225 INFO     lbry.extras.daemon.components:556: detected external ip using spv13.lbry.com fallback
2021-10-10 14:58:43,225 INFO     lbry.wallet.server.udp:200: closed udp spv server selection client
2021-10-10 14:58:43,225 INFO     lbry.extras.daemon.components:165: Starting wallet
2021-10-10 14:58:43,242 INFO     lbry.extras.daemon.components:271: start the dht
2021-10-10 14:58:43,243 INFO     lbry.extras.daemon.components:295: Started the dht
2021-10-10 14:58:43,243 INFO     lbry.wallet.database:438: connecting to database: /home/<username>/.local/share/lbry/lbryum/lbc_mainnet/blockchain.db
2021-10-10 14:58:43,245 INFO     lbry.dht.node:126: DHT node listening on UDP 0.0.0.0:4444
2021-10-10 14:58:43,870 INFO     lbry.wallet.network:229: 6 possible spv servers to try (9 urls in config)
2021-10-10 14:58:43,956 INFO     lbry.wallet.network:243: spv14.lbry.com:50001 has latency of 85.87ms (available: True, height: 1043218)
2021-10-10 14:58:43,970 INFO     lbry.wallet.network:243: spv16.lbry.com/spv17.lbry.com/spv19.lbry.com:50001 has latency of 100.11ms (available: True, height: 1043218)
2021-10-10 14:58:44,056 INFO     lbry.wallet.network:243: spv18.lbry.com:50001 has latency of 185.94ms (available: True, height: 1043218)
2021-10-10 14:58:44,075 INFO     lbry.wallet.network:243: spv15.lbry.com:50001 has latency of 205.1ms (available: True, height: 1043218)
2021-10-10 14:58:44,171 INFO     lbry.wallet.network:243: spv13.lbry.com:50001 has latency of 301.03ms (available: True, height: 1043218)
2021-10-10 14:58:46,870 INFO     lbry.wallet.network:250: 5/6 probed spv servers are accepting connections
2021-10-10 14:58:46,871 INFO     lbry.wallet.server.udp:200: closed udp spv server selection client
2021-10-10 14:58:46,991 WARNING  lbry.wallet.network:269: Connected to spv server spv14.lbry.com:50001
2021-10-10 14:58:47,164 INFO     lbry.wallet.network:296: subscribe to headers spv14.lbry.com:50001
2021-10-10 14:58:47,372 INFO     lbry.wallet.network:300: maintaining connection to spv server spv14.lbry.com:50001
2021-10-10 14:58:47,458 INFO     lbry.wallet.ledger:150: lbc_mainnet: added BlockHeightEvent(height=1043218, change=1) header blocks, final height 1043218
2021-10-10 14:58:47,543 INFO     lbry.wallet.ledger:354: Subscribing and updating accounts.
2021-10-10 14:58:47,543 INFO     lbry.wallet.ledger:464: Subscribe to 1 accounts
2021-10-10 14:58:47,767 INFO     lbry.wallet.ledger:495: subscribed to 29/29 addresses on 212.102.60.88:50001
2021-10-10 14:58:47,767 INFO     lbry.wallet.ledger:499: finished subscribing to 29 addresses on 212.102.60.88:50001
2021-10-10 14:58:48,400 INFO     lbry.wallet.ledger:495: subscribed to 15/15 addresses on 212.102.60.88:50001
2021-10-10 14:58:48,400 INFO     lbry.wallet.ledger:499: finished subscribing to 15 addresses on 212.102.60.88:50001
2021-10-10 14:58:48,463 INFO     lbry.wallet.ledger:912: Loaded account <note-i-removed-my-account-data-from-this-snippet-for-privacy> 
2021-10-10 14:58:48,463 INFO     lbry.extras.daemon.components:419: start blob server
2021-10-10 14:58:48,463 INFO     lbry.extras.daemon.components:359: Starting the file manager
2021-10-10 14:58:48,463 INFO     lbry.extras.daemon.components:318: Started blob announcer
2021-10-10 14:58:48,464 INFO     lbry.blob_exchange.server:176: Blob server listening on TCP 0.0.0.0:3333
2021-10-10 14:58:48,464 INFO     lbry.stream.stream_manager:134: Initializing 0 files
2021-10-10 14:58:48,464 INFO     lbry.stream.stream_manager:150: Started stream manager with 0 files
2021-10-10 14:58:48,464 INFO     lbry.extras.daemon.components:372: Done setting up file manager
2021-10-10 14:58:51,768 INFO     lbry.dht.protocol.routing_table:289: join buckets 1
2021-10-10 14:59:17,059 WARNING  lbry.wallet.network:83: Wallet server (spv14.lbry.com:50001) returned an error. Code: -32000 Message: query timed out
2021-10-10 14:59:17,060 ERROR    lbry.extras.daemon.daemon:701: error handling api request
Traceback (most recent call last):
  File "lbry/extras/daemon/daemon.py", line 693, in _process_rpc_call
  File "lbry/extras/daemon/daemon.py", line 2492, in jsonrpc_claim_search
  File "lbry/wallet/ledger.py", line 889, in claim_search
  File "lbry/wallet/ledger.py", line 772, in _inflate_outputs
  File "lbry/wallet/network.py", line 84, in send_request
  File "lbry/wallet/network.py", line 74, in send_request
  File "lbry/wallet/rpc/session.py", line 483, in send_request
lbry.wallet.rpc.jsonrpc.RPCError: (-32000, 'query timed out')
2021-10-10 14:59:27,061 WARNING  lbry.wallet.network:83: Wallet server (spv14.lbry.com:50001) returned an error. Code: -32000 Message: query timed out
2021-10-10 14:59:27,061 ERROR    lbry.extras.daemon.daemon:701: error handling api request
Traceback (most recent call last):
  File "lbry/extras/daemon/daemon.py", line 693, in _process_rpc_call
  File "lbry/extras/daemon/daemon.py", line 2492, in jsonrpc_claim_search
  File "lbry/wallet/ledger.py", line 889, in claim_search
  File "lbry/wallet/ledger.py", line 772, in _inflate_outputs
  File "lbry/wallet/network.py", line 84, in send_request
  File "lbry/wallet/network.py", line 74, in send_request
  File "lbry/wallet/rpc/session.py", line 483, in send_request
lbry.wallet.rpc.jsonrpc.RPCError: (-32000, 'query timed out')
2021-10-10 14:59:46,047 WARNING  lbry.wallet.network:83: Wallet server (spv14.lbry.com:50001) returned an error. Code: -32000 Message: query timed out
2021-10-10 14:59:46,047 ERROR    lbry.extras.daemon.daemon:701: error handling api request
Traceback (most recent call last):
  File "lbry/extras/daemon/daemon.py", line 693, in _process_rpc_call
  File "lbry/extras/daemon/daemon.py", line 2492, in jsonrpc_claim_search
  File "lbry/wallet/ledger.py", line 889, in claim_search
  File "lbry/wallet/ledger.py", line 772, in _inflate_outputs
  File "lbry/wallet/network.py", line 84, in send_request
  File "lbry/wallet/network.py", line 74, in send_request
  File "lbry/wallet/rpc/session.py", line 483, in send_request
lbry.wallet.rpc.jsonrpc.RPCError: (-32000, 'query timed out')
keikari commented 3 years ago

One hub-server has some issues. Temp fix

  1. Locate your lbrynet folder https://lbry.com/faq/lbry-directories
  2. In lbrynet folder open file daemon_settings.yml in any text editor
  3. Append these 2 lines to the file:
    lbryum_servers:
    - spv16.lbry.com:50001
  4. Save file and restart the app.
  5. It should work now
BloodyMess commented 3 years ago

That did it!

Thank you!