It is currently Wed May 22, 2013 12:21 am

All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 9:43 am 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
I have a problem, i enabled the wicd service, but when ever i start it, it dies after a short while (< 5 sec)

i have a prism54 card, that use to work in linux, it shows up as eth1

does the daemon.py print a log somewhere ?
is there updates to wicd since the release of zenwalk 5.0 ?

/U


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 12:55 pm 

You can try launching the wicd daemon manually as root and see what happens...

Code:
/usr/share/wicd/daemon.py


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 1:21 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
Ok, this happens....

Code:
root[rc.d]# /usr/share/wicd/daemon.py
/usr/share/wicd
wicd daemon: pid 2834
root[rc.d]# lo        no wireless extensions.

eth0      no wireless extensions.


root[rc.d]#


I found a log file: /usr/share/wicd/data/wicd.log and it looks like this... something apparently goes terribly wrong here

Code:
2008/04/21 15:07:25 :: ---------------------------
2008/04/21 15:07:25 :: wicd initalizing...
2008/04/21 15:07:25 :: ---------------------------
2008/04/21 15:07:25 :: found wireless interface in configuration... setting wireless interface eth1
2008/04/21 15:07:25 :: found wired interface in configuration... setting wired interface eth0
2008/04/21 15:07:25 :: found wpa driver in configuration... setting wpa driver wext
2008/04/21 15:07:25 :: 0
2008/04/21 15:07:25 :: setting use global dns to 0
2008/04/21 15:07:25 :: setting use global dns to boolean False
2008/04/21 15:07:25 :: setting global dns
2008/04/21 15:07:25 :: global dns servers are None None None
2008/04/21 15:07:25 :: wired autoconnection method is 1
2008/04/21 15:07:25 :: wireless configuration file found...
2008/04/21 15:07:25 :: wired configuration file found...
2008/04/21 15:07:25 :: chmoding configuration files 0600...
2008/04/21 15:07:25 :: chowning configuration files root:root...
2008/04/21 15:07:25 :: autodetected wireless interface... automatically detected wireless interface None
2008/04/21 15:07:25 :: None
2008/04/21 15:07:25 :: using wireless interface... returning wireless interface to client
2008/04/21 15:07:25 :: eth1
2008/04/21 15:07:25 :: autoconnecting... returning wireless interface to client
2008/04/21 15:07:25 :: eth1
2008/04/21 15:07:25 :: scanning start
2008/04/21 15:07:25 ::  ##### 00:17:3F:45:3F:1A
2008/04/21 15:07:26 :: Traceback (most recent call last):
2008/04/21 15:07:26 ::   File "/usr/share/wicd/daemon.py", line 1232, in <module>
2008/04/21 15:07:26 ::     object = ConnectionWizard(bus_name)
2008/04/21 15:07:26 ::   File "/usr/share/wicd/daemon.py", line 142, in __init__
2008/04/21 15:07:26 ::     print self.AutoConnect(True)
2008/04/21 15:07:26 ::   File "/usr/share/wicd/daemon.py", line 348, in AutoConnect
2008/04/21 15:07:26 ::     self.Scan()
2008/04/21 15:07:26 ::   File "/usr/share/wicd/daemon.py", line 423, in Scan
2008/04/21 15:07:26 ::     scan = self.wifi.Scan(str(self.hidden_essid)) #_should_ already be a string but you never know...
2008/04/21 15:07:26 ::   File "/usr/share/wicd/networking.py", line 229, in Scan
2008/04/21 15:07:26 ::     CurrentNetwork["quality"] = 100 * int(strength) // int(max_strength)
2008/04/21 15:07:26 :: ZeroDivisionError: integer division or modulo by zero
2008/04/21 15:07:26 ::


::) YAWN!!

I hate when i get the bugs and other people get the fun...


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 1:36 pm 

What is the output of
Code:
iwconfig

?

Are you sure your wireless card is functional? And are ou trying to connect to a hidden network? I've only seen failure reports about that.


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 2:21 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
Well honestly i am not 100% sure the card works, i am not near my AP right now and havent used the card for a while until today, but the card works fine in kismet (today) - found some 9 networks right away....

I am not trying to connect to anything, the wicd daemon dies before i can do that.

iwconfig says :

Code:
root[mats]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      IEEE 802.11b/g  Nickname:"zenwalk"
          Mode:Managed  Frequency:2.447 GHz  Access Point: Not-Associated   
          Bit Rate:0 kb/s   Tx-Power=31 dBm   Sensitivity=20/200 
          Retry limit:8   RTS thr:2347 B   Fragment thr:2346 B   
          Encryption key:off
          Link Quality=171/0  Signal level=-78 dBm  Noise level=-24 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 6:17 pm 

ursvik wrote:
Link Quality=171/0

I'm away from any wireless network right now but this seems odd, I think it should display something like 90/100 and maybe that's why you get the
Code:
ZeroDivisionError: integer division or modulo by zero

error. So, I believe there is something wrong with the setup of your card.


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 6:45 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
It looks like a driver bug or something... the odd thing is , sometimes it is like 64/0 or 67/96
that is to say , there is no real method in the madness.... i'll have a look at the new kernel first maybe...

Will you be building a package 1.4.2 of wicd, by the way, gapan ?


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 6:52 pm 

1.4.2 is already in both current and snapshot repos from mid-February! l!!!


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 8:11 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
strange, my netpkg shows no update :-(


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Mon Apr 21, 2008 8:24 pm 

What mirror are you using?
Here's the list from the packages page:
http://packages.zenwalk.org/?p=wicd-1.4 ... on=current


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Tue Apr 22, 2008 7:54 am 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
Ok, so i didn't do a netpkg dotnew after the latest netpkg update D!!
i got 1.4.2 now, but that in itself didn't solve it.

BUT i think i solved my problem, as
Code:
root# iwlist --version
iwlist    Wireless-Tools version 28
          Compatible with Wireless Extension v11 to v20.
                          _______________________________
Kernel    Currently compiled with Wireless Extension v22.

eth1      Recommend Wireless Extension v19 or later,
          Currently compiled with Wireless Extension v22.


I must have been having some version incompatibility, so i got wireless-tools-29 from snapshot, and then all started working !


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Tue Apr 22, 2008 7:55 am 

8)


  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Tue Apr 22, 2008 9:23 am 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
ursvik wrote:
I must have been having some version incompatibility, so i got wireless-tools-29 from snapshot, and then all started working !


NOT!

Must have been temporarily, back to [ ] 1


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Thu Apr 24, 2008 12:58 pm 
Master of the known universe
Master of the known universe

Joined: Fri Mar 10, 2006 7:57 am
Posts: 765
Location: Sundbyberg, Sweden
Took a little python crash-course and managed to patch /usr/share/wicd/networking.py :

i changed line #229

Code:
#from
if max_strength:
#to
 if (max_strength) and (int(max_strength) != 0):

Open Source rules !

So now it finds some networks, some found by iwlist are never listed in the gui. (why?)
It only only works if i had the card plugged in at boot.


 Profile Send private message  
 
 Post subject: Re: wicd daemon will not start
PostPosted: Thu Apr 24, 2008 8:38 pm 
Master Zenwalker
Master Zenwalker
User avatar

Joined: Fri Feb 09, 2007 8:40 pm
Posts: 529
Location: Romania
I have the same problem with wicd only that it doesn't crash because of that divide by zero. Instead it says wired-config ( or something like that, its in the same dir as the log ) has no headers. The file is empty.


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
 
cron