Samba stopped working (error while loading shared libraries)

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Samba stopped working (error while loading shared libraries)

Postby scatleguy » Fri Sep 23, 2011 10:43 am

I've used Samba on my pink Pogoplug for a couple of months now and never had any problem. Until a few weeks ago, my pogoplug was acting strange. Turned out that my hostname was changed from 'Arch Linux ARM install' to 'Arch Linux ARM'. I still haven't found out how that happened, but I changed it back to 'Arch Linux ARM install' again. However, from that moment my Samba daemon refuses to start. I get the following output:
$this->bbcode_second_pass_code('', '
[root@Arch Linux ARM install ~]# /etc/rc.d/samba start
:: Starting Samba Server [BUSY]
/usr/sbin/smbd: error while loading shared libraries: /lib/libpopt.so.0: invalid ELF header
/usr/sbin/nmbd: error while loading shared libraries: /lib/libpopt.so.0: invalid ELF header
[FAIL]
')
My smb.conf looks like this:
$this->bbcode_second_pass_code('', '
[global]
workgroup = my_workgroup_name
server string = Arch Linux ARM install
netbios name = Arch Linux ARM install
security = share
load printers = no
printing = bsd
printcap name = /dev/null
disable spools = yes
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE

[my_share_name]
path = /media/my_path_name
read only = no
public = yes
writable = yes
force user = root
')

The path leads to an folder on a USB hard drive. Things I've already tried:
- Changing my hostname back to 'Arch Linux ARM' and also updated the smb.conf with the new hostname.
- Updated Samba through Pacman

Can anybody help me with this, because I can't figure out how to solve this.
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Re: Samba stopped working (error while loading shared librar

Postby WarheadsSE » Fri Sep 23, 2011 12:39 pm

When's the last time you did a full `pacman -Syu` ?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba stopped working (error while loading shared librar

Postby scatleguy » Fri Sep 23, 2011 1:20 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'W')hen's the last time you did a full `pacman -Syu` ?

I've never done that, 'if it aint broke, don't try to fix it'.
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Re: Samba stopped working (error while loading shared librar

Postby WarheadsSE » Fri Sep 23, 2011 1:24 pm

:facepalm:

Well at this point, it's probably best you considered trying that.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba stopped working (error while loading shared librar

Postby scatleguy » Fri Sep 23, 2011 1:28 pm

I've upgraded Samba, but that didn't help, why would you upgrade all packages (risking that those will stop working) if only Samba has a problem?
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Re: Samba stopped working (error while loading shared librar

Postby WarheadsSE » Fri Sep 23, 2011 1:41 pm

Arch is a rolling release, therefor we are a rolling release.

Basically at this point you are looking at one of a few problems:
- You've got corruption
- You've got newer software than the core libraries & kernel you are running on, which could likely cause errors
- Something is just royally busticated.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Samba stopped working (error while loading shared librar

Postby scatleguy » Fri Sep 23, 2011 1:44 pm

Will 'pacman -Syu' also update the kernel and all Arch Linux components?
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Re: Samba stopped working (error while loading shared librar

Postby scatleguy » Fri Sep 23, 2011 1:50 pm

Ok, I did it. But I ger an error...
$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install ~]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
aur is up to date
:: Starting full system upgrade...
:: Replace cherrypy with community/python2-cherrypy? [Y/n] Y
:: Replace kernel26 with core/linux? [Y/n] Y
:: Replace kernel26-headers with core/linux-headers? [Y/n] Y
:: Replace mailx with core/heirloom-mailx? [Y/n] Y
warning: plugui-git: local (201100405-1) is newer than core (20110705-1)
warning: sysfsutils: local (2.1.0-7) is newer than core (2.1.0-6)
warning: tcp_wrappers: local (7.6-13) is newer than core (7.6-12)
:: Replace util-linux-ng with core/util-linux? [Y/n] Y
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: plugui-git: requires cherrypy
')
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Re: Samba stopped working (error while loading shared librar

Postby xenoxaos » Fri Sep 23, 2011 4:02 pm

Looks like the upgrade to python2-cherrypy is being blocked by plugui-git. You could try sayin 'N' to replacing cherrypy and see if it will continue. The other option would be to remove plugui-git (especially if you aren't using it) "pacman -R plugui-git"
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Samba stopped working (error while loading shared librar

Postby scatleguy » Sat Sep 24, 2011 8:49 am

Leaving out python2-cherrypy did the trick for the complete update. So I have done a complete 'pacman - Syu'. After some problems which I've fixed (Subsonic couldn't find java anymore and my USB drive wasn't auto mounted) all is fine now, except that Samba still refused to start. Also I got the following error after every time I used pacman:
$this->bbcode_second_pass_code('', 'ldconfig: /lib/libpopt.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/libpopt.so is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /lib/libpopt.so.0 is not an ELF file - it has the wrong magic bytes at the start.
ldconfig: /usr/lib/libpopt.so is not an ELF file - it has the wrong magic bytes at the start.
')
I found the owner of the '/lib/libpopt.so' through 'pacman -Qo libpopt.so':
$this->bbcode_second_pass_code('', ' pacman -Qo libpopt.so
libpopt.so is owned by popt 1.16-3
')
I removed popt with pacman including the dependencies (smbclient, logrotate and cryptsetup). Then I removed Samba and reinstalled it. And finally Samba started! Thanks for the tips and help!
scatleguy
 
Posts: 11
Joined: Wed May 25, 2011 7:35 am

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests