Comments (11)
Ok, so meanwhile everything was backed up and I observe an issue in the App - for no apparent reason, thumbnails are missing:
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.
Can you try to sign out and sign back in from your phone?
from immich.
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.
Can you try to sign out and sign back in from your phone?
doesn't make a difference - should it rescan anything?
from immich.
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.
@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.
- Access to bash shell of Postgres container
docker exec -it immich_postgres bash
- Access to Postgres database with the username specified in your
.env
file under the keyDB_USERNAME
. It ispostgres
for my setup.
psql -U postgres
- Connect to the target database, the database name is specified in your
.env
file under the keyDB_DATABASE_NAME
. It isimmich
for my setup
\c immich
- 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.
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.
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.
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.
Thank you for the feedback, let me think about this issue.
from immich.
The original issue is resolved so I think this can be closed. See also #75
from immich.
Related Issues (20)
- Live photo uploaded as jpeg when uploads in shared album HOT 1
- [BUG] docker/volume/immich_model-cache is 65GB HOT 4
- Exception : AuditDeletesResponseDto.fromJson HOT 1
- Upload layout on mobile broken
- Change location dialog doesn't show result for latest value in search input HOT 2
- Server error caused by very poor performance when many images are stacked HOT 2
- Immich android reports error in logs HOT 12
- Places missing on mobile app HOT 2
- New Thumbnails and images are not showing
- Mobile App - People View truncates after 1000 Pictures HOT 1
- Upload always stuck at ~340MB for large files on iOS HOT 1
- Basic Portainer stack deploy fails
- unhandled Error: 500 when importing an Apple Photos library with the CLI HOT 4
- iOS mobile app - some don't upload to immich server HOT 3
- iOS upload freezes on upload errors, silently fails, never resumes HOT 2
- Failed do delete large albumns (more than 32k items) HOT 3
- Cannot download images when browsing on Webview HOT 3
- Android App - Missing pictures on backed up folder HOT 8
- Photos backed up on the background are displayed as displayed as not uploaded HOT 5
- Videos cannot replay until going to a different photo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from immich.