ipfs / ipfs-webui

A frontend for an IPFS Kubo and IPFS Desktop
https://webui.ipfs.io
MIT License
1.56k stars 489 forks source link

how can i fix it? #2187

Open Phrixus2023 opened 11 months ago

Phrixus2023 commented 11 months ago

微信截图_20231209032454

welcome[bot] commented 11 months ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

whizzzkid commented 11 months ago

Oh, @Phrixus2023 this is weird looks like an issue with webui, can you please describe what you were trying to do when this happened? Can you please attach additional logs that can be found here?

Also, did you try reinstalling ipfs-desktop? did that help?

Phrixus2023 commented 11 months ago

Oh, @Phrixus2023 this is weird looks like an issue with webui, can you please describe what you were trying to do when this happened? Can you please attach additional logs that can be found here?

Also, did you try reinstalling ipfs-desktop? did that help?

First of all I am using IPFS in China, I want to try to use IPFS for resource exchange in China, the frequency of this kind of problem is very high, usually after the program is run and open the node page to stay for a few minutes will inevitably show up this error page, after restarting the node page can be displayed normally, but after a few minutes it will show up the error page again.

Phrixus2023 commented 11 months ago

Sorry, I just realized I posted in the wrong section, I'm all about ipfs-desktop with these questions!

Phrixus2023 commented 11 months ago

error logs: 2023-12-07T20:57:27.841Z error: [i18n] language update failed 2023-12-07T20:59:36.989Z error: [i18n] init error 2023-12-07T20:59:36.989Z error: Error: ENOENT, assets\locales\zh.json not found in C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar 2023-12-08T20:59:58.277Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-08T20:59:58.279Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-09T17:24:10.891Z error: [i18n] init error 2023-12-09T17:24:10.891Z error: Error: ENOENT, assets\locales\zh.json not found in C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar 2023-12-09T17:24:32.178Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-09T17:24:32.179Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-10T17:24:32.252Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-10T17:24:32.252Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-11T08:27:24.355Z error: [i18n] init error 2023-12-11T08:27:24.355Z error: Error: ENOENT, assets\locales\zh.json not found in C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar 2023-12-11T08:27:45.545Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-11T08:27:45.546Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-12T07:27:25.170Z error: [i18n] init error 2023-12-12T07:27:25.171Z error: Error: ENOENT, assets\locales\zh.json not found in C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar 2023-12-12T07:27:35.314Z error: Error: Error: net::ERR_CONNECTION_RESET at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-12T07:27:35.314Z error: [updater] Error: net::ERR_CONNECTION_RESET 2023-12-13T11:55:56.084Z error: [i18n] init error 2023-12-13T11:55:56.084Z error: Error: ENOENT, assets\locales\zh.json not found in C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar 2023-12-13T11:56:17.633Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-13T11:56:17.633Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-14T23:56:16.985Z error: Error: Error: net::ERR_CONNECTION_TIMED_OUT at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7169) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-14T23:56:16.986Z error: [updater] Error: net::ERR_CONNECTION_TIMED_OUT 2023-12-15T00:22:11.343Z error: [ipfsd] start daemon FetchError: request to http://0.0.0.0:5001/api/v0/id failed, reason: net::ERR_ADDRESS_INVALID at ClientRequest. (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\electron-fetch\lib\index.js:1391:14) at ClientRequest.emit (node:events:526:28) at ClientRequest._die (node:electron/js2c/browser_init:101:8492) at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:7229) at SimpleURLLoaderWrapper.emit (node:events:526:28) 2023-12-15T00:38:39.361Z error: [web ui] render-process-gone: oom, code: -536870904 2023-12-15T06:48:31.532Z error: [ipfsd] start daemon HTTPError: Bad Gateway at Object.errorHandler [as handleError] (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\ipfs-http-client\cjs\src\lib\core.js:84:15) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Client.fetch (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\ipfs-utils\src\http.js:161:9) at async Object.id (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\ipfs-http-client\cjs\src\id.js:12:17) at async Daemon.start (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\node_modules\ipfsd-ctl\src\ipfsd-daemon.js:268:16) at async startIpfsWithLogs (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:172:5) at async startDaemon (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:216:27) at async startIpfs (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:49:17) at async restartIpfs (C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:103:5) at async C:\Users\hatm1\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:36:5

whizzzkid commented 10 months ago

Thanks for this @Phrixus2023 looks like the language translation is trying to load assets\locales\zh.json whereas that should not happen, because: https://github.com/ipfs/ipfs-desktop/blob/bf7ffed5900e7f3f5848bf55ed1d040facda8c7e/src/i18n.js#L22L28 should override this. zh.json does not exist: https://github.com/ipfs/ipfs-desktop/tree/bf7ffed5900e7f3f5848bf55ed1d040facda8c7e/assets/locales

This looks like a bug but I could not reproduce it, maybe @SgtPooki can investigate this.