SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV Linux (http://forums.sagetv.com/forums/forumdisplay.php?f=38)
-   -   SagTV v9 Linux permissions (http://forums.sagetv.com/forums/showthread.php?t=66429)

ASegredo 07-12-2020 04:05 PM

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.

jpwegas 07-12-2020 08:52 PM

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

ASegredo 07-13-2020 08:05 AM

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

ASegredo 07-13-2020 08:08 AM

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

jpwegas 07-13-2020 08:50 AM

Quote:

Originally Posted by ASegredo (Post 626107)
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

ASegredo 07-13-2020 04:56 PM

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)

jpwegas 07-14-2020 09:33 AM

Quote:

Originally Posted by ASegredo (Post 626119)
All 777 (NTFS)

Ok, so I'm not sure what's going on then.

--John

ASegredo 07-15-2020 04:22 PM

Thanks for trying.

ASegredo 07-18-2020 03:47 PM

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?

ASegredo 09-14-2020 08:00 AM

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.


All times are GMT -6. The time now is 04:17 PM.

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