Coder Social home page Coder Social logo

Comments (15)

alextran1502 avatar alextran1502 commented on June 17, 2024 2

Would running the thumbnail generation job for missing help with this issue?

from immich.

bo0tzz avatar bo0tzz commented on June 17, 2024

You can probably find the file by going to http://your-instance/photos/468412be-b26d-402f-99fb-63cb2354f41f

from immich.

Joly0 avatar Joly0 commented on June 17, 2024

Thanks for the answer. I tried that, but that wasnt helpful either. I only get this:

Not found or no asset.read access - 400
Error: Error: 400
    at Object.he [as ok] (https://your-instance/_app/immutable/chunks/fetch-client.C5U4i6mn.js:1:2876)
    at async vt (https://your-instance/_app/immutable/nodes/15.C3xyfxk-.js:1:2145)
    at async ke (https://your-instance/_app/immutable/chunks/entry.BRVSVuJG.js:1:13443)

I also tried recreating immich from scratch, and now there are even more images with this issue

from immich.

ThisIsCyreX avatar ThisIsCyreX commented on June 17, 2024

I do have the same issue, but not with an external library. It started with seven assets, and I'm now at 36 different assets that say:

[Nest] 7  - 06/04/2024, 12:00:01 AM VERBOSE [ImmichMicroservices] [PersonService] Cropping face for person: 9e34737f-6bd6-4ea1-bd0b-fd37b28346ee
[Nest] 7  - 06/04/2024, 12:00:01 AM   ERROR [ImmichMicroservices] [JobService] Unable to run job handler (thumbnailGeneration/generate-person-thumbnail): Error: Input file contains unsupported image format
[Nest] 7  - 06/04/2024, 12:00:01 AM   ERROR [ImmichMicroservices] [JobService] Error: Input file contains unsupported image format
    at Sharp.toFile (/usr/src/app/node_modules/sharp/lib/output.js:89:19)
    at MediaRepository.generateThumbnail (/usr/src/app/dist/repositories/media.repository.js:69:14)
    at PersonService.handleGeneratePersonThumbnail (/usr/src/app/dist/services/person.service.js:427:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /usr/src/app/dist/services/job.service.js:145:36
    at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
    at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 7  - 06/04/2024, 12:00:01 AM   ERROR [ImmichMicroservices] [JobService] Object:
{
  "id": "9e34737f-6bd6-4ea1-bd0b-fd37b28346ee"
}

Can't check what image/video it is. The log won't say even in debug/verbose mode.

Also with http://your-instance/photos/9e34737f-6bd6-4ea1-bd0b-fd37b28346ee I get the same:

Error - Something went wrong
Not found or no asset.read access (400)
Stacktrace
me@http://your-instance/_app/immutable/chunks/fetch-client.C5U4i6mn.js:1:2952
he@http://your-instance/_app/immutable/chunks/fetch-client.C5U4i6mn.js:1:2876

from immich.

shomilsaini avatar shomilsaini commented on June 17, 2024

Same issue here, I am not sure if there is a fix for this. I am frustrated with this error, it is on thousands of files for me.

from immich.

Snowknight26 avatar Snowknight26 commented on June 17, 2024

What about /api/asset/file/[assetId]?isThumb=false&isWeb=false where [assetId] is one of the IDs giving the error?

Alternately query the database:

docker exec -it immich_postgres /bin/bash
psql -t -U postgres immich -c "select \"originalPath\" FROM assets WHERE id = '[assetid]'"

(replacing container name, username and adding a password where necessary; [assetId] is the asset UUID)

from immich.

ThisIsCyreX avatar ThisIsCyreX commented on June 17, 2024

With /api/asset/file/[assetId]?isThumb=false&isWeb=false
I get {"message":"Not found or no asset.view access","error":"Bad Request","statusCode":400}

And the database query

docker exec -it immich_postgres /bin/bash
psql -U postgres immich
SELECT "originalPath" FROM "assets" WHERE id = '12345678-1234-1234-1234-123456789012';

resulted in (0 rows) on those I tested

from immich.

zaggash avatar zaggash commented on June 17, 2024

Same for me The SQL request do not have a result on failed IDs.

from immich.

Snowknight26 avatar Snowknight26 commented on June 17, 2024

Maybe the ID isn't an asset ID but a person ID? If so, there should be a way to get assets linked to that person ID.

Maybe this? (Haven't tested nor do I know the table structure)

SELECT "thumbnailPath", "faceAssetId" FROM "person" WHERE id = '[id]';

from immich.

zaggash avatar zaggash commented on June 17, 2024

for uuid in $(docker logs immich_server 2>&1 | grep '"id":' | cut -d ":" -f 2 | tr -d '"' | uniq); do docker exec immich_pg psql -U postgres immich -c "SELECT \"thumbnailPath\", \"faceAssetId\" FROM person WHERE id = '$uuid'" ; done

Indeed, for some I have results like:

thumbnailPath |             faceAssetId              
---------------+--------------------------------------
               | fb084db8-34e7-40b6-8e99-8eea15f5dcb4
(1 row)

And others

----------------------------------------------------------------------------------------------------+--------------------------------------
 upload/thumbs/2078d332-65ae-4f1b-aeb3-2280a79eb8d7/87/11/87119b86-8465-477d-8f84-37a8386620a9.jpeg | b398757a-e111-4045-b001-1de203a08b55
(1 row)

from immich.

dagstuan avatar dagstuan commented on June 17, 2024

I encountered this as well. This seems to be caused when Immich attempts to generate person thumbnails from persons only identified in videos. If I go to https://[immich_url]/people/[id_from_error] I can see the person with a broken thumbnail and only video clips.

from immich.

ThisIsCyreX avatar ThisIsCyreX commented on June 17, 2024

With SELECT "thumbnailPath", "faceAssetId" FROM "person" WHERE id = 'personsthumbsIDs;
I get the faceAssetId without thumbnailPath. Not sure what I can do with that information.

/edit: Thank you. 1.106.4 fixed it :)

from immich.

santi8ago8 avatar santi8ago8 commented on June 17, 2024

I'm having this same issue!

from immich.

dagstuan avatar dagstuan commented on June 17, 2024

I got this error when I re-ran the job, so no :)

An example of a person with a broken thumbnail only appearing in a single video. This is after re-running the thumbnail generation job.

image

from immich.

santi8ago8 avatar santi8ago8 commented on June 17, 2024

I think this one #10240 fixed this issue.

from immich.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.