Comments (10)
never mind the next backup worked again
from borg_ynh.
Reopening, because it seems like every second backup is failing according to the logs
from borg_ynh.
Same issue for me : I removed and reinstalled borg backup to be able to upgrade (local backup, I couldn't upgrade because of backup pre-upgrade failing), and now I get this same error :
Échec de la méthode de sauvegarde personnalisée à l’étape 'backup'
A repository already exists at /media/DD2T/Sauvegardes/borg.
It's true, the repository already exists, I just want borg to increment this existing backup (I gave the same folder and same passphrase during installation).
Edit : backup log : https://plaf.fr/zerobin/?07b0253cf639c70f#EqNQ7k1ytGLLnbwJxK2oRHpsCQAPW1p6NLpXosqJPUT4
from borg_ynh.
I think I fixed it by removing the lock of the archive borg break-lock yunohost-backups@remote:backup
. @tomdereub you could try whether this helps in your case, too.
( I cannot access your logs)
EDIT: Fails again
from borg_ynh.
@benneti : thanks, it seems to be working for me (two successful backups for now), even after upgrade to yunohost 4.2.
from borg_ynh.
@tomdereub is it working consistently for you, for me it starts failing again after some days
from borg_ynh.
It's working well for me, I've just a problem with peertube's backup failing, but I didn't take time to investigate this yet.
from borg_ynh.
Actually, I'm getting this error quite often, on 2 different servers. Every time, a borg break-lock resolves the issue for the few next backups, but if a backup is failing for example I have to do it again.
And a strange thing : peertube's backup is often failing, with this same error "A repository already exists at /truc/repoborg". What is strange is that peertube's backup comes after and before working backups of other apps.
Extract from the logs sent by mail :
Collecte des fichiers devant être sauvegardés pour opensondage...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for opensondage. (YunoHost will then actually copy those files to the archive).
Création d’une archive de sauvegarde à partir des fichiers collectés...
L'archive contiendra environ 12.9MiB de données.
Sauvegarde terminée
name: auto_opensondage
results:
apps:
opensondage: Success
system:
size: 13510951
Collecte des fichiers devant être sauvegardés pour peertube...
Loading installation settings...
Declaring files to be backed up...
Backing up data directory...
Backing up the PostgreSQL database...
Backup script completed for peertube. (YunoHost will then actually copy those files to the archive).
Création d’une archive de sauvegarde à partir des fichiers collectés...
L'archive contiendra environ 27.7GiB de données.
L’opération 'Créer une archive de sauvegarde' a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en utilisant la commande 'yunohost log share 20210609-025553-backup_create'
Collecte des fichiers devant être sauvegardés pour rainloop...
Loading installation settings...
Declaring files to be backed up...
Backup script completed for rainloop. (YunoHost will then actually copy those files to the archive).
Création d’une archive de sauvegarde à partir des fichiers collectés...
L'archive contiendra environ 122.7MiB de données.
Sauvegarde terminée
name: auto_rainloop
results:
apps:
rainloop: Success
system:
size: 128636134
Collecte des fichiers devant être sauvegardés pour redirect...
Création d’une archive de sauvegarde à partir des fichiers collectés...
L'archive contiendra environ 49.9KiB de données.
Sauvegarde terminée
And peertube's backup log contains "A repository already exists at /truc/repoborg".
Edit : actually peertube's backup seems to be successful, I can find all files in the borg repository. So I don't understand why I get this line in the mail "The backup miserably failed to backup peertube application.".
from borg_ynh.
I think since one of the last updates this now happens on every backup and additionally complains about a missing translation:
A repository already exists at ssh://yunohost-backups@remote/~/backup.
``
I guess the first message with A repository is alredy is expected and can be suppresed by piping standard out to /dev/null in https://github.com/YunoHost-Apps/borg_ynh/blob/36fc746f08a6e302b80c0c531eea1512adda8a77/conf/backup_method#L37
from borg_ynh.
Actually it seems that "A repository already exists at /truc/repoborg" is just a warning and isn't the cause of failed backup.
On my server, peertube's backup are always marked as failed, but the cause is :
2023-05-23 08:31:35,053: DEBUG - [2023-05-23_07:12:25] apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/55ceb81d-c2b3-4f97-940d-15bd31a3322c.jpg: stat: [Errno 2] No such file or directory: 'apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/55ceb81d-c2b3-4f97-940d-15bd31a3322c.jpg'
2023-05-23 08:31:35,075: DEBUG - [2023-05-23_07:12:25] apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/34a90f29-3b02-440f-aa05-41b5d68a0b6e.jpg: stat: [Errno 2] No such file or directory: 'apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/34a90f29-3b02-440f-aa05-41b5d68a0b6e.jpg'
2023-05-23 08:31:35,076: DEBUG - [2023-05-23_07:12:25] apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/4780c37f-0d56-48a7-8151-5bc482e34774.jpg: stat: [Errno 2] No such file or directory: 'apps/peertube/backup/home/yunohost.app/peertube/storage/thumbnails/4780c37f-0d56-48a7-8151-5bc482e34774.jpg'
It seems that there are some files changing during the backup. Actually the backup works (all files are present in backup, restore is working), but it's marked as failed by borg's script, wich is annoying...
from borg_ynh.
Related Issues (20)
- The backup miserably failed to backup HOT 4
- Borg fails after migration to bullseye HOT 4
- Add a "Manual backup" option" / Possibilité de lancer la sauvegarde manuellement HOT 1
- Updating repo path with config panel does not update domain in backup hook
- Borg not sending app data HOT 15
- [Enhancement] Cache TTL environment variable
- Implement auto-updater
- [Enhancement] Borg keep processing unchanged files as new files HOT 2
- config panel broken HOT 3
- Feature request : Prune in config panel HOT 1
- Seems to fail to backup wireguard app HOT 7
- Memo in case of upgrade >= 1.2.5 HOT 1
- Architecture: Ability to host multiple versions side-by-side
- Add multiple destinations
- Documentation innacurate HOT 5
- Multiple backup-with-borg instances
- Config panel not showing despite working app HOT 8
- Please document the use of backup-with-borg HOT 1
- /var/log/backup_borg.err should be rotated HOT 2
- Borg fails when file changes on disk during archive creation HOT 8
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 borg_ynh.