BassT23 / Proxmox

Update your Proxmox VE
Other
192 stars 14 forks source link

Error at deletion of snapshot #148

Closed mpmario closed 3 months ago

mpmario commented 3 months ago

Hi, During the update process, an error consistently occurs:


[Info] Updating LXC 204 : owncloud

[Info] Start Snaphot and/or Backup
[Info] Snapshot created
[Info] Deleted old snapshots
snapshot 'Updateauf' does not exist
Error during Update --- Exit Code: 255

There are an error during update
Please check Output here or Logfile

Issue Details

I am unsure where the snapshot named "Updateauf" originates. If I manually generate this snapshot, the next update run works fine. However, the issue reoccurs in subsequent updates.

Troubleshooting Steps Taken

Manual Snapshot Creation: Manually creating the snapshot resolves the issue temporarily. Reinstallation: Uninstalling and reinstalling the updater does not resolve the issue.

Request for Assistance

Does anyone have any ideas on how to permanently resolve this issue? Any suggestions or insights would be greatly appreciated.

mpmario commented 3 months ago

Do you have any idea how to remove the snapshot history completely? Uninstalling and reinstalling did not work for me.

BassT23 commented 3 months ago

Sorry for the issue,

I'm busy for now, so no much time for the script, but will try to fix it this weekend.

Which Version do you use? Pls give me an output from 'update status'

mpmario commented 3 months ago

Thanks for your answer. Here's the output:

Last modification (on GitHub): 2024-06-13T20:57:39Z

  Version overview
  Updater: 4.1
  Extras:  1.8.5
  Config:  1.3.3
  Welcome: 1.3.7
  Check:   1.4.8
BassT23 commented 3 months ago

The "Updateauf" is strange, from where come the "auf", ...

First of all pls tryout the latest develop version,so we can better fix the newest version ;) update develop -up

If the error comes up again, pls give output of: pct listsnapshot 204 | sed -n "s/^.*Update\s*\(\S*\).*$/\1/p"

the output should give out all snapshots of the container (without "Update") - only the created time stamp. All without the strange "auf"

by the way, which version of Proxmox VE you use?

mpmario commented 3 months ago

Thank you for the answer. Update to dev-version was successful. Proxmox Version 8.2.4

Unfortunately, the error persists.

[Info] Updating LXC 204 : owncloud

[Info] Start Snaphot and/or Backup
[Info] Snapshot created
[Info] Deleted old snapshots
snapshot 'Updateauf' does not exist
Error during Update --- Exit Code: 255

There are an error during update
Please check Output here or Logfile

root@proxmox:~# pct listsnapshot 204 | sed -n "s/^.*Update\s*\(\S*\).*$/\1/p"
auf
_20240626_120700
_20240702_203143
_20240722_215113
_20240723_140124
_20240805_131355
root@proxmox:~# pct listsnapshot 204
`-> vor_migration               2023-09-02 23:57:24     no-description
 `-> update                     2023-10-03 22:11:07     vor update von 10.12.2.1 auf 10.13.1
  `-> update2                   2023-12-01 19:21:47     vor Update auf 10.13.3
   `-> vor_update               2024-02-22 13:15:58     no-description
    `-> vor_update_20240603     2024-06-03 12:59:47     no-description
     `-> Update_20240626_120700 2024-06-26 12:07:01     no-description
      `-> Update_20240702_203143 2024-07-02 20:31:44     no-description
       `-> Update_20240722_215113 2024-07-22 21:51:13     no-description
        `-> Update_20240723_140124 2024-07-23 14:01:24     no-description
         `-> Update_20240805_131355 2024-08-05 13:13:56     no-description
          `-> current                                   You are here!

There is a "auf" in the description.

BassT23 commented 3 months ago

Ok, now I can see the "Problem" U use "Update" (with) big "U" also in description. Could you pls change the description to "update" with small letter?

Hopefully it work then better 😀

mpmario commented 3 months ago

YEAH! It works! Many thanks for your help!!

BassT23 commented 3 months ago

YEAH! It works! Many thanks for your help!!

So keep in mind: Don't use the word "Update" in Snapshots. U can use "update" with small letters instead. 😉