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: Tue, 31 Jul 2018 16:35:41 -0400
  • Ironport-phdr: 9a23:rHECRBG0t7cFx5Y8j/jytZ1GYnF86YWxBRYc798ds5kLTJ7yosiwAkXT6L1XgUPTWs2DsrQY07SQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDuwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95fWSJBHI2ycogBD+QOMulEsobypUADrRSiCQS2Hu7j1iNEimLw0KYn0+ohCwbG3Ak4EtwJsXTbsNX1O70MXuCx0aLGyTLDb/NQ2Tfm74jIdA0qrPaJXbJycsfd11IiFwzBjlWXsoPqJTeV1uIKs2eH9eZgVP+vh3Q5pA5svzii38EhgZTHiIISz1DL7yR5wIAtKN25Tk57fcCrEIFWty6EK4t6XNkuTH91tyYn0rEGooS0fDYQx5Qh2x7fb+CHfJWS7h3/U+aRJC90hGp7d7KliRay6k+gyuvmWcmuylpKqDRKksXKu3sQ1BLT8tCKRuZy80qlwzqDygHe5+FeLUwpm6fWJIQtz7wwm5cVrE/NBDX5mF/sg6+Tbkgk+van6+DgYrj+o5+TLY50igXkPqsyhsywHf40MgcUX2id/uSzyKfv/UzkQLlQkPI5j7TZvIjbJcQduKG5HxdY3pss5hu7FTuqzdUVkHkdIF5Ydh+KgJLlNlPOLfzgCPewmVWskDNlx/DcOb3hB43ALn3BkLriY7pw8EFcyA40zd9E/Z1UDrcBIPXvVUPrtdzYEwU1PBKpzOb6ENl9zJ8RWXqTAq+FN6PfqUeI6fw1I+mCf48VvzD9JOI/5/L3kH85gkESfbOy0JsTaXC4BehmI16HbXb2g9cBF3sKsRQkTOzsllKCTSBfa2ysUK0h+zFoQL+gFprJE4CxnKSajmD8GpxNensAC1aQHG3uepneHfoAdWWJM8p5m3sfVLenTIEvkgmjrgHhzLxuNK/J4SAC5q7kgeZ0/eTX3Sk76TFwR5CDy2iRQmVchWoWTjkq2Lxz50d6zwHQ/7J/hql9FNdT7v5NGiU9NZjHyOoyX9XwCljpcdOOQl+iRNKtRzAsCN893oldMA5GB9y+g0WbjGKRCLgPmunOXcRs/w==

Hi Viral,

I'm glad that worked -- let us know if you have any other issues. You are one
of a few people testing PWA at the moment as far as I'm aware, so
feedback/bug reports would be much appreciated.

Thanks,
Michael

On Mon, Jul 30, 2018 at 05:26:24PM +0000, Viral Patel wrote:
Thanks Michael ,
Your suggestion fixed the issue. I can now see that Dockers container's
volume certs are mapped to hosts directory /etc/pwa/auth .


Sincerely
Viral Patel

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

| www.savantltd.com



-----Original Message-----
From: Michael Johnson
[mailto:]
Sent: Monday, July 30, 2018 12:46 PM
To: Viral Patel
Cc:

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

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


--
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