joplin-plugin-backup icon indicating copy to clipboard operation
joplin-plugin-backup copied to clipboard

EACCES Error relating to 7za when creating backup archive

Open c0f opened this issue 5 months ago • 9 comments

Hi, when I run a backup I get the following error:

createZipArchive: spawn /tmp/.mount_JoplinPwiy47/resources/build/7zip/7za EACCES

The backup creates source files in my backup destination under a folder called 'joplin_active_backup_job'. This folder contains all of my notes as individual files. I assume this is a temporary copy before the archive is created.

At the same time the backup also creates an empty folder called 'JoplinBackup' in my backup destination.

Nothing relating to backups is written to $HOME/.config/joplin-desktop/logs.txt.

The following error is shown in activeBackup.log: [2024-01-23 17:38:29.143] [error] createZipArchive: spawn /tmp/.mount_JoplinPwiy47/resources/build/7zip/7za EACCES

There are no other errors in the activeBackup.log and the error above is the last entry in the log.

/tmp/.mount_JoplinPwiy47/resources/build contains the following files:

-rw-r--r-- 1 root root 1457384 Jan 18 22:05 7za
-rw-r--r-- 1 root root    3672 Jan 18 22:05 license.txt

If I go into a terminal and try to run 7za from this folder I get a 'Permission Denied' error. The same happens if I try to run 7za with sudo. I cannot make 7za executable as sudo. I assume this is normal behaviour and part of the AppImage sandboxing.

I have tried closing Joplin and deleting the entire /tmp/.mount_JoplinPwiy47. The folder is recreated when I next run Joplin but the EACCES error persists.

Changing the 'Temporary export path' to a folder within my user home folder does not remove the error.

I have the following backup configuration options:

  • Backup path: An empty directory within my home directory
  • Keep x backups: 100
  • Backup interval in hours: 24
  • Only on change: Ticked
  • Password protected backups: Unticked
  • Password: Not set
  • Loglevel: Verbose
  • Create archive: Yes, one archive
  • Compression level: Normal
  • Temporary export path: An empty directory within my home directory (not the same path as Backup path)
  • Backup plugins: Unticked
  • Export format: MD Frontmatter
  • Single JEX: Unticked
  • Command on Backup finish: Blank

I am running Joplin desktop version 2.14.10 on Kubuntu 23.10. Simple Backup is version 1.3.6.

Joplin 2.14.10 (prod, linux) Sync Version: 3 Profile Version: 45 Keychain Supported: No Revision: 3ed6ad5 Simple Backup: 1.3.6

c0f avatar Jan 23 '24 17:01 c0f