[Mayan EDMS: 1154] 502 Bad Gateway

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1154] 502 Bad Gateway

Kenneth T. Kjelsnes
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Mayan EDMS: 1154] 502 Bad Gateway

Jonathon Exley

Did you create a uwsgi.ini file?
If not then see the recent posts to this forum detailing the contents.

On 18/12/2015 8:14 AM, "Kenneth T. Kjelsnes" <[hidden email]> wrote:
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1157] Re: 502 Bad Gateway

Kenneth T. Kjelsnes
In reply to this post by Kenneth T. Kjelsnes
That worked. Thanks for pointing me in the right direction.

K.

On Thursday, December 17, 2015 at 8:14:15 PM UTC+1, Kenneth T. Kjelsnes wrote:
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1370] Re: 502 Bad Gateway

Gabriel Diteko
I have also been getting the same error. I have created the uwsgi.ini file and still no change. First, where should I place the uwsgi.ini file and secondly, are there any other nginx deployment caveats?

On Friday, December 18, 2015 at 10:48:54 AM UTC+2, Kenneth T. Kjelsnes wrote:
That worked. Thanks for pointing me in the right direction.

K.

On Thursday, December 17, 2015 at 8:14:15 PM UTC+1, Kenneth T. Kjelsnes wrote:
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1385] Re: 502 Bad Gateway

Sander Bastiaansen
In reply to this post by Kenneth T. Kjelsnes
I get this error even when uwsgi.ini is in the right place (/usr/share/mayan-edms/*) and nginx and supervisor start fine. Any other pointers?

Op donderdag 17 december 2015 20:14:15 UTC+1 schreef Kenneth T. Kjelsnes:
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1402] Re: 502 Bad Gateway

rosarior
Administrator
Post the output of the uwsgi and supervisor logs to see what could be wrong.

On Sunday, June 12, 2016 at 5:18:50 PM UTC-4, Sander Bastiaansen wrote:
I get this error even when uwsgi.ini is in the right place (/usr/share/mayan-edms/*) and nginx and supervisor start fine. Any other pointers?

Op donderdag 17 december 2015 20:14:15 UTC+1 schreef Kenneth T. Kjelsnes:
I get 502 Bad Gateway when trying to connect to my fresh install.

I get this error from /var/log/nginx/error.log:

2015/12/17 20:02:09 [crit] 30963#0: *1 connect() to unix:/usr/share/mayan-edms/uwsgi.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/usr/share/mayan-edms/uwsgi.sock:", host: "localhost"


Both nginx and supervisor is running just fine.


I've followed every instruction given in the deployment article.

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1439] Re: 502 Bad Gateway

Jayna Tan
In reply to this post by Sander Bastiaansen
Somehow the order in which the 2 processes are started restarted is important though I do not understand the rationale.

Restart nginx first then supervisor.

I always get a bad gateway error when the order is reversed.

On Monday, June 13, 2016 at 5:18:50 AM UTC+8, Sander Bastiaansen wrote:
I get this error even when uwsgi.ini is in the right place (/usr/share/mayan-edms/*) and nginx and supervisor start fine. Any other pointers?

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...