borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
1.98k stars 130 forks source link

Please help with the Vorta scheduler. #1038

Closed JackDinn closed 3 years ago

JackDinn commented 3 years ago

All i needed is to set up 2 profiles. I need one to be scheduled every 12 hours at 00:00 & 12:00 and the other profile to also be every 12 hours but at 06:00 & 18:00.

This is easy with cron type of scheduling, but there is no way to schedule the second profile (06:00 & 18:00) in Vorta :-(

I really don't want to lose all the benefits and convenience of using Vorta over Borg, but I just can't see how I can schedule it.

m3nu commented 3 years ago

The scheduler in the GUI isn't as flexible as Cron and probably never will be.

Using vorta --create is the right approach. Just make sure it's run with the same user and a Vorta instance is already running. Then it will trigger the update and you can use any external scheduler.

JackDinn commented 3 years ago

I am running from my user crontab and Vorta is running in the tray, but i get this error when vorta is executed automatically by crontab on it's schedule. :-

❰greg❙~❱✔≻ crontab -l
0 00,12 * * * /use/bin/vorta --create NAS
❰greg❙~❱✔≻ journalctl -b 0 | grep CMDOUT
Jul 15 12:00:01 greg-inspiron5767 CROND[230964]: (greg) CMDOUT (qt.qpa.xcb: could not connect to display )
Jul 15 12:00:01 greg-inspiron5767 CROND[230964]: (greg) CMDOUT (qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.)
Jul 15 12:00:01 greg-inspiron5767 CROND[230964]: (greg) CMDOUT (This application failed to start because no Qt platform plugin could be initialized. Reinstalling the applic
ation may fix this problem.)
bastiencyr commented 3 years ago

What is your distribution? In a terminal, what is the result of 'whereis vorta' ? And in cron script ? On Linux "/use" is not supposed to exist. Maybe you did an error. From which package did you install vorta (official, pip, flat...) ? Can you run vorta in cron in debug mode (export QT_DEBUG_PLUGINS=1) ? And print the user to be sure (whoami) ? Oufff no more questions 😅

JackDinn commented 3 years ago

Im not sure why all the questions as anyone can replicate this by setting up a crontab to execute a profile backup.

However i shall answer what i can.

System:
  Kernel: 5.10.49-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=bfe48f69-800c-4332-b8ea-0df162b1710d rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: Dell product: Inspiron 5767 v: N/A serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Dell model: 03XWWJ v: A00 serial: <filter> UEFI-[Legacy]: Dell 
  v: 1.4.1 date: 12/24/2020
❰greg❙~❱✔≻ whereis vorta
vorta: /usr/bin/vorta

crontab -e

*/1 * * * * whereis vorta

journalctl out for the above command:-

Jul 21 12:17:01 greg-inspiron5767 CROND[659151]: (greg) CMD (whereis vorta)
Jul 21 12:17:01 greg-inspiron5767 CROND[659150]: (greg) CMDOUT (vorta: /usr/bin/vorta)
Jul 21 12:17:01 greg-inspiron5767 CROND[659150]: (greg) CMDEND (whereis vorta)

On Linux "/use" is not supposed to exist. Maybe you did an error.

Cant answer this question, i dont understand it, however i can tell you that there is no /use file or dir & there is no "use" command on my system.

aur/vorta 0.7.7-1 (+32 1.90) (Installed)

❰greg❙~❱✘≻ yay -Qi vorta
Name            : vorta
Version         : 0.7.7-1
Description     : A GUI for BorgBackup
Architecture    : any
URL             : https://github.com/borgbase/vorta
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : borg  python-appdirs  python-apscheduler  python-pyqt5  python-peewee  python-paramiko  python-dateutil  python-secretstorage  python-psutil
                  python-llfuse  python-setuptools
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 1496.02 KiB
Packager        : Unknown Packager
Build Date      : Mon 21 Jun 2021 08:50:11 BST
Install Date    : Mon 21 Jun 2021 08:50:21 BST
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None

/1 * whoami

Jul 21 12:30:01 greg-inspiron5767 CROND[663879]: (greg) CMD (whoami)
Jul 21 12:30:01 greg-inspiron5767 CROND[663878]: (greg) CMDOUT (greg)
JackDinn commented 3 years ago

Can you run vorta in cron in debug mode (export QT_DEBUG_PLUGINS=1) ?

Ok got the journalctl output from running vorta in debug mode from crontab schedual. You can see the same error as before towards the bottom :-

❰greg❙~❱✘≻ journalctl -f | egrep 'CROND|CMD|CMDOUT|vorta'
Jul 21 13:12:02 greg-inspiron5767 systemd-coredump[683087]: Process 683081 (vorta) of user 1000 dumped core.
Jul 21 13:12:02 greg-inspiron5767 CROND[683080]: (greg) CMDEND (export QT_DEBUG_PLUGINS=1;/usr/bin/vorta --create NAS)
Jul 21 13:12:02 greg-inspiron5767 CROND[683080]: pam_unix(crond:session): session closed for user greg
Jul 21 13:13:01 greg-inspiron5767 CROND[683586]: (greg) CMD (export QT_DEBUG_PLUGINS=1;/usr/bin/vorta --create NAS)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() checking directory path "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms" ...)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "eglfs")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QEglFSIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("eglfs"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "linuxfb")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QLinuxFbIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("linuxfb"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "minimal")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QMinimalIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("minimal"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "minimalegl")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QMinimalEglIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("minimalegl"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "offscreen")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QOffscreenIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("offscreen"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "vnc")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QVncIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 audit[683586]: ANOM_ABEND auid=1000 uid=1000 gid=1001 ses=87 subj==unconfined pid=683586 comm="vorta" exe="/usr/bin/python3.9" sig=6 res=1
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("vnc"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "wayland-egl")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QWaylandEglPlatformIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("wayland-egl"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "wayland")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QWaylandIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("wayland"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "wayland-xcomposite-egl")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("wayland-xcomposite-egl"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 kernel: audit: type=1701 audit(1626869582.134:901): auid=1000 uid=1000 gid=1001 ses=87 subj==unconfined pid=683586 comm="vorta" exe="/usr/bin/python3.9" sig=6 res=1
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "wayland-xcomposite-glx")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("wayland-xcomposite-glx"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "webgl")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QWebGLIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("webgl"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() looking at "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Found metadata in lib /home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so, metadata=)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ({)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "MetaData": {)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        "Keys": [)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (            "xcb")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (        ])
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    },)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "archreq": 0,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "className": "QXcbIntegrationPlugin",)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "debug": false,)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (    "version": 331520)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (})
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Got keys from plugin meta data ("xcb"))
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforms" ...)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (loaded library "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so")
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (qt.qpa.xcb: could not connect to display )
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT (Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDOUT ()
Jul 21 13:13:02 greg-inspiron5767 systemd-coredump[683590]: Process 683586 (vorta) of user 1000 dumped core.
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: (greg) CMDEND (export QT_DEBUG_PLUGINS=1;/usr/bin/vorta --create NAS)
Jul 21 13:13:02 greg-inspiron5767 CROND[683585]: pam_unix(crond:session): session closed for user greg
bastiencyr commented 3 years ago

Im not sure why all the questions as anyone can replicate this by setting up a crontab to execute a profile backup.

Actually, it usually works and I can't replicate this issue on Linux Mint on my laptop. It's specific to your setup and particularly to Manjaro or Arch Linux.
I have already seen this error sometimes. It happens when the setup misses a dependence. In your case, it works in terminal but not with crontab which means that env in crontab is not the same than env in terminal. It happens for example when you run vorta in two different pip environments. On Debian or derivatives, it is not a problem since there is an official package for vorta but for Manjaro, I don't really understand how yay works.

Look at this :

loaded library "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so"

This suggests that you run vorta in a local environment. So now you can run vorta in the terminal with QT_DEBUG_MODE=1 and see from where libraries are loaded.

Cant answer this question, i dont understand it, however i can tell you that there is no /use file or dir & there is no "use" command on my system.

On your first crontab, you have performed the command 0 00,12 * * * /use/bin/vorta --create NAS. But I think you changed this.

JackDinn commented 3 years ago

Yea sorry the "use" was a typo.

Ok, so i run it in my normal terminal. This is the bottom (relevant) parts, i hope. It runs fine, it does not complain about not being able to connect to display or anything:-

Got keys from plugin meta data ("ibus")
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/platforminputcontexts" ...
loaded library "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
QFactoryLoader::QFactoryLoader() checking directory path "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/usr/bin/styles" ...
Creating backup using existing Vorta instance.
QLibraryPrivate::unload succeeded on "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" 
QLibraryPrivate::unload succeeded on "/home/greg/.local/lib/python3.9/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" 
QLibraryPrivate::unload succeeded on "Xcursor" (faked)
greg@greg-inspiron5767 ~ $ 

I have been searching and im finding stuff that says things like this quote :-

cron jobs don't even have a tty, let alone an X display form here https://unix.stackexchange.com/questions/68054/xdotool-using-display-0-not-works-in-crontab

and another, but i see a lot of confusing articles. https://serverfault.com/questions/229021/how-to-use-crontab-to-display-something-to-users-on-display-0-0-or-run-a-gui-pr

Im seeing stuff like the following mentioned in different places, but its all over my head

export DISPLAY= (maybe 0)
XAUTHORITY (i shall have to search what this is)
export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus' (no clue)
bastiencyr commented 3 years ago

This is the bottom (relevant) parts, i hope. It runs fine, it does not complain about not being able to connect to display or anything:-

Yes, just check that vorta take the lib in the same dir (terminal, cron). Until it fails, the two outputs (terminal, cron) in debug plugin mode should be the same.

Unfortunately, I don't know very well Xserver and it seems to be an issue with X.

and another, but i see a lot of confusing #articles.

The problem with these articles is that there are really too old. You can try to print the variables DBUS..., XDISPLAY and XAUTHORITY in terminal and cron to compare. It should be the same.

For xauth, I don't think it is the problem. Look at this : https://wiki.archlinux.org/title/Running_GUI_applications_as_root

Btw, if you have wayland, try X11 instead.

JackDinn commented 3 years ago

ok, thx.

I shall tinker with it.

One (no two) other things i noticed while trying to schedule via command,

I shall prob just resort to a single backup of each profile per day as it all works fine if you schedule via the app itself.

bastiencyr commented 3 years ago

Maybe you can try systemd instead of cron. Not sure it will solve your issue. Not even sure if systemd works on my laptop with vorta.

it does not seem to prune after doing a backup even though it is setup to do so

The prune command keep all backup in the past hour whatever happens.

the "post-backup" shell command does not wait until after the prune either way

Related to #379 ?

JackDinn commented 3 years ago

Related to #379 ?

Yep, it is.

The prune command keep all backup in the past hour whatever happens.

Its just that as far as i can tell the log shows prune regardless of whether it uses it or not. I am used to the log looking like this (for more than a year its never forgot to do the prune and then list. ksnip_20210722-165851

However, when i started using the bash command to start it the log looks like this (and im sure it should have pruned during this period) ksnip_20210722-165918

JackDinn commented 3 years ago

If the schedule setting "minutes past the hour" allowed a 3 digit input up to 999 then this would solve all my problems.

I could set twice a day at 12AM & 12PM Backup every 12 hours at 0 minutes past the hour

I could set twice a day at 6AM & 6PM Backup every 12 hours at 360 minutes past the hour

Or 9Am & 9PM Backup every 12 hours at 540 minutes past the hour

Even a 3 way cut, like 3AM, 11AM, 7PM Backup every 8 hours at 180 minutes past the hour

Just for reference, I'm talking about this setting:- ksnip_20210724-120952

saladpanda commented 3 years ago

@JackDinn I ran into the same problem when trying to schedule vorta backups via the users crontab. The Solution is simple:

* * * * * DISPLAY=:0 /usr/bin/vorta --create Default
JackDinn commented 3 years ago

@stloewen Ah that works, thank you. Once you know the trick its easy.

However, it won't prune when scheduled that way.

m3nu commented 3 years ago

Vorta also has its own scheduler, which includes pruning and checking. We just don't expose all of Cron's features to build complex schedules.

JackDinn commented 3 years ago

Wll maybe instead of trying to do my different profiles at different cycle times i.e. (Profile 1 & 00:00 & 12:00 + Profile 2 & 06:00 & 18:00 etc)

maybe i can do them all on top of each other, at the exact same times ? (like this)

bastiencyr commented 3 years ago

It's not a good idea. Vorta can't backup 2 profiles at the same time, it will failed. There is a work in progress to change this in #1045.

So it finally works, I don't understand why It was not working with export DISPLAY=:0;....

JackDinn commented 3 years ago

So it finally works, I don't understand why It was not working with export DISPLAY=:0;....

Where was it said i had tried export DISPLAY=:0 ? I said it was in among a load of commands i might test and tinker with, but i never really went through them as they did not work with prune anyhow so it didn't look.

JackDinn commented 3 years ago

So now i know how to schedule via cron all i would need is a way to prune, is there one? :crossed_fingers:

vorta --prune

m3nu commented 3 years ago

There is not, since Vorta is primarily a GUI tool. For CLI, there is already Borgmatic, which works well.

OTOH, if you use Vorta's built-in scheduler, it will also prune and check. Maybe just set it to run once a day from Vorta and you'll have both.

JackDinn commented 3 years ago

OTOH, if you use Vorta's built-in scheduler, it will also prune and check. Maybe just set it to run once a day from Vorta and you'll have both.

Yes, it does indeed look like i shall be resigned to once a day singular backups for all my profiles, which is a pity as the rest of Vorta is extremely convenient and user-friendly. I could go back to Borg, but every time i need it like i quickly need an old file or even a full restore, i have forgotten all the commands and have to go hunting for documentation. Im old, my memory is shot and i just prefer a good GUI.

m3nu commented 3 years ago

Yeah, that's the reason I made it. 😄

I started work on a new scheduler earlier this year. Will try to add the finer scheduling features without making it too complex.

JackDinn commented 3 years ago

Yep, you have done an excellent job (and i don't even use half it's abilities & functions).

Thank you for the support, always appreciated :)