-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server error when deleting a user #10467
Comments
Exactly the same here, here are my logs but might not be more helpful. Same thing in the repair section.
|
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. |
I cannot login in with the deleted account to unstack the assets. |
I deleted them manually in the database, the table is 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 Still immich is great thanks! |
This should be an easy bug to fix, so I would just continue using stacks. Well fix it in the next release or so. |
OK, thanks 😁 |
Fixed in #10642 |
The bug
I tried to delete a user, but get the errors in the server logs every day at midnight.
The datebase also throws some errors.
The files of the user are deleted in the filesystem but not in the database.
The repair section in immich also shows a lot of files.
User Management site:
![image](https://private-user-images.githubusercontent.com/73786212/340788045-75826dcb-706c-4494-a6b6-7ff1722dea21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjE4NzEsIm5iZiI6MTczOTM2MTU3MSwicGF0aCI6Ii83Mzc4NjIxMi8zNDA3ODgwNDUtNzU4MjZkY2ItNzA2Yy00NDk0LWE2YjYtN2ZmMTcyMmRlYTIxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExNTkzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIwM2YxNzhlYTE3NzIxNDc1NWVkNGEzZGIzY2M4ODAzNjczM2NkMzMxODE4NjgwMTQyZDE3YmRlMzk0NTlmYzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oTkjuFSGxWUjXZ-AcrMheIm5a-b0H9dSgB7RZ5g3cRE)
![image](https://private-user-images.githubusercontent.com/73786212/340788345-735c5280-563b-4c58-a71a-69fd3e19c928.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjE4NzEsIm5iZiI6MTczOTM2MTU3MSwicGF0aCI6Ii83Mzc4NjIxMi8zNDA3ODgzNDUtNzM1YzUyODAtNTYzYi00YzU4LWE3MWEtNjlmZDNlMTljOTI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExNTkzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlYWI1NTgzODRhMWZhMDc4MTMyZTE4NGY4ZmIwNjZlYjA2NWQyYjQ1ZGU3OTI0MTI5ZTM2M2NhNGE0YmRhODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mOJH8bHM0a4vtKbXhDSdPUGOtULfENbOtDFsomCq7bw)
![image](https://private-user-images.githubusercontent.com/73786212/340788865-67dd2267-eaea-42d3-aede-7d1156df827b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjE4NzEsIm5iZiI6MTczOTM2MTU3MSwicGF0aCI6Ii83Mzc4NjIxMi8zNDA3ODg4NjUtNjdkZDIyNjctZWFlYS00MmQzLWFlZGUtN2QxMTU2ZGY4MjdiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExNTkzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMxNDI2YTc0NmIwZjdmMzI1YWFlYWNmZTI3MTI1MWQzNGNhMGZlYzJiM2UxNjM5ZmM5YmU5NjMxZTI5NTY1OTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.k26yygJESzdPVSxuPIU-RkR2a0j7YyDZRMi95QlEdig)
Repair site:
immich_server logs (with highlighting):
The OS that Immich Server is running on
Synology DiskStation Manager (DSM)
Version of Immich Server
v1.106.4
Version of Immich Mobile App
v1.106.3 build.143
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
1. Delete user on the User Management site 2. Wait until user would get deleted
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: