[SOLVED] Rust error running pveversion command

Beqren

New Member
Feb 5, 2024
5
0
1
I attempted to upgrade my proxmox environment from 7.4-17 to 8 recent but found when running
Code:
pveversion
I get the following error. I can't seem to find anything about this error and don't know what I screwed up.

All suggestions welcome.

Code:
root@server:/# RUST_BACKTRACE=full pveversion
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /usr/share/cargo/registry/proxmox-apt-0.9.4/src/repositories/mod.rs:113:26
stack backtrace:
   0:     0x7f9ebd4e9d3f - <unknown>
   1:     0x7f9ebd508afe - <unknown>
   2:     0x7f9ebd4d03e5 - <unknown>
   3:     0x7f9ebd4e9af5 - <unknown>
   4:     0x7f9ebd4d8e7f - <unknown>
   5:     0x7f9ebd4d8b38 - <unknown>
   6:     0x7f9ebd4d948b - <unknown>
   7:     0x7f9ebd4ea051 - <unknown>
   8:     0x7f9ebd4e9e8c - <unknown>
   9:     0x7f9ebd4d9032 - <unknown>
  10:     0x7f9ebd127c73 - <unknown>
  11:     0x7f9ebd127d4d - <unknown>
  12:     0x7f9ebd3af6c5 - <unknown>
  13:     0x7f9ebd1f0f88 - <unknown>
  14:     0x7f9ebd1f139a - <unknown>
  15:     0x7f9ebd1f1126 - <unknown>
  16:     0x564990f24187 - Perl_pp_entersub
  17:     0x564990f1a876 - Perl_runops_standard
  18:     0x564990e88b1c - perl_run
  19:     0x564990e5b482 - main
  20:     0x7f9ebdaa7d0a - __libc_start_main
  21:     0x564990e5b4ca - _start
  22:                0x0 - <unknown>
fatal runtime error: failed to initiate panic, error 5
Aborted
 
Hi,
please share the output of cat /etc/apt/sources.list /etc/apt/sources.list.d/* and verify that the pve-manager package is installed correctly via dpkg -V pve-manager.
 
Code:
root@server:~# cat /etc/apt/sources.list /etc/apt/sources.list.d/*
deb http://ftp.debian.org/debian bullseye main contrib
deb http://ftp.debian.org/debian bullseye-updates main contrib

# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
#deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

# security updates
deb http://security.debian.org/debian-security bullseye-security main contrib
#deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Code:
root@server:~# dpkg -V pve-manager
??5?????? c /etc/apt/sources.list.d/pve-enterprise.list
 
Hi,
what is the output of cat /etc/os-release?
 
Code:
root@server:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
 
Proxmox VE 8 is based on Debian Bookworm, but your os-release says Debian Trixie/Sid. That is not expected by our code. What did you originally install Proxmox VE on?
 
I initially installed the proxmox VE 7 (don't remember the exact subversion) directly from an ISO installer image back in early January 2023. I am still on version 7.4-17 as the update to 8 fails at the following step when checking the current version:
Code:
root@server:~# pve7to8
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
PASS: all packages up-to-date

Checking proxmox-ve package version..
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /usr/share/cargo/registry/proxmox-apt-0.9.4/src/repositories/mod.rs:113:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted
 
I initially installed the proxmox VE 7 (don't remember the exact subversion) directly from an ISO installer image back in early January 2023. I am still on version 7.4-17 as the update to 8 fails at the following step when checking the current version:
Code:
root@server:~# pve7to8
= CHECKING VERSION INFORMATION FOR PVE PACKAGES =

Checking for package updates..
PASS: all packages up-to-date

Checking proxmox-ve package version..
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /usr/share/cargo/registry/proxmox-apt-0.9.4/src/repositories/mod.rs:113:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted
As @fiona stated, your /etc/os-release does not reflect this. Did you mistakenly have overwritten this file at some point? Try to adapt the VERSION_CODENAME=bullseye instead of trixie
 
I probably ran some command I shouldn't have along the way which had gotten me to the state that I was at. Updating the VERSION_CODENAME has worked!

Code:
root@server:~# pveversion
pve-manager/7.4-17/513c62be (running kernel: 5.15.131-2-pve)

Thank you so much for the help!
 

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!