Nginx SSL error, Central on Linux debian 10

1. What is the problem? Be very detailed.
when I run "docker-compose ps") inginx Restarting
2. What app or server are you using and on what device and operating system? Include version numbers.
linux -debian
3. What you have you tried to fix the problem?
to restart the inginx but failed,
have tried to read the procedure from https://docs.getodk.org/central-install-digital-ocean/#using-a-custom-ssl-certificate but i have no idea where to start:please help me in detail on this...
have used the domain sbc.hhrc.or.tz as an example

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

root@sbbc:~/central# docker-compose ps
       Name                     Command                 State       Ports
---------------------------------------------------------------------------
central_postgres_1   docker-entrypoint.sh postgres    Up           5432/tcp
enketo               docker-entrypoint.sh /bin/ ...   Up           8005/tcp
enketo_redis_cache   docker-entrypoint.sh redis ...   Up           6379/tcp
enketo_redis_main    docker-entrypoint.sh redis ...   Up           6379/tcp
mail                 /bin/entrypoint.sh exim -b ...   Up           25/tcp
nginx                /bin/bash /scripts/odk-set ...   Restarting
pyxform              waitress-serve --port=80 - ...   Up
secrets              docker-entrypoint.sh ./gen ...   Exit 0
service              docker-entrypoint.sh ./wai ...   Up           8383/tcp
root@sbbc:~/central# docker-compose logs nginx |more
Attaching to nginx
nginx                 | writing a new nginx configuration file..
nginx                 | starting nginx without certbot..
nginx                 | 2021/05/03 07:12:58 [emerg] 10#10: BIO_new_file("
/etc/Customssl/live/sbbc.hghrc.or.tz/fullchain.pem") failed (SSL: error:02001002
:system library:fopen:No such file or directory:fopen('/etc/Customssl/live/sbc.
hhrc.or.tz/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
 file)
nginx                 | nginx: [emerg] BIO_new_file("/etc/Customssl/live/
sbbc.hghrc.or.tz/fullchain.pem") failed (SSL: error:02001002:system library:fope
n:No such file or directory:fopen('/etc/Customssl/live/sbc.
hhrc.or.tz/fullchai
n.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx                 | writing a new nginx configuration file..
nginx                 | starting nginx without certbot..
nginx                 | 2021/05/03 07:12:59 [emerg] 10#10: BIO_new_file("
/etc/Customssl/live/sbbc.hghrc.or.tz/fullchain.pem") failed (SSL: error:02001002
:system library:fopen:No such file or directory:fopen('/etc/Customssl/live/sbc.
hhrc.or.tz/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
 file)
nginx                 | nginx: [emerg] BIO_new_file("/etc/Customssl/live/
sbbc.hghrc.or.tz/fullchain.pem") failed (SSL: error:02001002:system library:fope
n:No such file or directory:fopen('/etc/Customssl/live/sbc.hhrc.or.tz/fullchai
n.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

One thing I see is that your path is "Customssl" instead of "customssl", which suggests to me that you've made more changes than the docs ask you to make.

Have you tried asking your IT team or the person who gave you the cert for help? What did they say?

Thank you Yanokwa let me confirm with the IT people then I will come ......

1 Like