2017-10-17, 16:44
Hi Everyone - I am just getting started with Raspberry Pi3, and am trying to get Kodi up and running on one for a bedroom media server. I'm a 20 year veteran programmer on Windows systems, but am fairly new to the *nix environments that run on the Pi3.
My problem appears to be the network WorkGroup value when running on the Pi3.
My setup is a Windows 7 machine running Kodi (latest build), which scans the media library that is stored on my FreeNas server (1,064 Movies, 4360 MP3's, etc).
My Windows 7 Workgroup is defined as "NETLUCAS".
The FreeNAS server has Samba running, and is configured for discovery as "NAS1"; I do not have "NAS1" defined in any TCP HOSTS file or anything - it simply finds it based upon network discovery.
I have a MySQL instance running on the Windows 7 machine, and have configured Kodi (via advancedsettings.xml) to write media information to the MySQL DB (shared settings).
I scan my NAS1 Movies library from the Windows 7 Kodi instance, and can see / play media content just fine.
I can see via MySQL Workbench that the media files are getting placed in the Movies DB with a "smb:NAS1\Media01\Movies\movie folder..." prefix.
So I bought a Raspberry Pi3 kit and started configuring it last night. I installed OSMC, and let it apply all updates. I configured OSMC to point to the MySQL instance running on the Windows 7 machine, and set the Samba WorkGroup to NETLUCAS to match my Windows 7 machine workgroup setting. All is well with the world at this point; I see my movies coming up in the Pi3 Kodi.
The problem occurs when I try to play a movie on the Pi3 Kodi. I get a "path not found" error, and it wants to remove the movie from the library because it can't seem to find it.
So I start playing with the Pi3 Kodi Media Settings. I am able to see my FreeNAS NAS1 server Samba shares from the Pi3, and can even scan the Movie content directly to the Pi3. When done this way (no DB sharing), I notice that the Pi3 adds the WorkGroup name to the Samba path like so: "smb:NETLUCAS\NAS1\Media01\Movies\movie folder...".
I believe the problem to be that the Pi3 Kodi is adding the WorkGroup name to Samba media paths, but the path is not defined that way in the MySQL DB
So my question would be, is there a way to get the Pi3 Kodi to NOT add the Windows WorkGroup value to media paths? I think that would allow the files to play.
Other things I have tried ...
I have edited the Pi3 "\etc\samba\samba.config" to set the workgroup to NETLUCAS. That's another odd thing - it's almost like the Pi3 Kodi is not using the instance of Samba in the root folder, but rather is using it's own version of Samba somewhere else? I say this, as I ran a command to install Samba (via SSH/Putty). Is there a "Samba lite" that Kodi uses instead? Maybe there is a configuration option in there that I am not setting correctly? Though I would think the Kodi instance would allow me to tweak the "Samba lite" settings if it were using such a version.
I also re-scanned my media on the Windows 7 machine using the IP address of the FreeNas server (instead of "NAS1"). The MySQL Movies DB contained a "smb:192.168.1.250\Media01\Movies\movie folder..." prefix, and I can play the media just fine on my Windows 7 machine and the Pi3. I would like to avoid using static IP addresses though, and would rather use the "NAS1" value. Past experience with Windows server builds has taught me to avoid using static IP addresses if possible.
Any help or guidance would be appreciated, keeping in mind that I am new to Pi and *nix.
Thanks - Todd
My problem appears to be the network WorkGroup value when running on the Pi3.
My setup is a Windows 7 machine running Kodi (latest build), which scans the media library that is stored on my FreeNas server (1,064 Movies, 4360 MP3's, etc).
My Windows 7 Workgroup is defined as "NETLUCAS".
The FreeNAS server has Samba running, and is configured for discovery as "NAS1"; I do not have "NAS1" defined in any TCP HOSTS file or anything - it simply finds it based upon network discovery.
I have a MySQL instance running on the Windows 7 machine, and have configured Kodi (via advancedsettings.xml) to write media information to the MySQL DB (shared settings).
I scan my NAS1 Movies library from the Windows 7 Kodi instance, and can see / play media content just fine.
I can see via MySQL Workbench that the media files are getting placed in the Movies DB with a "smb:NAS1\Media01\Movies\movie folder..." prefix.
So I bought a Raspberry Pi3 kit and started configuring it last night. I installed OSMC, and let it apply all updates. I configured OSMC to point to the MySQL instance running on the Windows 7 machine, and set the Samba WorkGroup to NETLUCAS to match my Windows 7 machine workgroup setting. All is well with the world at this point; I see my movies coming up in the Pi3 Kodi.
The problem occurs when I try to play a movie on the Pi3 Kodi. I get a "path not found" error, and it wants to remove the movie from the library because it can't seem to find it.
So I start playing with the Pi3 Kodi Media Settings. I am able to see my FreeNAS NAS1 server Samba shares from the Pi3, and can even scan the Movie content directly to the Pi3. When done this way (no DB sharing), I notice that the Pi3 adds the WorkGroup name to the Samba path like so: "smb:NETLUCAS\NAS1\Media01\Movies\movie folder...".
I believe the problem to be that the Pi3 Kodi is adding the WorkGroup name to Samba media paths, but the path is not defined that way in the MySQL DB
So my question would be, is there a way to get the Pi3 Kodi to NOT add the Windows WorkGroup value to media paths? I think that would allow the files to play.
Other things I have tried ...
I have edited the Pi3 "\etc\samba\samba.config" to set the workgroup to NETLUCAS. That's another odd thing - it's almost like the Pi3 Kodi is not using the instance of Samba in the root folder, but rather is using it's own version of Samba somewhere else? I say this, as I ran a command to install Samba (via SSH/Putty). Is there a "Samba lite" that Kodi uses instead? Maybe there is a configuration option in there that I am not setting correctly? Though I would think the Kodi instance would allow me to tweak the "Samba lite" settings if it were using such a version.
I also re-scanned my media on the Windows 7 machine using the IP address of the FreeNas server (instead of "NAS1"). The MySQL Movies DB contained a "smb:192.168.1.250\Media01\Movies\movie folder..." prefix, and I can play the media just fine on my Windows 7 machine and the Pi3. I would like to avoid using static IP addresses though, and would rather use the "NAS1" value. Past experience with Windows server builds has taught me to avoid using static IP addresses if possible.
Any help or guidance would be appreciated, keeping in mind that I am new to Pi and *nix.
Thanks - Todd