Giter VIP home page Giter VIP logo

Comments (11)

arminus avatar arminus commented on May 18, 2024

Ok, so meanwhile everything was backed up and I observe an issue in the App - for no apparent reason, thumbnails are missing:
Screenshot_20220320-134006

All pictures on that day were shot pretty much in sequence, no idea why there are thumbnails for some and nor for others, all are landscape and I can view those with missing thumbnails in the app.

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

Can you try to sign out and sign back in from your phone?

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

This issue, plus some order issues with sharp I've run into when working kn the app have made me to rethink of a different method to get the thumbnail images by generating the thumbnail from the phone based on the asset's data and send it along with the raw images. I am experimenting with this to see if there is a lot of difference in term on performance and uploading time.

from immich.

arminus avatar arminus commented on May 18, 2024

Can you try to sign out and sign back in from your phone?

doesn't make a difference - should it rescan anything?

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

It would retry to refresh the cache.

However, I am experimenting with getting thumbnail images from the phone. The result is very promising, with the much faster upload speed and cut dependency from Sharp and FFmpeg.

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

@arminus This issue should be fixed in the latest release

If you have access to a Postgres client, you can delete all the rows in the assets table and reupload all the files. If not, you can follow the steps below on the command line to delete all the existing assets info in the database after running docker-compose command.

  1. Access to bash shell of Postgres container
docker exec -it immich_postgres bash
  1. Access to Postgres database with the username specified in your .env file under the key DB_USERNAME. It is postgres for my setup.
psql -U postgres
  1. Connect to the target database, the database name is specified in your .env file under the key DB_DATABASE_NAME. It is immich for my setup
\c immich
  1. Delete all the assets information from the table assets
DELETE FROM assets;

Noe, the upload process should be faster and also should resolve the thumbnail issue.

Let me know how it goes.

from immich.

arminus avatar arminus commented on May 18, 2024

Ok, the errors are gone and all thumbnails are getting created.

All in all though it seems less stable. I repeatedly had these messages:

[Nest] 29  - 03/23/2022, 9:32:07 AM   ERROR [createUserAsset] Error Create New Asset QueryFailedError: duplicate key value violates unique constraint "UQ_b599ab0bd9574958acb0b30a90e"
TypeError: Cannot read properties of undefined (reading 'id')
    at /usr/src/app/src/api-v1/asset/asset.controller.ts:62:64
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

after which I had to restart both the container as well as the app for the sync to continue.

Also, the immich_server container permanently eats ~ 15% of my CPU, even if it doesn't do anything. Is that the development watch mode? How can I turn that of? (tried setting production in the .env file, doesn't start in that case)

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

Did you delete the assets from the database following the steps in the previous post? This error means that you have existing assets (files) and try to rewrite them into the database with the existing assets' information. I would assume you only deleted the files in the shared folder?

My CPU on standby shows 1.5 to 3 % of usage I am using docker stats to see the usage stats. I have to investigate why it is high on other machines.

from immich.

arminus avatar arminus commented on May 18, 2024

Of course I deleted the contents from the assets table. I think that at some point during the sync (> 2000 images and videos), something "happend", i.e. it stopped from some reason. Maybe when it tries to restart it produces that error.

from immich.

alextran1502 avatar alextran1502 commented on May 18, 2024

Thank you for the feedback, let me think about this issue.

from immich.

arminus avatar arminus commented on May 18, 2024

The original issue is resolved so I think this can be closed. See also #75

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.