paveldudka
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
looks like there is an open issue for it already: https://github.com/immich-app/immich/issues/2269
65 replies
IImmich
•Created by paveldudka on 4/17/2023 in #help-desk-support
ML Service: Error: connect ECONNREFUSED 127.0.0.1:80
@Alex oh crah, my bad. I didn't pay much attention to the ENV param name I was setting to "false" during setup. I.e. to disable ML I did set IMMICH_MACHINE_LEARNING_URL=false. However when I decided to enable ML, instead of deleting that env entry, I simply flipped it to "true" 😅 : "IMMICH_MACHINE_LEARNING_URL=true" which basically overrides the service URL.. Removing it made ML service alive
3 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
@Alex , attaching debugger to the server, it looks like that last error is related to the fact that some images in my Photos gallery are actually duplicates (i.e. I manually duplicated them - mostly for photo editing reasons). I.e. they have identical checksums. In this case upload fails (see this line: https://github.com/immich-app/immich/blob/feat/archived-on-mobile/server/apps/immich/src/api-v1/asset/asset.service.ts#L111). However the actual error is coming from a later code (which could be a bug) which tries to turn duplicate upload into success and retrieve original asset: https://github.com/immich-app/immich/blob/feat/archived-on-mobile/server/apps/immich/src/api-v1/asset/asset.service.ts#L126
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
2023-04-16T16:39:06.780876313Z
2023-04-16T16:39:06.780880634Z ]
2023-04-16T16:39:06.780885077Z }
2023-04-16T16:39:06.780889419Z },
2023-04-16T16:39:06.780893642Z "relations": [
2023-04-16T16:39:06.780897981Z | 0=e 1=x 2=i 3=f 4=I 5=n 6=f 7=o
2023-04-16T16:39:06.780902533Z ]
2023-04-16T16:39:06.780906896Z }
2023-04-16T16:39:06.780911158Z at /usr/src/app/node_modules/typeorm/entity-manager/EntityManager.js:638:39
2023-04-16T16:39:06.780915596Z at runMicrotasks (<anonymous>)
2023-04-16T16:39:06.780920662Z at processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-04-16T16:39:06.780925463Z at async AssetService.uploadFile (/usr/src/app/dist/apps/immich/apps/immich/src/api-v1/asset/asset.service.js:72:35)
2023-04-16T16:39:06.780929959Z at async AssetController.uploadFile (/usr/src/app/dist/apps/immich/apps/immich/src/api-v1/asset/asset.controller.js:62:29)
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
2023-04-16T16:39:06.780807626Z 224,
2023-04-16T16:39:06.780812144Z 23,
2023-04-16T16:39:06.780816306Z 227,
2023-04-16T16:39:06.780820713Z 157,
2023-04-16T16:39:06.780824920Z 24,
2023-04-16T16:39:06.780829077Z 169,
2023-04-16T16:39:06.780833452Z 71,
2023-04-16T16:39:06.780837750Z 115,
2023-04-16T16:39:06.780841949Z 226,
2023-04-16T16:39:06.780846088Z 35,
2023-04-16T16:39:06.780850284Z 19,
2023-04-16T16:39:06.780854630Z 76,
2023-04-16T16:39:06.780858988Z 238,
2023-04-16T16:39:06.780863405Z 248,
2023-04-16T16:39:06.780867617Z 7,
2023-04-16T16:39:06.780871969Z 228,
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
2023-04-16T16:39:06.780751809Z EntityNotFoundError: Could not find any entity of type "AssetEntity" matching: {
2023-04-16T16:39:06.780765868Z "where": {
2023-04-16T16:39:06.780770791Z "ownerId": "c0d634e3-af6e-4bbd-a49c-0c2daeb37ffc",
2023-04-16T16:39:06.780775424Z "checksum": {
2023-04-16T16:39:06.780779730Z "type": "Buffer",
2023-04-16T16:39:06.780789196Z "data": [
2023-04-16T16:39:06.780794210Z 110,
2023-04-16T16:39:06.780798589Z 116,
2023-04-16T16:39:06.780802771Z 118,
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
The only remaining issue - is some of the images are actually failing to upload (upload request fails with HTTP 500). Looking at the server logs - this is what it spits out:
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
I.e. currently if I add 500 images to the album, Immich app properly displays 500 items to be backed up
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
Hmm.. When I try to debug the app - I can't repro the issue anymore. Also I reinstalled the app from the appstore (so the internal app state is completely wiped) and I can't repro the issue with release version either. Could it be that app got into some weird state that wiping out server-side state is not helping? I.e. in all my previous tests I would wipe Postgres db + remove everything from UPLOADS folder. However I did nothing to the app itself. What kind of data do we persists on the app side?
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
@Alex , ok, got an app debugger up an running with my real device attached. So I should be able to repro it. Will take the app for a joyride later today/tomorrow 🙂 Let me know if there are specific parts of the upload pipeline you want me to check
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
yup, this one
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
@Alex , do you have codepointers for the uploading logic on the client side?
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
at least some of them. But definitely not all. Looking at failing photos, I tend to think that those photos were at some point shared via different means (Google Photos, airdrop, etc). However, I tried to share one of the photos that works fine (and I definitely didnt share it before) via airdrop and it was backed up just fine
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
let's try to add more logging to the mobile app. If that doesn't help - I think Im at the point of setting up a development environment and just start debugging it locally as I can 100% repro it
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
Another strange fact: no matter what I do, broken pictures are not getting sent to Immich server for upload. However, if I duplicate such photos in Photos library, duplicates are behaving correctly. I exported both to my laptop to check their hashes and md5 hashes are identical.
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)

65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
I would have helped with debugging, but Im an Android dev, so pretty far from setting up an iOS dev environment. One thing I can do - is to reroute mobile traffic through proxy to see what client actually tells to the server.
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
Correct. All images are unique
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
As I was double checking differences between working images and broken ones - I may have found an interesting fact. I dont know if its true for all images that dont work, but Im using “shared albums” feature in Google Photos app and suspiciously photos that failed to backup were put in one of the shared albums in Google Photos app. Again, those are my photos that I shared with others, not the other way around
65 replies
IImmich
•Created by paveldudka on 4/15/2023 in #help-desk-support
Some photos are not backing up (iPhone)
They are not visible on the web. Connecting directly to the server
65 replies