|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Problem with UNC shares from Linux server
I'm sure I've got a configuration problem somewhere but not sure where to look. Linux itself is able to browse the network and display files from my unRAID server. I can add the folders to SageTV as import directories but nothing is imported. When I look at the /tmp/sagetv_shares folder I see the directories listed but there is NO connection to the unRAID server they are blank. The scan for imported files returns almost instantly confirming that SageTV is not actually connecting to the unRAID NAS box. I've tried both UBUNTU and Mint installs. I am including the log files in an archive as I do see some errors listed. Specifically it looks like the mount fails because:
Code:
Error executing process smbmount : java.io.IOException: Cannot run program "smbmount": error=2, No such file or directory
__________________
"Keep your goals away from the trolls" |
#2
|
|||
|
|||
According to my research in Ubuntu the package smbfs must be installed. Apparently smbmount has been deprecated so some other method is preferred. Sounds like someone needs to work to change the smb code to use more modern utilities.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#3
|
|||
|
|||
And cifs-utils has replaced smbfs. So there is definitely a need for a change.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3 Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD |
#4
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#5
|
|||
|
|||
I tried editing FSTAB to put the mount points in the "/mnt" folder and then symlink them to the "/tmp/sagetv_shares" folder. It works most of the time but I had to edit startsage and put in delays to get it to work at all. I would rather it be done correctly from within the SageTV code. Then maybe the mounts would STAY connected and not be dropped forcing me to restart SageTV to reinitialize the mount points and symlinks again which didn't always work correctly either.
__________________
"Keep your goals away from the trolls" |
#6
|
|||
|
|||
I went ahead and opened up an issue here: https://github.com/google/sagetv/issues
__________________
"Keep your goals away from the trolls" |
#7
|
|||
|
|||
Looking at the source code for IOUtils.java I see an SMBMount in it in the doSMBMount method. If Sage.EMBEDDED is true it will do a mount.cifs but if it isn't true it looks like it does an SMBMOUNT. Maybe it is as simple as changing the 'smbmount' in doSMBMount to mount.cifs.
__________________
"Keep your goals away from the trolls" |
#8
|
||||
|
||||
Quote:
What I'd recommend is removing that block like I suggest...and then making a property setting for that actual program used for mounting; then if for some reason this needs to be changed for some people they have an easy way to do that. Or an even better solution is to check for the existence of smbmount on linux, and if it's not there...then use mount.cifs. You can do this easily by executing "which smbmount" and if you get a non-zero exit code, then that program does not exist....and I'd cache that result so you only have to do that once per execution of SageTV.
__________________
Jeffrey Kardatzke Founder of SageTV |
#9
|
|||
|
|||
Now if I only knew how to do those changes. Or more specifically how to check out the code and make a patch and then check it back in.
__________________
"Keep your goals away from the trolls" |
#10
|
||||
|
||||
I'm interested in getting this to work. I'm not very experienced at this stuff but I can ususally muddle my way through things.
so I built a linux box (Mint), installed sage, cloned git (thanks for the how too docs), built Sage.jar and ran with my built version. I then removed the block in question, but can't see to get that portion of the code executed, so a couple questions. I want to enable sage debugging so that the: if (Sage.DBG) System.out.println("") messages. I set these in the Sage.properties files: debug_core_events=true debug_logging=true debug_msgs=true jcifs_debugging=true but I never get any of the SMB debugging messages. Is there a different property to set? I did verify that I can mount.cifs //tower/Rips /mnt -o username=guest and it works so I know that the system can do it. . . thanks david Last edited by lovingHDTV; 05-07-2016 at 01:51 PM. Reason: edit |
#11
|
|||
|
|||
Quote:
Edit Yes I see the changes I added to the IOUtils.java file. So it should actually mount an SMB directory as an import directory or recording directory for that matter.
__________________
"Keep your goals away from the trolls" Last edited by BobPhoenix; 05-07-2016 at 02:08 PM. Reason: added update about IOUtils.java |
#12
|
||||
|
||||
Hmm, I cloned git today and it doesn't do it for me.
I'm putting in the UNC paths like I did for windows: //tower/Rips If I try: smb://tower/Rips I get an error from the STV. david |
#13
|
|||
|
|||
Quote:
Edit: Couldn't find anything else. Guess I will find out when I transfer the VMs to a new SERVER I'm setting up currently.
__________________
"Keep your goals away from the trolls" Last edited by BobPhoenix; 05-07-2016 at 08:31 PM. |
#14
|
||||
|
||||
OK I hadn't tried that. If I browse "up directory" I can then see network and select my share. However it gets stored in Sage as /tmp/sagetv_shares/tower/sagetv/tv
This is then used in the files, and since the path doesn't exist on the windows machine you have the same issue. In the windows server it gets saved as \\tower\sagetv\tv This then works everywhere. david |
#15
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#16
|
||||
|
||||
Interesting, when I look at the video details via the client, it lists it as /tmp/sagetv_shares/... and the comskip plugin cannot find the edl files. So it didn't work for me. odd that you see something different.
I even see it saved as /tmp/sagetv_shares in the Sage.properties file. |
#17
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#18
|
||||
|
||||
Interesting I wonder why comskip plugin can't find the files when running on linux.
Quote:
|
#19
|
|||
|
|||
I've got to get mine setup again but comskip worked just fine for me. Not sure what I did differently but I will check next weekend when I should have this setup again.
__________________
"Keep your goals away from the trolls" |
#20
|
||||
|
||||
Assuming you are running CommercialDetector, it uses the core method GetFileForSegment() to determine where the file is physically located.
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Samba Shares Problem | jchiso | SageTV Linux | 5 | 09-30-2015 08:08 PM |
Linux server? | matt91 | SageTV Marketplace | 0 | 06-26-2012 08:08 AM |
WHS Sage Server access to shares on another server | rmac321 | SageTV Software | 23 | 03-11-2009 07:20 PM |
Linux Server Windows Network Encoder Problem | harrijay | SageTV Linux | 8 | 06-15-2008 07:20 PM |
6.2.7 Linux Server | bcjenkins | SageTV Beta Test Software | 1 | 08-30-2007 08:47 PM |