Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Perfsonar 4.1 docker nginx Problem

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Perfsonar 4.1 docker nginx Problem


Chronological Thread 
  • From: Michael Johnson <>
  • To: Viral Patel <>
  • Cc: "" <>
  • Subject: Re: [perfsonar-user] Perfsonar 4.1 docker nginx Problem
  • Date: Mon, 30 Jul 2018 12:46:22 -0400
  • Ironport-phdr: 9a23:jCX65RQbR2szaHtNwuD1wXRG/9psv+yvbD5Q0YIujvd0So/mwa6zbBaN2/xhgRfzUJnB7Loc0qyK6/6mATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfbJ/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4rx1QxH0ligIKz858HnWisNuiqJbvAmhrAF7z4LNfY2ZKOZycqbbcNgHR2ROQ9xRWjRPDI28cYUBEukPPehXoIbhulQBrwCzBQawCO710DJEmmP60bM83u88EQ/GxgsgH9cWvXrTrdX6KKcSXvqrw6nM0D7Na/RW2Tf76IjTdRAhp+yHULV1ccrTykQjCRjIjlqUqYziJDyazOANs26c7+V8T+6vinMnpxtvrTey28chk4/EjZ8bxFDD8CV22oc1JdugRU56Z96kDIVftzucN4RoXsMuXXtktzgnxb0boZK7ZDYFyI4pxx7EbPyHdZKH4gj5WOaXPzh4mGppeKmliBas60egzPH8Vs2o0FlXtCZKjt7MtnUL2hfO6caHUuNw8lm91TqTygze7/xILEMqmqfYLpMhzLAwmoYPvUnGACP7lkD7gaqUe0gk/OWj9v7pba/8ppCGMo95kgH+Pboqmsy4Gek4NxIBX2mf+eimyLLj4VH2TK9Fjv0slKnZt4zVKd4apq6kGQNazJss6wunAzen1tQXg2UHIUpbdB6bk4TlJlTDLO37APihgFmhlTlrx/7aMrH9B5jBMHbOnbLkcLt/60NQ0A8zwspe55JQBLEBOvXzWkrpudzdDB80MBK4zv3oCNV50YMRQniAAqufMKPVrVCE/OMvI/SWaIALpTn9NuAp5+Tygn8hhV8dYa6p0IMPaH+mBPRmLV6ZYX3qgtgbC2cGpxc+TPf0h12YSjNTY3eyX7kg5jEgFo6qF4bDRoaxgLOfxie7GINZZnxYBlyWD3jnapiECL8xbjmPKJphjiAcTurmDIsgzg218g7817d9KOfIoGsVuY+kz8lw/+SUjhA98zt6AYOF3nuDVGZyl3lNWiQ7xvNDphlDy02K1eBAiuBVEZQH+etATgo+HYXV0eV8F9TuVkTKedLfG3i8RdDzJDA6Tts8x5csZEZ7ANKkxkTG3XrwK7ARkLaCAJoz+eTdwj78K9srmCWO77Uok1RzGpgHDmahnKMqslGLX4M=

Hi Viral,

You need to place your SSL certs in
/etc/pwa/auth/

Also, I just realized that the nginx command is wrong in the docs. it should
be:

docker run \
--restart=always \
--net pwa \
--name nginx \
-v /etc/pwa/shared:/shared:ro \
-v /etc/pwa/nginx:/etc/nginx:ro \
-v /etc/pwa/auth:/certs:ro \
-p 8000:8000 \
-p 8443:8443 \
-p 9443:9443 \
-d nginx


The part that is different is:
-v /etc/grid-security/host:/certs:ro

changes to

-v /etc/pwa/auth:/certs:ro

I'll update the docs. Let me know if you still have issues.

Thanks,
Michael

On Mon, Jul 30, 2018 at 04:15:18PM +0000, Viral Patel wrote:
Hi
I am running PWA alongside a toolkit & followed the document :

http://docs.perfsonar.net/release_candidates/4.1b1/pwa_running_alongside\<http://docs.perfsonar.net/release_candidates/4.1b1/pwa_running_alongside/>

but my nginx container keep restarting , looking at the container log points
toward cert error but I do not know how to fix this .


[root@perfsonar41 ~]# docker container list -a

CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
2e5c749da84e nginx "nginx -g 'daemon ..." 2 days ago
Restarting (1) 1 second ago nginx
6b9af1cb53fb perfsonar/pwa-pub "node /app/api/pwa..." 2 days ago
Up 29 seconds 8080/tcp pwa-pub1
cdbe6e467d4f perfsonar/pwa-admin "/start.sh" 2 days ago
Up 29 seconds 80/tcp, 8080/tcp pwa-admin1
2242c69ca3e2 perfsonar/sca-auth "/app/docker/start.sh" 2 days ago
Up 29 seconds 80/tcp, 8080/tcp sca-auth
c040264d8a6a mongo "docker-entrypoint..." 2 days ago
Up 29 seconds 27017/tcp mongo


[root@perfsonar41 ~]# docker logs -f --tail 20 nginx

2018/07/30 16:05:58 [emerg] 1#1: BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
nginx: [emerg] BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
2018/07/30 16:06:03 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:22
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:22
2018/07/30 16:06:03 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:63
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:63
2018/07/30 16:06:03 [emerg] 1#1: BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
nginx: [emerg] BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
2018/07/30 16:06:09 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:22
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:22
2018/07/30 16:06:09 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:63
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:63
2018/07/30 16:06:09 [emerg] 1#1: BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
nginx: [emerg] BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
2018/07/30 16:06:17 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:22
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:22
2018/07/30 16:06:17 [warn] 1#1: the "ssl" directive is deprecated, use the "listen
... ssl" directive instead in /etc/nginx/conf.d/pwa.conf:63
nginx: [warn] the "ssl" directive is deprecated, use the "listen ... ssl"
directive instead in /etc/nginx/conf.d/pwa.conf:63
2018/07/30 16:06:17 [emerg] 1#1: BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
nginx: [emerg] BIO_new_file("/certs/cert.pem") failed (SSL:
error:02001002:system library:fopen:No such file or
directory:fopen('/certs/cert.pem','r') error:2006D080:BIO routines:BIO_new_file:no such
file)



Sincerely
Viral Patel

[SavantLtd Teal - small]

230 Clearfield Avenue, Suite 113
Virginia Beach, VA 23462
757-463-9120 phone
757-463-9158 fax

| www.savantltd.com




--
To unsubscribe from this list:
https://lists.internet2.edu/sympa/signoff/perfsonar-user


--
Michael Johnson
GlobalNOC DevOps Engineer

Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.19.

Top of Page