Bugzilla – Bug 983
Samba not working after updates
Last modified: 2012-06-08 06:58:35 UTC
When I try accessing network locations, I get this Nautilus error: Could not display "smb://location". Nautilus cannot handle "smb" locations. The same happens in Dolphin.
Same issue for me (Sabayon 5 x64) copy/paste of my forum post: --8<---------- Unless I'm mistaken, big patch couple days ago updated kde-base/kdebase-kioslaves from 4.3.1 to 4.3.2 and /usr/lib/kde4/kio_smb.so disappeared in the process. It's the kio slave responsible of handling smb:/ stuff --8<----------
oops forgot to mention my installation is KDE
Can you reach the samba mounted shares using the command line? How did you mount the shares? (provide /etc/fstab or the relevant command you used)
If the question was for me: I can reach the server(s) fine using smbclient I'm talking about the kio_smb.so module, that allows one to use path such as smb://myserver/myshare in dolphin or whatever program able to use kio slaves the file /usr/lib/kde4/kio_smb.so just simply disappeared as far as I remember my gentoo builds, it was necessary to build kdebase with +samba USE flags to get it, my guess is that was forgotten in kde-base/kdebase-kioslaves-4.3.2 build
I have reported this in the forums too. Following is a condition that invariably holds on every reboot : # /etc/init.d/samba status * status: crashed And, then just removed samba. I was surprised to see the removal queue : # equo remove samba >> @@ These are the chosen packages: >> # (1/1) net-fs/samba-3.4.2 | Installed from: sabayonlinux.org | Disk size: 0.0b >> @@ This is the new removal queue: >> # ( 1/13)[from:sabayonlinux.org] x11-themes/gtk-engines-qt-1.1-r2 [1.1MB] >> # ( 2/13)[from:sabayonlinux.org] kde-base/nsplugins-4.3.2 [1.2MB] >> # ( 3/13)[from:sabayonlinux.org] gnome-base/libbonoboui-2.24.2 [5.9MB] >> # ( 4/13)[from:sabayonlinux.org] net-p2p/ktorrent-3.2.4 [12.9MB] >> # ( 5/13)[from:sabayonlinux.org] kde-base/konqueror-4.3.2 [5.7MB] >> # ( 6/13)[from:sabayonlinux.org] kde-base/kdebase-meta-4.3.2 [0.0b] >> # ( 7/13)[from:sabayonlinux.org] kde-base/kdebase-startkde-4.3.2 [866.3kB] >> # ( 8/13)[from:sabayonlinux.org] gnome-base/libgnome-2.26.0 [6.7MB] >> # ( 9/13)[from:sabayonlinux.org] kde-base/kdebase-kioslaves-4.3.2 [2.8MB] >> # (10/13)[from:sabayonlinux.org] net-fs/fusesmb-0.8.7 [662.2kB] >> # (11/13)[from:sabayonlinux.org] gnome-base/gvfs-1.2.3 [6.6MB] >> # (12/13)[from:sabayonlinux.org] net-nds/smbldap-tools-0.9.5 [900.1kB] >> # (13/13)[from:sabayonlinux.org] net-fs/samba-3.4.2 [0.0b] Now I'm in fluxbox. I'll install all of this except samba, and will emerge it instead of equo and report back in a short while.
After the update, I lost Samba connectivity in Gnome too. I still have my backup hard drive with Sabayon 4.2 Gnome installed, so I plugged it in to test the network and server and it worked normally. As an experiment, I copied first the etc/samba/smb.conf file from the working (4.2) to the non-working (5.0) install, and it made no improvement; 5.0 (latest update) still had the same symptoms. Then I transferred the entire etc/samba folder from the working 4.2 drive to the version 5.0 drive, and there was still no change. I can see my server icon (server runs BSD as the OS) but I cannot open or connect to it. the Sabayon Domain icon is gone, and all of the Windows shares are gone too. When I click on the server icon, the network browser pops up an error window, "Cannot connect to smb://(IP Address):139/; The file is of an unknown type."
samba isn't involved in smb://server/share access as I mentioned, for my KDE release, the kio slave kio_smb.so does the job. I assume there is something doing the same job for gnome-based tools (not familiar with recent gnome releases)
(In reply to comment #7) > samba isn't involved in smb://server/share access > as I mentioned, for my KDE release, the kio slave kio_smb.so does the job. > I assume there is something doing the same job for gnome-based tools (not > familiar with recent gnome releases) Is it ok to copy the library file that you mentioned from a working version? I have it on one box, plus the dvd. Is that risky? BTW, I posted about trying using portage but the sync is really painful.
I tried copying the file from 4.3.1 and it didn't work. Must have some version check or incompatibility somewhere. Or may be another module is also missing. I didn't really check any further, because if I'm not mistaken, getting it to work is no harder than rebuilding the package with proper USE flags and I expect a fix to be made available quite fast.
samba from portage didn't work.. how do you downgrade samba?
(In reply to comment #10) > samba from portage didn't work.. how do you downgrade samba? OK I have recompiled samba-libs with and without smbclient with no effect and also recompiled kdebase-kioslaves with samba as a USE flag, even though it was already there, ... still does not work ... I looked at the wifes laptop( with a clean 5.0 KDE install) that has not been world updated yet and the only difference I saw between the packages was the smbclient in samba-libs thats why I recompiled with and without smbclient... I'm going to try to downgrade KDE later today ... I'll post with my results
When the topics were merged, this bugtrack was started as Version 5.0 KDE, but the same issue occurs with 5.0 GNOME. This does not exonerate KDE, but it does make me think the problem may be somewhere other than the desktop.
This looks like a clue to me... I access my network on "eth0" and have no "ppp0" interface as far as I know, (there is no modem in my computer). When I restart samba I get: Linux user # /etc/init.d/samba restart * Bringing up interface ppp0 * ERROR: interface ppp0 does not exist * Ensure that you have loaded the correct kernel module for your hardware * ERROR: net.ppp0 failed to start * ERROR: cannot start samba as net.ppp0 would not start How do I get samba to start with eth0? This may fix my problem.
Maybe it is not related to the latests updates... I have a relatively fresh install of 5.0 , KDE, AMD_64. Did not upgrade smaba or KDE yet, but I have the same samba crash upon boot then login. FWIW here is a trail of tests with samba's init script, note how it appear to fail at restarting the crashed service and properly detect it real status Sabayon user # /etc/init.d/samba status * status: crashed Sabayon user # /etc/init.d/samba start * WARNING: samba has already been started Sabayon user # /etc/init.d/samba status * status: crashed Sabayon user # /etc/init.d/samba stop * samba -> stop: smbd... [ ok ] * samba -> stop: nmbd... [ ok ] Sabayon user # /etc/init.d/samba status * status: stopped Sabayon user # /etc/init.d/samba start * samba -> start: smbd... * start-stop-daemon: /usr/sbin/smbd is already running [ !! ] * samba -> start: nmbd... [ ok ] * Error: starting services (see system logs) * samba -> stop: smbd... [ ok ] * samba -> stop: nmbd... [ ok ] * ERROR: samba failed to start Sabayon user # /etc/init.d/samba status * status: stopped Test done under - KDE 4.3.1 - Samba 3.3.6 Regards
Latest updates in Entropy seems to solve. Tested on 5.0, official repo, GNOME.
What updates? What version?
Today's updates from sabayonlinux.org repo: danysk@desktopcesena ~ $ equo search samba >> @@ Searching... >> #1 Sabayon Linux Official Repository >> @@ Package: net-fs/samba-3.4.3 branch: 5 >> Available: version: 3.4.3 ~ tag: NoTag ~ revision: 0 >> Installed: version: 3.4.3 ~ tag: NoTag ~ revision: 0 >> Slot: 0 >> Homepage: http://www.samba.org/ >> Description: Meta package for samba-{libs,client,server} >> License: GPL-3 After reboot, all is working fine. I'm gonna test on the KDE64 version soon, I'll report.
Samba is working ONLY on that installation. Is NOT working on other two installations, GNOME 64 and KDE64. Is there any config file or log I can attach in order to help to solve the problem?
(In reply to comment #18) > Samba is working ONLY on that installation. Is NOT working on other two > installations, GNOME 64 and KDE64. Is there any config file or log I can attach > in order to help to solve the problem? Actually, it's made my KDE4 86_64 worse. My left side favourites bar has disappeared. Not that I miss it, but it still counts to something right?
(In reply to comment #18) > Samba is working ONLY on that installation. Is NOT working on other two > installations, GNOME 64 and KDE64. Is there any config file or log I can attach > in order to help to solve the problem? I wrong. Samba is WORKING under GNOME64 (after updates), NOT WORKING under KDE64.
I can confirm that after the latest updates, Samba is working in 5.0 Gnome AMD64. This is the only 5.0 I have tried. Thank you all for the assistance, N.D.
Samba is still not working on KDE64 platform...
(In reply to comment #22) > Samba is still not working on KDE64 platform... I can confirm that /etc/init.d/samba status reports as 'crashed' for me. This is incorrect. My samba install is running and I'm playing music off a remote fileshare as I type this. I have also opened Konqueror and typed in 'smb://servername/sharename' and all worked normally. This is not my normal pattern - my drives are mounted via fstab and 'mount -a'. AMD64, KDE, Limbo, fully updated.
Samba has started to work since I did updates. I have a problem to choose the correct resource from workgroup because it ask to me the username and pw, but we haven't any pw. I tried to put my user and my pw but it said "access denied to smb...." Thank you
I have forgotten to say that writing the IP or name of resource I can see it
I have tried to access my shares on windows machine after i ve updated my Sabayon 5.0. but the server responded with asking me password. I put the folowing line to a terminal: /etc/init.d/samba status, box responded crashed. Than i put /etc/init.d/samba stop /etc/init.d/samba start /etc/init.d/samba status started But i stil cant access my shares Than i put IP adress of windows machine and i can see it
(In reply to comment #26) > I have tried to access my shares on windows machine after i ve updated my > Sabayon 5.0. but the server responded with asking me password. > I put the folowing line to a terminal: /etc/init.d/samba status, box responded > crashed. > Than i put /etc/init.d/samba stop > /etc/init.d/samba start > /etc/init.d/samba status > started > > But i stil cant access my shares > > Than i put IP adress of windows machine and i can see it Confirmed here also smb://IP = works smb://machine_name = works click samba shares and I see an icon for the windows workgroup click on that icon I get an authorization dialog box and no matter what u/p I use still won't connect then after clicking cancel in the dialog box dolphin (on the bottom) says access denied
After every reboot samba crashes /etc/init.d/samba status * status: crashed As root I then enter the following TWICE /etc/init.d/samba restart and samba runs perfectly till I reboot SL 5.0_64 KDE 4.3.4 fully updated
This bug is fixed now.