[GH-ISSUE #111] [BUG] its still have snap-job-start&end phases in hook? #94

Closed
opened 2026-02-26 17:44:23 +03:00 by kerem · 7 comments
Owner

Originally created by @Lxeon on GitHub (Dec 23, 2025).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/111

What happened?

It seems that these two stages are not present.
only snap-create-pre and snap-create-post.

Expected behavior

i hope run the like this.
/root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-start && /usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxx' --vmid=@all snap --label=weekly --keep=4 && /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-end

Command used

/usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxxx'  --vmid=500 snap --label=weekly --keep=4 --script=/root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh --debug

Log output

dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/version
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "repoid": "9d436f37a0ac4172",
          "release": "9.1",
          "version": "9.1.2"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/version
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "repoid": "9d436f37a0ac4172",
          "version": "9.1.2",
          "release": "9.1"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
ACTION Snap
PVE Version:      9.1.2
VMs:              500
Label:            weekly
Keep:             4
State:            False
Only running:     False
Timeout:          30 sec.
Timestamp format: yyMMddHHmmss
Max % Storage :   95%
fail: Corsinvest.ProxmoxVE.AutoSnap.Api.Application[0]
      Object reference not set to an instance of an object.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Corsinvest.ProxmoxVE.AutoSnap.Api.PhaseEventArgs.get_Environments() in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/PhaseEventArgs.cs:line 39
         at Corsinvest.ProxmoxVE.AutoSnap.Commands.App_PhaseEvent(Object sender, PhaseEventArgs e) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap/Commands.cs:line 62
         at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.CallPhaseEvent(HookPhase phase, IClusterResourceVm vm, String label, Int32 keep, String snapName, Boolean vmState, Double duration, Boolean status) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs:line 136
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/cluster/resources?type=vm
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": [
         
          {
            "netout": 0,
            "netin": 0,
            "mem": 0,
            "template": 0,
            "maxdisk": 6442450944,
            "maxmem": 4294967296,
            "diskwrite": 0,
            "maxcpu": 1,
            "tags": " ",
            "memhost": 0,
            "uptime": 0,
            "disk": 0,
            "type": "lxc",
            "node": "pve",
            "cpu": 0,
            "diskread": 0,
            "vmid": 500,
            "status": "stopped",
            "name": "docker",
            "id": "lxc/500"
          }
        ]
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/cluster/resources?type=storage
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": [
          {
            "disk": 758774759424,
            "type": "storage",
            "node": "pve",
            "status": "available",
            "maxdisk": 965492998144,
            "storage": "storage2",
            "content": "rootdir,backup,iso,vztmpl,images,import,snippets",
            "plugintype": "dir",
            "shared": 0,
            "id": "storage/pve/storage2"
          },
          {
            "content": "iso,vztmpl,images,snippets,import,rootdir,backup",
            "id": "storage/pve/storage1",
            "shared": 0,
            "plugintype": "dir",
            "storage": "storage1",
            "node": "pve",
            "maxdisk": 3861590179840,
            "status": "available",
            "disk": 2712284692480,
            "type": "storage"
          },
          {
            "storage": "local",
            "content": "vztmpl,iso,import,snippets,backup",
            "shared": 0,
            "id": "storage/pve/local",
            "plugintype": "dir",
            "disk": 25153634304,
            "type": "storage",
            "node": "pve",
            "maxdisk": 145128292352,
            "status": "available"
          },
          {
            "storage": "local-zfs",
            "content": "images,rootdir",
            "plugintype": "zfspool",
            "id": "storage/pve/local-zfs",
            "shared": 0,
            "disk": 1644427161600,
            "type": "storage",
            "node": "pve",
            "status": "available",
            "maxdisk": 1764401876992
          }
        ]
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
                  Storage      Type     Valid   Used %    Disk Size  Disk Usage
            pve/local-zfs   zfspool        Ok      93.2     1.76 TB     1.64 TB
             pve/storage1       dir        Ok      70.2     3.86 TB     2.71 TB
             pve/storage2       dir        Ok      78.6   965.49 GB   758.77 GB
----- VM 500 lxc stopped -----
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/config
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "hostname": "docker",
          "digest": "7db6aaf9c508c3e176a3d1fa7acc319bae7e905e",
          "ostype": "debian",
          "memory": 4096,
          "parent": "autoweekly251223173813",
          "swap": 2048,
          "net0": "name=eth0,bridge=vmbr0,gw=192.168.100.1,hwaddr=BC:24:11:1B:6D:D4,ip=192.168.100.44/24,type=veth",
          "tags": " ",
          "features": "fuse=1,mount=nfs;cifs,nesting=1",
          "lxc": [
            [
              "lxc.apparmor.profile",
              "unconfined"
            ]
          ],
          "cores": 1,
          "cmode": "shell",
          "arch": "amd64",
          "rootfs": "local-zfs:subvol-500-disk-0,replicate=0,size=6G"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
-------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE: snap-create-pre
CV4PVE_AUTOSNAP_VMID: 500
CV4PVE_AUTOSNAP_VMNAME: docker
CV4PVE_AUTOSNAP_VMTYPE: lxc
CV4PVE_AUTOSNAP_LABEL: weekly
CV4PVE_AUTOSNAP_KEEP: 4
CV4PVE_AUTOSNAP_SNAP_NAME: autoweekly251223173823
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 1
CV4PVE_AUTOSNAP_DRY_RUN: 0
-------------------------------------------------------
Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh
Create snapshot: autoweekly251223173823
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: POST, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/snapshot
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Parameters: snapname : autoweekly251223173823
      description : cv4pve-autosnap
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:"
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "id": "500",
          "tokenid": "cv4pve-autosnap",
          "status": "stopped",
          "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:",
          "type": "vzsnapshot",
          "pstart": 37167605,
          "exitstatus": "OK",
          "user": "backup@pam",
          "starttime": 1766482704,
          "pid": 2627875,
          "node": "pve"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "exitstatus": "OK",
          "pstart": 37167605,
          "user": "backup@pam",
          "starttime": 1766482704,
          "node": "pve",
          "pid": 2627875,
          "id": "500",
          "tokenid": "cv4pve-autosnap",
          "status": "stopped",
          "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:",
          "type": "vzsnapshot"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": {
          "status": "stopped",
          "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:",
          "type": "vzsnapshot",
          "tokenid": "cv4pve-autosnap",
          "id": "500",
          "node": "pve",
          "pid": 2627875,
          "starttime": 1766482704,
          "pstart": 37167605,
          "exitstatus": "OK",
          "user": "backup@pam"
        }
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/snapshot
trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      {
        "data": [
          {
            "name": "autoweekly251223173626",
            "description": "cv4pve-autosnap\n",
            "snaptime": 1766482600
          },
          {
            "parent": "autoweekly251223173813",
            "description": "cv4pve-autosnap\n",
            "name": "autoweekly251223173823",
            "snaptime": 1766482704
          },
          {
            "parent": "autoweekly251223173626",
            "description": "cv4pve-autosnap\n",
            "name": "autoweekly251223173813",
            "snaptime": 1766482693
          },
          {
            "parent": "autoweekly251223173823",
            "description": "You are here!",
            "name": "current",
            "digest": "6912918b4db20332a0aceed5fb4088a1a5b48794",
            "running": 0
          }
        ]
      }
dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0]
      StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True
-------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE: snap-create-post
CV4PVE_AUTOSNAP_VMID: 500
CV4PVE_AUTOSNAP_VMNAME: docker
CV4PVE_AUTOSNAP_VMTYPE: lxc
CV4PVE_AUTOSNAP_LABEL: weekly
CV4PVE_AUTOSNAP_KEEP: 4
CV4PVE_AUTOSNAP_SNAP_NAME: autoweekly251223173823
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0.5802054
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 1
CV4PVE_AUTOSNAP_DRY_RUN: 0
-------------------------------------------------------
Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh
VM execution 00:00:00.5802054
Total execution 00:00:00.6805550
fail: Corsinvest.ProxmoxVE.AutoSnap.Api.Application[0]
      Object reference not set to an instance of an object.
      System.NullReferenceException: Object reference not set to an instance of an object.
         at Corsinvest.ProxmoxVE.AutoSnap.Api.PhaseEventArgs.get_Environments() in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/PhaseEventArgs.cs:line 39
         at Corsinvest.ProxmoxVE.AutoSnap.Commands.App_PhaseEvent(Object sender, PhaseEventArgs e) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap/Commands.cs:line 62
         at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.CallPhaseEvent(HookPhase phase, IClusterResourceVm vm, String label, Int32 keep, String snapName, Boolean vmState, Double duration, Boolean status) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs:line 136

cv4pve-autosnap Version

1.17.0+8c1dc56c442f3dbd403ff2ba7ca6495ba407d52d

Proxmox VE Version

9.1

Last working version

No response

Operating System

Linux

Pull Request

  • I would like to do a Pull Request
Originally created by @Lxeon on GitHub (Dec 23, 2025). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/111 ### What happened? It seems that these two stages are not present. only snap-create-pre and snap-create-post. ### Expected behavior i hope run the like this. /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-start && /usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxx' --vmid=@all snap --label=weekly --keep=4 && /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh snap-job-end ### Command used ```bash /usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxxx' --vmid=500 snap --label=weekly --keep=4 --script=/root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh --debug ``` ### Log output ```shell dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/version trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "repoid": "9d436f37a0ac4172", "release": "9.1", "version": "9.1.2" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/version trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "repoid": "9d436f37a0ac4172", "version": "9.1.2", "release": "9.1" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True ACTION Snap PVE Version: 9.1.2 VMs: 500 Label: weekly Keep: 4 State: False Only running: False Timeout: 30 sec. Timestamp format: yyMMddHHmmss Max % Storage : 95% fail: Corsinvest.ProxmoxVE.AutoSnap.Api.Application[0] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Corsinvest.ProxmoxVE.AutoSnap.Api.PhaseEventArgs.get_Environments() in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/PhaseEventArgs.cs:line 39 at Corsinvest.ProxmoxVE.AutoSnap.Commands.App_PhaseEvent(Object sender, PhaseEventArgs e) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap/Commands.cs:line 62 at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.CallPhaseEvent(HookPhase phase, IClusterResourceVm vm, String label, Int32 keep, String snapName, Boolean vmState, Double duration, Boolean status) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs:line 136 dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/cluster/resources?type=vm trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": [ { "netout": 0, "netin": 0, "mem": 0, "template": 0, "maxdisk": 6442450944, "maxmem": 4294967296, "diskwrite": 0, "maxcpu": 1, "tags": " ", "memhost": 0, "uptime": 0, "disk": 0, "type": "lxc", "node": "pve", "cpu": 0, "diskread": 0, "vmid": 500, "status": "stopped", "name": "docker", "id": "lxc/500" } ] } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/cluster/resources?type=storage trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": [ { "disk": 758774759424, "type": "storage", "node": "pve", "status": "available", "maxdisk": 965492998144, "storage": "storage2", "content": "rootdir,backup,iso,vztmpl,images,import,snippets", "plugintype": "dir", "shared": 0, "id": "storage/pve/storage2" }, { "content": "iso,vztmpl,images,snippets,import,rootdir,backup", "id": "storage/pve/storage1", "shared": 0, "plugintype": "dir", "storage": "storage1", "node": "pve", "maxdisk": 3861590179840, "status": "available", "disk": 2712284692480, "type": "storage" }, { "storage": "local", "content": "vztmpl,iso,import,snippets,backup", "shared": 0, "id": "storage/pve/local", "plugintype": "dir", "disk": 25153634304, "type": "storage", "node": "pve", "maxdisk": 145128292352, "status": "available" }, { "storage": "local-zfs", "content": "images,rootdir", "plugintype": "zfspool", "id": "storage/pve/local-zfs", "shared": 0, "disk": 1644427161600, "type": "storage", "node": "pve", "status": "available", "maxdisk": 1764401876992 } ] } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True Storage Type Valid Used % Disk Size Disk Usage pve/local-zfs zfspool Ok 93.2 1.76 TB 1.64 TB pve/storage1 dir Ok 70.2 3.86 TB 2.71 TB pve/storage2 dir Ok 78.6 965.49 GB 758.77 GB ----- VM 500 lxc stopped ----- dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/config trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "hostname": "docker", "digest": "7db6aaf9c508c3e176a3d1fa7acc319bae7e905e", "ostype": "debian", "memory": 4096, "parent": "autoweekly251223173813", "swap": 2048, "net0": "name=eth0,bridge=vmbr0,gw=192.168.100.1,hwaddr=BC:24:11:1B:6D:D4,ip=192.168.100.44/24,type=veth", "tags": " ", "features": "fuse=1,mount=nfs;cifs,nesting=1", "lxc": [ [ "lxc.apparmor.profile", "unconfined" ] ], "cores": 1, "cmode": "shell", "arch": "amd64", "rootfs": "local-zfs:subvol-500-disk-0,replicate=0,size=6G" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True ------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-create-pre CV4PVE_AUTOSNAP_VMID: 500 CV4PVE_AUTOSNAP_VMNAME: docker CV4PVE_AUTOSNAP_VMTYPE: lxc CV4PVE_AUTOSNAP_LABEL: weekly CV4PVE_AUTOSNAP_KEEP: 4 CV4PVE_AUTOSNAP_SNAP_NAME: autoweekly251223173823 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 1 CV4PVE_AUTOSNAP_DRY_RUN: 0 ------------------------------------------------------- Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh Create snapshot: autoweekly251223173823 dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: POST, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/snapshot dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Parameters: snapname : autoweekly251223173823 description : cv4pve-autosnap trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:" } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "id": "500", "tokenid": "cv4pve-autosnap", "status": "stopped", "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:", "type": "vzsnapshot", "pstart": 37167605, "exitstatus": "OK", "user": "backup@pam", "starttime": 1766482704, "pid": 2627875, "node": "pve" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "exitstatus": "OK", "pstart": 37167605, "user": "backup@pam", "starttime": 1766482704, "node": "pve", "pid": 2627875, "id": "500", "tokenid": "cv4pve-autosnap", "status": "stopped", "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:", "type": "vzsnapshot" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/tasks/UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:/status trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": { "status": "stopped", "upid": "UPID:pve:00281923:023721F5:694A6310:vzsnapshot:500:backup@pam!cv4pve-autosnap:", "type": "vzsnapshot", "tokenid": "cv4pve-autosnap", "id": "500", "node": "pve", "pid": 2627875, "starttime": 1766482704, "pstart": 37167605, "exitstatus": "OK", "user": "backup@pam" } } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] Method: GET, Url: https://192.168.100.254:8006/api2/json/nodes/pve/lxc/500/snapshot trce: Corsinvest.ProxmoxVE.Api.PveClientBase[0] { "data": [ { "name": "autoweekly251223173626", "description": "cv4pve-autosnap\n", "snaptime": 1766482600 }, { "parent": "autoweekly251223173813", "description": "cv4pve-autosnap\n", "name": "autoweekly251223173823", "snaptime": 1766482704 }, { "parent": "autoweekly251223173626", "description": "cv4pve-autosnap\n", "name": "autoweekly251223173813", "snaptime": 1766482693 }, { "parent": "autoweekly251223173823", "description": "You are here!", "name": "current", "digest": "6912918b4db20332a0aceed5fb4088a1a5b48794", "running": 0 } ] } dbug: Corsinvest.ProxmoxVE.Api.PveClientBase[0] StatusCode: OK ReasonPhrase: OK IsSuccessStatusCode: True ------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-create-post CV4PVE_AUTOSNAP_VMID: 500 CV4PVE_AUTOSNAP_VMNAME: docker CV4PVE_AUTOSNAP_VMTYPE: lxc CV4PVE_AUTOSNAP_LABEL: weekly CV4PVE_AUTOSNAP_KEEP: 4 CV4PVE_AUTOSNAP_SNAP_NAME: autoweekly251223173823 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0.5802054 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 1 CV4PVE_AUTOSNAP_DRY_RUN: 0 ------------------------------------------------------- Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh VM execution 00:00:00.5802054 Total execution 00:00:00.6805550 fail: Corsinvest.ProxmoxVE.AutoSnap.Api.Application[0] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Corsinvest.ProxmoxVE.AutoSnap.Api.PhaseEventArgs.get_Environments() in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/PhaseEventArgs.cs:line 39 at Corsinvest.ProxmoxVE.AutoSnap.Commands.App_PhaseEvent(Object sender, PhaseEventArgs e) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap/Commands.cs:line 62 at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.CallPhaseEvent(HookPhase phase, IClusterResourceVm vm, String label, Int32 keep, String snapName, Boolean vmState, Double duration, Boolean status) in /home/runner/work/cv4pve-autosnap/cv4pve-autosnap/src/Corsinvest.ProxmoxVE.AutoSnap.Api/Application.cs:line 136 ``` ### cv4pve-autosnap Version 1.17.0+8c1dc56c442f3dbd403ff2ba7ca6495ba407d52d ### Proxmox VE Version 9.1 ### Last working version _No response_ ### Operating System Linux ### Pull Request - [ ] I would like to do a Pull Request
kerem 2026-02-26 17:44:23 +03:00
Author
Owner

@franklupo commented on GitHub (Dec 23, 2025):

@Lxeon I don't understand what you mean.

<!-- gh-comment-id:3686120878 --> @franklupo commented on GitHub (Dec 23, 2025): @Lxeon I don't understand what you mean.
Author
Owner

@franklupo commented on GitHub (Dec 23, 2025):

Sorry, I created a new release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.18.0

<!-- gh-comment-id:3686127788 --> @franklupo commented on GitHub (Dec 23, 2025): Sorry, I created a new release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.18.0
Author
Owner

@Lxeon commented on GitHub (Dec 23, 2025):

Sorry, I created a new release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.18.0

sorry for my bad english.

i mean, is there a phase that executes once before the whole snapshot and once after the whole snapshot finished?

i find the phases here:

Image

snap-job-start&end phase might be what I want.

After checking the logs, I found that it was not executing.(no log for snap-job-start)

<!-- gh-comment-id:3686354384 --> @Lxeon commented on GitHub (Dec 23, 2025): > Sorry, I created a new release https://github.com/Corsinvest/cv4pve-autosnap/releases/tag/v1.18.0 sorry for my bad english. i mean, is there a phase that executes once before the whole snapshot and once after the whole snapshot finished? i find the phases here: <img width="1317" height="1133" alt="Image" src="https://github.com/user-attachments/assets/79b1d1ba-4ecb-47eb-9169-f04eefdf98d8" /> snap-job-start&end phase might be what I want. After checking the logs, I found that it was not executing.(no log for snap-job-start)
Author
Owner

@franklupo commented on GitHub (Dec 23, 2025):

what version are you using?

<!-- gh-comment-id:3686484451 --> @franklupo commented on GitHub (Dec 23, 2025): what version are you using?
Author
Owner

@franklupo commented on GitHub (Dec 23, 2025):

I just ran it

ACTION Snap
PVE Version:      8.4.14
VMs:              1000
Label:            testone
Keep:             2
State:            False
Only running:     False
Timeout:          30 sec.
Timestamp format: yyMMddHHmmss
Max % Storage :   95%
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-job-start
CV4PVE_AUTOSNAP_VMID:          
CV4PVE_AUTOSNAP_VMNAME:        
CV4PVE_AUTOSNAP_VMTYPE:        
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      0
CV4PVE_AUTOSNAP_STATE:         1
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
----------------------------------------------------------
                  Storage      Type     Valid   Used %    Disk Size  Disk Usage
            cc01/datapool   zfspool        Ok      21.7     5.44 TB     1.18 TB
                 cc01/dpl       dir        Ok         0     4.26 TB   262.14 KB
           cc01/local-zfs   zfspool        Ok         0   359.27 GB     98.3 KB
----- VM 1000 qemu running -----
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-create-pre
CV4PVE_AUTOSNAP_VMID:          1000
CV4PVE_AUTOSNAP_VMNAME:        opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE:        qemu
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     autotestone251223133533
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      0
CV4PVE_AUTOSNAP_STATE:         1
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
----------------------------------------------------------
Create snapshot: autotestone251223133533
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-remove-pre
CV4PVE_AUTOSNAP_VMID:          1000
CV4PVE_AUTOSNAP_VMNAME:        opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE:        qemu
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     autotestone251223101854
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      0
CV4PVE_AUTOSNAP_STATE:         0
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
----------------------------------------------------------
Remove snapshot: autotestone251223101854
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-remove-post
CV4PVE_AUTOSNAP_VMID:          1000
CV4PVE_AUTOSNAP_VMNAME:        opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE:        qemu
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     autotestone251223101854
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      0.9333555
CV4PVE_AUTOSNAP_STATE:         1
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
2
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-create-post
CV4PVE_AUTOSNAP_VMID:          1000
CV4PVE_AUTOSNAP_VMNAME:        opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE:        qemu
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     autotestone251223133533
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      5.117644
CV4PVE_AUTOSNAP_STATE:         1
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
----------------------------------------------------------
VM execution 00:00:05.1176440
----------------------------------------------------------
CV4PVE_AUTOSNAP_PHASE:         snap-job-end
CV4PVE_AUTOSNAP_VMID:          
CV4PVE_AUTOSNAP_VMNAME:        
CV4PVE_AUTOSNAP_VMTYPE:        
CV4PVE_AUTOSNAP_LABEL:         testone
CV4PVE_AUTOSNAP_KEEP:          2
CV4PVE_AUTOSNAP_SNAP_NAME:     
CV4PVE_AUTOSNAP_VMSTATE:       0
CV4PVE_AUTOSNAP_DURATION:      5.5292457
CV4PVE_AUTOSNAP_STATE:         1
CV4PVE_AUTOSNAP_DEBUG:         0
CV4PVE_AUTOSNAP_DRY_RUN:       0
----------------------------------------------------------
Total execution 00:00:05.5292457
<!-- gh-comment-id:3686502522 --> @franklupo commented on GitHub (Dec 23, 2025): I just ran it ```bash ACTION Snap PVE Version: 8.4.14 VMs: 1000 Label: testone Keep: 2 State: False Only running: False Timeout: 30 sec. Timestamp format: yyMMddHHmmss Max % Storage : 95% ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-job-start CV4PVE_AUTOSNAP_VMID: CV4PVE_AUTOSNAP_VMNAME: CV4PVE_AUTOSNAP_VMTYPE: CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 ---------------------------------------------------------- Storage Type Valid Used % Disk Size Disk Usage cc01/datapool zfspool Ok 21.7 5.44 TB 1.18 TB cc01/dpl dir Ok 0 4.26 TB 262.14 KB cc01/local-zfs zfspool Ok 0 359.27 GB 98.3 KB ----- VM 1000 qemu running ----- ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-create-pre CV4PVE_AUTOSNAP_VMID: 1000 CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 CV4PVE_AUTOSNAP_VMTYPE: qemu CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 ---------------------------------------------------------- Create snapshot: autotestone251223133533 ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-remove-pre CV4PVE_AUTOSNAP_VMID: 1000 CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 CV4PVE_AUTOSNAP_VMTYPE: qemu CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0 CV4PVE_AUTOSNAP_STATE: 0 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 ---------------------------------------------------------- Remove snapshot: autotestone251223101854 ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-remove-post CV4PVE_AUTOSNAP_VMID: 1000 CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 CV4PVE_AUTOSNAP_VMTYPE: qemu CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0.9333555 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 2 ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-create-post CV4PVE_AUTOSNAP_VMID: 1000 CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 CV4PVE_AUTOSNAP_VMTYPE: qemu CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533 CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 5.117644 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 ---------------------------------------------------------- VM execution 00:00:05.1176440 ---------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-job-end CV4PVE_AUTOSNAP_VMID: CV4PVE_AUTOSNAP_VMNAME: CV4PVE_AUTOSNAP_VMTYPE: CV4PVE_AUTOSNAP_LABEL: testone CV4PVE_AUTOSNAP_KEEP: 2 CV4PVE_AUTOSNAP_SNAP_NAME: CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 5.5292457 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 0 CV4PVE_AUTOSNAP_DRY_RUN: 0 ---------------------------------------------------------- Total execution 00:00:05.5292457 ```
Author
Owner

@Lxeon commented on GitHub (Dec 23, 2025):

I just ran it

ACTION Snap
PVE Version: 8.4.14
VMs: 1000
Label: testone
Keep: 2
State: False
Only running: False
Timeout: 30 sec.
Timestamp format: yyMMddHHmmss
Max % Storage : 95%

CV4PVE_AUTOSNAP_PHASE: snap-job-start
CV4PVE_AUTOSNAP_VMID:
CV4PVE_AUTOSNAP_VMNAME:
CV4PVE_AUTOSNAP_VMTYPE:
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME:
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0

              Storage      Type     Valid   Used %    Disk Size  Disk Usage
        cc01/datapool   zfspool        Ok      21.7     5.44 TB     1.18 TB
             cc01/dpl       dir        Ok         0     4.26 TB   262.14 KB
       cc01/local-zfs   zfspool        Ok         0   359.27 GB     98.3 KB

----- VM 1000 qemu running -----

CV4PVE_AUTOSNAP_PHASE: snap-create-pre
CV4PVE_AUTOSNAP_VMID: 1000
CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE: qemu
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0

Create snapshot: autotestone251223133533

CV4PVE_AUTOSNAP_PHASE: snap-remove-pre
CV4PVE_AUTOSNAP_VMID: 1000
CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE: qemu
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0
CV4PVE_AUTOSNAP_STATE: 0
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0

Remove snapshot: autotestone251223101854

CV4PVE_AUTOSNAP_PHASE: snap-remove-post
CV4PVE_AUTOSNAP_VMID: 1000
CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE: qemu
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0.9333555
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0
2

CV4PVE_AUTOSNAP_PHASE: snap-create-post
CV4PVE_AUTOSNAP_VMID: 1000
CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01
CV4PVE_AUTOSNAP_VMTYPE: qemu
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 5.117644
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0

VM execution 00:00:05.1176440

CV4PVE_AUTOSNAP_PHASE: snap-job-end
CV4PVE_AUTOSNAP_VMID:
CV4PVE_AUTOSNAP_VMNAME:
CV4PVE_AUTOSNAP_VMTYPE:
CV4PVE_AUTOSNAP_LABEL: testone
CV4PVE_AUTOSNAP_KEEP: 2
CV4PVE_AUTOSNAP_SNAP_NAME:
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 5.5292457
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 0
CV4PVE_AUTOSNAP_DRY_RUN: 0

Total execution 00:00:05.5292457

you are right, i upgrade to 1.18, now its work.

VM execution 00:00:00.6031591

CV4PVE_AUTOSNAP_PHASE: snap-job-end
CV4PVE_AUTOSNAP_VMID:
CV4PVE_AUTOSNAP_VMNAME:
CV4PVE_AUTOSNAP_VMTYPE:
CV4PVE_AUTOSNAP_LABEL: weekly
CV4PVE_AUTOSNAP_KEEP: 4
CV4PVE_AUTOSNAP_SNAP_NAME:
CV4PVE_AUTOSNAP_VMSTATE: 0
CV4PVE_AUTOSNAP_DURATION: 0.7411601
CV4PVE_AUTOSNAP_STATE: 1
CV4PVE_AUTOSNAP_DEBUG: 1
CV4PVE_AUTOSNAP_DRY_RUN: 0

Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh
Total execution 00:00:00.7411601

<!-- gh-comment-id:3686570394 --> @Lxeon commented on GitHub (Dec 23, 2025): > I just ran it > > ACTION Snap > PVE Version: 8.4.14 > VMs: 1000 > Label: testone > Keep: 2 > State: False > Only running: False > Timeout: 30 sec. > Timestamp format: yyMMddHHmmss > Max % Storage : 95% > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-job-start > CV4PVE_AUTOSNAP_VMID: > CV4PVE_AUTOSNAP_VMNAME: > CV4PVE_AUTOSNAP_VMTYPE: > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 0 > CV4PVE_AUTOSNAP_STATE: 1 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > ---------------------------------------------------------- > Storage Type Valid Used % Disk Size Disk Usage > cc01/datapool zfspool Ok 21.7 5.44 TB 1.18 TB > cc01/dpl dir Ok 0 4.26 TB 262.14 KB > cc01/local-zfs zfspool Ok 0 359.27 GB 98.3 KB > ----- VM 1000 qemu running ----- > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-create-pre > CV4PVE_AUTOSNAP_VMID: 1000 > CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 > CV4PVE_AUTOSNAP_VMTYPE: qemu > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533 > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 0 > CV4PVE_AUTOSNAP_STATE: 1 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > ---------------------------------------------------------- > Create snapshot: autotestone251223133533 > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-remove-pre > CV4PVE_AUTOSNAP_VMID: 1000 > CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 > CV4PVE_AUTOSNAP_VMTYPE: qemu > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854 > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 0 > CV4PVE_AUTOSNAP_STATE: 0 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > ---------------------------------------------------------- > Remove snapshot: autotestone251223101854 > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-remove-post > CV4PVE_AUTOSNAP_VMID: 1000 > CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 > CV4PVE_AUTOSNAP_VMTYPE: qemu > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223101854 > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 0.9333555 > CV4PVE_AUTOSNAP_STATE: 1 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > 2 > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-create-post > CV4PVE_AUTOSNAP_VMID: 1000 > CV4PVE_AUTOSNAP_VMNAME: opnsense-cc01 > CV4PVE_AUTOSNAP_VMTYPE: qemu > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: autotestone251223133533 > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 5.117644 > CV4PVE_AUTOSNAP_STATE: 1 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > ---------------------------------------------------------- > VM execution 00:00:05.1176440 > ---------------------------------------------------------- > CV4PVE_AUTOSNAP_PHASE: snap-job-end > CV4PVE_AUTOSNAP_VMID: > CV4PVE_AUTOSNAP_VMNAME: > CV4PVE_AUTOSNAP_VMTYPE: > CV4PVE_AUTOSNAP_LABEL: testone > CV4PVE_AUTOSNAP_KEEP: 2 > CV4PVE_AUTOSNAP_SNAP_NAME: > CV4PVE_AUTOSNAP_VMSTATE: 0 > CV4PVE_AUTOSNAP_DURATION: 5.5292457 > CV4PVE_AUTOSNAP_STATE: 1 > CV4PVE_AUTOSNAP_DEBUG: 0 > CV4PVE_AUTOSNAP_DRY_RUN: 0 > ---------------------------------------------------------- > Total execution 00:00:05.5292457 you are right, i upgrade to 1.18, now its work. VM execution 00:00:00.6031591 ------------------------------------------------------- CV4PVE_AUTOSNAP_PHASE: snap-job-end CV4PVE_AUTOSNAP_VMID: CV4PVE_AUTOSNAP_VMNAME: CV4PVE_AUTOSNAP_VMTYPE: CV4PVE_AUTOSNAP_LABEL: weekly CV4PVE_AUTOSNAP_KEEP: 4 CV4PVE_AUTOSNAP_SNAP_NAME: CV4PVE_AUTOSNAP_VMSTATE: 0 CV4PVE_AUTOSNAP_DURATION: 0.7411601 CV4PVE_AUTOSNAP_STATE: 1 CV4PVE_AUTOSNAP_DEBUG: 1 CV4PVE_AUTOSNAP_DRY_RUN: 0 ------------------------------------------------------- Run command: /root/tools/cv4pve-autosnap-hook/zfs-mount-snapshot.sh Total execution 00:00:00.7411601
Author
Owner

@franklupo commented on GitHub (Dec 23, 2025):

If you want, add a star on my project

<!-- gh-comment-id:3686575099 --> @franklupo commented on GitHub (Dec 23, 2025): If you want, add a star on my project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#94
No description provided.