pimox / repo

Raspberry Pi port of Proxmox (Debian package repo)
31 stars 1 forks source link

E: Sub-process /usr/bin/dpkg returned an error code (1) #1

Closed leon1995 closed 3 years ago

leon1995 commented 3 years ago

Hi,

I get an error, when installing the pve-manager E: Sub-process /usr/bin/dpkg returned an error code (1)

$ systemctl status pvestatd.service
● pvestatd.service - PVE Status Daemon
   Loaded: loaded (/lib/systemd/system/pvestatd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2021-05-11 09:16:20 CEST; 20s ago
  Process: 9021 ExecStart=/usr/bin/pvestatd start (code=exited, status=111)

Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[1] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[1] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[2] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[2] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[3] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: ipcc_send_rec[3] failed: Connection refused
Mai 11 09:16:20 proxmox pvestatd[9021]: Unable to load access control list: Connection refused
Mai 11 09:16:20 proxmox systemd[1]: pvestatd.service: Control process exited, code=exited, status=111/n/a
Mai 11 09:16:20 proxmox systemd[1]: pvestatd.service: Failed with result 'exit-code'.
Mai 11 09:16:20 proxmox systemd[1]: Failed to start PVE Status Daemon.
$ journalctl -xe
...
Mai 11 09:18:28 proxmox pveproxy[3791]: worker 9210 finished
Mai 11 09:18:28 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:28 proxmox pveproxy[3791]: worker 9213 started
Mai 11 09:18:28 proxmox pveproxy[3791]: worker 9211 finished
Mai 11 09:18:28 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:28 proxmox pveproxy[3791]: worker 9212 finished
Mai 11 09:18:28 proxmox pveproxy[3791]: worker 9214 started
Mai 11 09:18:28 proxmox pveproxy[9213]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:28 proxmox pveproxy[9214]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:33 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:33 proxmox pveproxy[3791]: worker 9215 started
Mai 11 09:18:33 proxmox pveproxy[9213]: worker exit
Mai 11 09:18:33 proxmox pveproxy[9214]: worker exit
Mai 11 09:18:33 proxmox pveproxy[9215]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:33 proxmox pveproxy[3791]: worker 9213 finished
Mai 11 09:18:33 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:33 proxmox pveproxy[3791]: worker 9214 finished
Mai 11 09:18:33 proxmox pveproxy[3791]: worker 9216 started
Mai 11 09:18:33 proxmox pveproxy[9216]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:38 proxmox pveproxy[9215]: worker exit
Mai 11 09:18:38 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:38 proxmox pveproxy[3791]: worker 9229 started
Mai 11 09:18:38 proxmox pveproxy[3791]: worker 9215 finished
Mai 11 09:18:38 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:38 proxmox pveproxy[3791]: worker 9230 started
Mai 11 09:18:38 proxmox pveproxy[9216]: worker exit
Mai 11 09:18:38 proxmox pveproxy[9229]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:38 proxmox pveproxy[9230]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:38 proxmox pveproxy[3791]: worker 9216 finished
Mai 11 09:18:38 proxmox pveproxy[3791]: starting 1 worker(s)
Mai 11 09:18:38 proxmox pveproxy[3791]: worker 9231 started
Mai 11 09:18:38 proxmox pveproxy[9231]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 1907.
Mai 11 09:18:43 proxmox pveproxy[9229]: worker exit
Mai 11 09:18:43 proxmox pveproxy[9230]: worker exit
Mai 11 09:18:43 proxmox pveproxy[3791]: worker 9229 finished
Mai 11 09:18:43 proxmox pveproxy[3791]: starting 1 worker(s)

I hope you can help me :)

aanon4 commented 3 years ago

Usually this means you've not set the the hostname in /etc/hostname and the ip address mapping for it in /etc/hosts

leon1995 commented 3 years ago

Thanks, hat helped finishing the installation. However, I was not able to reach proxmoxs webui. So, I tried to install proxmox-ve again, but then

$ apt install proxmox-ve
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 proxmox-ve : Depends: proxmox-archive-keyring but it is not installable
              Depends: pve-kernel-5.4 but it is not installable
              Depends: pve-kernel-helper but it is not installable
E: Unable to correct problems, you have held broken packages.

I am using a raspberry pi 3. Could this be the problem? Do I really need a pi 4?

rpkZarathustra commented 3 years ago

I had a similar problem. But with more unsolved dependencies.

I flashed my SD card again. But this time with https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-04-09/2021-03-04-raspios-buster-arm64.zip

(as stated here: https://www.reddit.com/r/Proxmox/comments/n4d7ev/now_running_proxmox_on_a_raspberry_pi_4_cluster/gwv736k/?utm_source=reddit&utm_medium=web2x&context=3 )

With this image i was able to install without error.

leon1995 commented 3 years ago

I noticed, that in the link it says that pve-manager should be installed, not proxmox-ve like in the README. I think this should be corrected. I´ll ty again and report

EDIT: works by installing pve-manager instead of proxmox-ve