FS#50801 - [samba] 4.5.0 breaks gvfs-smb/Nautilus

Attached to Project: Arch Linux
Opened by George (Vash63) - Friday, 16 September 2016, 14:36 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 03 March 2022, 11:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description: After updating to samba 4.5.0 I am unable to browse or connect to network shares with Nautilus. KDE's Dolphin browser still works.

I was able to manually downgrade smbclient, samba and libwbclient to version 4.4.5-2 from my package cache and my shares are once again functional.

Only nautilus related line I could find in my journal was:

Sep 16 07:15:18 vashnix org.gnome.Nautilus[815]: ** (nautilus:2345): WARNING **: Failed to fetch network locations: Timeout was reached

Also I'm unsure if this is related but near bootup I'm seeing:

Sep 16 07:14:47 vashnix smbd[2727]: [2016/09/16 07:14:47.100710, 0] ../lib/util/become_daemon.c:124(daemon_ready)
Sep 16 07:14:47 vashnix smbd[2727]: STATUS=daemon 'smbd' finished starting up and ready to serve connections

Also, during this time 'smbclient -L hostname' of my desired host works perfectly, it seems only the Nautilus mounts do not work.

Steps to reproduce:
1. Upgrade smbclient/samba/libwbclient to 4.5.0
2. Ensure gvfs-smb is installed
3. Open nautilus and click 'Other Locations' or type 'smb://' into the address bar
4. Watch as nothing happens and it silently fails in the system journal
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 03 March 2022, 11:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  2022-02-28: A task closure has been requested. Reason for request: Fixed upstream
Comment by George (Vash63) - Monday, 19 September 2016, 02:00 GMT
Update: I switched my local DNS resolution over to Avahi and everything is working now. As I didn't have 'wins' configured in nsswitch.conf I'm assuming Nautilus was using winbind through libwbclient? Maybe something broke with libwbclient and it's no longer necessary for me with Avahi installed.
Comment by Nic (xenos) - Saturday, 24 September 2016, 23:17 GMT
I have the same problem but believe this is related to a change made in the dbus package that removes x11 invocation, if you use 'dbus-launch nautilus' samba shares work again, unfortunately then nautilus behaves differently, for instance it won't honour vlc's one instance settings and rather than queuing files it will open a new window when you click a video.

Edit: Viewing shares in nautilus works if I revert to the dbus version before dbus and libdbus were merged.

Edit: I have allowed the upgrade to the latest version of dbus and for reasons unknown it seems to work properly. No upgrades concerning anything samba or nautilus related, no changes to any configurations.
Comment by Julio (The_Loko) - Monday, 26 September 2016, 14:07 GMT
I have this problem too, samba shares only work on nautilus if I type the smb address on the "Other Locations" bottom address bar, it doesn't works in the upper one.
Comment by Rob (aegis) - Friday, 14 October 2016, 22:11 GMT
I am having problems with Nautilus/Files browsing remote samba shares as well via my laptop running arch linux. I am able to access/browse the shares from other computers on the network. I am also to list the shares via command line on the laptop running arch. It just fails completely when using Nautilus.

Oct 14 18:07:48 arch dbus-daemon[1302]: Activating service name='org.gnome.Nautilus'
Oct 14 18:07:48 arch dbus-daemon[1302]: Successfully activated service 'org.gnome.Nautilus'
Oct 14 18:07:49 arch dbus[823]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Oct 14 18:07:49 arch systemd[1]: Starting Hostname Service...
Oct 14 18:07:49 arch dbus[823]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct 14 18:07:49 arch systemd[1]: Started Hostname Service.
Oct 14 18:08:01 arch gvfsd[1325]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Failed to retrieve share list from server: Connection refused
Oct 14 18:08:01 arch gvfsd-network[2763]: Couldn't create directory monitor on smb://x-gnome-default-workgroup/. Error: The specified location is not mounted
Oct 14 18:08:01 arch dbus[823]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Oct 14 18:08:01 arch dbus[823]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service not found.
Oct 14 18:08:07 arch gvfsd[1325]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Failed to retrieve share list from server: No such file or directory
Oct 14 18:08:10 arch gvfsd[1325]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Failed to retrieve share list from server: No such file or directory
Comment by Rob (aegis) - Monday, 17 October 2016, 03:35 GMT
Looks like this is being tracked upstream as well:
https://bugzilla.gnome.org/show_bug.cgi?id=756736
Comment by Rob (aegis) - Tuesday, 18 October 2016, 05:33 GMT
I did a pacman -Syu today and there was a gvfs-smb update. Now I can get samba shares in Nautilus under an Xorg session. However, while running under Wayland, Nautilus still fails to display any samba shares.

These are the errors I see under Wayland trying to use samba and Nautilus.

Oct 18 10:28:41 arch dbus-daemon[1603]: Activating service name='org.gnome.Nautilus'
Oct 18 10:28:41 arch dbus-daemon[1603]: Successfully activated service 'org.gnome.Nautilus'
Oct 18 10:28:41 arch dbus[836]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Oct 18 10:28:41 arch systemd[1]: Starting Hostname Service...
Oct 18 10:28:41 arch nautilus[2159]: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: usershares are currently disabled
Oct 18 10:28:41 arch dbus[836]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct 18 10:28:41 arch systemd[1]: Started Hostname Service.
Oct 18 10:29:11 arch nautilus[2159]: Failed to fetch network locations: Timeout was reached



Comment by Rob (aegis) - Tuesday, 18 October 2016, 14:58 GMT
One more piece of information which may be relevant. I was just able to login under X and use Nautilus to access samba shares. I then made a bookmark in nautilus for the samba share I accessed. I then logged out (via Gnome), logged back in as the same user using Wayland, and could not display the network shares (as described above), however the bookmark worked for the one particular samba share I had accessed under the X session.
Comment by Rob (aegis) - Friday, 21 October 2016, 16:51 GMT
While creating a samba share favorite in Nautilus under an X sessions does allow you to log out and log into Wayland and still access it as a favorite, this sadly does not survive a system restart/shutdown. So this is not an adequate work around.
Comment by Juan Simón (j1simon) - Wednesday, 11 January 2017, 09:34 GMT
I don't sure if it's the same problem but my journal shows several lines like this: "gvfsd[2410]: mkdir failed on directory /var/cache/samba: permission denied"
Comment by Cedric (Cbhihe) - Wednesday, 17 January 2018, 12:27 GMT
Would like to second Juan Simón (j1simon) in his question.
Same issue as Juan here, as of today (2018.01.17):

`$HOSTNAME gvfsd[1448]: mkdir failed on directory /var/cache/samba: Permission denied`

Can anybody enlighten us as to whether it is the same issue ?

Environment:
4.14.13-1-ARCH with Gnome3 on Xorg
samba 4.7.4-1
gvfs-smb 1.34.1+11+gad63dfb7-1
Comment by mattia (nTia89) - Sunday, 27 February 2022, 11:10 GMT
I cannot reproduce the issue. Is it still valid for you?
Comment by Cedric (Cbhihe) - Sunday, 27 February 2022, 19:30 GMT
@mattia:
Not valid any longer on 5.16.10-1-ARCH with samba 4.15.5 and gvfs-smb 1.48.1-3.
Tx.

Loading...