You are not logged in.

#1 2016-12-06 14:24:58

Webbeh
Member
Registered: 2012-07-08
Posts: 49

[Solved] Weird behavior of Thunar with CIFS shares

Hi,

I have set up a fstab mount to many CIFS shares, and the setup worked well until a few weeks ago.

One example :

//data.hevs.ch/home/std/ng1        /media/Cours/HES_User   cifs    creditentials=/etc/samba/creditentials/hevs,iocharset=utf8,domain=WORKGROUP,users,rw,noauto,nofail 0 0

If I mount it in console, it mounts alright, and I can access the files, etc.

Thunar shows the mount, as visible here :
148103370219162016_12_06_15_14_17_159x92_HP.png

A few weeks ago, I would simply click on that place, it would automagically mount the share and open up the folder inside Thunar.

Now, it appears thunar still mounts it, but waits forever to access it. If I open up the local mount point in thunar after having mounted it, I can see the files. But clicking on the place just "loads" forever.

But what's even more interesting is Thunar seems not to detect the share as mounted, and mounts it several times over.

Video of the behavior : https://levert.ch/index.php/s/AFSBiNRdzD2RvYL

Additionally, here is what happens in the syslog ~1 second after clicking the share. Everytime.

Dec 06 15:20:38 elite.edelblack.ch Thunar[656]: g_file_hash: assertion 'G_IS_FILE (file)' failed
Dec 06 15:20:38 elite.edelblack.ch Thunar[656]: g_file_query_info_async: assertion 'G_IS_FILE (file)' failed
Dec 06 15:20:38 elite.edelblack.ch Thunar[656]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

I tried reinstalling samba completely, no change.
Removed and reinstalled gvfs, gvfs-smb, fuse, fusesmb, no change.

EDIT: I should precise that if thunar stays open, there's a popup appearing 5 minutes afterwards saying that the share can't be mounted, and the following displays in syslog :

Dec 06 15:29:32 elite.edelblack.ch gvfsd[710]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Timeout was reached
Dec 06 15:29:35 elite.edelblack.ch gvfsd[710]: dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Timeout was reached

Last edited by Webbeh (2018-06-09 08:51:05)

Offline

#2 2016-12-07 01:27:03

toz
Member
Registered: 2011-10-28
Posts: 494

Re: [Solved] Weird behavior of Thunar with CIFS shares

A similar set up works fine on my system. Did something happen a few weeks ago (an update, or a system change) that corresponded to the share not working?

dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Timeout was reached

Would seem to indicate a dbus-related problem. Are you using the Xfce DE? How do you start your session? What does the following return?

env | grep DBUS

Offline

#3 2016-12-10 17:43:10

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

I'm on XFCE indeed.

env | grep DBUS
--------------------------------
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

I failed to mention that I am always up to date with packets. The only gnome-related package that isn't from core/community is gtk3 (aur : gtk3-typeahead, v3.22.3-1), but after installing gtk3 to test, it changes nothing.


EDIT: Using d-feet, it shows that Thunar is at least correctly connected to dbus.

148139281265682016_12_10_19_00_04_902x595_HP.png

EDIT2: also tried

dbus-launch thunar

, same issue, but I guess it's normal in that case.

Last edited by Webbeh (2016-12-10 18:03:46)

Offline

#4 2016-12-10 17:50:04

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

Offline

#5 2016-12-12 15:56:25

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

Created a virtualbox with only those packages :

base
base-devel
vim
xfce4
xorg
gvfs
gvfs-smb
samba
sshfs

No config file was edited.

Tried to mount from inside thunar *as root*, same issue as described in the first post.

Created a non-sys user, added him to the following groups :

sys disk lp wheel uucp network video audio floppy storage input users

Couldn't mount as that user since the share doesn't appear in the "devices" list.
Adding '''x-gvfs-show''' in the options displays the share inside "devices", and has the exact same problem too.

EDIT: env | grep -i dbus shows the DBUS_SESSION_BUS_ADDRESS.

It's therefore not a configuration issue, but indeed a bug.

Question is : whose fault is it ?
Thunar ?
DBUS ?
Systemd ?
GVFS ?

Last edited by Webbeh (2016-12-12 15:59:00)

Offline

#6 2016-12-12 21:17:03

toz
Member
Registered: 2011-10-28
Posts: 494

Re: [Solved] Weird behavior of Thunar with CIFS shares

Just did the same as you in virtualbox (simple base install with same packages) and it worked for me.

$ groups
wheel toz

Running Thunar via "gksudo" (as root) also allowed me to mount the directory.

A couple of follow-up questions:

  1. How do you start Xfce? (What is the content of your startup files?)

  2. To which version of Samba are you connecting to? My test connections were to a Debian Jessie server (samba v4.2x) and a Windows 7 desktop.

Offline

#7 2016-12-12 21:24:03

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

I'm connecting to my school's share, actually no idea what kind of backend they're using (Novell, but I don't know if that has anything to do with samba)

I started xfce with "startxfce4" inside the virtualbox, and with Slim in my computer. Plus, irrelevant since I didn't touch any configuration file, not even .xinitrc, for the virtualbox one.

Both show the same dbus bus address (unix:path=/run/user/<uid>/bus).

Mounting is not an issue, as I stated the directory will actually be mounted after clicking on it in thunar, but it seems thunar doesn't detect it as mounted and keeps trying to mount.

What I don't understand is why it doesn't work now, when it did work a few weeks (months ?) ago.

Last edited by Webbeh (2016-12-12 21:25:42)

Offline

#8 2016-12-12 21:45:35

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

After testing, it works on a local samba share (with authentication, same fstab parameters).

Here are the two mounts in "mount" :

//datasion.hevs.ch/share/Public/ on /media/Cours/HES_Shares type cifs 
(rw,nosuid,nodev,relatime,vers=1.0,cache=strict,username=****,domain=WORKGROUP,uid=1000,forceuid,gid=100,forcegid,addr=****,
file_mode=0755,
dir_mode=0755,
nounix,
mapposix,
rsize=61440,
wsize=65536,echo_interval=60,actimeo=1)
//localhost/crucial on /media/test type cifs 
(rw,nosuid,nodev,relatime,vers=1.0,cache=strict,username=****,domain=WORKGROUP,uid=1000,forceuid,gid=100,forcegid,addr=****,
unix,
posixpaths,
serverino,
mapposix,
acl,
rsize=1048576,
wsize=65536,echo_interval=60,actimeo=1)

We can see the small differences.
The one that works is the second one (/media/test).

EDIT: Side note, the school's shares are not showing when I use the "Browse network" button. They never did, but maybe it's related.

Last edited by Webbeh (2016-12-12 21:57:28)

Offline

#9 2017-01-12 07:48:45

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

The latest versions of my installed packages make it work again.

I have no idea what fixed it... If anyone has a clue, I'd be glad to know.

Offline

#10 2018-06-09 08:50:48

Webbeh
Member
Registered: 2012-07-08
Posts: 49

Re: [Solved] Weird behavior of Thunar with CIFS shares

Update : I found out what was wrong.

Samba somehow accepted "creditentials=..." instead of "credentials=...", and then stopped accepting it.

Moving from "creditentials" to "credentials" is working consistently upon upgrades now.

Offline

Board footer

Powered by FluxBB