-
Notifications
You must be signed in to change notification settings - Fork 248
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
[Question] Cannot change ownership to uid 397546, gid 5000: Invalid argument #587
Comments
* chore: improve docker-entrypoint.sh in sdkman * chore: add TMPDIR_PATH in the sdkman * fix: some corrections flutter/flutter#140330 leoafarias/fvm#587 * feat: add fvm/fei to manage flutter version * ci: ignore when edit README.md in sdkman * docs: create an individual README.md to sdkman
I have the same problem using podman and running as non-root (inside the container/build process, I am root, but I run Were you able to fix this? |
I have the same issue as well. Running as |
You're the man! 🙌 I pulled your solution out into a script that works on my container instance #!/bin/bash
# `./fvm_tar_workaround.sh on` # To install the custom tar
# `./fvm_tar_workaround.sh off` # To remove the custom tar
set -euo pipefail
install_custom_tar() {
# Create the custom tar script with the flag as default
echo -e "#!/bin/bash\nset -e\n/bin/tar \"\$@\" --no-same-owner" > /tmp/tar
chmod +x /tmp/tar
if [ ! -d /usr/local/bin ]; then
mkdir -p /usr/local/bin
fi
mv /tmp/tar /usr/local/bin/tar
if ! echo "$PATH" | grep -q "/usr/local/bin"; then
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
fi
if which tar | grep -q "/usr/local/bin/tar"; then
echo "Custom tar command installed successfully."
else
echo "Failed to install the custom tar command."
fi
}
uninstall_custom_tar() {
if [ -f /usr/local/bin/tar ]; then
rm /usr/local/bin/tar
echo "Custom tar command removed successfully."
else
echo "Custom tar command is not installed."
fi
}
if [ "$1" == "on" ]; then
install_custom_tar
elif [ "$1" == "off" ]; then
uninstall_custom_tar
else
echo "Usage: $0 {on|off}"
exit 1
fi I'm not familiar with the fvm implementation, so not sure what needs to get done on that side to fix this bug |
I don't know if it's a problem with flutter or fvm, but using only flutter had no problems.
Before creating a bug report please make check the following
fvm doctor
if possible and add the output to the issue.Describe the bug
I can install flutter but not use it normally
To Reproduce
fvm install 3.13.9
fvm use 3.13.9
fvm pub get
Expected behavior
Normal use
Logs
Desktop (please complete the following information):
Additional context
running in docker as root
The text was updated successfully, but these errors were encountered: