I
Immich•2y ago
Pixil

Image upload and deletion not working

I recently setup Immich in a Kubernetes cluster and everything seems to be working fine, except for images don't upload via the website but they upload fine from the iOS client. Then, when I try to delete an image from the website, it gives me an error saying "Error deleting assets" but the photos do seem to be deleted. I've attached a photo of the browser's debug console, there is a "Load of media resource failed" error, followed by an Error deleting assets TypeError: _.buckets[s] is undefined". Is there anyway to get more information on these errors? When I check the logs of the pods there doesn't appear to be anything wrong.
No description
No description
31 Replies
Alex Tran
Alex Tran•2y ago
I think this might be a bug in state management on the web I am not yet able to reproduce reliably
Pixil
PixilOP•2y ago
let me know if I can do anything to help Is there anything I can do in the mean time to mitigate the issue?
Alex Tran
Alex Tran•2y ago
I mean they are deleted right? Just the feedback was incorrect Ah are you talking about images not able to upload via the web?
Pixil
PixilOP•2y ago
yeah
Alex Tran
Alex Tran•2y ago
I would have to pull in @bo0tzz , K8S expert
bo0tzz
bo0tzz•2y ago
I don't see a way that this would be a k8s problem, but let's see Can you post your values.yaml and all the logs etc? Also check the browser console & devtools' network tab to see if there's any errors there perhaps
Pixil
PixilOP•2y ago
I can, I'm not using the helm chart though so I just have a bunch of yaml files checked into git
bo0tzz
bo0tzz•2y ago
It'll be a while before I can take a look then. Can you link the repo?
Pixil
PixilOP•2y ago
if you don't mind, I'll just add you to it since it's private. I feel a bit weird making it public even though the secrets are encrypted, are you bo0tzz on github as well?
bo0tzz
bo0tzz•2y ago
All good, yes indeed
Pixil
PixilOP•2y ago
sent you an invite, there are two branched, dev and production that each have a deployment. The dev branch's deployment works fine. The production one has these problems
bo0tzz
bo0tzz•2y ago
@Pixil you gave me push access 😅
Pixil
PixilOP•2y ago
I sure did.... I thought I'd be able to set your access level
Pixil
PixilOP•2y ago
but apparently you can't give someone read only access to a private repo. https://github.com/orgs/community/discussions/23128
GitHub
Can I give read-only access to a private repo (from a developer acc...
Hi everyone, apologies if this is repeating a topic discussed already. Can I give read-only access to my private repo, to someone who is not a collaborator at present? Can I share a url, or add som...
Pixil
PixilOP•2y ago
okay, I've removed you and just made it public
Pixil
PixilOP•2y ago
bo0tzz
bo0tzz•2y ago
That's wild lol wtf
Pixil
PixilOP•2y ago
seems like a pretty critical thing to be able to do So I have two clusters running, production and dev. You can see the different branches in the repo. The dev one works fine, while the production one doesn't. The only difference is that for production I'm using a specific nfs mount while dev is using nfs-subdir to provision a volume but since the iOS client can upload files fine and they appear on the nfs mount it should be working correctly I can pull logs tonight, is there a way to increase verbosity in logging?
bo0tzz
bo0tzz•2y ago
There's a log level env var. I don't remember what it is though so you'll need to check the logs 😅
Alex Tran
Alex Tran•2y ago
LOG_LEVEL=verbose but I am not sure it would help. Any log on the server when you upload the file? Or from the web console
Pixil
PixilOP•2y ago
I didn't see any logs in the server, proxy, or web pods when I tried to upload last night, I can't check it while I'm at work I don't get anything in the web console at all fwiw I'm trying to upload a heic file I got from google takeout I think I just identified the problem, all the images I tried are heic, when I try a random jpg I grabbed from wikipedia it uploaded fine
bo0tzz
bo0tzz•2y ago
Do you have a file you can share for us to try?
Pixil
PixilOP•2y ago
bo0tzz
bo0tzz•2y ago
@Alex if you have time? I'm nowhere near a running instance right now 😛
Pixil
PixilOP•2y ago
oooh I also don't get the error on deletion when I delete a recently uploaded jpg
Alex Tran
Alex Tran•2y ago
Hmm probably some bugs with the web when trying to determine if the file is uplodable, we change a few things in that mechanism last release. I tested on the demo instance and nothing show up I will have to check this when I get home and my internet is back up can you open an issue?
Pixil
PixilOP•2y ago
sure thing Should I write up a separate issue for the deletion error?
Pixil
PixilOP•2y ago
GitHub
[BUG] Unable to upload heic files from the web interface · Issue #3...
The bug I have a newly setup Immich instance in kubernetes. When I try to upload an heic file from the web interface it does not work and acts as if nothing happened. I am able to upload jpg files ...
Alex Tran
Alex Tran•2y ago
Thank you! Yes if you can find a way to reproduce it
Pixil
PixilOP•2y ago
I'll see if I can reproduce it on my dev cluster tonight
bo0tzz
bo0tzz•2y ago
I just sat down to have a good look at this and I see the code fix has already been merged 😄

Did you find this page helpful?