question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some already downloaded files are downloading again on every pass...

See original GitHub issue

First things first… Thanks so much @mandarons, this project is what I’ve looking for since years… I appreciate so much your efforts on this…

Describe the bug Some files are downloaded on every pass, even if the file already exists and no changes have occurred on it… Usually this issue is related to MacOS packages, which are downloaded as a file, instead of as a directory, but I have also noticed that it applies to many photos…

To Reproduce In my case, this behavior seems to be always the same, although I’m not sure you know which files it occurs with and which it doesn’t.

Expected behavior I expect not to download any file if it is already downloaded and it has not changed…

Screenshots You can see some examples on “icloud.log” where unmodified files are downloaded several times (PHOTOS sync_interval is lower than DRIVE one):

/app # more icloud.log |grep LOGO-Contacto
2022-02-26 17:02:56,650 :: INFO :: root :: sync_drive.py :: 90 :: Downloading /app/icloud/drive/Pixelmator/LOGO-Contacto.pxm ...
2022-02-27 10:33:47,321 :: INFO :: root :: sync_drive.py :: 90 :: Downloading /app/icloud/drive/Pixelmator/LOGO-Contacto.pxm ...
2022-02-28 04:38:14,972 :: INFO :: root :: sync_drive.py :: 90 :: Downloading /app/icloud/drive/Pixelmator/LOGO-Contacto.pxm ...
/app # ls -la /app/icloud/drive/Pixelmator/LOGO-Contacto.pxm 
----------    1 root     root        899758 Sep 21  2018 /app/icloud/drive/Pixelmator/LOGO-Contacto.pxm

/app # more icloud.log |grep "Imagen 175.JPG"
2022-02-26 23:20:18,431 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-26 23:47:35,904 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-27 00:59:13,071 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-27 17:27:57,205 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-27 17:50:31,021 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-27 18:41:28,510 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-28 10:42:34,244 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-28 11:05:29,406 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
2022-02-28 11:56:30,420 :: INFO :: root :: sync_photos.py :: 37 :: Downloading /app/icloud/photos/all/Imagen 175.JPG ...
/app # ls -la "/app/icloud/photos/all/Imagen 175.JPG"
----------    1 root     root        735560 Mar 13  2011 /app/icloud/photos/all/Imagen 175.JPG

Configuration My config YAML is:

app:
  logger:
    level: "info"
    filename: "icloud.log"
  credentials:
    username: "MY-ID"
    retry_login_interval: 600
  root: "icloud"
  smtp:
drive:
  destination: "drive"
  remove_obsolete: true
  sync_interval: 3000
  filters:
    folders:
    file_extensions:
photos:
  destination: "photos"
  remove_obsolete: true
  sync_interval: 300
  filters:
    albums:
    file_sizes:
      - "original"

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:35 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
mandaronscommented, Jul 20, 2022

@andressoler Thank you. I updated the main branch not to delete the zip file if extraction fails. This will keep the ball rolling. For some reason, package files created on iOS are zipped differently than package files created on Mac OS. I am seeking help on stackoverflow.com. Let’s see.

Thank you very much for your patience and co-operation, @andressoler, to solve this problem. I appreciate it.

1reaction
mandaronscommented, Jul 16, 2022

@andressoler : I am able to reproduce the issue now. For some reason, downloaded package files are always less than the one on server. I am looking into the fix now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xbox Game Pass PC Games re-downloading for updates
Theres no option to validate game files? Its just very annyoing to re download big games every few days completely before you can...
Read more >
Remember already downloaded files so they are ... - WinSCP
Remember already downloaded files so they are not downloaded again. You might have a server, where some kind of data files are periodically ......
Read more >
Why is Steam re-downloading an already downloaded game?
Restart steam, usually that would fix the problem, first make a backup of your current download folder, in case steam replace those files,...
Read more >
Common Issues with Downloading Files - Box Support
If you are encountering problems downloading files from your Box account, we recommend you try Updating your browser to the latest...
Read more >
If you can't download an item from the web using Safari on Mac
Try downloading it again. Make sure you have the app needed to open the file. If you do, the file may have been...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found