Bug 983 - Samba not working after updates
: Samba not working after updates
Status: VERIFIED FIXED
Product: Sabayon
Classification: Unclassified
Component: Installed
: Stable KDE
: Intel 64bit Any (For Web Services)
: P5 major
: Next Stable
Assigned To: Fabio Erculiani
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-28 13:05 UTC by Danilo Pianini
Modified: 2012-06-08 06:58 UTC (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo Pianini 2009-10-28 13:05:44 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.
Comment 1 skal 2009-10-29 11:38:23 UTC
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<----------
Comment 2 skal 2009-10-29 11:39:43 UTC
oops forgot to mention my installation is KDE
Comment 3 Joost Ruis Staff 2009-10-29 12:53:00 UTC
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)
Comment 4 skal 2009-10-29 13:38:31 UTC
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
Comment 5 iamkrazee 2009-10-29 14:33:52 UTC
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.
Comment 6 nickdanger 2009-10-29 16:48:23 UTC
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."
Comment 7 skal 2009-10-29 18:46:46 UTC
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)
Comment 8 iamkrazee 2009-10-29 18:51:28 UTC
(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.
Comment 9 skal 2009-10-29 18:59:06 UTC
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.
Comment 10 iamkrazee 2009-10-29 22:04:18 UTC
samba from portage didn't work.. how do you downgrade samba?
Comment 11 darkone13 2009-10-31 16:57:53 UTC
(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
Comment 12 nickdanger 2009-10-31 19:51:39 UTC
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.
Comment 13 nickdanger 2009-10-31 20:48:09 UTC
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.
Comment 14 MadOp 2009-11-01 17:03:19 UTC
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
Comment 15 Danilo Pianini 2009-11-02 13:43:46 UTC
Latest updates in Entropy seems to solve. Tested on 5.0, official repo, GNOME.
Comment 16 Joost Ruis Staff 2009-11-02 13:45:59 UTC
What updates?
What version?
Comment 17 Danilo Pianini 2009-11-02 13:55:54 UTC
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.
Comment 18 Danilo Pianini 2009-11-02 20:02:13 UTC
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?
Comment 19 iamkrazee 2009-11-03 10:37:25 UTC
(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?
Comment 20 Danilo Pianini 2009-11-03 11:17:33 UTC
(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.
Comment 21 nickdanger 2009-11-03 23:08:31 UTC
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.
Comment 22 Danilo Pianini 2009-11-04 12:22:22 UTC
Samba is still not working on KDE64 platform...
Comment 23 tyranny12 2009-11-07 17:59:53 UTC
(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.
Comment 24 SuperAle 2009-11-10 11:35:36 UTC
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
Comment 25 SuperAle 2009-11-10 11:38:26 UTC
I have forgotten to say that writing the IP or name of resource I can see it
Comment 26 goranp13 2009-11-12 20:31:31 UTC
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
Comment 27 darkone13 2009-11-12 22:57:24 UTC
(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
Comment 28 William Bolyard 2009-12-18 20:24:50 UTC
 

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
Comment 29 Fabio Erculiani Staff 2010-01-22 22:49:20 UTC
This bug is fixed now.