ipfs / ipfs-desktop

An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
https://docs.ipfs.tech/install/ipfs-desktop/
MIT License
5.99k stars 863 forks source link

ipfs-desktop on Windows always errors, never starts ipfs on login #2232

Closed IngwiePhoenix closed 2 years ago

IngwiePhoenix commented 2 years ago

Describe the bug I have had the IPFS Desktop installed for a while, and was wondering how I could make it start IPFS on login. Turns out that this is supposed to be an actual feature. Well, it never worked unless I manually started the daemon. Meaning, that IPFS Desktop on my Windows maschine has thus far never brought up IPFS itself ever.

To Reproduce I honestly wish I knew what led to this bug. All I did was to install it via Chocolatey and whilst installing an update, I selected "Only for myself".

Expected behavior I expected to have an IPFS node running whenever I log into my Windows.

Screenshots None, except the "IPFS has errored" message.

Additional context None that comes to mind.

error.log

welcome[bot] commented 2 years 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.

SgtPooki commented 2 years ago

@IngwiePhoenix Thanks for bringing this to our attention. Could you also attach the combined.log file?

It looks like you're on the latest version of IPFS desktop, so that's great. However, it sounds like you're saying that when you start IPFS Desktop, you have to start the ipfs daemon manually, or is it that you need to start the IPFS Desktop application manually?

IPFS Desktop is supposed to enable launch on startup automatically, as you can see at https://github.com/ipfs/ipfs-desktop/blob/e16b1e7374b0d614c4bd2416b7b75cd58f45d85e/src/auto-launch.js#L86. We should be able to see what's happening once we get your combined.log file.

Is IPFS Desktop listed as a startup app? Could you share a screenshot showing as much? Or you could provide the full terminal output of running either of the below commands:

Windows cmd/batch

wmic startup get caption,command

Powershell

Get-CimInstance Win32_StartupCommand | Select-Object Name, command, Location, User | Format-List 

If IPFS Desktop is not listed there, you may need to add it to your list of startup applications manually for now.

IngwiePhoenix commented 2 years ago

you have to start the ipfs daemon manually

Yes - unless I do that, IPFS Desktop stays in the "Errord" state.

Is IPFS Desktop listed as a startup app

You probably mean this?

image

This is from the task manager.

Full version ![image](https://user-images.githubusercontent.com/2893716/186003002-cb3254b2-e7d4-4a9c-9069-66e5b3b2c953.png)
Command output ``` Name : Synapse3 command : C:\Program Files (x86)\Razer\Synapse3\WPFUI\Framework\Razer Synapse 3 Host\Razer Synapse 3.exe /StartMinimized Location : HKU\S-1-5-18\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : NT-AUTORITÄT\SYSTEM Name : Discord command : Discord.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Mailspring command : Mailspring.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Playnite command : Playnite.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Proton Mail Bridge command : Proton Mail Bridge.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Sengi command : Sengi.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : ShareX command : ShareX.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Spotify command : Spotify.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : TweetDeck command : TweetDeck.lnk Location : Startup User : BIGBOI\Ingwie Phoenix Name : Opera GX Stable command : C:\Users\Ingwie Phoenix\AppData\Local\Programs\Opera GX\launcher.exe Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Steam command : "C:\Program Files (x86)\Steam\steam.exe" -silent Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Synapse3 command : C:\Program Files (x86)\Razer\Synapse3\WPFUI\Framework\Razer Synapse 3 Host\Razer Synapse 3.exe /StartMinimized Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Spotify command : C:\Users\Ingwie Phoenix\AppData\Roaming\Spotify\Spotify.exe --autostart --minimized Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Nextcloud command : C:\Program Files\Nextcloud\nextcloud.exe Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Opera GX Browser Assistant command : C:\Users\Ingwie Phoenix\AppData\Local\Programs\Opera GX\assistant\browser_assistant.exe Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Discord command : C:\Users\Ingwie Phoenix\AppData\Local\Discord\Update.exe --processStart Discord.exe Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Parsec.App.0 command : C:\Program Files\Parsec\parsecd.exe app_silent=1 Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Argus Monitor command : "C:\Program Files (x86)\ArgusMonitor\ArgusMonitor.exe" Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : EpicGamesLauncher command : "C:\Program Files (x86)\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe" -silent Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : io.ipfs.desktop command : C:\Users\Ingwie Phoenix\AppData\Local\Programs\IPFS Desktop\IPFS Desktop.exe Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : MicrosoftEdgeAutoLaunch_22A75F1F69D0B528A6990D6007504705 command : "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --no-startup-window --win-session-start /prefetch:5 Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Element command : "C:\Users\Ingwie Phoenix\AppData\Local\element\update.exe" --processStart "Element.exe" --process-start-args "--hidden" Location : HKU\S-1-5-21-3733669178-3936896747-1496313799-1001\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : BIGBOI\Ingwie Phoenix Name : Synapse3 command : C:\Program Files (x86)\Razer\Synapse3\WPFUI\Framework\Razer Synapse 3 Host\Razer Synapse 3.exe /StartMinimized Location : HKU\.DEFAULT\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : .DEFAULT Name : Cloudflare WARP command : C:\PROGRA~1\CLOUDF~1\CLOUDF~1\CLOUDF~1.EXE Location : Common Startup User : Public Name : KDE Connect command : C:\PROGRA~1\KDECON~1\bin\KDECON~4.EXE Location : Common Startup User : Public Name : RustDesk Tray command : C:\PROGRA~1\RustDesk\RustDesk.exe --tray Location : Common Startup User : Public Name : SecurityHealth command : %windir%\system32\SecurityHealthSystray.exe Location : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : Public Name : SteelSeriesGG command : "C:\Program Files\SteelSeries\GG\SteelSeriesGG.exe" -dataPath="C:\ProgramData\SteelSeries\GG" -dbEnv=production -auto=true Location : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : Public Name : Zune Launcher command : "C:\Program Files\Zune\ZuneLauncher.exe" Location : HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run User : Public ```

And, here is the combined.log :) combined.log

SgtPooki commented 2 years ago

Thanks for providing the combined.log. It looks like this code is being called multiple times, which means the configuration isn't being saved properly. We will need to investigate this further.

Steps to troubleshoot:

SgtPooki commented 2 years ago

@IngwiePhoenix we don't have the bandwidth to investigate this further at this moment but if you can provide further information so it can be looked into when someone has time that would be very helpful.

github-actions[bot] commented 2 years ago

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.