Troubleshooting
Various notes for random troubleshooting
List all block devices with model
lsblk -o NAME,MODEL,SERIAL,SIZE,TYPE,MOUNTPOINT
Backup to NAS mount via SMB - stale file handle
Testing backups to a QNAP via SMB resulted in failures with the message stale file handle. Setting the option below may have been what fixed the glitch, or it was just unmounting and letting PVE remount. Further testing needed.
pvesm set <storage_ID> --options noserverino
umount /mnt/pve/<storage_ID>
Notifications via Discord
If your test notifications fail with a 400/500 message, make sure you've added the header Content-Type with value application/json. Below is the Body value I'm using currently.
Discord has a limit to the length of messages that can be sent, and PVE likes to send long messages sometimes. If your test messages are still failing with a status 400 message, they're probably too long. Need a way to limit the number of characters.
{
"content": null,
"embeds": [
{
"title": "{{ escape title }}",
"description": "{{ escape message }}",
"color": null,
"footer": {
"text": "Proxmox - [cluster/node name]"
}
}
],
"attachments": []
}
-end