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

PostgreSQL is not starting in LCOW mode #3267

Open
FeodorFitsner opened this issue Jan 2, 2020 · 9 comments
Open

PostgreSQL is not starting in LCOW mode #3267

FeodorFitsner opened this issue Jan 2, 2020 · 9 comments

Comments

@FeodorFitsner
Copy link
Member

Original report: https://help.appveyor.com/discussions/questions/43754-visual-studio-2019-docker-networking-issue
Workaround: docker/for-win#445 (comment)

icacls C:\ProgramData\docker\volumes /grant *S-1-5-83-0:"(OI)(CI)F" /T
@FeodorFitsner FeodorFitsner added this to the next vs2019 image update milestone Jan 2, 2020
@jetersen
Copy link

jetersen commented Jan 3, 2020

Even after applying the workaround and using a docker managed volume, I still have issues with spinning on gitlab on appveyor.

I'll try and provide a repro

@jetersen
Copy link

jetersen commented Jan 4, 2020

In my repro I cannot find the exact reason for gitlab container to report unhealthy.

https://ci.appveyor.com/project/casz/appveyor-gitlab-container-repro
https://github.com/casz/appveyor-gitlab-container-repro

Perhaps you have more luck testing / consuming the log on a VM directly

@FeodorFitsner
Copy link
Member Author

Provided build log is the successful one - I don't see any errors there. Could you please elaborate what should I look for?

@jetersen
Copy link

jetersen commented Jan 4, 2020

The build log is not accurate as the container still reported unhealthy.

locally the container spins up correctly.

@FeodorFitsner
Copy link
Member Author

Are you running the container locally in LCOW mode or on MobyLinuxVM?

@jetersen
Copy link

jetersen commented Jan 4, 2020

Locally I use MobyLinuxVM as I run on Windows 10.
Where LCOW mode was removed.

@FeodorFitsner
Copy link
Member Author

I mean your Docker Desktop is in Linux mode when you run GitLab container, right?

@jetersen
Copy link

jetersen commented Jan 4, 2020

Yes running docker desktop in linux mode when I launch GitLab container.

We are running the same test on GitHub actions on their ubuntu image with zero issues. Only reason we aren't using GitHub's windows image yet is they have not enabled LCOW nor provide a way to switch to Linux mode.

@FeodorFitsner
Copy link
Member Author

On AppVeyor you can switch Docker to Linux mode with Switch-DockerLinux cmdlet. Give it a try. LCOW mode is really unstable sometimes, especially for complex things.

@FeodorFitsner FeodorFitsner removed this from the next vs2019 image update milestone Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants