Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Ningx as Apex reverse proxy not starting automatically

Jose Aróstegui10 hours ago — edited 10 hours ago

Hi experts,

We're migrating Apex to a new server with Oracle Linux9 and upgrading to 24.2.9 and ORDS 25.2.3.r2241517.

We're configuring ngnix as a reverse proxy and we get an strange behaviour.

Config file is reporting a warning, but the file is OK:

[root@myhost ~]# nginx -t
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/root/.ssh/mycompany.cert"
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

It's starting and running correctly with a manual start:

[root@myhost ~]# nginx
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/root/.ssh/mycompany.cert"
[root@myhost ~]#
[root@myhost ~]#
[root@myhost ~]#
[root@myhost ~]# ps -ef|grep nginx
root        4342       1  0 08:38 ?        00:00:00 nginx: master process nginx
nginx       4343    4342  0 08:38 ?        00:00:00 nginx: worker process
nginx       4344    4342  0 08:38 ?        00:00:00 nginx: worker process
nginx       4345    4342  0 08:38 ?        00:00:00 nginx: worker process
nginx       4346    4342  0 08:38 ?        00:00:00 nginx: worker process
nginx       4347    4342  0 08:38 ?        00:00:00 nginx: cache manager process
nginx       4348    4342  0 08:38 ?        00:00:00 nginx: cache loader process
root        4357    4305  0 08:38 pts/0    00:00:00 grep --color=auto nginx

But when starting with systemctl, it's not:

[root@myhost ~]# nginx -s stop
nginx: [warn] "ssl_stapling" ignored, issuer certificate not found for certificate "/root/.ssh/mycompany.cert"

[root@myhost ~]# ps -ef|grep nginx
root        4453    4305  0 08:41 pts/0    00:00:00 grep --color=auto nginx

[root@myhost ~]# systemctl start nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

[root@myhost ~]# ps -ef|grep nginx
root        4478    4305  0 08:41 pts/0    00:00:00 grep --color=auto nginx

…and therefore, cannot be scheduled to start with the system boot:

[root@myhost ~]#  systemctl enable nginx
[root@myhost ~]#  systemctl status nginx
× nginx.service - The nginx HTTP and reverse proxy server
    Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
    Active: failed (Result: exit-code) since Thu 2025-10-02 08:41:56 EDT; 36min ago
       CPU: 18ms
Oct 02 08:41:56 myhost systemd[1]: Starting The nginx HTTP and reverse proxy server...
Oct 02 08:41:56 myhost nginx[4461]: nginx: [emerg] cannot load certificate "/root/.ssh/mycompany.cert": BIO_new_file() failed (SSL: error:8000000D:system library::Permission >
Oct 02 08:41:56 myhost nginx[4461]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 02 08:41:56 myhost systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Oct 02 08:41:56 myhost systemd[1]: nginx.service: Failed with result 'exit-code'.
Oct 02 08:41:56 myhost systemd[1]: Failed to start The nginx HTTP and reverse proxy server.

Any ideas?

Thanks,

Jose.

Comments
Post Details
Added 10 hours ago
1 comment
32 views