Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error during installation of router/message processor in Apigee Edge Private cloud Version 4.53

Hello,
Could someone let me know why am I seeing this error:

 

 

fatal: FAILED! => {"changed": true, "cmd": "/opt/apigee/apigee-setup/bin/setup.sh -p rmp -f /apps/tmp/apigee_response.txt", "delta": "0:00:25.494058", "end": "2025-01-27 13:30:24.856389", "msg": "non-zero return code", "rc": 1, "start": "2025-01-27 13:29:59.362331", "stderr": "", "stderr_lines": [], "stdout": "INFO: running setup as root
INFO: changing log location to /tmp/setup-root.log
Using defaults from /apps/tmp/apigee_response.txt
Creating /opt/apigee/config-history
config file backed up at /opt/apigee/config-history/2025.01.27-13.29.59.apigee_response.txt
setup.sh: Info: Check for system requirements is not enabled.
setup.sh: Info: Enable system requirements check by setting ENABLE_SYSTEM_CHECK=y 
setup.sh: Info: To run system requirements check without installing the profile use -t option
setup.sh: Proceeding with HOSTIP 10.xxx.xx.xxx

Service setup edge-router

Updating Subscription Management repositories.
Red Hat Satellite Client 6 for RHEL 9 x86_64 (R  20 kB/s | 3.8 kB     00:00    
Red Hat Enterprise Linux 9 for x86_64 - BaseOS   21 kB/s | 4.1 kB     00:00    
Red Hat Enterprise Linux 9 for x86_64 - AppStre  23 kB/s | 4.5 kB     00:00    
Dependencies resolved.
=========================================================================================
 
Package                   Arch    Version           Repository                      Size

=========================================================================================

Installing:
 edge-router               noarch  4.53.00-0.0.60259 apigee-repo                    225 k
Installing dependencies:
 apigee-cassandra-client   noarch  4.0.13-0.0.2536   apigee-repo                     46 M
 apigee-machinekey         noarch  1.1.4-0.0.20044   apigee-repo                    6.9 M
 apigee-nginx              x86_64  1.26.1-el9        apigee-thirdparty              1.0 M
 chkconfig                 x86_64  1.24-1.el9_5.1    rhel-9-for-x86_64-baseos-rpms  182 k
 edge-gateway              noarch  4.53.00-0.0.60259 apigee-repo                    184 M
 initscripts               x86_64  10.11.7-1.el9     rhel-9-for-x86_64-baseos-rpms  232 k

Transaction Summary
=========================================================================================
Install  7 Packages

Total size: 239 M
Total download size: 414 k
Installed size: 290 M
Downloading Packages:
(1/2): chkconfig-1.24-1.el9_5.1.x86_64.rpm      482 kB/s | 182 kB     00:00    
(2/2): initscripts-10.11.7-1.el9.x86_64.rpm     434 kB/s | 232 kB     00:00    
--------------------------------------------------------------------------------
Total                                           771 kB/s | 414 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : chkconfig-1.24-1.el9_5.1.x86_64                        1/7Error unpacking rpm package chkconfig-1.24-1.el9_5.1.x86_64
 
  Installing       : initscripts-10.11.7-1.el9.x86_64                       2/7 
error: unpacking of archive failed on file /etc/init.d;6797dec0: cpio: File from package already exists as a directory in system
error: chkconfig-1.24-1.el9_5.1.x86_64: install failed

  Running scriptlet: initscripts-10.11.7-1.el9.x86_64                       2/7 
Created symlink /etc/systemd/system/sysinit.target.wants/import-state.service → /usr/lib/systemd/system/import-state.service.
Created symlink /etc/systemd/system/sysinit.target.wants/loadmodules.service → /usr/lib/systemd/system/loadmodules.service.

  Running scriptlet: apigee-nginx-1.26.1-el9.x86_64                         3/7 
  Installing       : apigee-nginx-1.26.1-el9.x86_64                         3/7 
  Running scriptlet: apigee-nginx-1.26.1-el9.x86_64                         3/7 
Could not open file or uri for loading private key from localhost.key
404C9B823F7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:crypto/store/store_register.c:237:scheme=file
404C9B823F7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(localhost.key)
openssl failed to create /opt/nginx/ssl/localhost.crt
warning: %post(apigee-nginx-1.26.1-el9.x86_64) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package apigee-nginx
  Running scriptlet: apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 
  Installing       : apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 
  Running scriptlet: apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 
  Running scriptlet: apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 
  Installing       : apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 
  Running scriptlet: apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 
1+0 records in
1+0 records out
32 bytes copied, 0.000131005 s, 244 kB/s

  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  6/7 
  Installing       : edge-gateway-4.53.00-0.0.60259.noarch                  6/7 
  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  6/7 
  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 
  Installing       : edge-router-4.53.00-0.0.60259.noarch                   7/7 
  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 
  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  7/7 
  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 
  Verifying        : edge-router-4.53.00-0.0.60259.noarch                   1/7 
  Verifying        : apigee-machinekey-1.1.4-0.0.20044.noarch               2/7 
  Verifying        : edge-gateway-4.53.00-0.0.60259.noarch                  3/7 
  Verifying        : apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 
  Verifying        : apigee-nginx-1.26.1-el9.x86_64                         5/7 
  Verifying        : chkconfig-1.24-1.el9_5.1.x86_64                        6/7 
  Verifying        : initscripts-10.11.7-1.el9.x86_64                       7/7 
Installed products updated.
Error: Transaction failed

Installed:
  apigee-cassandra-client-4.0.13-0.0.2536.noarch                                
  apigee-machinekey-1.1.4-0.0.20044.noarch                                      
  apigee-nginx-1.26.1-el9.x86_64                                                
  edge-gateway-4.53.00-0.0.60259.noarch                                         
  edge-router-4.53.00-0.0.60259.noarch                                          
  initscripts-10.11.7-1.el9.x86_64                                              
Failed:
  chkconfig-1.24-1.el9_5.1.x86_64                                               

Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1", "stdout_lines": ["INFO: running setup as root", "INFO: changing log location to /tmp/setup-root.log", "Using defaults from /apps/tmp/apigee_response.txt", "Creating /opt/apigee/config-history", "config file backed up at /opt/apigee/config-history/2025.01.27-13.29.59.apigee_response.txt", "setup.sh: Info: Check for system requirements is not enabled.", "setup.sh: Info: Enable system requirements check by setting ENABLE_SYSTEM_CHECK=y ", "setup.sh: Info: To run system requirements check without installing the profile use -t option", "setup.sh: Proceeding with HOSTIP 10.xxx.xx.xxx", "", "Service setup edge-router", "", "Updating Subscription Management repositories.", "Red Hat Satellite Client 6 for RHEL 9 x86_64 (R  20 kB/s | 3.8 kB     00:00    ", "Red Hat Enterprise Linux 9 for x86_64 - BaseOS   21 kB/s | 4.1 kB     00:00    ", "Red Hat Enterprise Linux 9 for x86_64 - AppStre  23 kB/s | 4.5 kB     00:00    ", "Dependencies resolved.", 
"=========================================================================================", 
" Package                   Arch    Version           Repository                      Size", "=========================================================================================", 
"Installing:", " edge-router               noarch  4.53.00-0.0.60259 apigee-repo                    225 k", "Installing dependencies:", " apigee-cassandra-client   noarch  4.0.13-0.0.2536   apigee-repo                     46 M", " apigee-machinekey         noarch  1.1.4-0.0.20044   apigee-repo                    6.9 M", " apigee-nginx              x86_64  1.26.1-el9        apigee-thirdparty              1.0 M", " chkconfig                 x86_64  1.24-1.el9_5.1    rhel-9-for-x86_64-baseos-rpms  182 k", " edge-gateway              noarch  4.53.00-0.0.60259 apigee-repo                    184 M", " initscripts               x86_64  10.11.7-1.el9     rhel-9-for-x86_64-baseos-rpms  232 k", "", "Transaction Summary", 
"=========================================================================================", 
"Install  7 Packages", "", "Total size: 239 M", "Total download size: 414 k", "Installed size: 290 M", 
"Downloading Packages:", "(1/2): chkconfig-1.24-1.el9_5.1.x86_64.rpm      482 kB/s | 182 kB     00:00    ", 
"(2/2): initscripts-10.11.7-1.el9.x86_64.rpm     434 kB/s | 232 kB     00:00    ", "--------------------------------------------------------------------------------", "Total                                           771 kB/s | 414 kB     00:00     ", 
"Running transaction check", "Transaction check succeeded.", "Running transaction test", "Transaction test succeeded.", 
"Running transaction", "  Preparing        :   1/1 ", 
"  Installing       : chkconfig-1.24-1.el9_5.1.x86_64                        1/7 Error unpacking rpm package chkconfig-1.24-1.el9_5.1.x86_64", " ", 
"  Installing       : initscripts-10.11.7-1.el9.x86_64                       2/7 ", "error: unpacking of archive failed on file /etc/init.d;6797dec0: cpio: File from package already exists as a directory in system", "error: chkconfig-1.24-1.el9_5.1.x86_64: install failed", "", 
"  Running scriptlet: initscripts-10.11.7-1.el9.x86_64                       2/7 ", "Created symlink /etc/systemd/system/sysinit.target.wants/import-state.service → /usr/lib/systemd/system/import-state.service.", "Created symlink /etc/systemd/system/sysinit.target.wants/loadmodules.service → /usr/lib/systemd/system/loadmodules.service.", "", 
"  Running scriptlet: apigee-nginx-1.26.1-el9.x86_64                         3/7 ", "  Installing       : apigee-nginx-1.26.1-el9.x86_64                         3/7 ", 
"  Running scriptlet: apigee-nginx-1.26.1-el9.x86_64                         3/7 ", "Could not open file or uri for loading private key from localhost.key", "404C9B823F7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:crypto/store/store_register.c:237:scheme=file", "404C9B823F7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(localhost.key)", 
"openssl failed to create /opt/nginx/ssl/localhost.crt", "warning: %post(apigee-nginx-1.26.1-el9.x86_64) scriptlet failed, exit status 1", "", 
"Error in POSTIN scriptlet in rpm package apigee-nginx", 
"  Running scriptlet: apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 ", "  Installing       : apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 ", 
"  Running scriptlet: apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 ", "  Running scriptlet: apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 ", 
"  Installing       : apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 ", "  Running scriptlet: apigee-machinekey-1.1.4-0.0.20044.noarch               5/7 ", "1+0 records in", "1+0 records out", "32 bytes copied, 0.000131005 s, 244 kB/s", "", 
"  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  6/7 ", "  Installing       : edge-gateway-4.53.00-0.0.60259.noarch                  6/7 ", 
"  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  6/7 ", "  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 ", 
"  Installing       : edge-router-4.53.00-0.0.60259.noarch                   7/7 ", "  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 ", 
"  Running scriptlet: edge-gateway-4.53.00-0.0.60259.noarch                  7/7 ", "  Running scriptlet: edge-router-4.53.00-0.0.60259.noarch                   7/7 ", 
"  Verifying        : edge-router-4.53.00-0.0.60259.noarch                   1/7 ", "  Verifying        : apigee-machinekey-1.1.4-0.0.20044.noarch               2/7 ", 
"  Verifying        : edge-gateway-4.53.00-0.0.60259.noarch                  3/7 ", "  Verifying        : apigee-cassandra-client-4.0.13-0.0.2536.noarch         4/7 ", 
"  Verifying        : apigee-nginx-1.26.1-el9.x86_64                         5/7 ", "  Verifying        : chkconfig-1.24-1.el9_5.1.x86_64                        6/7 ", 
"  Verifying        : initscripts-10.11.7-1.el9.x86_64                       7/7 ", "Installed products updated.", "Error: Transaction failed", "", "Installed:", "  apigee-cassandra-client-4.0.13-0.0.2536.noarch", "  apigee-machinekey-1.1.4-0.0.20044.noarch", "  apigee-nginx-1.26.1-el9.x86_64                                                ", "  edge-gateway-4.53.00-0.0.60259.noarch                                         ", "  edge-router-4.53.00-0.0.60259.noarch                                          ", "  initscripts-10.11.7-1.el9.x86_64                                              ", "Failed:", "  chkconfig-1.24-1.el9_5.1.x86_64                                               ", "", "Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1"]}

 

 



0 5 910
5 REPLIES 5

Hi @sohail526, thanks for sharing your question 😊 Could you provide a bit more context about your issue? For example, the installation steps you’ve taken, any configurations you’ve applied, and the point where the error occurs. Any extra detail will help us understand the situation better and provide more accurate guidance.

You might also find this guidance on sharing questions in the Apigee forum helpful—it’s a quick read with tips to make sure your questions get the best responses from the community.

Looking forward to hearing back from you!

Hi AlexBT,

I am trying to install edge router and looks like it's failing to install NGINX rpm package with openssl errors as you could see from the logs I posted.

I am using RHEL9 and the openssl version is 3.0.7. Hope that helps.

We have logged a internal ticket and engineering is looking into it . Meanwhile I suggest following 

  • Check if you have right EPEL (EPEL 9 in this case)
  • sudo yum update -y
  • Update openssl to higher version (I tested with 3.2.2 4) 
  • and finally try installing like : /opt/apigee/apigee-service/bin/apigee-service edge-router install

 

I can see two errors, which appear unrelated.

```
Running transaction
Preparing : 1/1
Installing : chkconfig-1.24-1.el9_5.1.x86_64 1/7Error unpacking rpm package chkconfig-1.24-1.el9_5.1.x86_64

Installing : initscripts-10.11.7-1.el9.x86_64 2/7
error: unpacking of archive failed on file /etc/init.d;6797dec0: cpio: File from package already exists as a directory in system
error: chkconfig-1.24-1.el9_5.1.x86_64: install failed
```

I'm not sure what this is about. Either `chkconfig` or `initscripts` failed to unpack properly or dnf/rpm got confused an tried to overwrite an existing RPM. I'm not sure.

To be safe I would recommend, running

rpm --verify initscripts

rpm --verify chkconfig

To make sure the packages are installed properly.

 

 

```
Could not open file or uri for loading private key from localhost.key
404C9B823F7F0000:error:16000069:STORE routines:ossl_store_get0_loader_int:unregistered scheme:crypto/store/store_register.c:237:scheme=file
404C9B823F7F0000:error:80000002:system library:file_open:No such file or directory:providers/implementations/storemgmt/file_store.c:267:calling stat(localhost.key)
openssl failed to create /opt/nginx/ssl/localhost.crt
warning: %post(apigee-nginx-1.26.1-el9.x86_64) scriptlet failed, exit status 1

Error in POSTIN scriptlet in rpm package apigee-nginx
```

This can message can ultimately be ignored.

`apigee-nginx` attempts to generate a local cert & key pair for itself during installation. Sometimes due to the vagaries of rpm/dnf's non-interactive shell, individual distro environment, and the base openssl version's argument order requirements it can fail. The generated cert is more a vestigial function of the installation script. 

Either way, I'll be sure to create an internal bug to look into this. 

 

This is an automated deployment where instances are created in AWS and then installation of Apigee begins. Therefore, I have no control to check the rpm packages when this fails. If I rerun after the failure those EC2 instances are destroyed and new instances are created and again the I see the same failure.

Top Solution Authors