[SOLVED] Installation completely broken

Discussion in 'Proxmox VE: Installation and configuration' started by Zamana, Sep 4, 2018.

  1. Zamana

    Zamana New Member

    Joined:
    Dec 20, 2015
    Messages:
    24
    Likes Received:
    0
    Hi!

    I was using proxmox normally until i did a reboot and after that the installation seems completely broken.

    The first sympton was the pve-manager, that wasn't listening on 8006 port. To summarize, that's the situation right now:

    Code:
    $ apt update
    $ apt upgrade
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Calculating upgrade... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    7 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up pve-cluster (5.0-30) ...
    Failed to retrieve unit: No such method 'GetUnit'
    Failed to retrieve unit: No such method 'GetUnit'
    Failed to start pve-ha-lrm.service: Unknown unit: pve-ha-lrm.service
    See system logs and 'systemctl status pve-ha-lrm.service' for details.
    dpkg: error processing package pve-cluster (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of pve-firewall:
     pve-firewall depends on pve-cluster; however:
      Package pve-cluster is not configured yet.
    
    dpkg: error processing package pve-firewall (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libpve-guest-common-perl:
     libpve-guest-common-perl depends on pve-cluster; however:
      Package pve-cluster is not configured yet.
    
    dpkg: error processing package libpve-guest-common-perl (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of qemu-server:
     qemu-server depends on libpve-guest-common-perl; however:
      Package libpve-guest-common-perl is not configured yet.
     qemu-server depends on pve-cluster; however:
      Package pve-cluster is not configured yet.
     qemu-server depends on pve-firewall; however:
      Package pve-firewall is not configured yet.
    
    dpkg: error processing package qemu-server (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libpve-storage-perl:
     libpve-storage-perl depends on pve-cluster; however:
      Package pve-cluster is not configured yet.
    
    dpkg: error processing package libpve-storage-perl (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of pve-manager:
     pve-manager depends on libpve-guest-common-perl (>= 2.0-14); however:
      Package libpve-guest-common-perl is not configured yet.
     pve-manager depends on libpve-storage-perl (>= 5.0-18); however:
      Package libpve-storage-perl is not configured yet.
     pve-manager depends on pve-cluster (>= 5.0-27); however:
      Package pve-cluster is not configured yet.
     pve-manager depends on pve-firewall; however:
      Package pve-firewall is not configured yet.
     pve-manager depends on qemu-server (>= 5.0-24); however:
      Package qemu-server is not configured yet.
    
    dpkg: error processing package pve-manager (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of pve-container:
     pve-container depends on libpve-guest-common-perl; however:
      Package libpve-guest-common-perl is not configured yet.
     pve-container depends on libpve-storage-perl (>= 5.0-18); however:
      Package libpve-storage-perl is not configured yet.
     pve-container depends on pve-cluster (>= 4.0-8); however:
      Package pve-cluster is not configured yet.
    
    dpkg: error processing package pve-container (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent processing triggers for pve-ha-manager:
     pve-ha-manager depends on pve-cluster (>= 3.0-17); however:
      Package pve-cluster is not configured yet.
     pve-ha-manager depends on qemu-server; however:
      Package qemu-server is not configured yet.
    
    dpkg: error processing package pve-ha-manager (--configure):
     dependency problems - leaving triggers unprocessed
    Errors were encountered while processing:
     pve-cluster
     pve-firewall
     libpve-guest-common-perl
     qemu-server
     libpve-storage-perl
     pve-manager
     pve-container
     pve-ha-manager
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    $ dpkg -C
    The following packages have been unpacked but not yet configured.
    They must be configured using dpkg --configure or the configure
    menu option in dselect for them to work:
     libpve-guest-common-perl Proxmox VE common guest-related modules
     libpve-storage-perl  Proxmox VE storage management library
     pve-container        Proxmox VE Container management tool
     pve-firewall         Proxmox VE Firewall
     pve-manager          Proxmox Virtual Environment Management Tools
     qemu-server          Qemu Server Tools
    
    The following packages are only half configured, probably due to problems
    configuring them the first time.  The configuration should be retried using
    dpkg --configure <package> or the configure menu option in dselect:
     pve-cluster          Cluster Infrastructure for Proxmox Virtual Environment
    
    The following packages have been triggered, but the trigger processing
    has not yet been done.  Trigger processing can be requested using
    dselect or dpkg --configure --pending (or dpkg --triggers-only):
     pve-ha-manager       Proxmox VE HA Manager
    
    
    The question is that I'm locked down. Everything I tried to reinstall/reconfigure the missing/unconfigured packages does not work.

    Here is my /etc/apt/sources.list.d:
    Code:
    deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
    
    Proxmox 5.2

    Thanks for any help.
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,276
    Likes Received:
    279
    Try

    # apt-get update
    # apt-get dist-upgrade
    # apt-get install proxmox-ve
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Zamana

    Zamana New Member

    Joined:
    Dec 20, 2015
    Messages:
    24
    Likes Received:
    0
    Hi!

    Same problem:

    Code:
    apt-get install proxmox-ve
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    proxmox-ve is already the newest version (5.2-2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    7 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Setting up pve-cluster (5.0-30) ...
    Failed to retrieve unit: No such method 'GetUnit'
    Failed to retrieve unit: No such method 'GetUnit'
    Failed to start pve-ha-lrm.service: Unknown unit: pve-ha-lrm.service
    See system logs and 'systemctl status pve-ha-lrm.service' for details.
    dpkg: error processing package pve-cluster (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of pve-firewall:
     pve-firewall depends on pve-cluster; however:
      Package pve-cluster is not configured yet.
    (...)
    
    I'm locked down in a catch 22 with apt/dpkg...
     
  4. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,276
    Likes Received:
    279
    Maybe you just need to run dpkg configure:

    # dpkg --configure
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Zamana

    Zamana New Member

    Joined:
    Dec 20, 2015
    Messages:
    24
    Likes Received:
    0
    Code:
     $ dpkg --configure pve-manager
    
    dpkg: dependency problems prevent configuration of pve-manager:
     pve-manager depends on libpve-guest-common-perl (>= 2.0-14); however:
      Package libpve-guest-common-perl is not configured yet.
     pve-manager depends on libpve-storage-perl (>= 5.0-18); however:
      Package libpve-storage-perl is not configured yet.
     pve-manager depends on pve-cluster (>= 5.0-27); however:
      Package pve-cluster is not configured yet.
     pve-manager depends on pve-container (>= 2.0-21); however:
      Package pve-container is not configured yet.
     pve-manager depends on pve-firewall; however:
      Package pve-firewall is not configured yet.
     pve-manager depends on qemu-server (>= 5.0-24); however:
      Package qemu-server is not configured yet.
    
    dpkg: error processing package pve-manager (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     pve-manager
    
     
  6. Zamana

    Zamana New Member

    Joined:
    Dec 20, 2015
    Messages:
    24
    Likes Received:
    0
    The problem is only with Proxmox packages, because I can install other packages with no problem.

    It seems some kind of recursive dependency...
     
  7. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,276
    Likes Received:
    279
    Why recursive (cant see that)? TRy to configure packages individually, start with libpve-guest-common-perl ...

    or maybe just

    # dpkg --configure -a
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Zamana

    Zamana New Member

    Joined:
    Dec 20, 2015
    Messages:
    24
    Likes Received:
    0
    Solved.

    In my despair to restore the system I didn't take notes of the step by step in a detailed way. And even if I had took, they would not be accurate, because some commands failed in a first attempt but worked after the fourth or fifth tentative after I done three or four changes (and I can't know for sure which one worked after all).

    Anyway, here are the key steps, the macro vision of the procedure:

    1) I focused on the 6, 7 and sometimes 8 packages that was causing trouble
    • pve-cluster
    • pve-ha-manager
    • pve-container
    • pve-manager
    • libpve-storage-perl
    • qemu-server
    • libpve-guest-common-perl
    • pve-firewall
    • proxmox-ve

    2) Then I got the latest & greatest debian packages of all of them from this source:
    http://download.proxmox.com/debian/pve/dists/stretch/pve-no-subscription/binary-amd64/

    3) Then I tried to install all of them with dpkg -i *.deb. It almost worked. I realized that 2 of them was preventing the others to get installed: proxmox-ve and pve-manager. So I excluded them from the list, and the list of packages with problems down to only these 2.

    4) After this I fought with proxmox-ve and pve-manager to get them installed, and finally solved by removing the *.postinst files from /var/lib/dpkg/info/. This did let me install them with apt.

    And after a reboot, everything worked fine.

    I hope that this will help someone in the future, if this eventually happen again.

    Thanks for all that tried to help.

    Regards.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice