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

23.0rc6 freeze on upload error 400 bad request #607

Open
4goodluck opened this issue Jan 5, 2025 · 6 comments
Open

23.0rc6 freeze on upload error 400 bad request #607

4goodluck opened this issue Jan 5, 2025 · 6 comments
Assignees

Comments

@4goodluck
Copy link

Hitting title error - updates are to a stacked image (possibly from a prior immich-go run). Tried unstacking the image in immich and restarting immich.

command line -
./immich-go upload from-google-photos --log-level=DEBUG --log-file=run5.txt --server=http://10.100.99.37:2283 --api-key=redact --include-unmatched --include-untitled-albums --manage-burst=stack --api-trace=TRUE --manage-heic-jpeg=StackCoverHeic --manage-raw-jpeg=StackCoverJPG /home/mik/Downloads/takeout-*.zip

Log:
2025-01-05 14:31:20 ERR Can't create stack error=createStack, POST, http://10.100.99.37:2283/api/stacks, 400 Bad Request
Bad Request

2025-01-05 14:31:20 ERR upload error file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438.JPG error=ReplaceAsset, PUT, http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original, 400 Bad Request
Bad Request

2025-01-05 14:31:20 DBG file.FileName=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438.JPG file.FileDate=2025-01-04 18:14:22 file.Description= file.Title=IMG_1438.JPG file.FileSize=1068384 file.ID= file.CaptureDate=2011-03-11 14:42:52 file.Trashed=false file.Archived=false file.FromPartner=false file.Favorite=false file.Stars=0 file.Latitude=0.xxxxx file.Longitude=0.xxxxx
2025-01-05 14:31:20 ERR upload error file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(1).JPG error=ReplaceAsset, PUT, http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original, 400 Bad Request
Bad Request

2025-01-05 14:31:20 DBG file.FileName=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(1).JPG file.FileDate=2025-01-04 18:14:22 file.Description= file.Title=IMG_1438.JPG file.FileSize=1068384 file.ID= file.CaptureDate=2011-03-11 14:42:52 file.Trashed=false file.Archived=false file.FromPartner=false file.Favorite=false file.Stars=0 file.Latitude=0.xxxxx file.Longitude=0.xxxxx
2025-01-05 14:31:20 ERR upload error file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(2).JPG error=ReplaceAsset, PUT, http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original, 400 Bad Request
Bad Request

2025-01-05 14:31:20 DBG file.FileName=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(2).JPG file.FileDate=2025-01-04 18:14:23 file.Description= file.Title=IMG_1438.JPG file.FileSize=1068384 file.ID= file.CaptureDate=2011-03-11 14:42:52 file.Trashed=false file.Archived=false file.FromPartner=false file.Favorite=false file.Stars=0 file.Latitude=0.xxxxx file.Longitude=0.xxxxx
2025-01-05 14:31:20 INF Stacked file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438.JPG
2025-01-05 14:31:20 INF Stacked file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(1).JPG
2025-01-05 14:31:20 INF Stacked file=takeout-20250104T181400Z-001:Takeout/Google Photos/Drop Box/IMG_1438(2).JPG

Api:
2025-01-05T14:31:20-05:00 QUERY 250 createStack POST http://10.100.99.37:2283/api/stacks
X-Api-Key redacted
Accept [application/json]
Content-Type [application/json]
-- request JSON Body --
{
"assetIds": [
"0a278f64-04ca-44b3-9543-3bb01f5dc27e",
"f5883fad-22fc-4c51-975c-e24832cb3961"
]
}
-- request body end --

2025-01-05T14:31:20-05:00 QUERY 251 ReplaceAsset PUT http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original
Accept [application/json]
Content-Type [multipart/form-data; boundary=268d1c4520fa783bed5edbc35128a7add5fc544dae3524e59e473a8a034e]
X-Api-Key redacted
asset file name: Takeout/Google Photos/Drop Box/IMG_1438.JPG
-- Empty body or binary body not dumped --
2025-01-05T14:31:20-05:00 QUERY 252 ReplaceAsset PUT http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original
Accept [application/json]
Content-Type [multipart/form-data; boundary=773bdaeb0f7ec3da89dc3da79fe208d9286130d4d20dbefff19b4ea00232]
X-Api-Key redacted
asset file name: Takeout/Google Photos/Drop Box/IMG_1438(1).JPG
-- Empty body or binary body not dumped --
2025-01-05T14:31:20-05:00 QUERY 253 ReplaceAsset PUT http://10.100.99.37:2283/api/assets/acd7f801-ebad-4aaf-9ea5-245ea25a924d/original
X-Api-Key redacted
Accept [application/json]
Content-Type [multipart/form-data; boundary=34484d4c85982efc3c741de28e7eb9c961df185d73919d5f027ea4ad9a08]
asset file name: Takeout/Google Photos/Drop Box/IMG_1438(2).JPG
-- Empty body or binary body not dumped --

@4goodluck 4goodluck changed the title freeze on upload error 400 bad request - .23.0rc6 23.0rc6 freeze on upload error 400 bad request Jan 5, 2025
@simulot
Copy link
Owner

simulot commented Jan 5, 2025

This one is nasty....
How big is your takeout?

@4goodluck
Copy link
Author

4goodluck commented Jan 5, 2025 via email

@simulot
Copy link
Owner

simulot commented Jan 7, 2025

Could you enable the flag --API-TRACE ? and share the log file and the trace file on my discord @simulot ?

@4goodluck
Copy link
Author

Let me know if you need anything else.
run6.trace.log.gz
run6.txt.gz

@4goodluck
Copy link
Author

4goodluck commented Jan 13, 2025

I seem to be able to produce bad request errors at will even with RC7. I suspect that any attempt to change files in an external immich library produce this error because every case I can find involves external library files. The immich external libraries are r/w in .env. It's possible I have some other miss configuration on the immich side.

I haven't been able to find associated log events in immich (server, db or redis). I'm also having difficult understanding exactly what immich will and will not do with an external r/w library so this may be my misunderstanding of how immich works.

@simulot
Copy link
Owner

simulot commented Jan 13, 2025

I seem to be able to produce bad request errors at will even with RC7. I suspect that any attempt to change files in an external immich library produce this error because every case I can find involves external library files. The immich external libraries are r/w in .env. It's possible I have some other miss configuration on the immich side.

That's an important information. I'm building a test system using an external library

@simulot simulot self-assigned this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants