Coova Gentoo

Okay, just got the latest coova from svn, and it compiles,

but, when i try to run it, i get the following:

<br />
localhost chilli # chilli --debug --fg<br />
options.c: 337: 0 (Debug) DHCP Listen: 192.168.182.1<br />
options.c: 338: 0 (Debug) UAM Listen: 192.168.182.1<br />
options.c: 341: 0 (Debug) WARNING: No uamserver defiend!<br />
chilli.c: 3208: 0 (Debug) ChilliSpot version 1.0.8 started.</p>
<p>tun.c: 663: 2 (No such file or directory) TX queue length set to 100<br />
Segmentation fault<br />

i have the tun in my kernel
the node is there :

<br />
localhost chilli # ls -l /dev/net/<br />
crw-rw---- 1 root root 10, 200 Oct 15 13:09 tun<br />

i'm guessing the seg_fault is because of the (No such file or directory) error that seems to be coming from the OS.

also the options.c: 341: 0 (Debug) WARNING: No uamserver defiend!
is making me scratch my head, because i have defined UAMSERVER in the
/usr/local/etc/chilli/config file

please advice, help :p

Re: Coova Gentoo

hi.

did you do an ebuild?

can you share it please?

thanks
daniele

Re: Coova Gentoo

Okay, i understand.

Basically for coova, the config file is a big "template".

You need to run the init.d script to generate the smaller conf files, that need to be included in chilli.conf

my mistake was to try to run chilli without first running that script.
which made me comment the files not found from the chilli.conf script.

Anyway, it now runs, basically i'll have to modify the init.d script to make it compatible with gentoo.
I'll try to make an ebuild.

Thanx for the help :)

Re: Coova Gentoo

Hi

the system is a 32bit x86 Gentoo on a 2.6 kernel.
(2.6.21-gentoo-r4)

Mmmh, when i run "chilli" on it's own, there's no seg_fault

so gdb gives me

Starting program: /usr/local/sbin/chilli<br />
coova-chilli[9687]: options.c: 341: WARNING: No uamserver defiend!</p>
<p>Program exited normally.<br />

and indeed, if i run "chilli", it just quits without error. but it doesn't stay alive either.

localhost init.d # chilli<br />
coova-chilli[10145]: options.c: 341: WARNING: No uamserver defiend!<br />

maybe i should investigate more that warning.... any ideas ?

my config file:

<br />
localhost chilli # cat config | grep -v "^#" | grep "^[a-zA-Z]"<br />
HS_WANIF=eth1            # WAN Interface toward the Internet<br />
HS_LANIF=eth0              # Subscriber Interface for client devices<br />
HS_NETWORK=192.168.248.0           # HotSpot Network (must include HS_UAMLISTEN)<br />
HS_NETMASK=255.255.255.0   # HotSpot Network Netmask<br />
HS_UAMLISTEN=192.168.248.131       # HotSpot IP Address (on subscriber network)<br />
HS_UAMPORT=3990            # HotSpot Port (on subscriber network)<br />
HS_NASID=nas01<br />
HS_UAMSERVER=http://192.168.248.131/<br />
HS_UAMSECRET=testing123<br />
HS_RADIUS=127.0.0.1<br />
HS_RADIUS2=127.0.0.1<br />
HS_RADSECRET=testing123<br />
HS_UAMALLOW=coova.org<br />
HS_UAMDOMAINS=".paypal.com,.paypalobjects.com"<br />
HS_UAMFORMAT=http://\$HS_UAMSERVER/uam/<br />
HS_UAMHOMEPAGE=http://\$HS_UAMLISTEN:\$HS_UAMPORT/www/coova.html<br />
HS_MODE=hotspot<br />
HS_TYPE=chillispot<br />
HS_RADAUTH=1812<br />
HS_RADACCT=1813<br />
HS_ADMUSR=chillispot<br />
HS_ADMPWD=chillispot<br />
HS_WWWDIR=/usr/local/etc/chilli/www<br />
HS_WWWBIN=/usr/local/etc/chilli/wwwsh<br />
HS_PROVIDER=Coova<br />
HS_PROVIDER_LINK=http://www.coova.org/<br />
HS_LOC_NAME="My HotSpot"           # WISPr Location Name and used in portal<br />

Re: Coova Gentoo

What kind of system (os, version, architecture, 32/64bit, etc) are you using? Try running in gdb (gdb chilli; then enter "r" for run) and do a backtrace when it crashes (using "bt" and "where"). Thanks.