-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Upload Error - Invalid Argument - 0.23.0-alpha5 - Windows #534
Comments
Thanks for reporting the error. |
Got it. Does that mean there's nothing I can do until immich-go gets an update to resolve the issue? Or is there a workaround of some sort? Edit: I tried to upload my takeout to a fresh docker container and got the same error Edit again: It worked when using the following command: It doesn't seem to like parsing the folder path. I had tried to use the takeout zip file too but that gave the same error. I'll try on linux next because I've got nothing better to do Edit the 3rd: It worked when running this command on linux using the exact same takeout file: And then I realized I was using the stable linux release whereas I was running the unstable Windows one. 22.1 on Windows works just fine. I'll leave it on the stable version for now then. I'll leave this issue open as a bug report for the alpha version specifically, but you can close it if you want. |
The path to the archive must be the last argument! So the invalid argument is happening with the alpha release. |
Yes, it's happening with the alpha release. I just tried again with this command and it gave me the same errors: The command that you just quoted worked on the alpha version but I pointed it to a folder containing only photos and json files directly. It did not work with nested folders or the zipped takeout. Appreciate all your help with this! |
I need more context to understand how the error occurs:
Does your immich server contains some images from the album? if yes, are images in the same resolution / compression in the server compared to the incoming data? Does the error comes at the second run, when some images are already present? Or it comes all the times? |
I've been running each of these with fresh docker containers. I've been running |
So the problem comes when importing your data set on a fresh install using the alpha5 Could you share more data: https://github.com/simulot/immich-go/blob/main/docs/how-to-send-debug-data.md |
It appears that the problem is present only when running the client under windows. |
FWIW I'm getting this same error with a Google Takeout archive with the Linux (amd64) client. I tried rebuilding immich-go from the "next" branch to capture the above fix, but the error persists. It gets about 17% of the way through the archive, then crashes with:
Let me know if I can provide anything else |
yeah, this one resists. I'm tempted to make the error not blocking until I get a better understanding |
Weirdly, I ran it again with EDIT: Oh maybe I wasn't giving it long enough to resume on its own previously? Hrmm. |
Okay, I found a commonality between all the files that are returning the I had about a dozen such files causing the crash. Every one of them, when viewed, was a stacked (MP4) video that had a highlight or annotation drawn on it. I've attached one of the culprits that reproduces the error in case that helps chase it down. (gzipped so that githib would let me attach it) |
Hum, I hope not!
Thank you for your analysis. |
BTW the .MP~2 issue isn't fixed by the last commit. |
I think I'm also seeing this issue in the RC version (sample error below with the filename and server url changed). What's confusing to me is if I run it multiple times the file it errors out on isn't always the same one. I would have thought if it was one particular file causing it it should error out at the same one each time I run it if I don't exclude the file. If you need any other logs on this issue, let me know. Thanks!
|
Is there any reason for stacking this file with another? Any log would be help full. |
I'm really not sure sure what the files with the ~ are. I haven't used immich in months until the other day and just did a takeout from google photos (twenty nine, 50GB files) and decided to use the RC version of immich-go try to import them all. That import kept failing on those ~ files until I added a |
TLDR: I'm working on the issue, and .MP~2 files are the root cause of the error. First, MP stands fro Motion Picture (or so). This file contains a short movie sequence taken with the main picture named .MP.JPG files. Both are handled correctly by immich-go / immich stack. On the pixel phone (at least), you can edit the main photo. The edited photo is now names .MP~2.JPG, witch is perfectly legit, but the movie file is named .MP~2 🤯 The original and the modified files are currently grouped together as a burst of photos. But .MP~2 isn't valid, and the file is rejected by Immich. Then the stack command fails. I think I'll workaround this issue by rename the couple IMAGE.MP~2.JPG and IMAGE.MP~2 into IMAGE~2.MP.JPG and IMAGE~2.MP |
Just hit my Google Photos free storage limit and I'm super excited to switch over to Immich. Unfortunately I'm getting this error on the first image upload. Dry runs go through perfectly. Running it with --sync-albums=false gets rid of everything after the ERR line, but I think that's just from the first error then creating a bad POST request... I could be wrong though.
And here is the API trace for the failed POST request:
Let me know of anything else I can send along or steps to resolve it. Thanks!
The text was updated successfully, but these errors were encountered: