-
Notifications
You must be signed in to change notification settings - Fork 864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPFS Desktop stuck on "IPFS is Starting" #1723
Comments
Thank you for reporting this. The core team is temporarily in a minimal state due to winter holidays but will add to triage upon return - in the meantime you may also wish to repost to https://discuss.ipfs.io/ for community support. Question: Did you originally install Desktop for all users of this machine? Are you running as a different user than the one that installed Desktop? |
I installed it via chocolatey, so I'm not sure if it's installed for all users or not... My machine only has one user on it though. |
@rafaelramalho19 - are you able to investigate further on your Windows machine? Thank you. |
@jjv360 I installed ipfs-desktop through chocolatey and it works fine, I tried multiple aways to downgrade and upgrade to try and reproduce your error but I'm unable to. Would you mind trying a fresh install of ipfs-desktop and see if that helps? |
Having this happen on macOS using brew install --cask ipfs : 0.13.2 |
Confirmed it's also the case with the DMG installer. |
@jjv360 @NorseGaud sadly we are unable to reproduce, need more information. Did you do any of below by any chance?
If possible:
|
Sadly Desktop logs did not help. @NorseGaud Are you able to Quit IPFS Desktop and then start it in terminal, to see if there is any output from go-ipfs daemon that does not end up in logs? I suspect there is an issue related to daemon startup. Not sure how to do it (not a macOS user), perhaps something like:
You should see startup + then logs from go-ipfs similar to this:
|
Moving my comments to #1730 |
@jjv360 - per @rafaelramalho19's comment above, would you mind trying a fresh install of ipfs-desktop and see if that helps? |
Note that #1734 is a duplicate error under Windows. |
Sorry for the delay! I have uninstalled ipfs-desktop via chocolatey and installed 0.13.2, 0.13.1, 0.13.0 versions manually and they all get stuck the same way. I don't have a IPFS_PATH environment variable set. I deleted the logs and then started the app again, and when it got stuck error.log was empty, and combined.log showed this:
Pressing "Check for Updates" still crashes with that |
I've tried the same install process (via chocolatey) on a virtual machine and it worked fine, so it's definitely something wrong on my machine only... However I did notice that if you click Check for Updates during the 5 or so seconds that "IPFS is Starting" you do get the same crash. Is there a way to see the full commandline to ipfs.exe that IPFS Desktop is trying to run? Then I can try run it manually... I don't even see ipfs.exe in task manager while it's in this state. I tried running this but it worked fine:
And here's my config (which I haven't changed): {
"ipfsConfig": {
"type": "go",
"path": "C:\\Users\\jjv36\\.ipfs",
"flags": [
"--migrate",
"--enable-gc",
"--routing",
"dhtclient"
],
"keysize": 2048
},
"language": "en-US",
"experiments": {
"npmOnIpfs": false
},
"__internal__": {
"migrations": {
"version": "6.0.0"
}
},
"openWebUIAtLaunch": false,
"daemonConfigRevision": 1,
"checkedCorsConfig": true,
"window": {
"width": 1441,
"height": 901
},
"ipfsOnPath": false
} |
I just noticed |
I have encountered the same issue. The desktop app stuck at the starting loop unless I manually start an IPFS daemon at CLI. It appears the desktop app fails to invoke and spawn an ipfs.exe process. I have cloned the repo and tried to see if the app has failed to locate the binary. The answer is negative. The app does successfully locate the bundled binary. My current bet is that the P.S. My affected system is Windows 10 Pro 64bit 20H2 19042.746. |
https://github.com/ipfs-shipyard/ipfs-desktop/blob/6dbfa13bfa0f80c490696818bbb5c4c42aeb22fe/src/index.js#L72 The startup process is stuck at the |
Okay further investigation suggests it is a rather complicated matters as there are a couple of things interleaving with each other... Before the Things was first stuck at this The culprit is the The request has no timeout explicitly set. There is supposed to be a default timeout value of 120,000ms (i.e. 2 minutes) in Node 12.14.1 that comes with Electron 9 where the request can resort to (P.S. This default value was dropped in Node 13. So it is no longer the case in Electron 10 which comes with Node 14. See: nodejs/node#27558). If there happens to be any service other than ipfs that listens to the API port (5001) but not replying to the request (properly a la HTTP). It should take the whole 2 minutes before the request timing out. But in my case the promise never gets resolved. The startup process is stuck there. So I tried to get this fixed by adding back the timeout property at the request option and the listener for timeout event. But this is not the end. Continue next. |
Okay. Now, with the I clicked the "Use port 5002 instead". But the app is still stuck at the startup process. So our journey continues... This time the program is stuck at the The method first invokes a I am not exactly sure about the lifecycle of this |
@jjv360 I think you can try checking if the port 5001 is occupied by other application. If yes, maybe you can try changing the |
Yes, thank you so much! I have AirServer running which also uses port 5001, if I close that then IPFS Desktop starts without any issues. I changed those files to port I did have to change IPFS Companion's settings to that port as well (the Chrome extension) but it seems to be working fine... |
@UnKnoWn-Consortium Thanks for stepping in here. Will close this issue, but feel free to re-open if necessary. |
@jessicaschilling I think you had better take a look at the two issues I identified. Otherwise they will keep coming back and haunt other users. They are specifically:
Thanks. |
Apologies - you got there before I did. Thanks for the tidy summarization. Issue is #1749. |
This should mitigate problem described in #1723 (comment) and help with first point of #1749 License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
This should mitigate problem described in #1723 (comment) and help with the first point of #1749
It never gets past IPFS is Starting for me, unless I run
ipfs daemon
in a terminal window first...This error also happens when pressing Check for Updates, while in this "IPFS is Starting" stuck state...
Specifications
Error
The text was updated successfully, but these errors were encountered: