lsusb not working-nothing listed

Issues related to hardware problems
motorbikes
Posts: 10
Joined: 2011/09/05 20:28:25

Re: lsusb not working-nothing listed

Post by motorbikes » 2011/09/07 19:59:32

I thought I had established that I was using centoOS as when I type tail /etc/redhat-release I get


[trixbox1.localdomain ~]# tail /etc/redhat-release
CentOS release 5.5 (Final)

and

[trixbox1.localdomain ~]# cat /proc/version
Linux version 2.6.18-164.11.1.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 07:39:04 EST 2010

I tried to follow the instructions in the link above and think I must almost have got it right but nothing happens,
[trixbox1.localdomain ~]# ./getinfo.sh basic
Collecting CentOS system information for basic questions.

Presumably it shouldn't take long. I waited a while but got nothing and pressed ctrl c. should something have happen? a responce?

It says it saves the information to a temporary file. will this be stored in the directory that I ran the getinfo.sh from or somewhere else?

more information if it helps

[trixbox1.localdomain ~]# uname -a
Linux trixbox1.localdomain 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:39:04 EST 2010 i686 i686 i386 GNU/Linux
[trixbox1.localdomain ~]# rpm -qa kernel\* | sort
kernel-2.6.18-164.11.1.el5
kernel-headers-2.6.18-164.11.1.el5
kernel-xen-2.6.18-164.11.1.el5


Dave

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lsusb not working-nothing listed

Post by TrevorH » 2011/09/07 22:15:44

That kernel belongs to CentOS 5.3 or so - perhaps 2 years old. I'd start by running yum update to get the latest and see if it helps. If it tells you there is no newer one then check your /etc/yum.conf and /etc/yum.repos.d/* files for exclude= lines.

motorbikes
Posts: 10
Joined: 2011/09/05 20:28:25

Re: lsusb not working-nothing listed

Post by motorbikes » 2011/09/08 10:24:36

I tried to run yum update but it told me there was a problem and suggested yum update --skip-broken

I did this and it ended with

Skipped (dependency problems):
c-ares.i386 0:1.6.0-5.el5

I tried running yum update again to see if there where still problems and this is the message

[trixbox1.localdomain ~]# yum update
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
* addons: mirror.netrino.co.uk
* base: mirror.netrino.co.uk
* extras: mirror.netrino.co.uk
* updates: mirror.netrino.co.uk
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libcares.so.1 for package: sipsak
---> Package c-ares.i386 0:1.6.0-5.el5 set to be updated
--> Finished Dependency Resolution
sipsak-0.9.6-1.el5.i386 from installed has depsolving problems
--> Missing Dependency: libcares.so.1 is needed by package sipsak-0.9.6-1.el5.i386 (installed)
Error: Missing Dependency: libcares.so.1 is needed by package sipsak-0.9.6-1.el5.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.



Not sure what to do next?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lsusb not working-nothing listed

Post by TrevorH » 2011/09/08 10:56:46

For now I would just add an exclude= line for sipsak and c-ares then start a new thread about how to fix those later.

Did this update your kernel? If so did it help with the USB problem?

motorbikes
Posts: 10
Joined: 2011/09/05 20:28:25

Re: lsusb not working-nothing listed

Post by motorbikes » 2011/09/08 20:24:35

Thanks for your advice

was previously centOS 5.5 it's now 5.6 I guess this indicates that it's been updated.

I don't understand where I should add the exclude line.

The usb problem remains the same.


Dave

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lsusb not working-nothing listed

Post by TrevorH » 2011/09/08 23:51:33

[quote]
was previously centOS 5.5 it's now 5.6 I guess this indicates that it's been updated.
[/quote]

That just means that one single package could have been installed - centos-release. Please run `uname -r` and see what that tells you. If the update of the kernel succeeded then it should say something like 2.6.18-238.19.1.el5

motorbikes
Posts: 10
Joined: 2011/09/05 20:28:25

Re: lsusb not working-nothing listed

Post by motorbikes » 2011/09/09 16:00:28

2.6.18-164.11.1.el5

is the reply

Dave

I assume if it was upto date then it would temm me when I type yum update?

if I type yum update again I get the following:

[trixbox1.localdomain ~]# yum update
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
* addons: www.mirrorservice.org
* base: www.mirrorservice.org
* extras: www.mirrorservice.org
* updates: www.mirrorservice.org
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: libcares.so.1 for package: sipsak
---> Package c-ares.i386 0:1.6.0-5.el5 set to be updated
--> Finished Dependency Resolution
sipsak-0.9.6-1.el5.i386 from installed has depsolving problems
--> Missing Dependency: libcares.so.1 is needed by package sipsak-0.9.6-1.el5.i386 (installed)
Error: Missing Dependency: libcares.so.1 is needed by package sipsak-0.9.6-1.el5.i386 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lsusb not working-nothing listed

Post by TrevorH » 2011/09/09 23:08:07

[quote]
2.6.18-164.11.1.el5
[/quote]

Still ancient. You need to find out what's happening here as it's probably the same thing that's causing your usb not to work. Try running

[code]
rpm -qa kernel\*
[/code]

and see if the newer ones are even installed. If they're not then check /etc/yum.conf and /etc/yum.repos.d/*.repo and see if those files contain any exclude= lines to stop the kernel from being updated. You also need to find out if any of the functionality of your sever is provided by the kernel you are running - I seem to remember you have an elastix repo configured.

motorbikes
Posts: 10
Joined: 2011/09/05 20:28:25

Re: lsusb not working-nothing listed

Post by motorbikes » 2011/09/10 00:27:19

Thanks again, It's a trixbox installation so I wouldn't be suprised if there is something that prevents updates going too far.



[trixbox1.localdomain ~]# rpm -qa kernel\*
kernel-headers-2.6.18-164.11.1.el5
kernel-xen-2.6.18-164.11.1.el5
kernel-2.6.18-164.11.1.el5

I guess its not installed then?

nano /etc/yum.conf

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum

# Note: yum-RHN-plugin doesn't honor this.
metadata_expire=1h

installonly_limit = 5

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

does that installonly_limit = 5 prevent updates going beyonde version 5?


nano /etc/yum.repos.d/*.repo

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
exclude=kernel*

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: lsusb not working-nothing listed

Post by TrevorH » 2011/09/10 11:42:09

[quote]
I wouldn't be suprised if there is something that prevents updates going too far.
[/quote]

You have exclude=kernel* in several stanzas in the files you quoted above. You won't receive any kernel updates while those are there. No idea if there is a specific reason why they should be present but the worst thing that can happen is that you remove them, update and reboot and something fails or stops working at which point you reboot again and choose your current kernel from the list and boot up on that.

installonly_limit=5 tells yum to keep the latest 5 copies of kernel-x.y.z installed. If you install a 6th then it will remove the oldest one to make room. The kernel packages are listed automatically in 'installonlypkgs=' list so they are not updated but installed in parallel if a new version comes along - precisely so that you can keep multiple copies of the kernel installed and fall back to an older one if the latest fails to boot.

I think it might be interesting to see the output from `rpm -qi kernel` to see if the current kernel you are running is built by CentOS or by trixbox. If it's built by CentOS (i.e. Build Host says *.centos.org) then the new one stands a better chance of just working than if trixbox have taken the source RPM and rebuilt it with unspecified changes in it.

Post Reply