Here error log :

 cat /var/log/nginx/error.log
2012/12/12 13:12:40 [emerg] 17676#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/web2py.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:12:40 [emerg] 17677#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/web2py.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:15:34 [emerg] 17721#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/self_signed.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:15:34 [emerg] 17722#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/self_signed.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:16:45 [emerg] 17756#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/self_signed.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:16:45 [emerg] 17757#0:
SSL_CTX_use_certificate_chain_file("/etc/nginx/ssl/self_signed.crt") failed
(SSL: error:02001002:system library:fopen:No such file or directory
error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL
routines:SSL_CTX_use_certificate_chain_file:system lib)
2012/12/12 13:17:29 [crit] 17770#0: *5 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/web2py.socket:", host:
"192.168.1.190"
2012/12/12 13:17:29 [crit] 17770#0: *5 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET /favicon.ico HTTP/1.1", upstream:
"uwsgi://unix:///tmp/web2py.socket:", host: "192.168.1.190"
2012/12/12 13:18:34 [crit] 17770#0: *9 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/web2py.socket:", host:
"192.168.1.190"
2012/12/12 13:18:34 [crit] 17770#0: *9 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET /favicon.ico HTTP/1.1", upstream:
"uwsgi://unix:///tmp/web2py.socket:", host: "192.168.1.190"
2012/12/12 13:18:38 [crit] 17770#0: *9 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/web2py.socket:", host:
"192.168.1.190"
2012/12/12 13:18:38 [crit] 17770#0: *9 connect() to
unix:///tmp/web2py.socket failed (2: No such file or directory) while
connecting to upstream, client: 192.168.1.102, server: sgddms1, request:
"GET /favicon.ico HTTP/1.1", upstream:
"uwsgi://unix:///tmp/web2py.socket:", host: "192.168.1.190"

Please ignore the lines about certificat, I didn't have the last version of
the script. So I change the wrong name of the certificat in order that
nginx config use the proper files.

Richard

On Wed, Dec 12, 2012 at 1:18 PM, Richard Vézina <[email protected]
> wrote:

> 502 Bad Gateway
>
> Under 12.10
>
> Richard
>
>
> On Wed, Dec 12, 2012 at 12:53 PM, Richard Vézina <
> [email protected]> wrote:
>
>> I am testing it right now, waiting the VM finish to install :)
>>
>> Richard
>>
>>
>> On Wed, Dec 12, 2012 at 12:48 PM, Niphlod <[email protected]> wrote:
>>
>>> @Richard: fixed. Can you test if this is the behaviour that you want ?
>>>
>>> @Paolo: thanks for the pointer, fixed.
>>>
>>> @Massimo: I "released" the script here to test it before sending the
>>> patch to you just because of these small hiccups here and there. This could
>>> definitely become the default installation script on debian derivatives of
>>> web2py (with one of the speediest stacks out there and quite frankly the
>>> easiest to maintain :-P). Next steps are fabric/cuisine scripts for all
>>> kinds of Linuxes.
>>>
>>>  --
>>>
>>>
>>>
>>>
>>
>>
>

-- 



Reply via email to