Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296197 - net-misc/wicd-1.6.2.2 fails to start at login and/or via calling from terminal
Summary: net-misc/wicd-1.6.2.2 fails to start at login and/or via calling from terminal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 15:55 UTC by lance
Modified: 2010-01-15 10:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lance 2009-12-08 15:55:41 UTC
wicd fails to start properly (restart doesn't fix it nor does stop/start)

Reproducible: Sometimes

Steps to Reproduce:
1. emerge wicd
2. reboot (possibly simply log out I haven't tested it to that degree)
3. it'll come up prompt for root password and do nothing. term shows it failing on a particular line.

Actual Results:  
The service can be told to start/stop/restart and seems to be starting when it's loaded at log in for the user. However, the task-bar icon isn't there, and no ip is pulled regardless of whether it's set to automatically pull or not. Restarting wicd-client in a terminal results in failure due to a dbus call.

Expected Results:  
should have gotten a taskbar icon, and been able to connect to and pull an ip from wired/wireless networks.

The bug is due to a line in the /etc/wicd/wired-settings.conf.
Every so often, for some reason a pair of brackets [] appear at the bottom of the file. Deleting them, then re-logging or restarting wicd allows it to work as expected.

I'm not sure what's putting those brackets in there. They reappear periodically, doesn't seem like every reboot, but perhaps every other.

emerge --info 
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)                                                                                       
=================================================================                                  
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_T7400_@_2.16GHz-with-gentoo-1.12.13                                                                                                
Timestamp of tree: Tue, 08 Dec 2009 14:00:24 +0000                                                 
app-shells/bash:     4.0_p28                                                                       
dev-java/java-config: 2.1.9-r1                                                                     
dev-lang/python:     2.6.2-r1                                                                      
dev-util/cmake:      2.6.4-r3                                                                      
sys-apps/baselayout: 1.12.13                                                                       
sys-apps/sandbox:    1.6-r2                                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                                                 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                          
sys-devel/binutils:  2.18-r3                                                                       
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6a                                                                        
virtual/os-headers:  2.6.27-r2                                                                     
ACCEPT_KEYWORDS="amd64"                                                                            
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-O2 -pipe"                                                                                 
CHOST="x86_64-pc-linux-gnu"                                                                        
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"                                            
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                       
CXXFLAGS="-O2 -pipe"                                                                               
DISTDIR="/usr/portage/distfiles"                                                                   
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                                                                                        
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                                                 
LANG="en_US.utf8"                                                                                  
LC_ALL=""                                                                                          
LDFLAGS="-Wl,-O1"                                                                                  
LINGUAS="en"                                                                                       
MAKEOPTS="-j3"                                                                                     
PKGDIR="/usr/portage/packages"                                                                     
PORTAGE_CONFIGROOT="/"                                                                             
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dvd dvdr eds embedded emboss encode evo fam ffmpeg firefox flac flash fortran gdbm gif glut gnome gpm gstreamer gtk hal iconv ipv6 java jpeg kde ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis webkit x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Also, while I didn't find a bug reporting this already, I apologize if it's a duplicate.
Comment 1 lance 2009-12-15 16:29:51 UTC
Just an update, the brackets are replaced each time the system restarts so the config file must be edited at every reboot.
Comment 2 jms 2009-12-18 16:32:35 UTC
I have the same bug:from time to time wicd will fail on startup after boot 
 then come up prompt for root password and do nothing.
the errore is caused by the additional brackets added to /etc/wicd/wired-settings.conf 
removing these bracket solve the problems
# emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4jms-3.7 x86_64)                                                                
=================================================================                          
System uname: Linux-2.6.30-gentoo-r4jms-3.7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.13                                                                     
Timestamp of tree: Thu, 17 Dec 2009 22:15:01 +0000                                         
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                  
ccache version 2.4 [enabled]                                                               
app-shells/bash:     4.0_p35                                                               
dev-java/java-config: 2.1.9-r1                                                             
dev-lang/python:     2.6.4                                                                 
dev-python/pycrypto: 2.0.1-r8                                                              
dev-util/ccache:     2.4-r7                                                                
dev-util/cmake:      2.6.4-r3                                                              
sys-apps/baselayout: 1.12.13                                                               
sys-apps/sandbox:    1.6-r2                                                                
sys-devel/autoconf:  2.13, 2.63-r1                                                         
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                  
sys-devel/binutils:  2.18-r3                                                               
sys-devel/gcc-config: 1.4.1                                                                
sys-devel/libtool:   2.2.6b                                                                
virtual/os-headers:  2.6.27-r2                                                             
ACCEPT_KEYWORDS="amd64"                                                                    
CBUILD="x86_64-pc-linux-gnu"                                                               
CFLAGS="-march=native -O2 -pipe"                                                           
CHOST="x86_64-pc-linux-gnu"                                                                
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"    
CXXFLAGS="-march=native -O2 -pipe"                                                         
DISTDIR="/portage/distfiles"                                                               
FEATURES="autoaddcvs ccache collision-protect dislocks distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"                           
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"                                         
LANG="en_GB.UTF-8"                                                                         
LDFLAGS="-Wl,-O1"                                                                          
LINGUAS="en_GB en es fr en"                                                                
PKGDIR="/portage/packages"                                                                 
PORTAGE_CONFIGROOT="/"                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                   
PORTAGE_TMPDIR="/var/tmp"                                                                  
PORTDIR="/portage"                                                                         
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"                                    
USE="X a52 aac aalib acl acpi aim alsa amd64 ao apm bash-completion berkdb branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus dga directfb dri dts dv dvb dvd dvdnav dvdr eds emboss encode evdev evo exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp glitz gphoto2 gpm gstreamer gtk gzip hal hdri iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 jabber jpeg jpeg2k kde kontact lame laptop lcms ldap libcaca libnotify libwww lm_sensor lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurse ncurses networkmanager nls nptl nptlonly nsplugin nvidia ofx ogg openal openexr opengl openmp oss pam pcmcia pcre pdf perl php plasma png ppds pppd projectm python qt3support qt4 quicktime raw readline reflection scanner sdl session smp speex spell spl sse sse2 ssl ssse3 startup-notification svg sysfs syslog taglib tcpd theora thumbnail thunar tidy tiff truetype unicode usb v4l v4l2 vcd vdpau video vim-syntax vorbis webkit wifi x x264 xattr xcb xcomposite xine xml xorg xosd xpm xscreesaver xulrunner xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en es fr en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 3 jms 2009-12-18 17:04:33 UTC
I forgot:
* net-misc/wicd
     Available versions:  1.6.2.2 ~1.7.0_alpha2 {+gtk ioctl libnotify ncurses +pm-utils}
     Installed versions:  Version: 1.6.2.2
                          Date:    12:20:17 01/12/09
                          USE:     libnotify ncurses pm-utils -ioctl
     Best versions/slot:  1.6.2.2

It looks liks it´s an upstream bug;
found one here
(wired-settings.conf corruption)
https://bugs.launchpad.net/wicd/+bug/493011

one solution proposed by mycae  is :
"For anyone interested, I have hacked my way around this by adding
sed -i 's/^\[\]$//' /etc/wicd/wired-settings.conf
to the init file (which for debian ubuntu is /etc/init.d/wicd) just after
do_start()
{
"

I believe also(wicd-client cannot connect to dbus interface)
https://bugs.launchpad.net/wicd/+bug/433261 is the same
and maybe(Could not connect to wicd's d-bus interface )
https://bugs.launchpad.net/wicd/+bug/473695


please can anyone report if solution proposed here works(I did not test it) and how this should be handled.
thx
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-12-28 22:28:41 UTC
Background:
- The upstream developers have no idea why it happens.
- It has never happened for me.

So, if you can reproduce this issue reliably. Please test adding that sed statement from comment #3 to the init file. Right under start(){ should be good. (It also would be good to add some print information so you know it is working)

I have requested upstream to add the hack to the init script in 1.7 and if I get some feedback here, I'll backport it to 1.6.2.2

Thanks.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-04 16:23:02 UTC
fixed in beta4 and future versions. thx
Comment 6 Robert Cabrera 2010-01-15 10:45:23 UTC
Jeremy,
I was having this issue also with 1.6.2.2 on my laptop. It was driving me crazy. I tried using 1.7.0 beta4 but its not yet reliable enough for use on my stable box. 

I searched around the net for a solution and found the same one as jms below by adding the "sed -i 's/^\[\]$//' /etc/wicd/wired-settings.conf" line to /etc/init.d/wicd as outlined and worked like a charm.

May I suggest you go ahead and backport this and the "after hald" line from bug #299206 to that same file as this seems to resolve the issue and make this app considerably more reliable. Thanks in advance.