2020-07-23, 12:58 AM
Ok, so... This was a bit complicated but I think I figured out the problem.
By default, all of the containers in my Synology Docker environment were being assigned to a "bridge" network with their own IP space (172.x.x.x) by default. I've only used Synology Docker sparingly so I cannot speak to whether or not this is the expected behavior. That said, I managed to get the NPVR docker image to detect my HDHR by creating a new NPVR container via the UI (a.k.a. Launch), then forcing the image to use the same network as the host (Advanced Settings -> Network -> Use the same network as Docker Host Checkbox). Beyond that, only the Volume mappings were necessary. None of the port mappings were needed. In fact, the Synology UI does not allow port mappings when the host network is configured on a container.
Like I said, I only use Synology Docker sparingly so I have no idea if this method is supposed to work or is even recommended. (My instincts tell me no.) But that's what I have working at the moment. As you can see from the log snippet below, NPVR had some trouble locating the HDHR initially but eventually found the device.
By default, all of the containers in my Synology Docker environment were being assigned to a "bridge" network with their own IP space (172.x.x.x) by default. I've only used Synology Docker sparingly so I cannot speak to whether or not this is the expected behavior. That said, I managed to get the NPVR docker image to detect my HDHR by creating a new NPVR container via the UI (a.k.a. Launch), then forcing the image to use the same network as the host (Advanced Settings -> Network -> Use the same network as Docker Host Checkbox). Beyond that, only the Volume mappings were necessary. None of the port mappings were needed. In fact, the Synology UI does not allow port mappings when the host network is configured on a container.
Like I said, I only use Synology Docker sparingly so I have no idea if this method is supposed to work or is even recommended. (My instincts tell me no.) But that's what I have working at the moment. As you can see from the log snippet below, NPVR had some trouble locating the HDHR initially but eventually found the device.
Code:
2020-07-23 00:37:39 stdout </devices>
2020-07-23 00:37:39 stdout [1] Local Devices: <devices>
2020-07-23 00:37:39 stdout [1] Added new device 'HDHomeRun 1078D884-3'
2020-07-23 00:37:39 stdout [1] Added new device 'HDHomeRun 1078D884-2'
2020-07-23 00:37:39 stdout [1] Added new device 'HDHomeRun 1078D884-1'
2020-07-23 00:37:39 stdout [1] Added new device 'HDHomeRun 1078D884-0'
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_LINEUP_URL: http://192.168.1.112:80/lineup.json
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_TUNER_COUNT: 4
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_BASE_URL: http://192.168.1.112:80
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_DEVICE_AUTH_STR
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_DEVICE_ID: 1078D884
2020-07-23 00:37:38 stdout [1] HDHOMERUN_TAG_DEVICE_TYPE: 1
2020-07-23 00:37:38 stdout [1] ...
2020-07-23 00:37:38 stdout [1] got discovery response
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_LINEUP_URL: http://192.168.1.112:80/lineup.json
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_TUNER_COUNT: 4
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_BASE_URL: http://192.168.1.112:80
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_DEVICE_AUTH_STR
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_DEVICE_ID: 1078D884
2020-07-23 00:37:37 stdout [1] HDHOMERUN_TAG_DEVICE_TYPE: 1
2020-07-23 00:37:37 stdout [1] ...
2020-07-23 00:37:37 stdout [1] got discovery response
2020-07-23 00:37:37 stdout at NShared.Utility.HDHomeRun.Discover(String specificDeviceID)
2020-07-23 00:37:37 stdout at Newtonsoft.Json.Linq.JArray.Parse(String json, JsonLoadSettings settings)
2020-07-23 00:37:37 stdout at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader, JsonLoadSettings settings)
2020-07-23 00:37:37 stdout [1] Unexpected error with HDHR discovery: Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Path '', line 0, position 0.
2020-07-23 00:37:37 stdout [1]
2020-07-23 00:37:36 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:30 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:24 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:18 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:12 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:06 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:37:00 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:36:54 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:36:48 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:36:42 stdout [1] Error discovering HDHR devices: The operation has timed out.
2020-07-23 00:36:37 stdout [39;49m[37m[1] CaptureSource.LoadAll()
2020-07-23 00:36:37 stdout [39;49m[32m[1] Version 5.0.6.200614
2020-07-23 00:36:37 stdout [1] Database: /config/npvr.db3
2020-07-23 00:36:37 stdout [1] Doing database updates
2020-07-23 00:36:37 stdout [1] master file is /app/data/Config-master-dont-edit.xml
2020-07-23 00:36:37 stdout [1] Checking if upgrade required
2020-07-23 00:36:37 stdout [1] No /config/scripts/PreStartup.sh
2020-07-23 00:36:37 stdout NEXTPVR_DATADIR_USERDATA /config/
2020-07-23 00:36:37 stdout NEXTPVR_DATADIR /app/data/
2020-07-23 00:36:37 stdout NEXTPVR_INSTALLDIR /app/