LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-27-2012, 05:02 PM   #1
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Rep: Reputation: 31
autofs drops connection during access


I'm at a loss here ... not sure where to look for this issue. Here's the setup and description of symptoms:

I have a server set up with video files on them (mostly .mkv). It's running Ubuntu 12.04, though that's a recent upgrade. Until last week, it was on Ubuntu 10.04 (things worked fine then, so obviously the upgrade changed something).

I have a second PC (Ubuntu 12.04, no recent changes) connected to my TV in another room. They're physically wired together through a router.

When I play a video back over the network, it will play fine for a period of time, then stop. Always at the same moment in each video, though that moment is different for each video. EG: One video is 392.8MB and stops at 7:28 / 1:29:21 minutes. Another is nearly the same size at 392.5MB and stops a 7:32 / 1:28:27. Yet another is 1.2GB and stops at about 11:04 / 2:06:50.

I'm trying to play through both XBMC and Totem. Neither throws any errors on the video stop, just transitions to the next screen. In XBMC that means going back to the menu as if the media were finished. In Totem, that means going on to the next video in the playlist.

Now, it /appears/ that the files are stopping at nearly the same /percentage/ of completion. Doesn't appear related to file size (to me). It also happens regardless of whether I skip forward or back in the video. I can jump to right before the stop and it'll still stop.

I tried copying the video over locally using sftp, which was fine (and I copied a large file to ensure I was connected longer than 10 minutes as another test). Both tests worked fine. I could copy large files with no connection drop, and once the file was local, I could play it with no issue. I also attempted to copy directly through the autofs mount with just a cp to my home folder for a "large" (1.2GB) file. The copy was successful and quick (all 1.2GB received), but on playback, also stopped at the same point in time.

I'm using autofs to connect the two servers with these commands:
auto.master
/var/media /etc/auto.nfs

auto.nfs
tv 192.168.1.10:/var/media/tv
movies 192.168.1.10:/var/media/movies

192.168.1.10 is the server that houses the media and I can connect to it just fine, see all the files, etc. AutoFS appears to be "working" in that regard. As mentioned, large file copy across the network seemed to work, but I don't know what would cause file playback to stop midway or even stranger, why a file copied across the network would also stop playback while a file sftp'd across would play back correctly.

So I'm lost ... where can I look to find out any error messages or what the problem might be?

Edit: Adding a note - I tried to mount the filesystem across the network using:
mount 192.168.1.10:/var/media/tv ./tmp

That mounted fine, but had the exact same problem. So this appears to be more of a mount problem than an autofs problem (probably not surprising)

I also tried explicitly mounting with nfs4, which gives me the "file or directory does not exist" error, and I notice in nfsstat that the reads appear to be happening with nfs v2 (though there's no errors listed).

Last edited by JohnLocke; 12-28-2012 at 12:33 AM.
 
Old 12-31-2012, 06:26 PM   #2
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 240

Original Poster
Rep: Reputation: 31
If anyone else runs into this, I found the answer.

I was about to just uninstall everything nfs-related and reinstall, when I noticed in Update Manager that two nfs packages were marked for possible upgrade. Figured I'd try that first. However ... strangely ... I couldn't actually select them for upgrade. Not sure why.

So I just did an apt-get install on both nfs-common and nfs-kernel-server (the two packages it wouldn't let me upgrade), which uninstalled portmap (among other things) and suddenly, with no other changes, everything worked.

I didn't have any strange missing upgrades on the client. So it seems there's an upgrade path broken for nfs from 10.04 to 12.04 in Ubuntu. Not planning on looking into it further than that, though (since it now works and was pretty simple to fix, though frustrating to find).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection drops out, must reboot? tmpatrick Linux - Wireless Networking 6 03-03-2011 08:13 PM
connection drops marciobarbalho Linux - Networking 1 06-10-2009 08:47 PM
wpa_supplicant drops connection BCarey Linux - Wireless Networking 2 08-20-2006 01:05 AM
Mandriva wi-fi drops connection... shadowmoses Linux - Wireless Networking 1 08-18-2005 02:03 PM
ssh connection drops jeffpoulsen Linux - Networking 5 10-08-2003 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:16 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