Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-14019

Minion installation from Debian packages failed with missing dir /var/lib/minion/data/tmp

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 29.0.6
    • 29.0.8
    • Installation
    • Security Level: Default (Default Security Scheme)
    • None
    • Horizon 22 - March 16 - 30
    • Backlog

    Description

      When you try to install Minion on Ubuntu 20.04 LTS from our DEB package repository the installation fails with the following error message:

      chown: cannot access '/var/lib/minion/data/tmp': No such file or directory
      chown: cannot access '/var/lib/minion/data/tmp/README': No such file or directory
      

      The full install log looks like this:

      indigo@minion:~$ sudo apt -y install opennms-minion
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following additional packages will be installed:
        ca-certificates-java java-common jicmp jicmp6 liblcms2-2 libpcsclite1 openjdk-11-jre-headless
      Suggested packages:
        default-jre liblcms2-utils pcscd libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho
        fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
      The following NEW packages will be installed:
        ca-certificates-java java-common jicmp jicmp6 liblcms2-2 libpcsclite1 openjdk-11-jre-headless opennms-minion
      0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
      Need to get 313 MB of archives.
      After this operation, 510 MB of additional disk space will be used.
      Get:1 http://de.archive.ubuntu.com/ubuntu focal/main amd64 java-common all 0.72 [6816 B]
      Get:2 http://de.archive.ubuntu.com/ubuntu focal/main amd64 liblcms2-2 amd64 2.9-4 [140 kB]
      Get:3 http://de.archive.ubuntu.com/ubuntu focal/main amd64 libpcsclite1 amd64 1.8.26-3 [22.0 kB]
      Get:4 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 openjdk-11-jre-headless amd64 11.0.13+8-0ubuntu1~20.04 [37.3 MB]
      Get:5 https://debian.opennms.org stable/main amd64 opennms-minion all 29.0.6-1 [276 MB]
      Get:6 http://de.archive.ubuntu.com/ubuntu focal/main amd64 ca-certificates-java all 20190405ubuntu1 [12.2 kB]
      Get:7 https://debian.opennms.org stable/main amd64 jicmp amd64 2.0.2-1 [35.6 kB]
      Get:8 https://debian.opennms.org stable/main amd64 jicmp6 amd64 2.0.2-1 [17.7 kB]
      Fetched 313 MB in 13s (23.5 MB/s)
      Selecting previously unselected package java-common.
      (Reading database ... 127009 files and directories currently installed.)
      Preparing to unpack .../0-java-common_0.72_all.deb ...
      Unpacking java-common (0.72) ...
      Selecting previously unselected package liblcms2-2:amd64.
      Preparing to unpack .../1-liblcms2-2_2.9-4_amd64.deb ...
      Unpacking liblcms2-2:amd64 (2.9-4) ...
      Selecting previously unselected package libpcsclite1:amd64.
      Preparing to unpack .../2-libpcsclite1_1.8.26-3_amd64.deb ...
      Unpacking libpcsclite1:amd64 (1.8.26-3) ...
      Selecting previously unselected package openjdk-11-jre-headless:amd64.
      Preparing to unpack .../3-openjdk-11-jre-headless_11.0.13+8-0ubuntu1~20.04_amd64.deb ...
      Unpacking openjdk-11-jre-headless:amd64 (11.0.13+8-0ubuntu1~20.04) ...
      Selecting previously unselected package ca-certificates-java.
      Preparing to unpack .../4-ca-certificates-java_20190405ubuntu1_all.deb ...
      Unpacking ca-certificates-java (20190405ubuntu1) ...
      Selecting previously unselected package opennms-minion.
      Preparing to unpack .../5-opennms-minion_29.0.6-1_all.deb ...
      Adding group `minion' (GID 121) ...
      Done.
      Unpacking opennms-minion (29.0.6-1) ...
      Selecting previously unselected package jicmp.
      Preparing to unpack .../6-jicmp_2.0.2-1_amd64.deb ...
      Unpacking jicmp (2.0.2-1) ...
      Selecting previously unselected package jicmp6.
      Preparing to unpack .../7-jicmp6_2.0.2-1_amd64.deb ...
      Unpacking jicmp6 (2.0.2-1) ...
      Setting up liblcms2-2:amd64 (2.9-4) ...
      Setting up java-common (0.72) ...
      Setting up libpcsclite1:amd64 (1.8.26-3) ...
      Setting up opennms-minion (29.0.6-1) ...
      Generating public/private rsa key pair.
      Your identification has been saved in /etc/minion/host.key
      Your public key has been saved in /etc/minion/host.key.pub
      The key fingerprint is:
      SHA256:2oQW+ArMnlBBSkd1FcW5a6uNpDEauKJPE8eRFKVUPmY root@minion
      The key's randomart image is:
      +---[RSA 4096]----+
      | o+o==o..o+..    |
      |...+ =.    o     |
      |. . = E     .    |
      | + . = +   .     |
      |. = o + S   .    |
      | o =.o +   o     |
      |  =....o... .    |
      | o .. o = o.     |
      |o.o. . . o..     |
      +----[SHA256]-----+
      chown: cannot access '/var/lib/minion/data/tmp': No such file or directory
      chown: cannot access '/var/lib/minion/data/tmp/README': No such file or directory
      dpkg: error processing package opennms-minion (--configure):
       installed opennms-minion package post-installation script subprocess returned error exit status 123
      Setting up jicmp (2.0.2-1) ...
      Setting up jicmp6 (2.0.2-1) ...
      Setting up openjdk-11-jre-headless:amd64 (11.0.13+8-0ubuntu1~20.04) ...
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to provide /usr/bin/java (java) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/jjs to provide /usr/bin/jjs (jjs) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool to provide /usr/bin/keytool (keytool) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmid to provide /usr/bin/rmid (rmid) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/rmiregistry to provide /usr/bin/rmiregistry (rmiregistry) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/pack200 to provide /usr/bin/pack200 (pack200) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/unpack200 to provide /usr/bin/unpack200 (unpack200) in auto mode
      update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/lib/jexec to provide /usr/bin/jexec (jexec) in auto mode
      Setting up ca-certificates-java (20190405ubuntu1) ...
      head: cannot open '/etc/ssl/certs/java/cacerts' for reading: No such file or directory
      Adding debian:AffirmTrust_Premium_ECC.pem
      Adding debian:USERTrust_ECC_Certification_Authority.pem
      Adding debian:certSIGN_ROOT_CA.pem
      Adding debian:AffirmTrust_Networking.pem
      Adding debian:VeriSign_Universal_Root_Certification_Authority.pem
      Adding debian:NAVER_Global_Root_Certification_Authority.pem
      Adding debian:Starfield_Class_2_CA.pem
      Adding debian:Microsoft_ECC_Root_Certificate_Authority_2017.pem
      Adding debian:Atos_TrustedRoot_2011.pem
      Adding debian:USERTrust_RSA_Certification_Authority.pem
      Adding debian:OISTE_WISeKey_Global_Root_GB_CA.pem
      Adding debian:Certigna_Root_CA.pem
      Adding debian:SSL.com_EV_Root_Certification_Authority_RSA_R2.pem
      Adding debian:GlobalSign_ECC_Root_CA_-_R5.pem
      Adding debian:COMODO_ECC_Certification_Authority.pem
      Adding debian:SZAFIR_ROOT_CA2.pem
      Adding debian:GlobalSign_Root_CA_-_R6.pem
      Adding debian:SwissSign_Gold_CA_-_G2.pem
      Adding debian:Trustwave_Global_ECC_P384_Certification_Authority.pem
      Adding debian:e-Szigno_Root_CA_2017.pem
      Adding debian:GDCA_TrustAUTH_R5_ROOT.pem
      Adding debian:Comodo_AAA_Services_root.pem
      Adding debian:XRamp_Global_CA_Root.pem
      Adding debian:Certum_Trusted_Network_CA_2.pem
      Adding debian:QuoVadis_Root_CA_3.pem
      Adding debian:GlobalSign_Root_CA_-_R3.pem
      Adding debian:AC_RAIZ_FNMT-RCM.pem
      Adding debian:COMODO_RSA_Certification_Authority.pem
      Adding debian:DigiCert_Global_Root_G3.pem
      Adding debian:DigiCert_Assured_ID_Root_G2.pem
      Adding debian:Cybertrust_Global_Root.pem
      Adding debian:certSIGN_Root_CA_G2.pem
      Adding debian:Actalis_Authentication_Root_CA.pem
      Adding debian:Network_Solutions_Certificate_Authority.pem
      Adding debian:GTS_Root_R1.pem
      Adding debian:Trustwave_Global_ECC_P256_Certification_Authority.pem
      Adding debian:Staat_der_Nederlanden_EV_Root_CA.pem
      Adding debian:E-Tugra_Certification_Authority.pem
      Adding debian:TeliaSonera_Root_CA_v1.pem
      Adding debian:Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem
      Adding debian:QuoVadis_Root_CA_2_G3.pem
      Adding debian:T-TeleSec_GlobalRoot_Class_3.pem
      Adding debian:Starfield_Services_Root_Certificate_Authority_-_G2.pem
      Adding debian:DigiCert_Global_Root_G2.pem
      Adding debian:GlobalSign_ECC_Root_CA_-_R4.pem
      Adding debian:DigiCert_Assured_ID_Root_G3.pem
      Adding debian:Izenpe.com.pem
      Adding debian:GlobalSign_Root_CA_-_R2.pem
      Adding debian:IdenTrust_Public_Sector_Root_CA_1.pem
      Adding debian:Global_Chambersign_Root_-_2008.pem
      Adding debian:SecureSign_RootCA11.pem
      Adding debian:Baltimore_CyberTrust_Root.pem
      Adding debian:TWCA_Global_Root_CA.pem
      Adding debian:GTS_Root_R2.pem
      Adding debian:Sonera_Class_2_Root_CA.pem
      Adding debian:UCA_Extended_Validation_Root.pem
      Adding debian:TrustCor_RootCert_CA-1.pem
      Adding debian:Security_Communication_Root_CA.pem
      Adding debian:QuoVadis_Root_CA_2.pem
      Adding debian:Chambers_of_Commerce_Root_-_2008.pem
      Adding debian:TrustCor_ECA-1.pem
      Adding debian:emSign_Root_CA_-_G1.pem
      Adding debian:TWCA_Root_Certification_Authority.pem
      Adding debian:Entrust_Root_Certification_Authority_-_G4.pem
      Adding debian:Amazon_Root_CA_3.pem
      Adding debian:CA_Disig_Root_R2.pem
      Adding debian:QuoVadis_Root_CA_3_G3.pem
      Adding debian:COMODO_Certification_Authority.pem
      Adding debian:DigiCert_Assured_ID_Root_CA.pem
      Adding debian:SwissSign_Silver_CA_-_G2.pem
      Adding debian:T-TeleSec_GlobalRoot_Class_2.pem
      Adding debian:Entrust_Root_Certification_Authority_-_EC1.pem
      Adding debian:Go_Daddy_Class_2_CA.pem
      Adding debian:CFCA_EV_ROOT.pem
      Adding debian:DigiCert_High_Assurance_EV_Root_CA.pem
      Adding debian:DigiCert_Trusted_Root_G4.pem
      Adding debian:Trustwave_Global_Certification_Authority.pem
      Adding debian:Go_Daddy_Root_Certificate_Authority_-_G2.pem
      Adding debian:Certigna.pem
      Adding debian:QuoVadis_Root_CA.pem
      Adding debian:SecureTrust_CA.pem
      Adding debian:IdenTrust_Commercial_Root_CA_1.pem
      Adding debian:TUBITAK_Kamu_SM_SSL_Kok_Sertifikasi_-_Surum_1.pem
      Adding debian:D-TRUST_Root_Class_3_CA_2_EV_2009.pem
      Adding debian:Hongkong_Post_Root_CA_3.pem
      Adding debian:Amazon_Root_CA_4.pem
      Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2015.pem
      Adding debian:Secure_Global_CA.pem
      Adding debian:NetLock_Arany_=Class_Gold=_Főtanúsítvány.pem
      Adding debian:Microsoft_RSA_Root_Certificate_Authority_2017.pem
      Adding debian:Entrust_Root_Certification_Authority_-_G2.pem
      Adding debian:GlobalSign_Root_CA.pem
      Adding debian:AffirmTrust_Commercial.pem
      Adding debian:Autoridad_de_Certificacion_Firmaprofesional_CIF_A62634068.pem
      Adding debian:emSign_Root_CA_-_C1.pem
      Adding debian:Security_Communication_RootCA2.pem
      Adding debian:ACCVRAIZ1.pem
      Adding debian:GTS_Root_R4.pem
      Adding debian:ePKI_Root_Certification_Authority.pem
      Adding debian:EC-ACC.pem
      Adding debian:Hellenic_Academic_and_Research_Institutions_RootCA_2011.pem
      Adding debian:OISTE_WISeKey_Global_Root_GC_CA.pem
      Adding debian:SSL.com_EV_Root_Certification_Authority_ECC.pem
      Adding debian:GeoTrust_Primary_Certification_Authority_-_G2.pem
      Adding debian:ssl-cert-snakeoil.pem
      Adding debian:Hongkong_Post_Root_CA_1.pem
      Adding debian:Staat_der_Nederlanden_Root_CA_-_G3.pem
      Adding debian:SSL.com_Root_Certification_Authority_ECC.pem
      Adding debian:Certum_Trusted_Network_CA.pem
      Adding debian:emSign_ECC_Root_CA_-_G3.pem
      Adding debian:Entrust_Root_Certification_Authority.pem
      Adding debian:AffirmTrust_Premium.pem
      Adding debian:Trustis_FPS_Root_CA.pem
      Adding debian:Buypass_Class_3_Root_CA.pem
      Adding debian:Amazon_Root_CA_2.pem
      Adding debian:D-TRUST_Root_Class_3_CA_2_2009.pem
      Adding debian:Microsec_e-Szigno_Root_CA_2009.pem
      Adding debian:QuoVadis_Root_CA_1_G3.pem
      Adding debian:Entrust.net_Premium_2048_Secure_Server_CA.pem
      Adding debian:DigiCert_Global_Root_CA.pem
      Adding debian:Amazon_Root_CA_1.pem
      Adding debian:GTS_Root_R3.pem
      Adding debian:Buypass_Class_2_Root_CA.pem
      Adding debian:UCA_Global_G2_Root.pem
      Adding debian:emSign_ECC_Root_CA_-_C3.pem
      Adding debian:ISRG_Root_X1.pem
      Adding debian:SSL.com_Root_Certification_Authority_RSA.pem
      Adding debian:TrustCor_RootCert_CA-2.pem
      Adding debian:Starfield_Root_Certificate_Authority_-_G2.pem
      done.
      Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
      Processing triggers for systemd (245.4-4ubuntu3.15) ...
      Processing triggers for man-db (2.9.1-1) ...
      Processing triggers for ca-certificates (20210119~20.04.2) ...
      Updating certificates in /etc/ssl/certs...
      0 added, 0 removed; done.
      Running hooks in /etc/ca-certificates/update.d...
      
      done.
      done.
      Errors were encountered while processing:
       opennms-minion
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      

      Attachments

        Issue Links

          Activity

            People

              amay Alex May
              indigo Ronny Trommer
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: