SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-12-2020, 04:05 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
SagTV v9 Linux permissions

I have SageTV installed on three systems. Two linux, one Win 7.

On one linux system, call it System A, I can view live TV with the miniclient. I can view live TV from the server on the Win 7 system, and also from System B.

On System B, I can't see my own server's output but can watch System A and the win7 box. I just get a black screen with a revolving arrow. I believe the server is OK because I can watch the recorded files with ffmpeg, just not live TV with the miniclient., except from another system.

One difference between the systems is that on System B, /var/media/tv is a mounted ext4 directory. On System A (the working one), /var/media/tv is a symbolic link to an NTFS filesystem on a separate drive, a relic of dual-booting with windows. I'm thinking that ext4 file permissions are preventing the miniclient from reading a file.

Both Linux machines are running 9.2.2.268 from https://dl.bintray.com/opensagetv/sa...2_amd64.tar.gz

Both are HVR-1600's, but possibly different models, yet the recordings of both are fine.

What file permissions are recommended? I think that may be what the problem is.

System A is a Phenom II X6. System B is a Ryzen 2700X.
Reply With Quote
  #2  
Old 07-12-2020, 08:52 PM
jpwegas jpwegas is offline
Sage Aficionado
 
Join Date: May 2007
Posts: 436
Is my understanding there correct?

Running the miniclient on A can see recordings from A, B, and Win7.

Running the miniclient on B can't see B's recordings, but can see recordings from A and Win7.


You are correct it might be that you are running the miniclient as a different user than the sage process and that user doesn't have access to the files. (Although that would mean a local miniclient is accessing the files directly, which I didn't realize...)

When on B, as the user who runs the miniclient, what is the output when you run this in the terminal:

Code:
ls -la /var/media/tv
If you don't see a list of recordings, what is the output of:

Code:
ls -lad /var/media
ls -lad /var/media/tv

--John
Reply With Quote
  #3  
Old 07-13-2020, 08:05 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
Looks suspicious!

$ ssh tony@msi
tony@MSI ~ $ ls -la /var/media/tv
lrwxrwxrwx 1 root root 13 Jul 7 19:25 /var/media/tv -> /video/SageTV
tony@MSI ~ $ ls -lad /var/media
drwxr-xr-x 7 root root 4096 Jul 7 19:25 /var/media
tony@MSI ~ $
tony@MSI ~ $ ls -lad /var/media/tv
lrwxrwxrwx 1 root root 13 Jul 7 19:25 /var/media/tv -> /video/SageTV
Reply With Quote
  #4  
Old 07-13-2020, 08:08 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
However on A:

$ ls -la /var/media/tv
lrwxrwxrwx 1 root root 17 Dec 5 2019 /var/media/tv -> /mnt/video/SageTV
tony@Casti ~ $ ls -lad /var/nedia
ls: cannot access '/var/nedia': No such file or directory
tony@Casti ~ $ ls -la /var/media/tv
lrwxrwxrwx 1 root root 17 Dec 5 2019 /var/media/tv -> /mnt/video/SageTV
tony@Casti ~ $ ls -la /var/media
total 28
drwxr-xr-x 7 root root 4096 Dec 5 2019 .
drwxr-xr-x 15 root root 4096 Oct 27 2019 ..
drwxr-xr-x 7 root root 4096 Sep 1 2019 external
drwxr-xr-x 3 root root 4096 Jul 17 2019 mnt
drwxrwxrwx 2 root root 4096 Oct 11 2015 music
drwxrwxrwx 2 root root 4096 Oct 11 2015 pictures
lrwxrwxrwx 1 root root 17 Dec 5 2019 tv -> /mnt/video/SageTV
drwxrwxrwx 2 root root 4096 Oct 11 2015 videos
tony@Casti ~ $ ls -la /var/media/tv
lrwxrwxrwx 1 root root 17 Dec 5 2019 /var/media/tv -> /mnt/video/SageTV
Reply With Quote
  #5  
Old 07-13-2020, 08:50 AM
jpwegas jpwegas is offline
Sage Aficionado
 
Join Date: May 2007
Posts: 436
Quote:
Originally Posted by ASegredo View Post
Looks suspicious!

$ ssh tony@msi
tony@MSI ~ $ ls -la /var/media/tv
lrwxrwxrwx 1 root root 13 Jul 7 19:25 /var/media/tv -> /video/SageTV
tony@MSI ~ $ ls -lad /var/media
drwxr-xr-x 7 root root 4096 Jul 7 19:25 /var/media
tony@MSI ~ $
tony@MSI ~ $ ls -lad /var/media/tv
lrwxrwxrwx 1 root root 13 Jul 7 19:25 /var/media/tv -> /video/SageTV
The permissions on those links is normal. I have a similar setup.

What are the permissions on /video/SageTV?

Code:
ls -lad /video/SageTV
And what can you see in that directory (do this as the user you run the miniclient as):

Code:
ls /video/SageTV

--John
Reply With Quote
  #6  
Old 07-13-2020, 04:56 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
ony@MSI ~ $ ls -lad /video/SageTV
drwxrwxrwx 7 nobody nobody 49152 Jul 12 16:58 /video/SageTV
tony@MSI ~ $ ls /video/SageTV
AlfredHitchcockPresents-S02E12-RoseGarden-388362-0.mpg
AndThenThereWereNone-S01E03-1935604-0.mpg
AnimalBabiesFirstYearonEarth-S01E03-NewFrontiers-1590833-0.mpg
AuroraFireintheSky-2097830-0.mpg
BarneyMiller


All 777 (NTFS)
Reply With Quote
  #7  
Old 07-14-2020, 09:33 AM
jpwegas jpwegas is offline
Sage Aficionado
 
Join Date: May 2007
Posts: 436
Quote:
Originally Posted by ASegredo View Post
All 777 (NTFS)
Ok, so I'm not sure what's going on then.

--John
Reply With Quote
  #8  
Old 07-15-2020, 04:22 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
Thanks for trying.
Reply With Quote
  #9  
Old 07-18-2020, 03:47 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
Got smart and turned on the log.

Sat 7/18 16:39:28.965 Ignoring resize command because it exceeds video dimensions rect=java.awt.Rectangle[x=0,y=0,width=720,height=480] videoDim=java.awt.Dimension[width=0, height=0]

Earlier in the log:
Type size error: sizeof(jint) < sizeof(size_t)
Type size error: sizeof(jint) < sizeof(ssize_t)
Type size error: sizeof(jint) < sizeof(ino_t)
Type size error: sizeof(jint) < sizeof(nlink_t)
Type size error: sizeof(jint) < sizeof(blksize_t)
Type size error: sizeof(jint) < sizeof(nfds_t)
Type size error: sizeof(jint) < sizeof(msgqnum_t)
Type size error: sizeof(jint) < sizeof(msglen_t)
Type size error: sizeof(int) < sizeof(ino_t)
JTUX: We are running in 64bit mode, and JTUX is untested in 64bit mode. There may be side effects.height=0]

Does that mean my picture has zero size or that I'm trying to resize it to zero?
Reply With Quote
  #10  
Old 09-14-2020, 08:00 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 134
I now have video! Problem was that the system ncurses went to version 6. I had to install ncurses-compat version 5 to retrieve libtinfo.so.5 Version 6 had installed libtinfo.so.6 Now I have both.

Although I know have live video I still have two problems:
1. Sage thinks I have a 720 x480 screen and won't expand it even when I put the client in full screen mode. The client is full screen 1920x1080 but the video playing is still small.

2. The video falters and freezes and unlocks, although the audio continues fine.
Possibly this is a card problem.

Last edited by ASegredo; 09-14-2020 at 10:47 AM. Reason: spelling
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions and Watched Status joshuad156 SageTV Software 3 12-27-2011 12:06 AM
Permissions question apschaefer SageTV Beta Test Software 3 06-13-2011 07:41 PM
Permissions and Metadata ptzink SageTV Beta Test Software 2 06-13-2011 06:50 AM
Permissions in registry talonmike SageTV Software 24 02-11-2007 10:36 PM
Problems inputting data into SagTV from xmltv plugin Gibby SageTV EPG Service 13 08-10-2003 08:29 AM


All times are GMT -6. The time now is 07:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.