apotdevin / thunderhub

ThunderHub LND Lightning Node Manager in your Browser
https://www.thunderhub.io/
MIT License
418 stars 89 forks source link

Thunderhub crashes after login #565

Open Wired4ncer opened 1 year ago

Wired4ncer commented 1 year ago

With newest version, Thunderhub doesn't load when I input password in. It reloads back to login page. Log does show error.

5.15.0-82-generic #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Expected behavior Login and open Thub web interface.

Actual behavior Page reloads back to login window.

Log details:

Started Thunderhub.
: (node:1318006) [DEP0123] DeprecationWarning: Setting the TLS ServerName to an IP address is not permitted by RFC 6066. This will be ignored in a future version.
: (Use `node --trace-deprecation ...` to show where the warning was created)
: upstream image response failed for /assets/amboss_icon.png TypeError: fetch failed
:     at Object.fetch (/home/thunderhub/thunderhub/node_modules/next/dist/compiled/undici/index.js:1:26669)
:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
:     at async invokeRequest (/home/thunderhub/thunderhub/node_modules/next/dist/server/lib/server-ipc/invoke-request.js:17:12)
:     at async /home/thunderhub/thunderhub/node_modules/next/dist/server/next-server.js:359:35
:     at async imageOptimizer (/home/thunderhub/thunderhub/node_modules/next/dist/server/image-optimizer.js:537:13)
:     at async cacheEntry.imageResponseCache.get.incrementalCache (/home/thunderhub/thunderhub/node_modules/next/dist/server/next-server.js:598:60)
:     at async /home/thunderhub/thunderhub/node_modules/next/dist/server/response-cache/index.js:99:36 {
:   cause: Error: connect ECONNREFUSED 127.0.0.1:3000
:       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16) {
:     errno: -111,
:     code: 'ECONNREFUSED',
:     syscall: 'connect',
:     address: '127.0.0.1',
:     port: 3000
:   }
: }
: ImageError: "url" parameter is valid but upstream response is invalid
:     at imageOptimizer (/home/thunderhub/thunderhub/node_modules/next/dist/server/image-optimizer.js:549:19)
:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
:     at async cacheEntry.imageResponseCache.get.incrementalCache (/home/thunderhub/thunderhub/node_modules/next/dist/server/next-server.js:598:60)
:     at async /home/thunderhub/thunderhub/node_modules/next/dist/server/response-cache/index.js:99:36 {
:   statusCode: 500
: }
MButcho commented 1 year ago

I have the same issue regarding "upstream image response failed for /assets/amboss_icon.png TypeError: fetch failed". As far as I can see, this issue in my environment is caused by ThunderHub connecting to a wrong port. I have different port defined in .env, however it is trying to fetch from 3000: "[upstream image response failed for /assets/amboss_icon.png TypeError: fetch failed](cause: Error: connect ECONNREFUSED 127.0.0.1:3000)"

Wired4ncer commented 10 months ago

This error is happening for me again in the newest version 0.13.29 Was there any reason it started to happen again? Anyone found solution?