#Unable to delete files from trash

1 messages · Page 1 of 1 (latest)

timid whale
#

I recently migrated from an Ubuntu server to a TrueNAS system.
Everything appeared to be working fine at first, but I’ve noticed that I’m now unable to delete any files.

When I try deleting files from the web UI, I get the following error:

TypeError: Cannot read properties of undefined (reading 'removeAssets')
    at onAssetDelete (28.CENKAWEd.js:1:4489)
    at qt (DR-Tqw7s.js:9:4134)
    at async Object.p [as onConfirm] (B699Q3dj.js:1:846)

When attempting the same action from the mobile app, the deletion seems to succeed, but the assets still appear in the web UI afterward.

I’ve also attached the dataset ACL for reference.

deep hillBOT
#

:wave: Hey @timid whale,

Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich immich.

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: uploaded the relevant information (see below).
  7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

deep hillBOT
timid whale
#

I also tried a completely new install, to see if something got broken when switching systems, but the behavior persisted.

hardy helm
#

How are you connecting to immich?

kindred edge
#

Are you able to upload and delete new assets?

How did you apply the acl also? Did you apply it recursively? Or created the datasets then copied the data over?

timid whale
#

I'm able to upload new assets and trash them. But when trying to remove from trash I get this error.

The data was copied first and the ACL was applied later recursively.

#
DR-Tqw7s.js:1 using deprecated parameters for `initSync()`; pass a single object instead
ft @ DR-Tqw7s.js:1
I_2t--hX.js:6 [handleError]: Erro ao excluir arquivos TypeError: Cannot read properties of undefined (reading 'removeAssets')
    at onAssetDelete (28.CENKAWEd.js:1:4489)
    at qt (DR-Tqw7s.js:9:4134)
    at async Object.p [as onConfirm] (B699Q3dj.js:1:846) TypeError: Cannot read properties of undefined (reading 'removeAssets')
    at onAssetDelete
kindred edge
#

As Zeus asked, how are you connecting to Immich?

timid whale
#

Sorry, I didn't quite get the question.

I'm running on a local machine and accessing through reverse proxy.

Tested on incognito without reverse proxy as requested and the behavior is still the same:

kindred edge
#

What browser are you using? And how does the picture reapear? When you refresh the page?
I just tried on my system and have the error too but it seem a bit different

#

Because the asset seem to be trashed (on my system)

timid whale
#

Running some additional tests I noticed that the "Restore" button is not working as well.

The picture is only reappearing if I delete from the mobile device.

I did a test deleting from the Webui and had the same results as you. I can see it being removed from the file system.

#

But my main concern here was with the error on the web ui. If it is something that I did wrong on my migration from ubuntu to truenas.

kindred edge
#

No I don't think so, I have the same issue.
I'm also using TrueNAS, but installed the app through their catalog, so I'm not fully sure if that is TrueNAS related or a more "general" immich issue

#

Although restoring using the webUI works for me

timid whale
#

To me restore is only working from the mobile app. 🤔

I’m less concerned now that I know the asset is actually being removed from the filesystem.
My main concern was just making sure the space gets freed up.

I haven't found any related issue on git, should I open one or having it open here is enough?

kindred edge
#

#23818

deep hillBOT
kindred edge
#

Seem to have been addressed?

deep hillBOT
kindred edge
#

Should be in the next release (for the delete part)

timid whale
#

That's cool! Thanks for the support 😄
I'll close this ticket

kindred edge
#

Well

#

Maybe for the restore part it's a different problem

#

I'm not fully certain, but it works on my system, so I wonder what is "wrong" on yours

timid whale
#

It seems pretty similar to #23818

I'll wait for next release and if the behavior persists I can reopen here.

deep hillBOT
kindred edge
#

Yes that look the same, but you say that in your case it doesn't restore?

#

Or if you refresh the web page it is actually restored?

#

If the latter then you can close the ticket as it'll be fixed

timid whale
#

Just tested, it restored the file, I just had to refresh the page

#

Thank you all for the support 😄

kindred edge
#

No problem!

deep hillBOT
#

This thread has been closed. To re-open, use the button below.

kindred edge
kindred edge
timid whale
#

Thanks for the info. I'm still trying to understand how the acl works on truenas.

I'll probably tweak the values in the next days