Comments (7)
This is a bug with stacked assets which have a circular dependency that we aren't handling. Assets belong to a stack and a stack has a primary asset.
In the short term just unstack all the stacked assets for that user and then it should get deleted.
from immich.
Fixed in #10642
from immich.
Exactly the same here, here are my logs but might not be more helpful. Same thing in the repair section.
For now it happens when I import some file using https://github.com/simulot/immich-go but it might be related to a broader issue.
Might also be related to #8207
[Nest] 7 - 06/25/2024, 10:01:40 PM LOG [Microservices:UserService] Deleting user: af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 7 - 06/25/2024, 10:01:40 PM WARN [Microservices:UserService] Removing user from filesystem: upload/library/remi
[Nest] 7 - 06/25/2024, 10:01:40 PM WARN [Microservices:UserService] Removing user from filesystem: upload/upload/af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 17 - 06/25/2024, 10:01:43 PM LOG [Api:EventRepository] Websocket Disconnect: Wtci2iBYqJc0lg5wAAAP
[Nest] 17 - 06/25/2024, 10:01:43 PM LOG [Api:EventRepository] Websocket Connect: PifiYcOm1URAciyyAAAR
[Nest] 7 - 06/25/2024, 10:01:44 PM WARN [Microservices:UserService] Removing user from filesystem: upload/profile/af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 7 - 06/25/2024, 10:01:44 PM WARN [Microservices:UserService] Removing user from filesystem: upload/thumbs/af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 7 - 06/25/2024, 10:01:48 PM WARN [Microservices:UserService] Removing user from filesystem: upload/encoded-video/af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 7 - 06/25/2024, 10:01:49 PM WARN [Microservices:UserService] Removing user from database: af47f895-69c8-4893-9f8e-943aae60299b
[Nest] 7 - 06/25/2024, 10:01:49 PM ERROR [Microservices:JobService] Unable to run job handler (backgroundTask/user-deletion): QueryFailedError: update or delete on table "assets" violates foreign key constraint "FK_91704e101438fd0653f582426dc" on table "asset_stack"
[Nest] 7 - 06/25/2024, 10:01:49 PM ERROR [Microservices:JobService] QueryFailedError: update or delete on table "assets" violates foreign key constraint "FK_91704e101438fd0653f582426dc" on table "asset_stack"
at PostgresQueryRunner.query (/usr/src/app/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async DeleteQueryBuilder.execute (/usr/src/app/node_modules/typeorm/query-builder/DeleteQueryBuilder.js:52:33)
at async SubjectExecutor.executeRemoveOperations (/usr/src/app/node_modules/typeorm/persistence/SubjectExecutor.js:461:17)
at async SubjectExecutor.execute (/usr/src/app/node_modules/typeorm/persistence/SubjectExecutor.js:104:9)
at async EntityPersistExecutor.execute (/usr/src/app/node_modules/typeorm/persistence/EntityPersistExecutor.js:140:21)
at async UserService.handleUserDelete (/usr/src/app/dist/services/user.service.js:158:9)
at async /usr/src/app/dist/services/job.service.js:148: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/25/2024, 10:01:49 PM ERROR [Microservices:JobService] Object:
{
"id": "af47f895-69c8-4893-9f8e-943aae60299b",
"force": true
}
from immich.
I cannot login in with the deleted account to unstack the assets.
And I think I had no stacked assets in that account.
from immich.
I deleted them manually in the database, the table is asset_stack
.
I tried to look for any stacked asset before starting the account deletion process but i could not see one in the web ui, It can be me that just didnt see them tho.
I'm just preventing immich go to stack image for now -create-stacks=FALSE
. But that's kind of a shame.
Still immich is great thanks!
from immich.
This should be an easy bug to fix, so I would just continue using stacks. Well fix it in the next release or so.
from immich.
OK, thanks π
from immich.
Related Issues (20)
- Both machine learning and main server containers no longer start up in latest release HOT 3
- Server is not response from android app HOT 2
- Users have button to remove license
- Video that was already in timeline, no longer shows up. File is still visible in filesystem. HOT 2
- Immich only starts up after 10 minutes HOT 6
- Immich server constantly reboots HOT 1
- Migration "AddFaceSearchRelation1718486162779" failed HOT 6
- Unable to update from 1.107.0
- IOS Server Not reachable
- γERRORγMy 'GENERATE THUMBNAILS' function has been unable to complete HOT 1
- Serbian Cyrillic wrong font HOT 2
- Search result Multi Problems
- When using remote microservices container with different GPU one fails. HOT 3
- Error 400 when saving Email Notification Settings
- Android app does not play live photo HOT 1
- White screen after closing photo HOT 2
- Can't idenfity faces in panoramas
- Can't set image description to blank
- Can't see number of assets for unassigned faces
- "Storage space" values completely incorrect HOT 1
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.