Update package database -> TASK ERROR: worker panicked: unknown type.

Mar 30, 2020
154
18
38
44
Hello!

Think since update PVE8, PBS3 we get error "worker panicked: unknown" from dly update check on PVE and PBS.
We are using the "old way" sendmail to send mails to root@pam . There was no time to check the new notification module :-( .

Journal reports "panicked at 'context for proxmox-notify has not been set yet', /usr/share/cargo/registry/proxmox-notify-0.4.0/src/context/mod.rs:50:32" but I'm not able to" , but I'm not able to find what we have to change/correct this.
Does anybody know solve this problem?

kr



Task Log:

Code:
2024-08-07T05:41:46+02:00: starting apt-get update
2024-08-07T05:41:48+02:00: Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Hit:2 http://ftp.at.debian.org/debian bookworm InRelease
Get:3 http://ftp.at.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://security.debian.org bookworm-security/main amd64 Packages [170 kB]
Get:5 http://security.debian.org bookworm-security/main Translation-en [103 kB]
Hit:6 https://enterprise.proxmox.com/debian/pbs bookworm InRelease
Hit:7 https://repo.zabbix.com/zabbix/6.0/debian bookworm InRelease
Fetched 376 kB in 1s (437 kB/s)
Reading package lists...
2024-08-07T05:41:48+02:00: TASK ERROR: worker panicked: unknown type.

Journalctl
Code:
Aug 07 05:41:46 slbkpp03 systemd[1]: Starting proxmox-backup-daily-update.service - Daily Proxmox Backup Server update and maintenance activities...
Aug 07 05:41:46 slbkpp03 proxmox-daily-update[263328]: starting apt-get update
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Hit:2 http://ftp.at.debian.org/debian bookworm InRelease
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Get:3 http://ftp.at.debian.org/debian bookworm-updates InRelease [55.4 kB]
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Get:4 http://security.debian.org bookworm-security/main amd64 Packages [170 kB]
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Get:5 http://security.debian.org bookworm-security/main Translation-en [103 kB]
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Hit:6 https://enterprise.proxmox.com/debian/pbs bookworm InRelease
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Hit:7 https://repo.zabbix.com/zabbix/6.0/debian bookworm InRelease
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Fetched 376 kB in 1s (437 kB/s)
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: Reading package lists...
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: thread 'UPID:slbkpp03:000404A0:00CE08F1:00000000:66B2ECFA:aptupdate::root@pam:' panicked at 'context for proxmox-notify has not been set yet', /usr/share/cargo/registry/proxmox-notify-0.4.0/src/context/mod.rs:50:32
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aug 07 05:41:48 slbkpp03 proxmox-daily-update[263328]: TASK ERROR: worker panicked: unknown type.
Aug 07 05:41:48 slbkpp03 systemd[1]: proxmox-backup-daily-update.service: Deactivated successfully.
Aug 07 05:41:48 slbkpp03 systemd[1]: Finished proxmox-backup-daily-update.service - Daily Proxmox Backup Server update and maintenance activities.
Aug 07 05:41:48 slbkpp03 systemd[1]: proxmox-backup-daily-update.service: Consumed 1.253s CPU time.
 
Thanks for the report! Seems like the proxmox-daily-update program is missing the calls to initialize the notification system.
I'll prepare a fix as soon as I can :)

Are you sure that you also have the same problem also on PVE? As far as I can tell the problem should only affect Proxmox Backup Server.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!