Skip to content

[BUG] Compatibility issues with exFAT hard drive #353

@maxi07

Description

@maxi07

Describe the bug
I am trying to run iCloud-docker with an external hard drive, that is exfat. When first starting, everything worked fine. After my system had to reboot, I was unable to start iCloud-docker properly as it has trouble changing permissions:

maxikrause@raspi3-mk:~/icloud $ docker compose up -d && docker compose logs -f
[+] Running 1/1
 ✔ Container icloud-backup  Started                                                               0.8s 
icloud-backup  | Setting up user 'abc' with UID: 1000, GID: 1000
icloud-backup  | 
icloud-backup  | ====================================================
icloud-backup  | To support this project, please consider sponsoring.
icloud-backup  | https://github.com/sponsors/mandarons
icloud-backup  | https://www.buymeacoffee.com/mandarons
icloud-backup  | 
icloud-backup  | User UID:    1000
icloud-backup  | User GID:    1000
icloud-backup  | ====================================================
icloud-backup  | Setting ownership for /app
icloud-backup  | Setting ownership for /icloud
icloud-backup  | chown: /icloud/drive/Documents/Hochschule Fresenius/Studium/2. Semester/Medienmanagement/Referat HBO/hbonow.png: Operation not permitted
icloud-backup  | chown: /icloud/drive/Documents/Hochschule Fresenius/Studium/2. Semester/Medienmanagement/Referat HBO/hbonow Kopie.png: Operation not permitted
^Cmaxikrause@raspi3-mk:~/icloud $ docker compose stop
[+] Stopping 1/1
 ✔ Container icloud-backup  Stopped                                                              11.1s 
maxikrause@raspi3-mk:~/icloud $ ls -l data/icloud-hdd/
total 384
drwxrwxrwx 1 maxikrause maxikrause 131072 Aug  9 02:03  drive
drwxrwxrwx 1 maxikrause maxikrause 131072 Aug  9 02:06  photos
drwxrwxrwx 1 maxikrause maxikrause 131072 Feb 19  2021 'System Volume Information'

My user does have permission to write and read, but the docker

To Reproduce

  1. Mount exFAT HDD into data (tried both exfat AND exfat-fuse)
  2. Set permissions of mount with sudo mount.exfat-fuse -o uid=1000,gid=1000,fmask=0000,dmask=0000 /dev/sda1 /mnt/icloud-hdd
  3. Start container

Configuration
docker-compose:

services:
  icloud:
    image: mandarons/icloud-drive
    container_name: icloud-backup
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
    env_file:
      - .env
    volumes:
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - ./config:/config
      - ./data/icloud-hdd:/icloud:rw

config.yml:

app:
  logger:
    level: "info"
    filename: "/config/icloud.log"
  credentials:
    username: "[email protected]"
    retry_login_interval: 600
  root: "/icloud"
  pushover:
    user_key: "uiXXXXXXXXChRnfX"
    api_token: "at1XXXXXXXXXc"
drive:
  destination: "drive"
  remove_obsolete: false
  sync_interval: 300
photos:
  destination: "photos"
  remove_obsolete: false
  sync_interval: 500
  all_albums: false
  folder_format: "%Y/%m"
  filters:
    file_sizes:
      - "original"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions