NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
1 2 3 4 5 … 9 Next »
Live streaming starts but then fails with access denied

 
  • 0 Vote(s) - 0 Average
Live streaming starts but then fails with access denied
TheFonz
Offline

Junior Member

Posts: 16
Threads: 3
Joined: Feb 2014
#1
2025-05-13, 12:28 AM
I am getting access denied on live streams but recordings seem to working
here is my config

Code:
docker run -d \
    --name nextpvr \
    --user root \
    --volume /root/config:/config \
    --volume /mnt/livetv:/recordings \
    --volume /mnt/livetv:/buffer \
    --restart unless-stopped \
    --publish 16891:16891/udp \
    --publish 8866:8866 \
    nextpvr/nextpvr_amd64:stable

I then get receiving data for a a tiny bit, sometimes get video+audio but for a max of about 10 seconds,  before a massive dump of the following error:

Code:
2025-05-13 00:23:51.528 [ERROR][29] Unexpected error writing to OutputSink: System.UnauthorizedAccessException: Access to the path '/buffer/live-Channel 9-1-2.ts' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
  at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
  at System.IO.Strategies.BufferedFileStreamStrategy.WriteSpan(ReadOnlySpan`1 source, ArraySegment`1 arraySegment)
  at NShared.Writer.OutputSink.Write(Byte[] data, Int32 offset, Int32 length)

I even tried the buffer folder the same as the recording folder to no avail.
both the buffer & recording folders are the same SMB share.

I am running NextPVR on a docker LXC in proxmox.
I have confirmed the permissions and read+write access to the mnt to be working.

Any ideas would be appreciated!
Cheers,
Fonz
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#2
2025-05-13, 12:34 AM
Although you say you you confirmed the permissions, i will still be Linux permissions on /mnt/livetv or on the mount itself. You can likely confirm that by using /tmp instead of /mnt/livetv

Martin
TheFonz
Offline

Junior Member

Posts: 16
Threads: 3
Joined: Feb 2014
#3
2025-05-13, 12:38 AM (This post was last modified: 2025-05-13, 12:41 AM by TheFonz.)
Yep changing to /tmp works fine - however the drive for the nextpvr lxc is only 14gb and not networked in anyway, so trying to avoid that. I have followed a few tuts re lxc smb shares and permissions but something is still hinky.
When starting a live stream the ts file(s) get created, which proves read+write doesn't it??
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#4
2025-05-13, 02:00 AM
That was was simply to show you you have a permission error. If you can write to the local file system maybe focus on smb and the server itself. Sorry I cant help further.

Martin
TheFonz
Offline

Junior Member

Posts: 16
Threads: 3
Joined: Feb 2014
#5
2025-05-13, 04:17 AM
Found this thread with the exact same situation as me and no resolution Sad
https://forums.nextpvr.com/showthread.php?tid=63964
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#6
2025-05-13, 08:45 AM
Yes there will be always be users having Linux (and Windows) issues setting permissions but that doesn't change the problem.

Martin
TheFonz
Offline

Junior Member

Posts: 16
Threads: 3
Joined: Feb 2014
#7
2025-05-13, 11:14 PM
I had a little brainwave: I wanted to move NextPVR off my Win11 VM (also running on Proxmox) to it's own instance so that if the Win11 vm goes down or is rebooted I can still watch TV!
The NAS is currently hosted on the Win11 VM with a plan to someday move it, however I was just thinking that recording and buffering to that storage still ties me to the VM and if it's offline so is NextPVR.
So I think I'll use the NAS for recordings and the Proxmox NVME for buffering, which should work. I just need to work out how much space I'll need for 3~4hours of live TV
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,080
Threads: 957
Joined: May 2006
#8
2025-05-14, 12:39 PM
The NextPVR default for Live TV only is to buffer 20 minutes for each user no matter how long you watch. Most user are happy with that but it can be increased on the Settings ->General page. However if you are using the web player this data is also written to the NPVR-data/web/temp The size is based on the source bit rate and encoding and vary greatly.

NPVR-data can actually get large if you don't monitor the media/shows folder I just checked and my test server is over 7GB.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 10 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to live stream Atanoman 4 523 2025-01-04, 07:22 PM
Last Post: Atanoman
  IPTV streaming uses 100% CPU callumjk 2 1,107 2024-04-18, 05:11 PM
Last Post: sub
  Container fails to scan channels - Native succeeds Velero 4 1,239 2022-02-08, 06:47 PM
Last Post: Velero
  LiveTv Channels - Streaming Failed (transcoder exited) groenator 22 7,531 2020-10-05, 10:40 AM
Last Post: Graham
  Live TV stream stops VCR58 13 4,743 2019-07-04, 04:32 AM
Last Post: VCR58
  Show already recorded then Live watched, causes problems vintdiesel 1 1,822 2019-06-29, 07:32 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode