[GH-ISSUE #109] [BUG] fail: Corsinvest.ProxmoxVE.AutoSnap.Api.Application[0] #96

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

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

What happened?

got a fail error

Expected behavior

no fail.

Command used

/usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxx'  --vmid=400 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": {
          "release": "9.1",
          "version": "9.1.2",
          "repoid": "9d436f37a0ac4172"
        }
      }
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:              400
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

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/109 ### What happened? got a fail error ### Expected behavior no fail. ### Command used ```bash /usr/local/bin/cv4pve-autosnap --host=192.168.100.254 --api-token='backup@pam!cv4pve-autosnap=xxx' --vmid=400 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": { "release": "9.1", "version": "9.1.2", "repoid": "9d436f37a0ac4172" } } 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: 400 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 ``` ### 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
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#96
No description provided.