[GH-ISSUE #33] UnicodeDecodeError while trying to remove a snap when accentuated characters in old snap description #28

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

Originally created by @zorrobiwan on GitHub (May 7, 2020).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/33

I got the following error while testing autosnap on my LXC containers.

Traceback (most recent call last):
  File "/root/proxmox-autosnap/proxmox-autosnap.py", line 119, in <module>
    remove_snapsot(vmid=k, virtualization=v, label=argp.label, keep=argp.keep, mute=argp.mute)
  File "/root/proxmox-autosnap/proxmox-autosnap.py", line 25, in create_pid
    return func(*args, **kwargs)
  File "/root/proxmox-autosnap/proxmox-autosnap.py", line 68, in remove_snapsot
    snapshots = run_command([virtualization, 'listsnapshot', vmid])
  File "/root/proxmox-autosnap/proxmox-autosnap.py", line 35, in run_command
    return {'status': True, 'message': out.decode('utf-8').rstrip()}
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 45: invalid continuation byte

It's due to the fact that one of my containers has already a snap with accentuated characters in the comment.

Once the accentuated character removed, the process runs smoothly

Originally created by @zorrobiwan on GitHub (May 7, 2020). Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/33 I got the following error while testing autosnap on my LXC containers. ``` Traceback (most recent call last): File "/root/proxmox-autosnap/proxmox-autosnap.py", line 119, in <module> remove_snapsot(vmid=k, virtualization=v, label=argp.label, keep=argp.keep, mute=argp.mute) File "/root/proxmox-autosnap/proxmox-autosnap.py", line 25, in create_pid return func(*args, **kwargs) File "/root/proxmox-autosnap/proxmox-autosnap.py", line 68, in remove_snapsot snapshots = run_command([virtualization, 'listsnapshot', vmid]) File "/root/proxmox-autosnap/proxmox-autosnap.py", line 35, in run_command return {'status': True, 'message': out.decode('utf-8').rstrip()} UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 45: invalid continuation byte ``` It's due to the fact that one of my containers has already a snap with accentuated characters in the comment. Once the accentuated character removed, the process runs smoothly
kerem closed this issue 2026-02-26 17:44:02 +03:00
Author
Owner

@franklupo commented on GitHub (May 7, 2020):

Hi,
this script is not mine. We don't work with python.

best regards

<!-- gh-comment-id:625434090 --> @franklupo commented on GitHub (May 7, 2020): Hi, this script is not mine. We don't work with python. best regards
Author
Owner

@zorrobiwan commented on GitHub (May 7, 2020):

My bad, wrong project :)
Sorry !!

<!-- gh-comment-id:625471976 --> @zorrobiwan commented on GitHub (May 7, 2020): My bad, wrong project :) Sorry !!
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#28
No description provided.