NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 26 Next »
Debian NextPVR on Cifs share

 
  • 0 Vote(s) - 0 Average
Debian NextPVR on Cifs share
Oempa
Offline

Junior Member

Posts: 31
Threads: 9
Joined: Jan 2020
#1
2022-06-21, 12:56 PM (This post was last modified: 2022-06-21, 01:00 PM by Oempa.)
NextPVR Version: 5.2.7.220410 runs here quite smooth in an Debian LXC on Proxmox
Installed from the deb package (not a docker)
But it fails when the live TV buffer directory or the recording directory are changed to a Cifs share

CIfs share is mounted on the host
And then added as a mountpoint to the LXC
I'm doing the same in another LXC with a torrent client without problems


root@NextPVR:/mnt/download# ls -la PVR
total 2
drwxr-xr-x 2 nobody nogroup  0 Jun 21 12:44  .
drwxr-xr-x 2 nobody nogroup  0 Jun 21 06:25  ..
-rwxr-xr-x 1 nobody nogroup 26 Jun 21 12:44  test.txt

I can create and edit files there with Nano there
PVR can create directories and files but the size stays 0
I'm not very good with Debian and quite lost now




e TV Buffer Directory
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,319
Threads: 865
Joined: May 2006
#2
2022-06-21, 01:27 PM
I regularly record to a cifs share from linux without issue. You can check to see if user nextpvr is a member of norgoup.

sudo cat /etc/group | grep nogroup

Martin
Oempa
Offline

Junior Member

Posts: 31
Threads: 9
Joined: Jan 2020
#3
2022-06-21, 02:22 PM
From the LXC
Root@NextPVR:/mnt/download# cat /etc/group | grep nogroup
nogroup:x:65534:
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,319
Threads: 865
Joined: May 2006
#4
2022-06-21, 02:53 PM
Maybe try adding nextpvr to nogroup and see if it makes a difference. If not not check the permissions of /mnt/download which I assume is the mount point.

Ultimately this will work you probably just need to read up more on Linux if you plan to use it.

Martin
Oempa
Offline

Junior Member

Posts: 31
Threads: 9
Joined: Jan 2020
#5
2022-06-21, 05:52 PM
I tried this: usermod -a -G nogroup nextpvr
So the logic that I can write manually is because I do that as "root" and not NextPVR ?
But I don't get why NextPVR can create the file but is unable to put data in it

su - nextpvr
Now I can create a directory and also create/edit a txt file there in the mounted share
So the user seems to have write rights..

Next I changed the LXC to privileged and write directly to the storage device on the host
As root I can write, no problem. But again NextPVR can't write
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 45,319
Threads: 865
Joined: May 2006
#6
2022-06-21, 06:04 PM
Maybe try noperm on the fstab beyond that I can't help further since I don't know the specifics of your system, cifs, or your share fstab values. To tell you the truth I don't really want to help to that level for each user anyway, but it will work.

Martin
aimaim
Offline

Junior Member

Deutschland
Posts: 6
Threads: 1
Joined: Jul 2022
#7
2022-07-05, 08:06 PM (This post was last modified: 2022-07-05, 08:12 PM by aimaim.)
Hi there,

I'm a first time nextpvr user and I have the exact same problem when trying to record to an smb-share. The permissions are set correctly. I can write to the share as user nextpvr and the nextpvr-software can aswell, since it does create the ts- and ts.map-files. Yet they both have 0 bytes. I can confirm the files are empty (same on my nas via gui or ssh, on the mounted share in windows and on the pi I'm trying to run nextpvr on).

As soon as I try to play a running recording from the web interface it fails to play (the first time), but then it actually starts recording and the ts-file starts growing. This workaround naturally is no viable solution, but it might give some insight into what causes the issue.
When I do watch the recording I can confirm it only started after trying to play it via the web interface.


When searching the forums I find this problem a few times and nobody really seems to have an answer. It's always "must be the wrong permissions". But it's clearly not that simple as users (me included) can write to their share as user nextpvr.
Adding noperm to the fstab entry doesn't make a difference for me btw.


Cheers aimaim
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#8
2022-07-05, 09:03 PM
(2022-07-05, 08:14 PM)aimaim Wrote:
(2022-07-05, 08:05 PM)mvallevand Wrote: In either thread, this doesn't sound exactly like a permissions issue.  Create a new thread attaching the zipped NextPVR logs which show you starting the recording then let it record fro a few minutes and then cancel the  recording.

Martin

You're way to fast for me. I already posted in the other thread  Undecided
I'll do that as soon as I figure out where to find the logs  Smile

Edit: Ok got it: /var/opt/nextpvr/logs/
It's best to use the 'Log Files' button on the Settings->About screen. It causes the most recent messages to be flushed to disk, and zips them up for you.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR Server VOD Downloads Incomplete TS Video Files nonuoha 18 150 Yesterday, 10:53 PM
Last Post: mvallevand
  nextpvr process consumes all ram mar1 17 196 2023-03-06, 09:38 PM
Last Post: mar1
  NextPVR on a Pi rosede 26 1,364 2023-02-03, 11:46 PM
Last Post: kiasarecool
  NextPVR on Raspberry Pi 400 snow 1 107 2023-02-03, 09:12 AM
Last Post: mvallevand
  Moving NextPVR to new system (linux) cyber 17 441 2023-01-15, 04:04 PM
Last Post: cyber
  Ubuntu 22.04 - can't install NextPVR PJosses 4 342 2022-11-10, 08:12 PM
Last Post: PJosses
  [Obsolete] CoreElec and LibreElec as native host for NextPVR mvallevand 47 10,012 2022-11-04, 02:14 AM
Last Post: mvallevand
  No EPG (NextPVR & HDHomeRun) itm2 5 272 2022-10-28, 09:56 PM
Last Post: itm2
  Clean install - LibreElec, Need NextPVR Backend ElJefe 46 1,379 2022-10-16, 10:55 PM
Last Post: ElJefe
  IPTV Stream 404 from NextPVR unless user-agent is changed bphillips09 4 252 2022-10-12, 05:19 AM
Last Post: bphillips09

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode