Closed githubjsorg closed 6 months ago
Looks like rolling back to v3.2 seems to have fixed this issue but will see if the old issue of not being able to append new backups to old crops up again.
which python version are you using?
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
After upgrading to PVE 8 somehow zfs_autobackup was back to v3.3-beta.2.
But I can't test the release version because PIP on PVE 8 now gives this error:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
I tried following the above instructions
pipx install zfs_autobackup
but after install
# zfs-autobackup --version
zfs-autobackup v3.3-beta.2 - (c)2022 E.H.Eefting (edwin@datux.nl)
it is still showing the beta version I previously tried using to fix a previous error, which is now experiencing the same original issue in this ticket.
! [Source] Guests_NVME/subvol-109-disk-0: FAILED: 'datetime.datetime' object has no attribute 'timestamp'
Debug mode, aborting on first error
! Exception: 'datetime.datetime' object has no attribute 'timestamp'
I reinstalled from source for v3.3-beta.2 and now somehow it is no longer throwing that error. But I am now getting these errors
! [Target] STDERR > cannot receive refquota property on CloudBackup/Guests_NVME/subvol-111-disk-0: size is less than current used or reserved space
NAME PROPERTY VALUE SOURCE
CloudBackup/Guests_NVME/subvol-111-disk-0 refquota none default
Guests_NVME/subvol-111-disk-0 refquota 100G local
I tried setting the refquota on CloudBackup but it threw the same error as zfs-autobackup
# zfs set refquota=100G CloudBackup/Guests_NVME/subvol-111-disk-0
cannot set property for 'CloudBackup/Guests_NVME/subvol-111-disk-0': size is less than current used or reserved space
If you can think of anything else I can try, I am open to try almost anything (within reason) to get this working and consistently working.
Oh and in case this is helpful
# zfs version
zfs-2.2.3-pve1
zfs-kmod-2.2.2-pve1
the refquota is not related to zfs-autobackup, so you're getting close to solving it.
i'm also releasing 3.3-beta2 to pip, so it should be easier to install it.
try setting refquota to none.
you can also use zfs-autobackups --filter-properties refquota
filter to prevent this issue in the future for new datasets.
please reopen if you still have issues.
i'm also releasing 3.3-beta2 to pip, so it should be easier to install it.
I don't know if it just hasn't made it into pip yet but I got this:
~# pipx upgrade zfs-autobackup
zfs-autobackup is already at latest version 3.2 (location: /root/.local/pipx/venvs/zfs-autobackup)
I also tried uninstall/reinstall.
~# pipx uninstall zfs-autobackup
uninstalled zfs-autobackup! ✨ 🌟 ✨
~# pipx install zfs-autobackup
⚠️ Note: zfs-autoverify was already on your PATH at /usr/local/bin/zfs-autoverify
⚠️ Note: zfs-check was already on your PATH at /usr/local/bin/zfs-check
installed package zfs-autobackup 3.2, installed using Python 3.11.2
These apps are now globally available
- zfs-autobackup
- zfs-autoverify
- zfs-check
done! ✨ 🌟 ✨
I've updated the manual to install with pipx: https://github.com/psy0rz/zfs_autobackup/wiki#using-pipx
So you need to add --pip-args=--pre to get the beta version.
I have tried destroying the target dataset and as you can see above, that made no difference. I tried searching for the error and it doesn't appear to be zfs/zpool but python.
I was using the beta version as recommended to fix another bug.
Please let me know if there is anything else I can provide to help debug this.