502 nginx bad gateway / perms change back

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

502 nginx bad gateway / perms change back

Raymond Norton
I just finished a new 2.0 install on Ubuntu 12.04, using Jeremy's
script. I couldn't get the curl lines to work, so replaced them with
wget. This seemed to work fine for the install. However, I am getting
the Nginx 502 gateway error .

a.sock failed (13: Permission denied) while connecting to upstream,
client: ::ffff:10.10.1.15, server: relay-3.lctn.org, request: "GET /
HTTP/1.1", upstream: "uwsgi://unix:///var/run/baruwa/baruwa.sock:",
host: "relay-3.domain.com"
^C



I dug around and found one of my old post with the same error, but don't
recall how I resolved it. (Nginx is running as www-data). For testing
purposes, setting perms to 777 on /var/run/baruwa eliminates the
permision denied error, but produces the following:

"upstream prematurely closed connection while reading response header
from upstream"

Also, a reboot changes the perms back to what I have here:


root@relay-3:~# ls -l /var/run/baruwa
total 4
srw-rw---- 1 baruwa baruwa 0 Aug 28 13:57 baruwa.sock
-rw-r--r-- 1 root   root   5 Aug 28 13:57 celeryd.pid

Any ideas?

--
Raymond Norton
LCTN
952.955.7766


_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: 502 nginx bad gateway / perms change back

Andrew Colin Kissa
Administrator

On 28 Aug 2014, at 9:15 PM, Raymond Norton <[hidden email]> wrote:

> Also, a reboot changes the perms back to what I have here:

The permissions are set in the ini file, as for the other error please check
the log file for the detailed error if it is not being emailed to you.


_______________________________________________
http://pledgie.com/campaigns/12056

signature.asc (858 bytes) Download Attachment
--
Baruwa - www.baruwa.org
Reply | Threaded
Open this post in threaded view
|

New version / source updates ?

admin-at-extremeshok-dot-com
Its been a year and there has not been any releases or updates for the
open source version.

Is this project end of life or looking for a new maintainer ?

Thanks

_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: New version / source updates ?

Andrew Colin Kissa
Administrator

On 29 Aug 2014, at 8:49 AM, admin-at-extremeshok-dot-com <[hidden email]> wrote:

> Its been a year and there has not been any releases or updates for the open source version.

https://github.com/akissa/baruwa2/commits/master


_______________________________________________
http://pledgie.com/campaigns/12056

signature.asc (858 bytes) Download Attachment
--
Baruwa - www.baruwa.org
Reply | Threaded
Open this post in threaded view
|

Re: New version / source updates ?

admin-at-extremeshok-dot-com
that would explain it, been using https://github.com/akissa/baruwa/ as the source

Sent from my iPad

On 29 Aug 2014, at 12:38 PM, Andrew Colin Kissa <[hidden email]> wrote:


On 29 Aug 2014, at 8:49 AM, admin-at-extremeshok-dot-com <[hidden email]> wrote:

Its been a year and there has not been any releases or updates for the open source version.

https://github.com/akissa/baruwa2/commits/master

_______________________________________________
http://pledgie.com/campaigns/12056

_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: New version / source updates ?

Andrew Colin Kissa
Administrator


On 29 Aug 2014, at 1:03 PM, [hidden email] wrote:

> that would explain it, been using https://github.com/akissa/baruwa/ as the source

That is Baruwa 1.0


_______________________________________________
http://pledgie.com/campaigns/12056

signature.asc (858 bytes) Download Attachment
--
Baruwa - www.baruwa.org
Reply | Threaded
Open this post in threaded view
|

Re: 502 nginx bad gateway / perms change back

Raymond Norton
In reply to this post by Andrew Colin Kissa

> The permissions are set in the ini file, as for the other error please check
> the log file for the detailed error if it is not being emailed to you.
>

I switched to Apache. It starts fine, but am getting the following
errors when accessing the url of the scanner. (used install script,
initially, so not sure what version of packages were installed.)


[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]   File
"/home/baruwa/px/lib/python2.7/site-packages/paste/deploy/loadwsgi.py",
line 640, in find_egg_entry_point
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]    
pkg_resources.require(self.spec)
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]   File
"/home/baruwa/px/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 686, in require
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]     needed =
self.resolve(parse_requirements(requirements))
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]   File
"/home/baruwa/px/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py",
line 588, in resolve
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73]     raise
VersionConflict(dist,req) # XXX put more info here
[Fri Aug 29 12:06:15 2014] [error] [client 10.10.1.73] VersionConflict:
(pip 1.1
(/home/baruwa/px/lib/python2.7/site-packages/pip-1.1-py2.7.egg),
Requirement.parse('pip>=1.4.1'))
~





Raymond Norton
LCTN
952.955.7766


_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|

Re: 502 nginx bad gateway / perms change back

jeremymcs
In reply to this post by Raymond Norton
The installer script is broken. When centalt repo went down, a lot of missing packages are there. 

--
Jeremy McSpadden
Flux Labs | http://www.fluxlabs.net | Endless Solutions
Office : <a href="tel:850-250-5590;501">850-250-5590x501 | Cell : <a href="tel:850-890-2543">850-890-2543 | Fax : <a href="tel:850-254-2955">850-254-2955

On Aug 28, 2014, at 2:16 PM, "Raymond Norton" <[hidden email]> wrote:

I just finished a new 2.0 install on Ubuntu 12.04, using Jeremy's script. I couldn't get the curl lines to work, so replaced them with wget. This seemed to work fine for the install. However, I am getting the Nginx 502 gateway error .

a.sock failed (13: Permission denied) while connecting to upstream, client: ::ffff:10.10.1.15, server: relay-3.lctn.org, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///var/run/baruwa/baruwa.sock:", host: "relay-3.domain.com"
^C



I dug around and found one of my old post with the same error, but don't recall how I resolved it. (Nginx is running as www-data). For testing purposes, setting perms to 777 on /var/run/baruwa eliminates the permision denied error, but produces the following:

"upstream prematurely closed connection while reading response header from upstream"

Also, a reboot changes the perms back to what I have here:


root@relay-3:~# ls -l /var/run/baruwa
total 4
srw-rw---- 1 baruwa baruwa 0 Aug 28 13:57 baruwa.sock
-rw-r--r-- 1 root   root   5 Aug 28 13:57 celeryd.pid

Any ideas?

--
Raymond Norton
LCTN
952.955.7766


_______________________________________________
http://pledgie.com/campaigns/12056

_______________________________________________
http://pledgie.com/campaigns/12056