AutoFS + Samba share problems when share not online (especially in itunes)

I'm trying to look into having some or all of my media on a server for a couple of my macs, the main one of interest right now being a mac mini working as a HTPC under a tv, being operated 99% of the time with just the apple remote and frontrow.
A friend informed me that if you have your itunes library not managed and add files from a remote share then everything works pretty well. Namely if you try to play a file it will seemingly automount the remote file and start it playing. If the remote server is not available it will quickly discover this and after a short pause start giving explanation marks next to the broken tracks. Get the remote destination connected and then try to play a broken track and it will successfully mount the track and play.
Basically perfect.
I quickly tried accessing these files via a symbolic link or alias to them on the remote drive, in doing this i can be somewhat insulated from problems of trying to move the library to other machines/shares in the future. This all works fine but you do lose the ability for itunes to automatically mount the remote drive, which is a bit of a step back, but not a big deal on my normal machine. On my HTPC machine however i'd really like front row to be able to just work, hence automatically mounting the server as required.
The only problem was that when i tried with files directly added to the itunes library from a remote location frontrow would NOT automount the tracks/videos when you attempted to play them like itunes would do.
I've just spent the last few hours following the advice here
http://rajeev.name/blog/2007/11/22/autofs-goodness-in-apples-leopard-105-part-i/
to setup autofs in the hope that this would let me get auto mounting working as it does with itunes and directly added to the library remote files.
I boiled this down to the following settings
as root
vi /etc/auto_master
and add
/smb auto_smb
then create this new config file
vi /etc/auto_smb
and add
<Mount dir under /smb folder> -fstype=smbfs ://<share user>:<share pass>@<ip address>/<share point>
ie.
testMount -fstype=smbfs ://netuser:[email protected]/remoteMount
finally tell automount to throw away its cache
automount -vc
then the mount should be setup
df -h
shows the indirect map waiting
map auto_smb 0Bi 0Bi 0Bi 100% /smb
and by triggering it
ls /smb/testMount
you should connect and get a listing, a subsequent df shows
df -h
//[email protected]/Media 466Gi 325Gi 141Gi 70% /smb/Media
Everything worked well with the share getting mounted nicely when present, frontrow could just start playing the files it needed, perfect!!
The problem came when i wanted to simulate the media server being offline, basically frontrow, a lot of the system including finder, cd commands attempting to access the share, and itunes if you tried that would all freeze for long periods of time as they tried their best to get the files they were looking for.
I tried looking into getting this to gracefully time out and think i got somewhere by trying to setup the samba share to be soft linked.. I wasn't sure in what files i could add this to, first attempts didn't seem to do anything but adding this seemed to make a difference
/etc/nsmb.conf
containing something like
#Configuration file for example.com
[default]
minauth=ntlmv2
streams=yes
soft=yes
to turn soft samba shares on. Things like cd in a terminal seemed to behave quite well with this, when no remote share present you would get empty folders and the like. Finder would also seem to be reasonable with it.
Frustratingly itunes and frontrow both still have quite massive pauses even when finder and cds in the background show that perhaps the soft links are working and failing like they should.
I'm now left wondering what i can do to fix it, and resorting to perhaps having the files added via a symbolic link, using the login items to launch the remote share every boot and then having it so that all i need to do is reboot the HTPC mac mini if the server is on for it to pick it up and let me play the files. Otherwise they'll just be unavailable and will fail gracefully without locking up itunes. The perfect solution would be to either have a crontab running, or some applescript bound somehow to whenever frontrow is ran which manually tries to tell finder to do the equivelant mount the login items setup does.
It's frustrating though as its so close, and the autofs solution if it did work better would seem to be the perfect solution. Has anyone dabbled with this and got any suggestions as to options you can setup to make things not go horribly wrong when a remote share is NOT present, preferrably within the context of itunes or front row not complaining, but to be honest any suggestions i'll be able to try out myself.
Sorry i've written so much, perhaps some of it will be helpful reference as it took me a while to decipher that link at the top into just setting up a samba autofs.
Cheers.

It seems like it's not only the ArchLinux workstation that displays the norwegian letters wrong. The only machine that shows this correc is the machine that created the file/catalogue.
It seems like the windows 2000 displays the cataloge created by windows XP just fine.

Similar Messages

  • HT4539 My i 4s will not download the iOS 5.1.1 when I am online with the iTunes store??

    My i 4s will not download the iOS 5.1.1 when I am online with the iTunes store?

    Welcome to the Apple Community.
    Try updating it by connecting it to iTunes on your computer.

  • TS2446 Hi I have a problem I can not purchase from the iTunes application with the knowledge that I have dollars I hope a solution to this problem and thank you

    Hi I have a problem I can not purchase from the iTunes application with the knowledge that I have dollars I hope a solution to this problem and thank you

    What happens when you try to buy something ?
    If you are getting a message to contact iTunes support then you can do so via this page and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
    If it's a different problem ... ?

  • HT1414 I am going through the process of unlocking my iphone 4 and have had all the go aheads from my service provider but i am still having problems when i plug the phone into itunes. Has anyone else had this program

    I am going through the process of unlocking my iphone 4 and have had all the go aheads from my service provider but i am still having problems when i plug the phone into itunes. Has anyone else had this problem??

    Umm, what problem?  What actually happens when you try to restore it in iTunes?

  • Samba mount problem when using Oracle VM Server 2.1

    Hello
    I´m trying to mount a remote samba share from an Oracle VM Server 2.1 installation.
    To be able to do a mount.cifs, I installed samba-client manually using yum.
    yum repository based on Enterprise Linux 5 Update 1
    In the first step the mount failed with
    CIFS VFS: Server requests plain text password but client support disabled
    CIFS VFS: Send error in SessSetup = -13
    CIFS VFS: cifs_mount failed w/return code = -13
    After doing an
    echo 0x37 > /proc/fs/cifs/SecurityFlags
    the plain text password error message is gone.
    but
    CIFS VFS: Send error in SessSetup = -13
    CIFS VFS: cifs_mount failed w/return code = -13
    still exists.
    The mount command looks like that:
    mount.cifs //*servername*/*share* /mnt/*localdir* -o sec=none,user=*username*,pass=*password*
    The samba server which provides the share, only accept plain text password with no chance to get this adjusted.
    Is there anybody who knows how to fix this issue? Help would be really appreciated.

    [2008/02/08 14:58:07, 0]
    auth/pampass.c:smb_pam_passcheck(810)
    smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User install !
    Which is an indicator that the password is transfered incorrectly.
    As the password is for sure correct, it seems to me that the sec=none option is not working correctly when using OVM 2.1.
    When using Enterprise Linux 5 Update 1 all is working well.
    There you did not even need to use the "echo 0x37"
    It works out of the box using sec=none mount option.
    That is also a reason why I started this post under Virtualization and not under Linux ;-)
    I assume it is a OVM 2.1 specific issue.

  • User migration vom SAP DB to LDAP: Problem when userId not equal to logonId

    Hello
    I have to write a migration tool which migrates the users stored in the SAP DB to LDAP. Thereby the logon ID of the users in the SAP DB is not equal to the user ID.
    The migration works fine and in SAP Identity Management (IDM) everything is ok.
    But when I try to log onto the portal with a migrated user, the portal tells me that no portal role is assigned to the user. But the IDM shows clearly that the portal role is assigned to the user.
    Investigation showed that when I create in the LDAP a user with the same logon ID and user ID, the log onto the portal works ok. As soon the logon ID differs from the user ID, the portal does not find the assigned portal role anymore, although in IDM everything works.
    How can I solve this problem? It is important that the logon ID and the user ID are different as otherwise all the stored data has wrong references.
    Greetings
    Rolf
    Edited by: Rolf Grüninger on Jul 19, 2011 6:08 PM

    Problem solved:
    The naming attribute of the user account has to be set to the same attribute as the one of the user object and not to the user logon ID.

  • Run Into Problem When Trying Not To Hard Code the Host Name

    My code (using the JavaMail API) works fine when the SMTP host name is hard coded in the program:
           props.put( "mail.smtp.host", "TheHostName" );Then, I tried to put the host name in a properties file (smtpServer.properties). The properties file is in the $TOMCATHOME\webapps\AppName\WEB-INF\classes\resources directory. And the properties file has this one single line:
    smtpServer = TheHostName     //Note: The host name has only alpha characters, dots, and dashesIn my program, I did:
       private final String PROPFILE = "resources/smtpServer.properties";
       private Properties oProp = null;
       public SendBatchMails()  // this is the constructor in my class
          try
             oProp = new Properties();
             oProp.load ( getClass().getClassLoader().getResourceAsStream( PROPFILE ) );
          catch( IOException oEx )
             System.out.println("Unable to load the Properties " + PROPFILE + oEx );
           String smtpServer = oProp.getProperty( "smtpServer" );
           Properties props = System.getProperties();
           props.put( "mail.smtp.host", smtpServer );And, I got this runtime error:
    java.lang.IllegalArgumentException: argument type mismatch
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
         org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
         org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
         org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
         org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    I would agree with Reply 1. From the stack trace it is apparent that it comes from Struts, where it is failing to set some kind of property in a bean. However the code that you posted doesn't seem to have anything to do with that. Check your Struts configuration.

  • I have a flashing line at the bottom of my laptop even when im not online.Can you tell me what it is and how to fix it?

    the line is pulsing and it just started today,could it be caused by the updates i installed yesterday?

    Doesn't sound like anything I have seen from Firefox on my Linux netbook, but I still using Firefox 3.6.18 there. Can you give us a screenshot of what you are talking about?
    https://support.mozilla.com/en-US/kb/Adding+screenshots

  • I have a problem when i sync my app in itune (air 2.6)

    i have .p12 and .mobileprovision already
    and i create .ipa with Air 2.6 SDK
    it's ok while i'm compiling.
    i drag'n'drop to itune and sync into my iPad.
    then it appear: "The app ... was not installed on the iPad ... because the signing certificate has expired or been revoked, or is otherwise not valid".
    how can i fix this problem?? Plz help me.
    thank you,
    Garpong
    PS.  Sorry about my poor english.

    I dont think this error is air specific. Few checks might help.
    is your p12 installed in key chain?
    is your mac clock and devices clock ok?
    Searching on Apple forums might give you good results.

  • Common 'Green Screen" problem when trying to view videos in iTunes

    I love the show "Surface" on NBC so I decided to download the first pilot episode #101 to iTunes for Windows on my computer. When I go to "full screen" mode to watch the program it goes to a "green screen" washout that is common when Quicktime is installed whether the version 1.68 alternative or the Apple Quicktime. How do I solve this common known problem?

    Anyone have any ideas or need more info, if so please let me know. This is very frustrating.

  • Another Customer w/Apple TV not showing up in iTunes

    I have gone through all of the troubeshooting exercises except eliminating the startup items. By the looks of the forum, many have this problem and there is little shown to resolve it. I'm spending my free time trying to resolve the issue and feel like I'm back in the early days of having to create my own software solutions. Not sure that I have the time or energy to continue and maybe it would be better to return the product. Isn't there a better way out there to resolve the problem? Apple Support, where are you?

    I entered the port forwarding information (Articles TS1453 and TS1392) after having no success with turning off all security firewalls and virus protection as well as ensuring both the router and ATV had the most recent software updates and having gone through all other trouble shooting suggestions listed by Apple. I have rebooted several times and reloaded iTunes 8. I actually have access to the internet through ATV but still have the problem of it not being recognized in iTunes. As mentioned before, the only things I haven't done is get into the startup items to eliminate them from consideration and tried a direct connect. I am able to ping the ATV successfully so I'm not sure why it won't show up in the iTunes search.

  • I create a project w/iMovie and I have two problems:  When I try to finalize the project iMovie crashes; when I share to DVD sometimes it crashes also; if I can successfully send it to DVD and then burn a DVD there are wavy lines on the screen.  Help!

    I create a project w/iMovie and I have two problems:  When I try to finalize the project iMovie crashes; when I share to DVD sometimes it crashes also; if I can successfully send it to DVD and then burn a DVD there are wavy lines on the screen.  I'm uising photos in my project, not video.  Help!

    You can split a project in two by doing this.
    1) Go to the Project Library View.
    2) Select your project, and click FILE/DUPLICATE PROJECT. Give it a name like "your project name - part 1".
    3) Do this again. This time name it "your project name - part 2"
    4) Open Part 1 for editing. Delete everything in the second half.
    5) Open Part 1 for editing. Delete everything in the first half of the project.
    At the end you should have your original project, plus the same project in two parts.

  • Problem when exporting to Vimeo I get message "The share operation has failed. Quicktime error: -50" The file only gets to 8% before this happens any idea how to fix I have a movie deadline to meet!

    Hi all,
    Finished editing a short movie.
    Then went to share on vimeo but got this message - see also screenshot when I tried to export to desktop.
    Problem when exporting to Vimeo I get message "The share operation has failed. Quicktime error: -50" The file only gets to 8%.
    Have tried deleting my render files for the project and also another fix mentioned of deleting any black space files on the edit itself but neither work?
    Just upgraded to OS Mavericks could this be causing it? If so how to downgrade?
    thanks
    Louis B

    Thanks for your help both, I called Apple tech support and spoke to a really helpful chap called Andrea who helped me out. Now got my Master file sorted and am trying Vimeo upload again.
    Just to clarify points for people out there with the same issue:
    First steps
    - Ensure background rendering is turned off in preferences
    - Delete project and events render files
    - If upgraded to Mavericks then go to FCPX in finder under applications hit buttons 'CMD' and 'I' together and tick the 'prevent App Nap' box.
    Next Steps
    I had already done all of this when Apple Tech spoke to me so we discussed the message 'Quicktime -50' and what it meant. It wasnt a purely generic error message but was not detailed enough to point to one specific issue. This problem had occurred in previous years (so Mavericks not wholly to blame) and patches were issued over the years by Apple to help resolve some of the problems.
    The message essentially is indicating that there is a problem somewhere with the media in some way shape or form.
    My export went to 8% then failed. Apple's answer was that the project settings were corrupted in some way.
    So what they suggested (so simple I could kick myself) was to select all the media files by 'CMD + A' then copy them 'CMD + C' then create and open a new project timeline, and then paste in 'CMD + V'.
    Then we tried export again this time to a master file with some settings detailed by Apple.
    The difference now was it got to 40% then failed but due to a different reason 'error -1 frame 10124 error'
    At last we get past the project issues and into the event media issues, it seems that when I loaded the compact flash last night, the iMac kept ejecting the reader so had to copy files over quickly and seems that some of the file clip I used although showed on the viewer, didn't seem to have loaded all the correct media, so selecting this clip frame 10124 on the viewer I found that it showed as red on the frame row which implied an issue. So I simply bladed it off and deleted it.
    Then I reran the export to Master file and it worked, though jumping from 40% to 100% complete was a shock to me!
    Now am trying the export to Vimeo - hope this helps some of you out there. Worst case pick up the phone to Apple and speak to the Final Cut Pro guys they can help.
    best wishes,
    Louis B

  • Problems when someone shares with me it screen

    I have a problem when someone shares his screen with me it happens only in my computer.
    tried to clean the cache uninstall and install nothing shutdown the firewall nothing helps ....
    Any idea ?
    Thanks

    Hello Sallo, 
    Issue seems to have occured in the past where it got fixed by removing  kb2760556  KB2760512  one by one and after that installing them
    again. 
    Is your machine Windows 7 machine with a home user interface like Aero theme enabled? can you move into Window 7 Basic version and  give a try. 
    IIf we feel that its because of the patches , then we need to follow the methord of uninstalling patches one by and one and test the scenario each time 
    Sunilkumar

  • Why IPHOTO album will not keep the template format when share to IDVD.

    Why IPHOTO album will not keep the template format when share to IDVD. Also, could be better if IPHOTO Album could access "inspector tool" with ability to change the slide duration time and apply a random "Transitions" to specific slide.

    Are you sharing an album of photos or a slideshow to iDVD?  If it's an album then what you get in iDVD is just a slideshow with the photos in it where you have to set the transition and slide timing unless you add music and select fit to audio.
    Don't know what you mean by the template format unless you're referring to the themes in a slideshow? If you share a slideshow the ss is converted to a Quicktime movie file and that is added to the iDVD menu window.  No changes are possible.
    OT

Maybe you are looking for

  • Apple ID Password request

    Every time I wake my iPad with the sleep/wake button, I am asked for my Apple ID Password. There are no apps running prior to the previous shutdown. Any guesses as to why I am getting this?

  • How do you hide error messages thrown by a dashboard

    OBIEE 10g; Anyone know how to edit error messages thrown by analytics. The text in many messages has been identified to us as a security vulnerability because the text contains sensitive information such as server host names and the logical queries t

  • My MBP keeps ejecting my install disks!

    I thought I'd make backup copies of my SL disks, but the Machine keeps ejecting them. It reads other disks just fine, including the Tiger install disks off an iMac. The SL disks will read fine in the iMac, but the MBP doesn't want them! And once I've

  • My iphoto is saying its damaged and that I have to quit it every time I open it now... what should I do?

    For some reason every time I open iphoto now it says it is damaged and it is forcing me to quit it. I was not having this issue yesterday can someone please help

  • Printing a Layout

    Hello Experts,          I have a problem in printing a layout. When I give the printer option as 'LOCL' it works fine but when I change the name of the printer the output gets changed. It has to give the correct output irrespective of the printer. Le