icloud-drive-docker icon indicating copy to clipboard operation
icloud-drive-docker copied to clipboard

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

Open mikeyvt opened this issue 1 year ago • 8 comments

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.

mikeyvt avatar Mar 04 '24 13:03 mikeyvt

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.

mandarons avatar Mar 08 '24 16:03 mandarons

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

anubis-code avatar Mar 13 '24 15:03 anubis-code

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.

mandarons avatar Mar 23 '24 14:03 mandarons

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 ;)

nicx avatar Mar 23 '24 15:03 nicx

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?

Verkhovskyi avatar Apr 16 '24 10:04 Verkhovskyi

@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

Sev7nrayne avatar May 11 '24 01:05 Sev7nrayne

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.

cyruz-git avatar Jun 23 '24 14:06 cyruz-git

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.

mandarons avatar Jun 27 '24 05:06 mandarons