mandarons / icloud-docker

Dockerized iCloud Client - make a local copy of your iCloud documents and photos, and keep it automatically up-to-date.
BSD 3-Clause "New" or "Revised" License
1.15k stars 49 forks source link

[ISSUE] Can't even install the container when using 'Unraid' #200

Open mikeyvt opened 8 months ago

mikeyvt commented 8 months ago

Describe the bug Went to install the container for the first time using 'Unraid' and I'm getting an error with the installation. I have not changed any of the parameters.

To Reproduce Just trying to install will reproduce the issue

  1. Do this '...'
  2. See error

Expected behavior I expected the container to install like others.

Screenshots image

Configuration Unraid on a Dell R520

Additional context Add any other context about the problem here.

mandarons commented 8 months ago

Please refer to #94 , specifically https://github.com/mandarons/icloud-drive-docker/issues/94#issuecomment-1265712866

Looks like you need to create config.yaml first and then start the container.

anubis-code commented 7 months ago

I created config.yaml but container just restarts, no logs or console

mandarons commented 7 months ago

I am not sure how else I can help here if there are no logs. :(

I don't have unraid to reproduce the problem. There is also nothing unique about this project. It's just yet another container from docker's perspective.

nicx commented 7 months ago

I am using icloud-drive-docker on Unraid without problems. Seems that you have not mounted the config.yaml corrctly to your container. please read the error output on your screenshot ;)

Verkhovskyi commented 6 months ago

As mentioned above, you should manually place config.yaml into /mnt/user/appdata/icloud-drive-sync/ before installing app.

@mandarons, maybe it would be more convenient to create sample config.yaml on first launch?

Sev7nrayne commented 5 months ago

@mikeyvt change the docker settings from Container Path to Container Variable: delete the Container Path config that comes in the template and create a Variable config

image

cyruz-git commented 4 months ago

This issue is still present and not related to the config.yaml.

The container in Unraid with default settings keeps restarting so it's not possible to collect the log if we don't stop it first.

addgroup: gid '100' in use
====================================================
To support this project, please consider sponsoring.
https://github.com/sponsors/mandarons
https://www.buymeacoffee.com/mandarons 
====================================================

Using UID as 99, GID as 100 and UMASK as 002...
adduser: unknown group icd
Changing ownership of /app ... This operation may take significantly longer depending on number of files in your local copy of icloud.
chown: unknown user/group icd:icd
su: unknown user icd
addgroup: gid '100' in use

The issue is related to the adduser and addgroup commands. More specifically, Unraid docker uses a default of UID=99 and GID=100.

Removing GID=100 allows the container to start with a default GID of 1000.

mandarons commented 4 months ago

Upgrading to v1.20.0 should fix this problem. Please note the breaking changes as mentioned on https://github.com/mandarons/icloud-drive-docker/releases/tag/v1.20.0.