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 … 10 Next »
Need help with hardened docker setup

 
  • 0 Vote(s) - 0 Average
Need help with hardened docker setup
bfg100k
Offline

Junior Member

Australia/Sydney
Posts: 1
Threads: 1
Joined: Aug 2026
#1
Yesterday, 02:08 PM (This post was last modified: Yesterday, 02:14 PM by bfg100k.)
Hi all, I'm new to NextPVR and is trying to set it up using the docker amd64 image. With the below docker config, everything works fine
d
services:
  nextpvr: #Digital Video Recorder
    image: nextpvr/nextpvr_amd64:7.1.1.260616
    devices:
      - /dev/dvb/
      - /dev/dri/

    volumes:
      - /app/nextpvr:/config:rw
      - /TVRecordings:/recordings:rw


However I usually lock down my containers with the following:

    read_only: true
    cap_drop:
      - ALL
    security_opt:
      - no-new-privileges
    user: 1000:1000

These settings appear to cause nextpvr to break. The container starts ok and the web UI responds. However when I try to play a live tv channel (DVB), it fails. Any ideas?
Both DVB tuners are world accessible
Code:
admin@SVR-DS918:/app/nextpvr$ ls -la /dev/dvb total 0 drwxr-xr-x  4 root root    80 Aug 22 17:56 . drwxr-xr-x 15 root root 14460 Aug 23 03:01 .. drwxr-xr-x  2 root root  100 Aug 22 17:56 adapter0 drwxr-xr-x  2 root root  100 Aug 22 17:56 adapter1 admin@SVR-DS918:/app/nextpvr$ ls -la /dev/dvb/adapter0 total 0 drwxr-xr-x 2 root root    100 Aug 22 17:56 . drwxr-xr-x 4 root root      80 Aug 22 17:56 .. crw-rw-rw- 1 root users 212, 0 Aug 22 17:56 demux0 crw-rw-rw- 1 root users 212, 1 Aug 22 17:56 dvr0 crw-rw-rw- 1 root users 212, 2 Aug 22 17:56 frontend0

In the host system dmesg, I get 
Code:
[209477.786294] DeviceHostLinux[20973]: segfault at 20 ip 000055bfc3c0b581 sp 00007ffef0133e40 error 4 in DeviceHostLinux[55bfc3bd4000+45000]

In the docker log, I get
Code:
nextpvr-1  | [3] Got request [127.0.0.1]: /live nextpvr-1  | [3] /live?channeloid=7149&transcoder=9bf85919-c114-4647-ba37-52a1b8234318&sid=459e555f-41eb-43fa-b0a6-d89e2bbe0906&client=459e555f-41eb-43fa-b0a6-d89e2bbe0906 nextpvr-1  | [3]  - channeloid: 7149 nextpvr-1  | [3]  - transcoder: 9bf85919-c114-4647-ba37-52a1b8234318 nextpvr-1  | [3]  - sid: 459e555f-41eb-43fa-b0a6-d89e2bbe0906 nextpvr-1  | [3]  - client: 459e555f-41eb-43fa-b0a6-d89e2bbe0906 nextpvr-1  | [3] range: bytes=0- nextpvr-1  | [3] StreamNative@1.. nextpvr-1  | [3] StreamNative@2 nextpvr-1  | [3] StreamNative@3 nextpvr-1  | [3] StreamNative@4 nextpvr-1  | [3] StreamNative@5 nextpvr-1  | [3] StreamNative@6 nextpvr-1  | [3] StreamNative@7... nextpvr-1  | [3] StreamNative@8 (/buffer/live-10 comedy-1-1.ts) nextpvr-1  | [3] about to start stream... nextpvr-1  | [3] StartStream(7149:10 comedy) nextpvr-1  | [3] looking for capture source (in reverse priority order) nextpvr-1  | [3] checking: IPTV (http://...) nextpvr-1  | [3] checking: adapter1/frontend0 (Realtek RTL2832 (DVB-T)) nextpvr-1  | [3] enabled and present nextpvr-1  | [3] has channel nextpvr-1  | [3] live tv is possible nextpvr-1  | [3] OSArchitecture: X64 nextpvr-1  | [3] Is64BitProcess: True nextpvr-1  | [3] Starting device host: nextpvr-1  | [3] "/app/DeviceHost/x64/DeviceHostLinux" -listen:35396 -type:DVB-T -device:"adapter1/frontend0" -instance:1 -parent:1 nextpvr-1  | [3] With environment: LD_LIBRARY_PATH=/app/DeviceHost/x64: nextpvr-1  | [3] http://localhost:35396/stream/start?slipseconds=900&target=LIVE%26%2Fbuffer%2Flive-10%20comedy-1-1.ts nextpvr-1  | [3] body: nextpvr-1  | <tuning> nextpvr-1  |  <type>DVB-T</type> nextpvr-1  |  <name>10 comedy</name> nextpvr-1  |  <locator> nextpvr-1  |    <conf>219500000OFF</conf> nextpvr-1  |    <lnb>0</lnb> nextpvr-1  |  </locator> nextpvr-1  |  <service_id>1576</service_id> nextpvr-1  |  <tsid>1538</tsid> nextpvr-1  |  <onid>4116</onid> nextpvr-1  |  <service_type>25</service_type> nextpvr-1  | </tuning> nextpvr-1  | nextpvr-1  | [3] Unexpected error on LocalRecorder.StartStream(): System.Net.WebException: Connection refused [::ffff:127.0.0.1]:35396 (localhost:35396) nextpvr-1  |  ---> System.Net.Http.HttpRequestException: Connection refused [::ffff:127.0.0.1]:35396 (localhost:35396) nextpvr-1  |  ---> System.Net.Sockets.SocketException (111): Connection refused [::ffff:127.0.0.1]:35396 nextpvr-1  |    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) nextpvr-1  |    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) nextpvr-1  |    at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) nextpvr-1  | --- End of stack trace from previous location --- nextpvr-1  |    at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port) nextpvr-1  |    at System.Net.Sockets.Socket.Connect(String host, Int32 port) nextpvr-1  |    at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) nextpvr-1  |    at System.Net.HttpWebRequest.<>c__DisplayClass219_0.<<CreateHttpClient>b__1>d.MoveNext() nextpvr-1  | --- End of stack trace from previous location --- nextpvr-1  |    at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    --- End of inner exception stack trace --- nextpvr-1  |    at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) nextpvr-1  |    at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellation(CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.Metrics.MetricsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) nextpvr-1  |    at System.Net.HttpWebRequest.SendRequest(Boolean async) nextpvr-1  |    at System.Net.HttpWebRequest.GetResponse() nextpvr-1  |    --- End of inner exception stack trace --- nextpvr-1  |    at System.Net.HttpWebRequest.GetResponse() nextpvr-1  |    at System.Net.WebClient.GetWebResponse(WebRequest request) nextpvr-1  |    at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream) nextpvr-1  |    at System.Net.WebClient.UploadBits(WebRequest request, FileStream readStream, Byte[] buffer, Int32 chunkSize, Byte[] header, Byte[] footer) nextpvr-1  |    at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) nextpvr-1  |    at System.Net.WebClient.UploadString(Uri address, String method, String data) nextpvr-1  |    at NShared.LocalRecorder.StartStream(ChannelMapping channelMapping, String target, String& reason) nextpvr-1  | [3] Unable to StartStream(): Connection refused [::ffff:127.0.0.1]:35396 (localhost:35396)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,738
Threads: 996
Joined: May 2006
#2
Yesterday, 03:07 PM (This post was last modified: Yesterday, 05:13 PM by mvallevand.)
Sadly you provided a lot of information but you missed the zipped logs that would have included the most import log from DeviceHostlinux

Did you define the buffer volume that is where LiveTV writes with permission 777?

If recordings work I expect it is that. If not try the settings one by one.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Current guide for NextPVR docker on Unraid? wapkaplet 2 3,366 2026-01-05, 07:22 PM
Last Post: guyinco6nito
  new build old docker techpro2004 11 1,854 2025-11-09, 09:01 PM
Last Post: mvallevand
  Docker image for arm64? Jack_Burton505 8 2,484 2025-09-11, 02:25 AM
Last Post: Jack_Burton505
  Docker options tom_tav 2 1,808 2025-07-27, 05:01 PM
Last Post: LiLao
  Migrating from Windows to Docker? boringgit 2 1,880 2025-06-09, 07:58 PM
Last Post: boringgit
  Comskip segfaults with comskip embedded in amd64 docker SickBoy 6 2,960 2025-02-24, 11:18 PM
Last Post: SickBoy
  Issues with Session Handling Behind Caddy Reverse Proxy in Docker: invalid session user001 5 2,727 2025-01-10, 08:23 PM
Last Post: sub
  Docker container becomes unresponsive overnight wapkaplet 6 3,210 2025-01-10, 04:47 PM
Last Post: wapkaplet
  Docker image upgrade ceejayemm 9 4,148 2025-01-07, 11:27 PM
Last Post: pkscout
  NextPVR with Docker and Fritzbox icompas 9 3,347 2024-12-12, 02:50 PM
Last Post: icompas

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

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

Linear Mode
Threaded Mode