LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2017, 11:27 PM   #1
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 120

Rep: Reputation: 25
Strange intermittent problem with Samba shares


I'm not at all sure where I should be putting this question. If someone can think of a more suitable place, please let me know...

I have two fully updated copes of Arch Linux on my laptop, both running Xfce. One one of them, I have strange intermittent problems connecting to samba shares using Thunar. I have also seen some similar problems in Debian testing a while ago.

To make things really confusing, the problem doesn't always happen, and can happen at different parts of the connection process. Sometimes, I open Thunar and click on the browse network icon, only to have nothing happen, followed eventually by "unable to open "/" timeout reached". Other times, the panel will open to show the windows network, then fail to open individual workgroups, or sometimes individual shares on a remote machine.

Sometimes, the share will be shown, the login box pops up, but entering login details and clicking connect does nothing (though sometimes doing so a second time will result in a connection). Other times, all steps go through without any problems and I'm able to access the files in the windows shares.

The fact that the failure occurs at different points in the connection process is confusing, not to mention that the other Arch install (as well as the Sparky and Xubuntu installs) on the laptop shows no such problem. Also, access to samba shares from this install of Arch used to work without any problems at all. This problem started when I spent some time attempting to correct a connection problem to an Ubuntu server in another network.

I don't think the problem is Thunar. As a test, I installed pcmanfm, which exhibits similar behaviour. I also installed gigolo, which will sometimes connect, but will attempt to open a share using vlc, which (naturally) fails. Also, even when the any of the graphic connection tools fail, I can use 'mount -t cifs
//server/shareneame" without problems. I' not sure which of the support packages (gvfs, dbus?) could be causing the problem, or how they could be damaged by a user accessing them.

I've checked the system journal both when things are working, and when they fail and can't see any useful data shown at all. I thought the problem might be user specific, but a new user created just to test shows exactly the same behaviour.

Since I'm not seeing anything in the main systemd journal, I have no idea how to even start to diagnose the problem. I could reinstall, but this is one of very few problems I've not so far been able to solve, and I'd much rather work out what the cause is and fix it.

Any suggestions as to how I can diagnose where the problem is would be most gratefully received.

I should also mention that I am seeing a core dump in the journal which I do not see on the working Arch install, though I have no idea whether it has any connection to the problem, since it happens on every boot, so it happens even when the samba connection problem does not happen. And I don't know what connection "colord-sane' could have to a network connection.

Any help?
 
Old 06-12-2017, 03:41 PM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Hey ToothandNail ... Quite the sticky problem you have there ... Couple of questions / comments :

- Probably not a problem in your samba config file, since you are sometimes able to connect ... Sounds more like a time-sensitive issue ....

- Do you have the samba shares set up in fstab ? I have found this a reliable way to have access thereafter through either GUI tools such as Thunar or PCManFM or from the command line.

- Does one or both of the Arch installs have entries in the hosts file for the samba server ?


Cheers,

Last edited by Rickkkk; 06-12-2017 at 03:46 PM.
 
Old 06-13-2017, 05:50 AM   #3
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 120

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by Rickkkk View Post
Hey ToothandNail ... Quite the sticky problem you have there ... Couple of questions / comments :

- Probably not a problem in your samba config file, since you are sometimes able to connect ... Sounds more like a time-sensitive issue ....
I wondered about that, though I've not been able to set up any real way of testing it.

Quote:
- Do you have the samba shares set up in fstab ? I have found this a reliable way to have access thereafter through either GUI tools such as Thunar or PCManFM or from the command line.
No, not at the moment. I'll give that a try and see if it helps. Though it seems somewhat unlikely, since none of the other distros on my laptop have the same problem. I also have the problem in a small network where I often work. Again, it is only this Arch install which fails to connect to the samba shares (though in that network, it isn't an intermittent fault, it always fails). That network is also the one I was working in when the problem first occurred.


Quote:
- Does one or both of the Arch installs have entries in the hosts file for the samba server ?
No. But the samba server is also my DHCP/DNS server, so I doubt that would make any difference. The server certainly knows the host name for the laptop and the host IP.

Just tried to connect. Yesterday I couldn't even get the Windows Network to appear. Today I get the Windows Network icon in Thunar almost instantly, but double clicking it gets me nothing except a timeout error (which takes quite a while to appear...).

Edit: Just added the shares from my local network to fstab. No change - the problem still exists, though the shares can be manually mounted using the fstab entry's

Last edited by toothandnail; 06-13-2017 at 11:40 AM.
 
Old 06-13-2017, 12:43 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
It sounds like automount isn't set up correctly. You could specify auto as a mount option in fstab.
 
Old 06-13-2017, 01:37 PM   #5
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 120

Original Poster
Rep: Reputation: 25
Quote:
Originally Posted by AwesomeMachine View Post
It sounds like automount isn't set up correctly. You could specify auto as a mount option in fstab.
Automount isn't set up at all. I deliberately set the fstab entry as 'noauto'. I'm trying to correct the error in using the gui mount tools (in the case of Xfce, Thunar mounting). I really only use samba mounts for testing purposes in my own network - most of my local network uses nfs, since its purely Linux. Trouble is, I often work in other networks, where samba is the only real option.

I suspect it is a timing problem of some sort, but I don't know how to track the source and fix it. I'm not even sure what back-end programs are used when mounting a samba share via the file manager. gvfs, dbus, but what others? The big problem is that systemd is not logging any sign of the problem, and the samba logs on the server don't show anything useful (I guess because the request times out before it ever gets to the server).

I had a similar problem with Sparky Linux a while ago, but that seemed to be something broken in Debian testing, since it came and went for a few weeks before it was fixed. Difference here is that it used to work, and still does on every other Arch installation that I've got.

I would love to have some way of diagnosing the problem, but so far, I've none at all...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Home Shares Problem ppawcio Red Hat 1 12-21-2010 09:45 AM
Samba server visible on network intermittent - shares not accessible - UPDATE neoelf Linux - Networking 1 06-17-2009 02:34 AM
[SOLVED] Strange intermittent permissions problem on Ubuntu 8.04 server edition Plastic Freddie Linux - Server 1 11-17-2008 03:30 AM
Problem seeing samba shares eroica Linux - Software 1 11-22-2004 02:22 PM
[Samba] Strange problem with shares Sandro Linux - Software 2 02-25-2003 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration