-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
0.23.0-RC9 eventually hanging #646
Comments
...now running with |
You can share them on my discord @simulot.
This is a clue... --from-folder tries to leverage goroutines (the go's multi-thread mechanism). Ctrl-C make all running routines to die with the context cancelled message. But, there is a limitation in the number of threads that should prevent this...
Is this folder symlinked or hadlinked to the /tank/Pictures? Maybe a ZFS special thing? A cycle?
What do you mean by |
I'll get something zipped up in a minute.
It is ZFS, but all in one dataset. No symlinks. The run with
When I did my 2nd run of |
the session tag is useful to check what has been touched by immich-go. |
… immich-go exports in parseDir method
* fix: correct typo in bulkBatchSize constant name in BulkTagManager * fix 0.23.0-RC9 eventually hanging #646: enhance metadata handling for immich-go exports in parseDir method * Merge branch 'next' into simulot/issue638 * fix: tags root/tag * Add caching for tag IDs to reduce upsert calls - Introduce new SyncMap for tag IDs - Modify upsert logic to check cache first - Update tests to verify upsert count - Adjust mock client to track upsert calls - Ensure assets are tagged correctly * Refactor asset upload and replace logic to use a callValues map for better tracing - Introduce callValues map for asset metadata - Simplify field writing in multipart form - Remove redundant file stat calls - Update trace logging for callValues - Clean up unused context keys
I have a folder on my NAS with about 50000 photo, video, and related files (I think maybe half of them are 'something that should be uploaded to immich'. There is at least one unzipped old google takeout in there, as well as dead picasa libraries and possibly even some iPhoto stuff.
I'm running 0.23.0-rc9 built with this nix flake (modified from the one in nixpkgs):
flake.nix
When I run immich-go, it goes for quite a while, uploading about 10000 assets, but then it gets to a point where it does nothing. There have been no new log lines for over an hour (the most recent are about 'scanned image file'). There are no in progress jobs on the server. immich-go is still running (I assume it exits when it finishes).
When I press Ctrl-C, I get a lot (depending on the run, 100-700 ish) of
ERR context canceled
in the logs, and it exits.I can rerun, and it spins through a lot of "Server has same quality", but eventually grinds to a halt after about 15000 files.
I'm getting occasional server errors (1 or 2 each run), but not sure if that's relevant.
Happy to provide logs and api traces, but would rather that wasn't public.
my immich-go command is
immich-go upload from-folder --manage-burst Stack --manage-heic-jpeg StackCoverHeic --manage-raw-jpeg StackCoverJPG --tag "{immich-go}/2025-01-22 20:55:02" /tank/Pictures --server $SERVER_URL -k $API_KEY --api-trace
(i started with
-session-tag
for the first run, but now using--tag
to avoid API churn).The text was updated successfully, but these errors were encountered: