tenekev / immich-offline-files-remover

A drop-in solution for scheduled cleaning of Immich's External libraries. Just copy the docker-compose code in your Immich stack and configure it.
GNU Affero General Public License v3.0
3 stars 0 forks source link

➡️ Skipping cleaning beacuse there are no offline files #2

Open dustookk opened 3 hours ago

dustookk commented 3 hours ago

Hi, there. Thanks for the great work! I tried to run the script in a Docker container, it shows the following errors:

2024-10-12 11:08:16,598 - INFO - ============== INITIALIZING ==============
2024-10-12 11:08:16,598 - INFO - ⬇️  Fetching libraries:
2024-10-12 11:08:16,598 - INFO - Request URL: http://192.168.3.157:3001/api/libraries
2024-10-12 11:08:16,599 - INFO - Request Headers: {'x-api-key': 'w60pbgCb3lxfIG20kxxxPf862xVA8yJSY5Nw0RU', 'Accept': 'application/json'}
2024-10-12 11:08:16,639 - INFO - Response Status Code: 200
2024-10-12 11:08:16,639 - INFO - Response Headers: {'Connection': 'close', 'Content-Length': '337', 'Content-Type': 'application/json; charset=utf-8', 'Date': 'Sat, 12 Oct 2024 11:08:16 GMT', 'Etag': '"151-GHd6BZ/LGKiaHIHPzTPTx124eEs"', 'X-Immich-Cid': '98v5jmtm', 'X-Powered-By': 'Express'}
2024-10-12 11:08:16,639 - INFO - Response Content: [{"id":"f0cf179b-2baa-4cff-abad-0959020af3fa","ownerId":"711d9189-e0f4-4acc-b855-4901xxxdb9b","name":"New External Library","createdAt":"2024-05-09T15:03:31.186Z","updatedAt":"2024-10-12T00:00:12.494Z","refreshedAt":"2024-10-12T00:00:11.057Z","assetCount":0,"importPaths":["/usr/src/app/external"],"exclusionPatterns":["**/@eaDir/**"]}]...
2024-10-12 11:08:16,640 - INFO -      f0cf179b-2baa-4cff-abdd-0xxx20af3fa New External Library
2024-10-12 11:08:16,640 - INFO -    Libraries: 1
2024-10-12 11:08:16,640 - INFO - ⬇️  Fetching assets:
2024-10-12 11:08:16,640 - INFO -    Page size: 1000
2024-10-12 11:08:23,552 - INFO -    Pages: None
2024-10-12 11:08:23,552 - INFO -    Assets: 25662
2024-10-12 11:08:23,553 - INFO - Offline Assets in "New External Library":
2024-10-12 11:08:23,564 - INFO -   ➡️  Skipping cleaning beacuse there are no offline files.
dustookk commented 3 hours ago

By the way, I just found out the "remove offline files" button is missing in the latest version of Immich