Skip to content
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

Downloads consistently stall when including videos #793

Open
dbyler opened this issue Feb 21, 2024 · 6 comments
Open

Downloads consistently stall when including videos #793

dbyler opened this issue Feb 21, 2024 · 6 comments
Labels

Comments

@dbyler
Copy link

dbyler commented Feb 21, 2024

Overview

I've had successful photos-only downloads running icloud_photos_downloader via Docker on my Mac, but every time I try to include videos, it stalls within a couple minutes.

This command works for me:

docker run -it --rm --name icloudpd -v /Volumes/MyDrive/Photos/data:/data -e TZ=America/Los_Angeles icloudpd/icloudpd:latest icloudpd --directory /data --username xxxxx@xxxxx.com --watch-with-interval 3600 --skip-videos --auto-delete

However, when I remove the --skip-videos flag, the download invariably stalls after a couple minutes.

Steps to Reproduce

  1. Open Docker Desktop for Mac (I'm running Docker 4.27.2 on macOS 14.1 on a M1 machine)
  2. Run the shell command docker run -it --rm --name icloudpd -v /Volumes/MyDrive/Photos/data:/data -e TZ=America/Los_Angeles icloudpd/icloudpd:latest icloudpd --directory /data --username xxxxx@xxxxx.com --watch-with-interval 3600 --auto-delete
  3. Watch and wait

Expected Behavior

The full download executes successfully

Actual Behavior

icloudpd usually manages to fetch a couple videos before stalling.

You can see three separate attempts in this screenshot, with Little Snitch showing the dropouts. The downloads don't restart.

2024-02-21 13-31-51 Little Snitch Network Monitor -@2x

@dbyler dbyler added the bug label Feb 21, 2024
@dbyler dbyler changed the title Downloads with videos stall every time Downloads with videos consistently stall Feb 21, 2024
@dbyler dbyler changed the title Downloads with videos consistently stall Downloads consistently stall when including videos Feb 21, 2024
@tsetsko
Copy link

tsetsko commented Apr 9, 2024

I have the same issue - seems to cannot debug it and there is no pattern other than it stops at videos but it is at random intervals.

@AndreyNikiforov
Copy link
Collaborator

Does the size of the video matter? I wonder if large videos are more prone to stalling... Just guessing at this point as I never experienced such behavior and cannot repro.

@tsetsko
Copy link

tsetsko commented Apr 10, 2024

@AndreyNikiforov I will be able to provide more information later today

@dbyler
Copy link
Author

dbyler commented Apr 10, 2024

FWIW I'm able to use the compiled binary successfully with videos. No idea why Docker wasn't working but that was an effective workaround for me.

@tsetsko
Copy link

tsetsko commented Apr 11, 2024

@AndreyNikiforov I guess this might help:
Stuck at: "2024-04-10 23:02:37 DEBUG Downloading /data/2023/11/30/IMG_0703.MOV..."
I went on iCloud and checked the video is 7.2 GB (18 min video at 4k)

@dbyler what do you do with the compiled binary - how do you run that?

@dbyler
Copy link
Author

dbyler commented Apr 12, 2024

Download the binary, make it executable (e.g. chmod +x icloudpd-1.17.3-macos-amd64), and run (e.g. ./icloudpd-1.17.3-macos-amd64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants