Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 233526

Summary: gorg exits with code error 1
Product: Gentoo Linux Reporter: Nelson <nelson.batalha>
Component: Current packagesAssignee: Xavier Neys (RETIRED) <neysx>
Status: RESOLVED WORKSFORME    
Severity: normal CC: neysx, ramereth
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: strace
gorg.conf

Description Nelson 2008-07-31 20:34:49 UTC
Running gorg will result in a immediate exit with code error 1.

Nothing is using port 8008, attaching the config file and the output of strace gorg.

I'm following http://gentoo.neysx.org/mystuff/gorg/gorg.xml and
http://www.gentoo.org/proj/en/gdp/doc/doc-tipsntricks.xml
Comment 1 Nelson 2008-07-31 20:35:46 UTC
Created attachment 161876 [details]
strace
Comment 2 Nelson 2008-07-31 20:36:39 UTC
Created attachment 161878 [details]
gorg.conf

BTW gorg is parsing individual files well.
Comment 3 Wormo (RETIRED) gentoo-dev 2008-07-31 21:29:12 UTC
Which version of gorg are you running? Is it from the main tree or an overlay?

From the strace log, it looks like you have something running on 8008 already, which is a typical reason for a server to exit like that:

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(3, {sa_family=AF_INET, sin_port=htons(8008), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)

So, also please show output from 'netstat -tlpn'
Comment 4 Nelson 2008-07-31 21:36:42 UTC
(In reply to comment #3)
> Which version of gorg are you running? Is it from the main tree or an overlay?

The latest in the main tree.


> From the strace log, it looks like you have something running on 8008 already,
> which is a typical reason for a server to exit like that:
> 
> socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
> setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> bind(3, {sa_family=AF_INET, sin_port=htons(8008),
> sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRNOTAVAIL (Cannot assign
> requested address)

> So, also please show output from 'netstat -tlpn'
> 
output:"
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat   \ PID/Program name
"

'lsof -i :8008' also shows nothing.