-
Notifications
You must be signed in to change notification settings - Fork 151
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
Group id, 0, already in use by the group #425
Comments
That doesn't seem to work either -- if the container is in Privileged mode and the script is running as 568, traceroute once again gets denied. |
hey thanks for the reply @boredazfcuk
unfortunately, as I stated in my original ticket (and showed in the first screenshot enclosed), before opening this issue I made sure to follow your instructions in ticket #381. EDIT: as I mentioned earlier, we can't pass any of those envvars ( |
oh at least as far as user_id and group_id far as I can tell we just set the appropriate value in the runAsUserId/runAsGroupId boxes -- those map to user_id/group_id in the config file. But setting them to those values -- as I said -- breaks traceroute permissions again. |
Ahh I get you, I'm using the TrueCharts
I only publish the container to Dockerhub, so that's the only place the truly official version of my container can be obtained. I configured the 'custom-app' to download the container from Dockerhub, so I know it's the official version. I have no knowledge of the TrueCharts "official" app. It's entirely possible they are making their own modifications to the container, repackaging it and hosting it in their own repository. If their "official" app isn't working, then it would be best to report the problem to them. They must be handling things differently in their official app to how the custom app does things. Maybe they can identify the issue and fix it, but it's not something I have access to. |
Ok, I got the custom-app to work using instructions above, and runAsUser/runAsGroup set to 0. |
Hello,
thanks for the wonderful app.
I am trying to deploy the TrueChart version of
docker-icloudpd
(latest_3.0.4) on a TrueNAS SCALE server (22.12.4.2).Before opening this issue I browsed past issues like this one and this one but couldn't make it work.
Basically, if I just specify my Apple ID and deploy, I hit the common problem about not being able to run traceroute
I browsed the issues in the repo and found this one, where you provide a working configuration for SCALE. Below is the exact same configuration from the next deploy attempt (all other settings being default):
![image](https://private-user-images.githubusercontent.com/30185650/280892224-c6ad0683-c6a1-454f-8a61-185191b2bd43.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNTkwODMsIm5iZiI6MTcyMTA1ODc4MywicGF0aCI6Ii8zMDE4NTY1MC8yODA4OTIyMjQtYzZhZDA2ODMtYzZhMS00NTRmLThhNjEtMTg1MTkxYjJiZDQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE1NTMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmODg0N2RiMTAxNmE4YzA1MGYzODczZThlNjMyY2MzNDZjZGNhNWE1ZjNlNzAyNjQwYWVmZDE3MjFkYTM2NTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ln0s9mC6Yv73PqAES7O8W2ze_uoVKESr49sjafPd0V8)
If I try with these settings, I get past the error above, but I am now greeted by a new one:
and since it mentions setting
![image](https://private-user-images.githubusercontent.com/30185650/280894176-480c9a7c-81d2-40a5-ab85-98196b89f47e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNTkwODMsIm5iZiI6MTcyMTA1ODc4MywicGF0aCI6Ii8zMDE4NTY1MC8yODA4OTQxNzYtNDgwYzlhN2MtODFkMi00MGE1LWFiODUtOTgxOTZiODlmNDdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE1NTMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmNDJmNTYzNDk4ZjIwMGI0MTYxZmQxMjdkM2NhNTQ5NWY3ZWEyMDEyNDlmOGE1NThjMWRhZGI3ZDVmMmZmYmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BsaR_uOtm__IMiNV6H5k5zn5zUXl4VQwTLqwQymzKpM)
force_gid
to True, I tried it adding it as an env var in a new attempt:In this case I get the exact same log with additional lines (below), except the ERROR is now a WARNING (possibly because of
force_gid
)As you can see there are several failed commands in between log lines, like
useradd: UID 0 is not unique
orfind: unknown user apps
. In this state I tried to run/usr/local/bin/sync-icloud.sh --Initialise
but got the same output and same errors (useradd: UID 0 is not unique
etc...)Now, I tried possibly every combination of user/group settings in the SCALE app config, but I never made it further.
I tried setting user/group to 568, but I go back to the first error (traceroute). Tried with everything set to 0 (including fsGroup), still don't get past the last error. Set
Supplemental group
to 0, it didn't make any difference.I then started passing envvars for user/group names and ids, but the TrueChart app has hardcoded values that cannot be overridden even if manually specified https://github.com/truecharts/charts/blob/cfe948e5b0b07d2a704079a6fbf6783dfacfe7d8/charts/incubator/icloudpd/values.yaml#L77
![image](https://private-user-images.githubusercontent.com/30185650/280896833-6967c2c6-5b4e-406d-996c-ceb448594e6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNTkwODMsIm5iZiI6MTcyMTA1ODc4MywicGF0aCI6Ii8zMDE4NTY1MC8yODA4OTY4MzMtNjk2N2MyYzYtNWI0ZS00MDZkLTk5NmMtY2ViNDQ4NTk0ZTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE1NTMwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU4ZjMyZjQyMzRlZjY1ZjVhMDQ4OGRmNTg3ODc4NjY5MGZiOTY5Nzc1ZjY0ZWQzZjIwMWFkZjg2ZTg5MWM4NDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-4MLcR1auQmDKA8mptvnBUYv6nn7zIG5Wm9Dc12PEGM)
I have run out of options so far, hence the ticket. Not sure if this depends on the app, or also on TrueCharts implementation of the helm chart, but seeing you helped other users with SCALE in the past, I tried :)
P.S.: for the ticket I deleted my first attempt and redid all the steps with a vanilla deploy, so that other options wouldn't interfere. Nevertheless, I was able to setup Discord notifications and other stuff in my first attempt, so I realized the problem was just about permissions. I then confirmed it looking at several other tickets dealing with similar issues.
Thanks again for this amazing app.
The text was updated successfully, but these errors were encountered: