mandarons / icloud-drive-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
985 stars 47 forks source link

[BUG] - [Errno 2] and [Errno 21] #120

Closed nodecentral closed 5 months ago

nodecentral commented 1 year ago

Describe the bug Sharing the logs below, as my iCloud-drive seems to be in a loop, and is not able to progress any further

To Reproduce Sorry not sure of the cause to help reproduce, so sharing the logs to help troubleshoot.

Expected behavior Errors are handled

Screenshots See logs in additional context.

Configuration N/A

Additional context

2023-01-21 09:10:10,040 :: INFO :: root :: sync.py :: 71 :: Syncing drive...
2023-01-21 09:28:01,398 :: ERROR :: icloudpy.base :: base.py :: 186 :: Service Unavailable (503)
2023-01-21 09:28:27,902 :: INFO :: root :: sync_drive.py :: 176 :: Downloading /app/icloud/drive/Keynote/Node Central.key ...
2023-01-21 09:28:30,747 :: INFO :: root :: sync_drive.py :: 149 :: Unpacking /app/icloud/drive/Keynote/Node Central.key.gz to /app/icloud/drive/Keynote
2023-01-21 09:28:30,757 :: INFO :: root :: sync_drive.py :: 143 :: Unpacking /app/icloud/drive/Keynote/Node Central.key.zip to /app/icloud/drive/Keynote
2023-01-21 09:28:30,843 :: INFO :: root :: sync_drive.py :: 160 :: Successfully unpacked the package /app/icloud/drive/Keynote/Node Central.key.zip.
2023-01-21 09:28:30,843 :: INFO :: root :: sync_drive.py :: 160 :: Successfully unpacked the package /app/icloud/drive/Keynote/Node Central.key.gz.
2023-01-21 09:28:30,844 :: ERROR :: root :: sync_drive.py :: 186 :: Failed to download /app/icloud/drive/Keynote/Node Central.key: [Errno 2] No such file or directory
2023-01-21 09:28:32,846 :: INFO :: root :: sync_drive.py :: 176 :: Downloading /app/icloud/drive/Keynote/Presentation 2.key ...
2023-01-21 09:28:33,846 :: ERROR :: root :: sync_drive.py :: 186 :: Failed to download /app/icloud/drive/Keynote/Presentation 2.key: [Errno 21] Is a directory: '/app/icloud/drive/Keynote/Presentation 2.key'
Loading config from /app/config.yaml ...
Loading config from /app/config.yaml ...
2023-01-21 09:42:06,778 :: INFO :: root :: sync.py :: 71 :: Syncing drive...
2023-01-21 09:46:54,770 :: ERROR :: icloudpy.base :: base.py :: 186 :: Service Unavailable (503)
2023-01-21 09:50:02,939 :: ERROR :: icloudpy.base :: base.py :: 186 :: Service Unavailable (503)
2023-01-21 10:01:13,489 :: INFO :: root :: sync_drive.py :: 176 :: Downloading /app/icloud/drive/Keynote/Node Central.key ...
2023-01-21 10:01:17,216 :: INFO :: root :: sync_drive.py :: 149 :: Unpacking /app/icloud/drive/Keynote/Node Central.key.gz to /app/icloud/drive/Keynote
2023-01-21 10:01:17,227 :: INFO :: root :: sync_drive.py :: 143 :: Unpacking /app/icloud/drive/Keynote/Node Central.key.zip to /app/icloud/drive/Keynote
2023-01-21 10:01:17,268 :: INFO :: root :: sync_drive.py :: 160 :: Successfully unpacked the package /app/icloud/drive/Keynote/Node Central.key.zip.
2023-01-21 10:01:17,269 :: INFO :: root :: sync_drive.py :: 160 :: Successfully unpacked the package /app/icloud/drive/Keynote/Node Central.key.gz.
2023-01-21 10:01:17,269 :: ERROR :: root :: sync_drive.py :: 186 :: Failed to download /app/icloud/drive/Keynote/Node Central.key: [Errno 2] No such file or directory
2023-01-21 10:01:21,276 :: ERROR :: icloudpy.base :: base.py :: 186 :: Service Unavailable (503)
2023-01-21 10:01:22,370 :: INFO :: root :: sync_drive.py :: 176 :: Downloading /app/icloud/drive/Keynote/Presentation 2.key ...
2023-01-21 10:01:23,505 :: ERROR :: root :: sync_drive.py :: 186 :: Failed to download /app/icloud/drive/Keynote/Presentation 2.key: [Errno 21] Is a directory: '/app/icloud/drive/Keynote/Presentation 2.key'
mandarons commented 1 year ago

Something is weird about Node Central.key.zip file. The server is returning 503 error for some reason. Can you share debug logs? You can enable debug logging in config.yaml as below:

app:
  logger:
    # level - debug, info (default), warning or error
    level: "debug"
mandarons commented 5 months ago

Closing as stale.