Skip to content
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

Unable to use GUI after upgrade to 2.1.7.0, cli works fine #5376

Closed
2 tasks done
marwatk opened this issue Dec 26, 2019 · 37 comments
Closed
2 tasks done

Unable to use GUI after upgrade to 2.1.7.0, cli works fine #5376

marwatk opened this issue Dec 26, 2019 · 37 comments

Comments

@marwatk
Copy link

marwatk commented Dec 26, 2019

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: 3DEDD9D6-5E87-4BE9-A05C-89744FFEF0E1/20191226170945

Expected behavior

Able to view version in Docker -> About Docker Desktop
Able to adjust settings in Docker -> Settings
Able to run diagnostics from GUI
Able to reset docker in Troubleshooting

Actual behavior

About Docker Desktop dialog shows but all fields are blank
Settings window continuously spins with "Docker updating" in the status bar
Reset/Run Diagnostics both clickable but don't do anything

Information

  • Is it reproducible? Yes
  • Is the problem new? Yes
  • Did the problem appear with an update? Yes
  • Windows Version: Win 10 Enterprise 1809 (17763.914)
  • Docker Desktop Version: 2.1.7.0 and 2.2.0.0
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Steps to reproduce the behavior

I attempted to switch to Edge via the GUI but the installer would always just disappear without completing the upgrade. No errors presented. I downloaded the Edge installer and it successfully upgraded to Edge release. After the upgrade, however, I'm unable to view the GUI at all. I tried clearing my %USERPROFILE%\.docker folder but experienced the same behavior. I'm able to use docker from the CLI just fine, I just can't use the GUI to adjust settings or perform any actions.

@mat007
Copy link
Member

mat007 commented Dec 27, 2019

Maybe similar to #5326, can you check if you have any environment variable defined which starts with DOCKER_ possibly DOCKER_CERT_PATH pointing to a non-existing location?

@marwatk
Copy link
Author

marwatk commented Dec 27, 2019

Nope, no environment variables defined that start with DOCKER at all.

@mat007
Copy link
Member

mat007 commented Dec 28, 2019

Would you mind installing this internal build https://download-stage.docker.com/win/edge/41684/Docker%20Desktop%20Installer.exe which adds some logging in case of error when populating the menu?
After triggering the Settings for instance can you look in %LOCALAPPDATA%\Docker\log.txt to see if you have any error being logged near the end of the file?

@marwatk
Copy link
Author

marwatk commented Dec 30, 2019

Here's the log. I clicked on the settings menu at [08:41:09.670][SegmentApi ][Info ] Usage statistic: actionMenuSettings. Let me know if I can provide anything else.

log - Copy.txt

@twistezo
Copy link

I have the same problem as author.

  • Windows 10 Pro 2004 build 19041.1 (slow ring)
  • WSL 2.

I'm using Enable the experimental WSL 2 based engine option.

Temporarily solution for install working latest version

  1. Remove Docker with its remains and restart system. Note that without removing these remains or without system restart the next fresh install will have the same loop with "Docker updating" at down-left corner of Docker GUI.
  2. Install Desktop Edge 2.1.7.0.
  3. Don't exit Docker. After this you will have looped updating info and Docker will be working only on Windows side, not under WSL. I checked what with go to sleep when using laptop, and after sleep Docker works fine. Also tried to uncheck option "Automatically check for updates" but without success.

Remains:

C:\Program Files\Docker
C:\ProgramData\DockerDesktop
C:\Users\[USERNAME]\.docker
C:\Users\[USERNAME]\AppData\Local\Docker
C:\Users\[USERNAME]\AppData\Roaming\Docker
C:\Users\[USERNAME]\AppData\Roaming\Docker Desktop

@marwatk
Copy link
Author

marwatk commented Jan 21, 2020

FWIW the issue persists in 2.2.0.0.

@bbomgardner
Copy link

I have this same issue. Before when the new settings UI was in Edge, now with 2.2.0.0.

Clearing the paths listed by @twistezo did not seem to work for me. I have also followed these steps but I'm still missing something when performing the uninstall or there is another problem with my machine that I have yet to find.

❯ tail -1 $env:localappdata/docker/log.txt
[16:58:33.269][SegmentApi        ][Info   ] Usage statistic: actionMenuSettings

❯ cat  $env:localappdata/docker/log.txt | grep -iE "err|fail"
[16:30:11.319][PowerShell        ][Info   ] Run script with parameters: -Stop True -VmName DockerDesktopVM -SwitchName DockerNAT -Verbose True -ErrorAction Stop
[16:30:15.015][PowerShell        ][Info   ] Run script with parameters: -Create True -VmName DockerDesktopVM -VhdPathOverride C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx -VhdSize 68719476736 -SwitchSubnetAddress 10.0.75.0 -SwitchSubnetMaskSize 28 -PreferredIPAddress  -CPUs 2 -Memory 2048 -IsoFile C:\Program Files\Docker\Docker\resources\docker-desktop.iso -SwitchName  -Verbose True -ErrorAction Stop
[16:30:21.775][PowerShell        ][Info   ] Run script with parameters: -Start True -VmName DockerDesktopVM -IsoFile C:\Program Files\Docker\Docker\resources\docker-desktop.iso -confIsoFile C:\ProgramData\DockerDesktop\tmp-d4w\config.iso -VhdPathOverride C:\ProgramData\DockerDesktop\vm-data\DockerDesktop.vhdx -DockerIsoFile C:\Program Files\Docker\Docker\resources\docker.iso -Verbose True -ErrorAction Stop
[16:30:22.034][VpnKit            ][Error  ] vpnkit.exe: Starting to watch : EINVAL
[16:30:22.034][VpnKit            ][Error  ] vpnkit.exe: Failed to watch hosts file : invalid argument
[16:30:22.034][VpnKit            ][Error  ] vpnkit.exe: While watching /etc/resolv.conf: ENOENT
Binary file (standard input) matches

@marwatk
Copy link
Author

marwatk commented Jan 21, 2020

I'm still using WSL 1 (on 1809), so I don't think it's necessarily WSL related.

@marwatk
Copy link
Author

marwatk commented Jan 21, 2020

I broke down and tried twistezo's steps and still have the issue after a wipe/reboot/fresh install but now I don't have the port exposed and can't re-enable it via the GUI (I'll have to figure out how to edit settings in the files).

I went further and removed all Docker related keys from the registry and found a few files it left around. I was hopeful when I found and deleted C:\Windows\System32\config\systemprofile\AppData\Roaming\Docker\settings.json. But after all that the issue persists.

@bbomgardner
Copy link

As a note, I am unable to perform any action within the menu (including diagnostics /reset) with this issue. What is the correct way to generate a diagnostics upload + ID from the CLI?

2020-01-21_19-15-23

@simonferquel
Copy link

@marwatk I had a look at your logs and have a better understanding of what is happening. The backend actually runs just fine, but for some reason, the UI fails to connect to the internal docker desktop API.
The bad news, is that we have currently no idea why it could not connect. Do you have per-any chance a 3rd party antivirus or something that may block named-pipe connections ?

@marwatk
Copy link
Author

marwatk commented Jan 22, 2020

@simonferquel The answer is all them... all the antivirus. Carbon Black (though in report-only mode), Symantec Endpoint protection (but disabling doesn't help), and Global Protect VPN that blocks split tunneling. And I'm sure a few I'm unaware of.

This only started happening with the latest GUI, however. I was running just fine before that. And if I manually update settings.json I can use docker just fine (including the new shared folders), doesn't that communicate over named pipes, too?

But I have a coworker running the a similar build (he's on Cisco AnyConnect and 1709, but the same rules apply with split tunneling) and he's had no issues.

@simonferquel
Copy link

The old UI was running in the same process as the systray and did not use named pipe connections. The new one does. I wonder if one of the antivirus somehow changes default namedpipe access rights (I don't know if it is even possible, and I can't find how it could be a good idea)

@bbomgardner
Copy link

AV would probably make the most sense? My coworker is also experiencing this exact issue with 2.2.0.0 and we both are running ESET Endpoint Security 6.5.2118.0 on 1809. VPN is Junos Pulse and I believe split-tunneling is enabled. I will discuss this with our network and security team tomorrow and report back what we find out.

@twistezo
Copy link

Anti-virus or firewall are not the cause because I had this problem using only built-in Windows 10. The weird thing is that the problem itself disappeared after cleaning and reinstalling Docker the third or fourth time.

@gillesdouaire
Copy link

gillesdouaire commented Jan 29, 2020

blocked on the same issue... I was avoiding the edge channel because of it, and now, the stable has the same issue. not updating is not a solution,..,...................

@gillesdouaire
Copy link

I reported the issue MONTHS ago, of course, no one worked on it. #4351

@acheaito
Copy link

Blocked on the same issue as well. We’re on Windows 10 Enterprise Build 1809.

@twistezo
Copy link

twistezo commented Jan 30, 2020

I found cause and solution. It's weird but when you open Docker Desktop from Windows taskbar where you usually pin its it goes to updating loop. But when you run it from Windows Search (win + S) by typing its name it will run normally and its icon goes to Windows notification bar 😄

@mikeparker
Copy link
Contributor

Docker Desktop is more than just the front end executable. If you pin the front end executable it won't start the back end. Please make sure if you pin Docker Desktop to your taskbar, you're pinning the boot sequence executable C:\Program Files\Docker\Docker\Docker Desktop.exe NOT the front end C:\Program Files\Docker\Docker\frontend\Docker Desktop.exe

@simonferquel
Copy link

Wow @twistezo I never thought anyone would do that ! thanks for the heads up.

@gillesdouaire
Copy link

Unfortunately, running Docker Desktop from Windows Search (win + S) does not solve it for me.

@twistezo
Copy link

@gillesdouaire like @mikeparker said, run Docker from C:\Program Files\Docker\Docker\Docker Desktop.exe

@gillesdouaire
Copy link

Yes, that's what I did, unfortunately does not work, still have the infinite updating spinner on the UI

@acheaito
Copy link

Same. The workaround didn't work for me either.

@marwatk
Copy link
Author

marwatk commented Jan 30, 2020

Workaround did not work for me either.

@Antiavanti
Copy link

The same issue, version 2.2.0.0. I downgraded to 2.1.0.5 😢
Workaround is not applicable, docker was already started from the right Docker Desktop.exe.

@twistezo
Copy link

Maybe you guys have running any Docker app or Docker service in background?

@mat007
Copy link
Member

mat007 commented Jan 31, 2020

@twistezo the OP reported that the command line works fine, so the application must be running correctly. There is definitely something else going on there.

@gillesdouaire
Copy link

for me, it's finally fixed with 2.2.0.3 (42716) - stable

@bbomgardner
Copy link

Same. Looks like 2.2.0.3 fixed it. ¯_(ツ)_/¯

@gillesdouaire
Copy link

On edge channel, 2.2.1.0 also fixes it.

@acheaito
Copy link

Same. 2.2.1.0 edge fixed it. Haven't tried stable.

@mat007
Copy link
Member

mat007 commented Feb 12, 2020

Stable 2.2.0.3 and Edge 2.2.1.0 have basically the same content, so either should fix it.
I’ll go ahead and close this issue then, thanks!

@mat007 mat007 closed this as completed Feb 12, 2020
@darron1217
Copy link

darron1217 commented May 12, 2020

@mat007
Workaround did not work for me either. (on 2.3.0.2)
I guess it's because of wsl2.
Would you reopen this issue?

@mat007
Copy link
Member

mat007 commented May 12, 2020

@darron1217 can you please open a fresh ticket with diagnostics if possible?

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jul 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests