Bug 759777 - [abrt] wicd-gtk-1.7.0-9.fc16: wicd-client.py:724:_trigger_scan_if_needed:AttributeError: 'NoneType' object has no attribute 'Scan'
Summary: [abrt] wicd-gtk-1.7.0-9.fc16: wicd-client.py:724:_trigger_scan_if_needed:Attr...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: wicd
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Cantrell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5e9aa772afe097746b3a5b68037...
: 759863 760468 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-03 18:40 UTC by Jake Jackson
Modified: 2012-08-12 13:29 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
: 759863 (view as bug list)
Environment:
Last Closed: 2012-03-22 14:13:53 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: smolt_data (3.25 KB, text/plain)
2011-12-03 18:40 UTC, Jake Jackson
no flags Details

Description Jake Jackson 2011-12-03 18:40:35 UTC
libreport version: 2.0.7
abrt_version:   2.0.6
cmdline:        /usr/bin/python -O /usr/share/wicd/gtk/wicd-client.py
executable:     /usr/share/wicd/gtk/wicd-client.py
kernel:         3.1.2-1.fc16.x86_64
reason:         wicd-client.py:724:_trigger_scan_if_needed:AttributeError: 'NoneType' object has no attribute 'Scan'
time:           Sat 03 Dec 2011 07:26:36 PM CET
uid:            1000
username:       jakob

smolt_data:     Text file, 3324 bytes

backtrace:
:wicd-client.py:724:_trigger_scan_if_needed:AttributeError: 'NoneType' object has no attribute 'Scan'
:
:Traceback (most recent call last):
:  File "/usr/share/wicd/gtk/wicd-client.py", line 90, in wrapper
:    return func(*args, **kwargs)
:  File "/usr/share/wicd/gtk/wicd-client.py", line 724, in _trigger_scan_if_needed
:    wireless.Scan(False)
:AttributeError: 'NoneType' object has no attribute 'Scan'
:
:Local variables in innermost frame:
:item: <gtk.ImageMenuItem object at 0x25bd870 (GtkImageMenuItem at 0x2607210)>
:self: <StatusTrayIconGUI object at 0x25aecd0 (GtkStatusIcon at 0x2652300)>

comment:
:-> installed wicd like: http://wicd.sourceforge.net/moinmoin/Wicd%20on%20Fedora%2011
:
:-> the result
:
:executable:     /usr/bin/python
:hashmarkername: setroubleshoot
:kernel:         3.1.2-1.fc16.x86_64
:reason:         SELinux is preventing wicd from 'open' accesses on the file wicd.log.
:time:           Sat 03 Dec 2011 07:23:58 PM CET
:wicdBug1.txt:   
:
:description:    Text file, 2332 bytes
:
:event_log:
::2011-12-03-19:24:32> Logging into Bugzilla at https://bugzilla.redhat.com
::2011-12-03-19:24:32  fatal: XML-RPC(-504): libcurl failed to execute the HTTP POST transaction, explaining:  Could not resolve host: (nil); Unknown error
::2011-12-03-19:24:32* (exited with 1)
:
:END:
:
:-> switched back to network-manager,...

Comment 1 Jake Jackson 2011-12-03 18:40:38 UTC
Created attachment 540125 [details]
File: smolt_data

Comment 2 Jake Jackson 2011-12-03 18:49:09 UTC
I think, i just don't know how to install correctly,...

Comment 3 Jake Jackson 2011-12-04 16:39:27 UTC
On my way installing wicd following additional errors occurred:

--------------------------------------
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.2-1.fc16.x86_64
reason:         SELinux is preventing wicd from 'write' accesses on the file /etc/dhcp/manager-settings.conf.
time:           Sun 04 Dec 2011 03:44:01 PM CET
wicdBug1.txt:   

description:    Text file, 3057 bytes

event_log:
:2011-12-04-15:44:12> Logging into Bugzilla at https://bugzilla.redhat.com
:2011-12-04-15:44:12  fatal: XML-RPC(-504): libcurl failed to execute the HTTP POST transaction, explaining:  Could not resolve host: (nil); Unknown error
:2011-12-04-15:44:12* (exited with 1)

END:

--------------------------------------
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.2-1.fc16.x86_64
reason:         SELinux is preventing wicd from 'setattr' accesses on the file /etc/dhcp/wireless-settings.conf.
time:           Sun 04 Dec 2011 04:14:04 PM CET
wicdBug00.txt:  

description:    Text file, 3009 bytes

--------------------------------------
https://bugzilla.redhat.com/show_bug.cgi?id=759863


I did this to make it work,... granted, i don't exactly know what i have done.

--------------------------------------
# semanage fcontext -a -t puppet_tmp_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t named_cache_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_etc_rw_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_tmp_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_log_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t sysctl_net_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_var_lib_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_var_run_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t net_conf_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t user_cron_spool_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t pppd_var_run_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t afs_cache_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t NetworkManager_t '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t root_t '/etc/dhcp/manager-settings.conf'
# restorecon -v '/etc/dhcp/manager-settings.conf'
# semanage fcontext -a -t named_cache_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t NetworkManager_etc_rw_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t NetworkManager_tmp_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t NetworkManager_log_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t NetworkManager_var_lib_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t NetworkManager_var_run_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t net_conf_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t pppd_var_run_t '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t root_t '/etc/dhcp/wireless-settings.conf'
# restorecon -v '/etc/dhcp/wireless-settings.conf'
# semanage fcontext -a -t named_cache_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t NetworkManager_etc_rw_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t NetworkManager_tmp_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t NetworkManager_log_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t NetworkManager_var_lib_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t NetworkManager_var_run_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t net_conf_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t pppd_var_run_t '/etc/dhcp/wired-settings.conf'
# semanage fcontext -a -t root_t '/etc/dhcp/wired-settings.conf'
# restorecon -v '/etc/dhcp/wired-settings.conf'


Now this error ocours, but the wlan works.

--------------------------------------
https://bugzilla.redhat.com/show_bug.cgi?id=759883

Comment 4 Sylvain Arth 2011-12-16 22:30:40 UTC
Package: wicd-gtk-1.7.0-10.fc15
Architecture: i686
OS Release: Fedora release 15 (Lovelock)

Comment
-----
After logged in

Comment 5 Sylvain Arth 2011-12-22 06:30:55 UTC
Package: wicd-gtk-1.7.0-10.fc15
Architecture: i686
OS Release: Fedora release 15 (Lovelock)

Comment
-----
I dont't know

Comment 6 Robert Crowe 2012-02-01 16:19:16 UTC
I just powered on my laptop, and there was a error saying wicd would not connect to the dbus client.

Package: wicd-gtk-1.7.0-9.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment 7 David Cantrell 2012-02-10 19:53:43 UTC
*** Bug 760468 has been marked as a duplicate of this bug. ***

Comment 8 David Cantrell 2012-02-10 19:53:50 UTC
*** Bug 759863 has been marked as a duplicate of this bug. ***

Comment 9 Kostya Berger 2012-03-19 13:01:25 UTC
wicd startup on system startup.

Package: wicd-gtk-1.7.0-10.fc16
OS Release: Fedora release 16 (Verne)

Comment 10 David Cantrell 2012-03-22 14:13:53 UTC
I am unable to reproduce this issue on F-16.  If anyone has more info on reproducing it in F-16, let me know.

Be sure that wicd is installed, NetworkManager is disabled, and you have enabled wicd in systemd:

1) yum install wicd wicd-common wicd-gtk wicd-curses
2) systemctl stop NetworkManager.service
3) systemctl disable NetworkManager.service
4) systemctl enable wicd.service
5) systemctl start wicd.service

Comment 11 Kostya Berger 2012-03-23 08:44:42 UTC
Thanks, David.

Yes, it doesn't work with all your stuff above being done :(. Here's the message I find in dmesg:

type=1400 audit(1332491533.302:5): avc:  denied  { open } for  pid=2187 comm="wicd" name="wicd.log" dev=sda2 ino=4093 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file
[  104.777132] type=1400 audit(1332491558.317:6): avc:  denied  { open } for  pid=2471 comm="wicd" name="wicd.log" dev=sda2 ino=4093 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file

Somehow related to selinux, right?
On the other hand, when I launch wicd manually, everything works fine and the log fie IS opened. 
Right, because when I launch by hand I use the `sudo wicd` command.

Regards,
Kostya


Note You need to log in before you can comment on or make changes to this bug.