Seccomp error? audit: type=1326 whenever trying to upload images in Sharkey

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.7
What app is this about: Sharkey

Describe your issue

When trying to upload images within the Sharkey web UI, it will show a loading pop-up in the upper right but then nothing happens. There is no “file size too big” message or any other error message within Sharkey. The upload simply fails. I have followed the steps on Sharkey’s FAQ about enabling “keep original image” and disabling fingerprinter blocks in browsers in order to allow the Canvas API to work. Same problem in Firefox, Chrome, and Edge.

I have used the error field below to share what popped up in the VPS CLI after three attempts at uploading images to various places within the Sharkey web UI while the CLI is open.

I am not sure if the problem here is with Yunohost, the Sharkey app for Yunohost, or somewhere on the VPS side. I checked with some Sharkey devs and they said “that looks like some security thing that’s very outside our code” and “Probably, you are encountering a permissions or disk-space issue for the sharkey files location. You should ensure that Sharkey can write to the files folder.” How can I ensure the Sharkey app has this permission?

Share relevant logs or error messages

No YunoHost error logs. If I have VPS CLI open, these messages are generated when I try uploading images to different locations within Sharkey.

~$ [246270.617811] audit: type=1326 audit (1733491511.402:41); au id=4294967295 uid=995 gid=994 ses=4294967295 subj=unconfined pid=80147 comm="node" exe="/opt/node_n/n/versions/node/22.12.0/bin/node" sig=31 arch=c000003e syscall-93 compat=0 ip=0x7f42e8d184b7 code=0x80000000
[246399.149541] audit: type=1326 audit (1733491639.930:42) auid=4294967295 uid=995 gid=994 ses=4294967295 subj=unconfined pid=86124 comm="node" exe="/opt/node_n/n/versions/node/22.12.0/bin/node" sig=31 arch=c000003e syscall=93 compat=0 ip=0x7f0e96b184b7 code=0×80000000
[246444.501394] audit: type=1326 audit (1733491685.276:43): auid=4294967295 uid=995 gid=994 ses=4294967295 subj-unconfined pid=86224 comm="node" exe="/opt/node_n/n/versions/node/22.12.0/bin/node" sig=31 arch=c000003e syscall=93 compat=0 ip=0x7fa6eb6394b7 code=0x80000000  ```

I am still experiencing this issue. I am also encountering the following error messages after trying to upload an image from a URL (for user icon, user banner, etc) then navigating to a different page within the settings panel:

ERROR: TypeError: error loading dynamically imported module: https://fedi.mouhitorinoboku.boo/vite/DM9aMVp-.js

ERROR: Error: Unable to preload CSS for /vite/Dd6nQyVX.css

ERROR: TypeError: error loading dynamically imported module: https://fedi.mouhitorinoboku.boo/vite/DqRee59P.js

If you have an S3 bucket, you can attach it, and it will work mostly. Profile pictures still don’t work correctly, and it does require a separate s3 bucket though. I’m trying a few things out to see if I can get it working on its own, but that’s all I’ve got at this point.

Edit: It’s definitely trying to make the images, they’re getting added to the sharkey/files/ directory, they’re just added as 0b empty files.

I don’t use the app but for debugging these kind of errors :

  • open the dev tools of your browser and network tab. Retry the action and see what the console says
  • check on the webadmin > tools > services > nginx. Look for the domain of the app and error. You’ll find certainly a lot of noise.
  • if the app has a service, check its service log : webadmin > tools > services > your app

Good luck

Thanks, I’ll try that. Do I need a separate Yunohost app for the S3 bucket(s), or should I be able to attach it/them directly via the CLI?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.