AFP connection loss to unRAID
#1
Hi there,

I am not sure if this is ATV1-related, but since it is about AFP it is at least Mac-related.

Setup: Using XBMC V12 RC3 on ATV1, connecting an unRAID 5RC11 with AFP.

Problem: The AFP connections to the unRAID break after some time (e.g. in the morning after the night the unRAID AFP cannot be connected any more).

Log File: http://pastebin.com/wb7X0SVv

I currently fix this by killing the XBMC process (going to Video/Files and and Media source will _not_ work). Since I dont do anything to the unRAID to make it work again, I guess the problem is (at least partially) with XBMC.

Important to know: I have previously used the XBMC with identitical setup with a Synology DSM 4.2. The AFP connections got dropped there too, but when I went to Video/Files and selected a media source then the AFP got re-connected. This re-connect does not seem to work with my unRAID.

Background information: I have mapped all map-able pathes to remote files on the unRAID to have a near-identical setup on all machines running XBMC (see below). Also the DBs are hosted on MySQL on the unRAID.

Does anybody know what is happening and how I could get AFP not to be dropped or at least reconnected?

Thanks for caring,
JC



<pathsubstitution>
<substitute>
<from>special://profile/addon_data/</from>
<to>afp://[email protected]/xbmc/userdata/addon_data/</to>
</substitute>
<substitute>
<from>special://profile/advancedsettings.xml</from>
<to>afp://[email protected]/xbmc/userdata/advancedsettings_remote.xml</to>
</substitute>
<substitute>
<from>special://profile/favourites.xml</from>
<to>afp://[email protected]/xbmc/userdata/favourites.xml</to>
</substitute>
<substitute>
<from>special://profile/guisettings.xml</from>
<to>afp://[email protected]/xbmc/userdata/guisettings.xml</to>
</substitute>
<substitute>
<from>special://profile/LCD.xml</from>
<to>afp://[email protected]/xbmc/userdata/LCD.xml</to>
</substitute>
<substitute>
<from>special://profile/mediasources.xml</from>
<to>afp://[email protected]/xbmc/userdata/mediasources.xml</to>
</substitute>
<substitute>
<from>special://profile/playlists/</from>
<to>afp://[email protected]/xbmc/userdata/playlists/</to>
</substitute>
<substitute>
<from>special://profile/profiles.xml</from>
<to>afp://[email protected]/xbmc/userdata/profiles.xml</to>
</substitute>
<substitute>
<from>special://profile/RssFeeds.xml</from>
<to>afp://[email protected]/xbmc/userdata/RssFeeds.xml</to>
</substitute>
<substitute>
<from>special://profile/sources.xml</from>
<to>afp://[email protected]/xbmc/userdata/sources.xml</to>
</substitute>
</pathsubstitution>
Reply
#2
There is a known issue with the AFP client in XBMC 12. Switch to using samba or NFS.
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Reply
#3
(2013-04-03, 20:31)winestock Wrote: There is a known issue with the AFP client in XBMC 12. Switch to using samba or NFS.

I would rather not. Doesn't it mean that all file pathes in the libraries will break and I have to rebuild the library? It is work for 1-2hrs every time, whi ch I would like to refrain from.

Or is there a way changing the path of a media source without having to rebuild the library?

Thanks for caring,
JC
Reply
#4
(2013-04-04, 11:19)jus7incase Wrote:
(2013-04-03, 20:31)winestock Wrote: There is a known issue with the AFP client in XBMC 12. Switch to using samba or NFS.

I would rather not. Doesn't it mean that all file pathes in the libraries will break and I have to rebuild the library? It is work for 1-2hrs every time, whi ch I would like to refrain from.

Or is there a way changing the path of a media source without having to rebuild the library?

Thanks for caring,
JC

You have a couple options:
  1. Use path substution: http://wiki.xbmc.org/index.php?title=Path_substitution
  2. Use mysqldump on your mysql XBMC libraries, edit the dump file with a text editor to change the source path and then run that back through mysql as an input file. You will need to edit the sources.xml file and then re-cache the thumbnails by deleting the Textures DB.
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Reply
#5
Thanks for the help.

I have switched from AFP tp SMB and the problem has gone.
Reply

Logout Mark Read Team Forum Stats Members Help
AFP connection loss to unRAID0