Comments (15)
I've found the problem; the snap turns off Asar bundling because I copied the idea from the Flatpak. I believe the idea in the flatpak is that by removing the bundling, the Flatpak update mechanism can more efficiently target specific files that have changed between releases. Snap updates don't work the same way and update (usually) via the delta's between two squashfs files, so for me it's trivial to just turn the asar bundling back on to fix the built-in Simple Backup plugin.
Once that's done, the snap works exactly as expected.
Strictly speaking, this is somewhat a Simple Backup issue because the exact error was it was looking at the wrong path when Asar bundling is turned off, causing it to not identify the 7za file even though there is one, so other potential future bundled plugins could work fine with Asar bundling turned off.
On the other hand, it's a packaging issue, since all the official releases have Asar bundling turned on.
Long story short, the snap looks good but the flatpak probably needs investigating separately for their Asar settings.
from joplin-plugin-backup.
This should be fixed in version 2.14.11!
from joplin-plugin-backup.
I've tested it in 2.14.11 and it works!
Thank you.
from joplin-plugin-backup.
- Is this with the Buildin Backup Plugin oder with a seperated installed ?
- I think it's about a snap installation?
- Yes, the backup cannot continue because it has no access to 7za and is terminated
from joplin-plugin-backup.
Hi I'm using the AppImage version of Joplin desktop from the Joplin web site.
I haven't installed any plugins myself, I'm using the included 'Backup' plugin that came with the AppImage.
from joplin-plugin-backup.
@personalizedrefrigerator Can you possibly help? Since you have customized something for the default installation on 7zip.
from joplin-plugin-backup.
Thank you for reporting this! I can reproduce this on Ubuntu 23.10.
Because of code signing issues on MacOS, we bundle 7zip with Joplin (rather than with the .jpl
file for Simple Backup).
Semi-related (but different) issues on other projects.
My guess would have been that /tmp
is mounted as noexec
. However, on my system, I'm able to create a subdirectory of /tmp
, put an executable in it, and execute it (so this probably isn't a noexec
issue).
One possible solution could be to copy 7zip/7za
to a different location before executing it on Linux. For example, to a subdirectory of ~/.config/joplin-desktop/cache
.
from joplin-plugin-backup.
Also I wonder how that will work once the app is bundled with Snap?
Perhaps as a fallback we could simply not compress the backup if 7-zip fails?
from joplin-plugin-backup.
Maybe check in advance if 7 zip is executable and if not deactivate the compression and password options (do not show).
from joplin-plugin-backup.
I liked the idea of putting the 7za executable in ~/.config/joplin-desktop/cache or it could be temporarily put into the 'Temporary export path'.
from joplin-plugin-backup.
Pull request: laurent22/joplin#9780
from joplin-plugin-backup.
I'm using the included 'Backup' plugin that came with the AppImage.
This should be Simple Backup v1.3.5 -- Joplin's default plugin build script points to commit bd49c66 which is version 1.3.5. (We didn't update to 1.3.6 because the only listed change was related to plugin metadata (icons & screenshots) ).
As such, if the about screen shows version 1.3.6, there's probably a bug somewhere. (For me, it shows version 1.3.5, but I'm testing with a self-built AppImage).
from joplin-plugin-backup.
Also I wonder how that will work once the app is bundled with Snap?
I don't expect the 7za
binary to be too problematic. I can either wrap around it, bundle the Ubuntu version, or patch the plugin itself since it's now essentially part of the core app; assuming it's even a problem, it might happen to work just fine.
I've tried to test it now to confirm but unfortunately the plugin when loaded from from the Joplin executable (I.E 2.14.x) doesn't initialise properly. The plugin is shown as installed and as built-in, but the config for the plugin in the options menu doesn't load at all.
As far as 2.13.x goes installing it manually, the functionality works just fine, so assuming I can figure out why the UI won't load, I'd expect the 2.14.x version to work fine too.
from joplin-plugin-backup.
I've tried to test it now to confirm but unfortunately the plugin when loaded from from the Joplin executable (I.E 2.14.x) doesn't initialise properly. The plugin is shown as installed and as built-in, but the config for the plugin in the options menu doesn't load at all.
This might be fixed by laurent22/joplin@b51e16c, which removes duplicated logic for finding the location of the build/
directory at runtime. The original code for doing this, present in ElectronAppWrapper.ts, might work even if Asar bundling is turned off.
from joplin-plugin-backup.
It's certainly helpful for the flatpak. When I've evaluated it in the context of the snap, the only benefit is making it easier for people to see the shipped source code and perhaps (untested) some improvement in file access since every file is already archived? The main downside is very subtle breaking of API versus the official builds.
https://www.electronjs.org/docs/latest/tutorial/asar-archives#limitations-of-the-node-api
On balance, I don't think the behaviour breakages, rare as they may be, are worth the few people who might peek at the source code on the file system rather than via GitHub, especially given the build output is already processed by Typescript and is essentially not the real source anymore. Again, the Flatpak might disagree as their bandwidth usage on downloads will likely go significantly up, but ultimately that's Flathubs problem and I personally don't think it's worth shipping unnecessary behaviour changes on top of those that already make us weird by being sandboxed too.
from joplin-plugin-backup.
Related Issues (20)
- backup to nonexisting path (network drive) shows error messages every few minutes
- moveFinishedBackup: dest already exists. HOT 5
- showing backup progress notice HOT 2
- active backup directory has to be renamed each time manually HOT 5
- Encrypted backups can't be decrypted, when password contains certain special characters HOT 7
- Automatic Backups Not Working in Linux Mint HOT 7
- Are notes history also backed up ? HOT 1
- Feature request: Allow building a version without 7Zip HOT 3
- Labels about compression in settings UI aren't quite right HOT 1
- Which option to take for initial sync of Joplin on new iPhone? HOT 2
- Notebooks with names that differ only in special characters are overwritten (Jex export)
- Optimize error msg for Path set to Joplin profile dir
- Notebooks with names that differ only in special characters are merged (MD export) HOT 1
- With single JEX backup, _1 export is generated from time to time
- Backup plugin settings HOT 3
- 7zipa.exe missing in Windows if "Create archive" option is enabled HOT 6
- Suppress error: There is no Data to export HOT 3
- Option to back up only changed notebooks? HOT 5
- My Backup process is stopped by a non-exisiting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joplin-plugin-backup.