Giter VIP home page Giter VIP logo

Comments (10)

benneti avatar benneti commented on July 18, 2024

never mind the next backup worked again

from borg_ynh.

benneti avatar benneti commented on July 18, 2024

Reopening, because it seems like every second backup is failing according to the logs

from borg_ynh.

tomdereub avatar tomdereub commented on July 18, 2024

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.

benneti avatar benneti commented on July 18, 2024

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.

tomdereub avatar tomdereub commented on July 18, 2024

@benneti : thanks, it seems to be working for me (two successful backups for now), even after upgrade to yunohost 4.2.

from borg_ynh.

benneti avatar benneti commented on July 18, 2024

@tomdereub is it working consistently for you, for me it starts failing again after some days

from borg_ynh.

tomdereub avatar tomdereub commented on July 18, 2024

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.

tomdereub avatar tomdereub commented on July 18, 2024

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.

benneti avatar benneti commented on July 18, 2024

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.

tomdereub avatar tomdereub commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.