Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2046

Running "oaconfig install" after update fails with "OAUSER: unbound variable"

    XMLWordPrintable

    Details

      Description

      I installed oA 2.0.18 on CentOS7 and then updated to the latest nightly build 2.0.19~201703240108. After updating, running oaconfig install failed with the following error:

      [root@centos7 ~]# oaconfig install
      Redirecting to /bin/systemctl status  postgresql.service
      Database openattic exists, owned by  openattic 
      psql: FATAL:  password authentication failed for user "openattic"
      ALTER ROLE
      Password of database user openattic and database.ini updated
      /usr/sbin/oaconfig: line 178: OAUSER: unbound variable
      

      Here's the full update output:

      [root@centos7 ~]# yum update
      Loaded plugins: fastestmirror
      base                                                     | 3.6 kB     00:00     
      epel/x86_64/metalink                                     |  22 kB     00:00     
      epel                                                     | 4.3 kB     00:00     
      extras                                                   | 3.4 kB     00:00     
      openattic-2.x                                            | 2.9 kB     00:00     
      openattic-nightly                                        | 2.9 kB     00:00     
      updates                                                  | 3.4 kB     00:00     
      (1/3): epel/x86_64/updateinfo                              | 760 kB   00:00     
      (2/3): openattic-nightly/primary_db                        |  18 kB   00:00     
      (3/3): epel/x86_64/primary_db                              | 4.6 MB   00:01     
      Loading mirror speeds from cached hostfile
       * base: artfiles.org
       * epel: ftp.nluug.nl
       * extras: artfiles.org
       * updates: artfiles.org
      Resolving Dependencies
      --> Running transaction check
      ---> Package openattic.noarch 0:2.0.18-1 will be updated
      ---> Package openattic.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-base.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-base.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-gui.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-gui.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-cron.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-cron.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-http.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-http.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-lio.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-lio.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-lvm.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-lvm.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-mailaliases.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-mailaliases.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-nagios.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-nagios.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-nfs.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-nfs.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-module-samba.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-module-samba.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-pgsql.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-pgsql.noarch 0:2.0.19~201703240108-1 will be an update
      ---> Package openattic-release.noarch 0:2.0.18-1 will be updated
      ---> Package openattic-release.noarch 0:2.0.19~201703240108-1 will be an update
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ================================================================================
       Package                   Arch   Version               Repository         Size
      ================================================================================
      Updating:
       openattic                 noarch 2.0.19~201703240108-1 openattic-nightly  34 k
       openattic-base            noarch 2.0.19~201703240108-1 openattic-nightly 143 k
       openattic-gui             noarch 2.0.19~201703240108-1 openattic-nightly 6.0 M
       openattic-module-cron     noarch 2.0.19~201703240108-1 openattic-nightly  13 k
       openattic-module-http     noarch 2.0.19~201703240108-1 openattic-nightly  14 k
       openattic-module-lio      noarch 2.0.19~201703240108-1 openattic-nightly  22 k
       openattic-module-lvm      noarch 2.0.19~201703240108-1 openattic-nightly  35 k
       openattic-module-mailaliases
                                 noarch 2.0.19~201703240108-1 openattic-nightly  10 k
       openattic-module-nagios   noarch 2.0.19~201703240108-1 openattic-nightly  52 k
       openattic-module-nfs      noarch 2.0.19~201703240108-1 openattic-nightly  15 k
       openattic-module-samba    noarch 2.0.19~201703240108-1 openattic-nightly  16 k
       openattic-pgsql           noarch 2.0.19~201703240108-1 openattic-nightly 9.1 k
       openattic-release         noarch 2.0.19~201703240108-1 openattic-nightly 8.3 k
      
      Transaction Summary
      ================================================================================
      Upgrade  13 Packages
      
      Total download size: 6.3 M
      Is this ok [y/d/N]: y
      Downloading packages:
      No Presto metadata available for openattic-nightly
      (1/13): openattic-2.0.19~201703240108-1.noarch.rpm         |  34 kB   00:00     
      (2/13): openattic-base-2.0.19~201703240108-1.noarch.rpm    | 143 kB   00:00     
      (3/13): openattic-module-cron-2.0.19~201703240108-1.noarch |  13 kB   00:00     
      (4/13): openattic-module-http-2.0.19~201703240108-1.noarch |  14 kB   00:00     
      (5/13): openattic-module-lio-2.0.19~201703240108-1.noarch. |  22 kB   00:00     
      (6/13): openattic-module-lvm-2.0.19~201703240108-1.noarch. |  35 kB   00:00     
      (7/13): openattic-module-mailaliases-2.0.19~201703240108-1 |  10 kB   00:00     
      (8/13): openattic-module-nagios-2.0.19~201703240108-1.noar |  52 kB   00:00     
      (9/13): openattic-module-nfs-2.0.19~201703240108-1.noarch. |  15 kB   00:00     
      (10/13): openattic-module-samba-2.0.19~201703240108-1.noar |  16 kB   00:00     
      (11/13): openattic-pgsql-2.0.19~201703240108-1.noarch.rpm  | 9.1 kB   00:00     
      (12/13): openattic-release-2.0.19~201703240108-1.noarch.rp | 8.3 kB   00:00     
      (13/13): openattic-gui-2.0.19~201703240108-1.noarch.rpm    | 6.0 MB   00:21     
      --------------------------------------------------------------------------------
      Total                                              294 kB/s | 6.3 MB  00:22     
      Running transaction check
      Running transaction test
      Transaction test succeeded
      Running transaction
      openattic group already exists
      openattic user already exists
        Updating   : openattic-base-2.0.19~201703240108-1.noarch                 1/26 
      warning: /etc/default/openattic created as /etc/default/openattic.rpmnew
        Updating   : openattic-module-cron-2.0.19~201703240108-1.noarch          2/26 
        Updating   : openattic-module-lvm-2.0.19~201703240108-1.noarch           3/26 
        Updating   : openattic-pgsql-2.0.19~201703240108-1.noarch                4/26 
      Data directory is not empty!
      
      postgres database already initialized
        Updating   : openattic-module-samba-2.0.19~201703240108-1.noarch         5/26 
        Updating   : openattic-module-lio-2.0.19~201703240108-1.noarch           6/26 
        Updating   : openattic-module-nagios-2.0.19~201703240108-1.noarch        7/26 
      warning: /etc/nagios/conf.d/openattic_contacts.cfg saved as /etc/nagios/conf.d/openattic_contacts.cfg.rpmsave
      Note: Forwarding request to 'systemctl enable nagios.service'.
        Updating   : openattic-module-http-2.0.19~201703240108-1.noarch          8/26 
        Updating   : openattic-module-mailaliases-2.0.19~201703240108-1.noarc    9/26 
        Updating   : openattic-module-nfs-2.0.19~201703240108-1.noarch          10/26 
        Updating   : openattic-2.0.19~201703240108-1.noarch                     11/26 
        Updating   : openattic-gui-2.0.19~201703240108-1.noarch                 12/26 
        Updating   : openattic-release-2.0.19~201703240108-1.noarch             13/26 
      warning: /etc/yum.repos.d/openattic.repo created as /etc/yum.repos.d/openattic.repo.rpmnew
        Cleanup    : openattic-gui-2.0.18-1.noarch                              14/26 
        Cleanup    : openattic-2.0.18-1.noarch                                  15/26 
        Cleanup    : openattic-module-lvm-2.0.18-1.noarch                       16/26 
        Cleanup    : openattic-module-cron-2.0.18-1.noarch                      17/26 
        Cleanup    : openattic-module-http-2.0.18-1.noarch                      18/26 
        Cleanup    : openattic-module-lio-2.0.18-1.noarch                       19/26 
        Cleanup    : openattic-module-mailaliases-2.0.18-1.noarch               20/26 
        Cleanup    : openattic-module-nagios-2.0.18-1.noarch                    21/26 
        Cleanup    : openattic-module-nfs-2.0.18-1.noarch                       22/26 
        Cleanup    : openattic-module-samba-2.0.18-1.noarch                     23/26 
        Cleanup    : openattic-pgsql-2.0.18-1.noarch                            24/26 
      warning: /etc/openattic/databases/pgsql.ini saved as /etc/openattic/databases/pgsql.ini.rpmsave
        Cleanup    : openattic-base-2.0.18-1.noarch                             25/26 
        Cleanup    : openattic-release-2.0.18-1.noarch                          26/26 
        Verifying  : openattic-gui-2.0.19~201703240108-1.noarch                  1/26 
        Verifying  : openattic-base-2.0.19~201703240108-1.noarch                 2/26 
        Verifying  : openattic-release-2.0.19~201703240108-1.noarch              3/26 
        Verifying  : openattic-pgsql-2.0.19~201703240108-1.noarch                4/26 
        Verifying  : openattic-module-samba-2.0.19~201703240108-1.noarch         5/26 
        Verifying  : openattic-module-lio-2.0.19~201703240108-1.noarch           6/26 
        Verifying  : openattic-module-cron-2.0.19~201703240108-1.noarch          7/26 
        Verifying  : openattic-module-nagios-2.0.19~201703240108-1.noarch        8/26 
        Verifying  : openattic-module-lvm-2.0.19~201703240108-1.noarch           9/26 
        Verifying  : openattic-module-http-2.0.19~201703240108-1.noarch         10/26 
        Verifying  : openattic-2.0.19~201703240108-1.noarch                     11/26 
        Verifying  : openattic-module-mailaliases-2.0.19~201703240108-1.noarc   12/26 
        Verifying  : openattic-module-nfs-2.0.19~201703240108-1.noarch          13/26 
        Verifying  : openattic-base-2.0.18-1.noarch                             14/26 
        Verifying  : openattic-module-nagios-2.0.18-1.noarch                    15/26 
        Verifying  : openattic-2.0.18-1.noarch                                  16/26 
        Verifying  : openattic-module-mailaliases-2.0.18-1.noarch               17/26 
        Verifying  : openattic-module-lio-2.0.18-1.noarch                       18/26 
        Verifying  : openattic-module-cron-2.0.18-1.noarch                      19/26 
        Verifying  : openattic-release-2.0.18-1.noarch                          20/26 
        Verifying  : openattic-gui-2.0.18-1.noarch                              21/26 
        Verifying  : openattic-module-http-2.0.18-1.noarch                      22/26 
        Verifying  : openattic-module-lvm-2.0.18-1.noarch                       23/26 
        Verifying  : openattic-pgsql-2.0.18-1.noarch                            24/26 
        Verifying  : openattic-module-nfs-2.0.18-1.noarch                       25/26 
        Verifying  : openattic-module-samba-2.0.18-1.noarch                     26/26 
      
      Updated:
        openattic.noarch 0:2.0.19~201703240108-1                                      
        openattic-base.noarch 0:2.0.19~201703240108-1                                 
        openattic-gui.noarch 0:2.0.19~201703240108-1                                  
        openattic-module-cron.noarch 0:2.0.19~201703240108-1                          
        openattic-module-http.noarch 0:2.0.19~201703240108-1                          
        openattic-module-lio.noarch 0:2.0.19~201703240108-1                           
        openattic-module-lvm.noarch 0:2.0.19~201703240108-1                           
        openattic-module-mailaliases.noarch 0:2.0.19~201703240108-1                   
        openattic-module-nagios.noarch 0:2.0.19~201703240108-1                        
        openattic-module-nfs.noarch 0:2.0.19~201703240108-1                           
        openattic-module-samba.noarch 0:2.0.19~201703240108-1                         
        openattic-pgsql.noarch 0:2.0.19~201703240108-1                                
        openattic-release.noarch 0:2.0.19~201703240108-1                              
      
      Complete!
      [root@centos7 ~]# oaconfig install
      Redirecting to /bin/systemctl status  postgresql.service
      Database openattic exists, owned by  openattic 
      psql: FATAL:  password authentication failed for user "openattic"
      ALTER ROLE
      Password of database user openattic and database.ini updated
      /usr/sbin/oaconfig: line 178: OAUSER: unbound variable
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lgrimmer Grimmer, Lenz
              Reporter:
              lgrimmer Grimmer, Lenz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: