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

Permissions Issues With Docker Compose File With Attached Volumes From A Dev Drive Volume #1805

Closed
GingerGraham opened this issue Nov 1, 2023 · 3 comments
Assignees
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-Dev-Drive Related to Dev Drive features within Dev Home Issue-Bug Something isn't working or needs investigation Priority-2 Resolution-Duplicate This issue or pull request already exists Type-External Related to a feature outside this repository

Comments

@GingerGraham
Copy link

Dev Home version

0.601.297.0

Windows build number

10.0.25982.1000

Other software

OS Build Version: 10.0.25982.1000.amd64fre.rs_prerelease.231020-1353
.NET Version: .NET 6.0.23

Steps to reproduce the bug

Using a Jekyll website with the jekyll/jekyll:stable or latest container image and mounting a local directory for /srv into the container when running jekyll serve the container errors and exits with a Operation not permitted @ apply2files error (Errno: EPERM)

Expected result

Jekyll launches and runs normally

Actual result

2023-11-01 16:47:59

docker-grahamwattsweb-1
�[31m ------------------------------------------------�[0m

2023-11-01 16:47:59

docker-grahamwattsweb-1
�[31m Jekyll 4.3.2 Please append --trace to the serve command �[0m

2023-11-01 16:47:59

docker-grahamwattsweb-1
�[31m for any additional information or backtrace. �[0m

2023-11-01 16:47:59

docker-grahamwattsweb-1
�[31m ------------------------------------------------�[0m

2023-11-01 16:47:59

docker-grahamwattsweb-1
/usr/gem/gems/jekyll-4.3.2/lib/jekyll/static_file.rb:201:in `utime': Operation not permitted @ apply2files - /srv/jekyll/_site/69dbd32e0e414e4fbf22acef967a9228.txt (Errno::EPERM)

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/static_file.rb:201:in `copy_file'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/static_file.rb:107:in `write'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:231:in `block in write'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:364:in `block in each_site_file'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:364:in `each'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:364:in `each_site_file'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:230:in `write'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/site.rb:82:in `process'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/command.rb:28:in `process_site'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:65:in `build'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/commands/build.rb:36:in `process'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `each'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/gem/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/local/bundle/bin/jekyll:27:in `load'

2023-11-01 16:47:59

docker-grahamwattsweb-1
from /usr/local/bundle/bin/jekyll:27:in `

'

However running the same docker compose from the same repo cloned locally to a non-Dev Drive launches normally. The issue only presents on a Dev Drive

Included System Information

Physical Memory: 31.73GB (13.14GB free)
Processor Architecture: x64

Included Extensions Information

Extensions:
Microsoft.Windows.DevHome_0.601.297.0_x64__8wekyb3d8bbwe
Microsoft.Windows.DevHomeGitHubExtension_0.600.283.0_x64__8wekyb3d8bbwe

@GingerGraham GingerGraham added the Issue-Bug Something isn't working or needs investigation label Nov 1, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label Nov 1, 2023
@krschau krschau added the Area-Machine-Config Related to the machine configuration feature label Nov 1, 2023
@kanismohammed kanismohammed added Area-Machine-Config-Install Related to app installation in machine config flow Priority-2 and removed Needs-Triage New issue that the core contributors need to triage labels Nov 1, 2023
@nesherhh
Copy link

Have same issue with PostgreSQL.

chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted

docker/for-win#13613
docker/for-win#13877

@AmelBawa-msft AmelBawa-msft added Area-Machine-Config-Dev-Drive Related to Dev Drive features within Dev Home and removed Area-Machine-Config-Install Related to app installation in machine config flow labels Apr 1, 2024
@kanismohammed kanismohammed added the Type-External Related to a feature outside this repository label Apr 16, 2024
@AdamBraden
Copy link
Collaborator

Likely a dupe of
microsoft/WSL#10792

Copy link
Contributor

We've identified this as a duplicate of another one that already exists. This specific instance is being closed in favor of tracking the concern over on the the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-Duplicate This issue or pull request already exists label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-Dev-Drive Related to Dev Drive features within Dev Home Issue-Bug Something isn't working or needs investigation Priority-2 Resolution-Duplicate This issue or pull request already exists Type-External Related to a feature outside this repository
Projects
None yet
Development

No branches or pull requests

6 participants