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

Dev Container初回起動時の所有権変更に失敗する #11492

Closed
mob-GitHub opened this issue Aug 8, 2023 · 1 comment
Closed

Dev Container初回起動時の所有権変更に失敗する #11492

mob-GitHub opened this issue Aug 8, 2023 · 1 comment
Labels
⚠️bug? This might be a bug

Comments

@mob-GitHub
Copy link

💡 Summary

Dev Container初回起動時に実行されるinit.shのsudo chown -R node /workspaceが失敗する

Related to #9917

🥰 Expected Behavior

sudo chown -R node /workspaceが正しく動作すること

🤬 Actual Behavior

Running the postCreateCommand from devcontainer.json...

[10901 ms] Start: Run in container: /bin/sh -c sudo chmod 755 .devcontainer/init.sh && .devcontainer/init.sh
+ sudo chown -R node /workspace
chown: changing ownership of '/workspace/.git/objects/pack/pack-9b19a78558558e974efcff369f9fadcd30dfc7dc.idx': Permission denied
chown: changing ownership of '/workspace/.git/objects/pack/pack-9b19a78558558e974efcff369f9fadcd30dfc7dc.pack': Permission denied
chown: changing ownership of '/workspace/.git/modules/fluent-emojis/objects/pack/pack-219ff9a5705732157039547d596844491c559f7d.pack': Permission denied
chown: changing ownership of '/workspace/.git/modules/fluent-emojis/objects/pack/pack-219ff9a5705732157039547d596844491c559f7d.idx': Permission denied
chown: changing ownership of '/workspace/.git/modules/misskey-assets/objects/pack/pack-c52fc23680e186e5a45c8ccb6da9332906971263.pack': Permission denied
chown: changing ownership of '/workspace/.git/modules/misskey-assets/objects/pack/pack-c52fc23680e186e5a45c8ccb6da9332906971263.idx': Permission denied
[285840 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.

📝 Steps to Reproduce

  1. Dev Containerにて起動
  2. postCreateCommandにてinit.shが実行される
  3. 最初のsudo chown -R node /workspaceでエラーになる

📌 Environment

💻 Frontend

  • Model and OS of the device(s):

MacBook Pro (15inch, 2019), macOS Ventura 13.4.1 (c)

  • Browser:

Chrome 115.0.5790.170

  • Server URL:

local

  • Misskey:

develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
Development

No branches or pull requests

2 participants