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 … 28 29 30 31 32 … 34 Next »
Headless RPI4: Status shows not running on boot

 
  • 0 Vote(s) - 0 Average
Headless RPI4: Status shows not running on boot
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#1
2019-12-06, 11:38 PM
Hi,

I have a headless Raspberry Pi 4 running the latest/greatest.
raspi-config is setup to wait for network before boot.
configured NextPVR device is IPTV only (m3u/xml)

on bootup of the server, if I check status I see an error:
  -  Unhandled Exception: System.Net.Sockets.SocketException: Network is unreachable

If I perform a:
  - sudo service nextpvr-server restart

the service shows running OK.  Failed log below.

Is there a config I am missing to allow the service to start upon device boot without intervention?

Thank you, I am very much enjoying setting this up and using it!
-Adam

Full failed log:
pi@NextPVR:~ $ service nextpvr-server status
nextpvr-server.service - NextPVRServer
  Loaded: loaded (/usr/lib/systemd/system/nextpvr-server.service; enabled; vendor preset: enabled)
  Active: failed (Result: signal) since Fri 2019-12-06 18:08:52 EST; 12min ago
  Process: 323 ExecStart=/opt/nextpvr/shell/server.sh start (code=exited, status=0/SUCCESS)
Main PID: 371 (code=killed, signal=ABRT)

Dec 06 18:08:52 NextPVR server.sh[323]: Unhandled Exception: System.Net.Sockets.SocketException: Network is unreachable
Dec 06 18:08:52 NextPVR server.sh[323]:    at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(Socket
Dec 06 18:08:52 NextPVR server.sh[323]:    at System.Net.Sockets.Socket.SendTo(Byte[] buffer, Int32 offset, Int32 size, Sock
Dec 06 18:08:52 NextPVR server.sh[323]:    at NShared.Utility.HDHomeRun.Discover(String specificDeviceID)
Dec 06 18:08:52 NextPVR server.sh[323]:    at NShared.HDHomeRunRecorder.GetPresentDevices()
Dec 06 18:08:52 NextPVR server.sh[323]:    at NShared.Visible.CaptureSource.UpdateDevices(ICaptureSourceUpdateStatus callbac
Dec 06 18:08:52 NextPVR server.sh[323]:    at NShared.RecordingService..ctor()
Dec 06 18:08:52 NextPVR server.sh[323]:    at NPVR5.Program.Main(String[] args)
Dec 06 18:08:52 NextPVR systemd[1]: nextpvr-server.service: Main process exited, code=killed, status=6/ABRT
Dec 06 18:08:52 NextPVR systemd[1]: nextpvr-server.service: Failed with result 'signal'.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#2
2019-12-06, 11:56 PM
Could you upload the logs please.

Martin
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#3
2019-12-07, 12:37 AM
Sorry for being a N00b. I do not see where the log files are in the v5\Linux installation or the location on the v5 wiki.
I'd be happy to post them if I could find them Smile
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#4
2019-12-07, 12:38 AM
(2019-12-07, 12:37 AM)arud01ph Wrote: Sorry for being a N00b.  I do not see where the log files are in the v5\Linux installation or the location on the v5 wiki.
I'd be happy to post them if I could find them Smile
On the Settings->About page, there is a 'Log Files' button. It'll zip the log files up for you and download them.
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#5
2019-12-07, 01:31 AM (This post was last modified: 2019-12-07, 01:57 AM by arud01ph.)
(2019-12-07, 12:38 AM)sub Wrote:
(2019-12-07, 12:37 AM)arud01ph Wrote: Sorry for being a N00b.  I do not see where the log files are in the v5\Linux installation or the location on the v5 wiki.
I'd be happy to post them if I could find them Smile

On the Settings->About page, there is a 'Log Files' button. It'll zip the log files up for you and download them.


I apologize.  Spent lots of time searching in the terminal to no avail.

The attached does not show the network is unreachable error in it (original post - error running the service on boot / status messages)
Is there a place I can get a complete status log when the server fails on bootup, before I recycle the service to enable the download of logs through the web server?


Attached Files
.zip   logs-20191206-1938.zip (Size: 515.52 KB / Downloads: 5)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#6
2019-12-07, 02:12 AM
It didn't find your HDHR devices

2019-12-06 18:21:48.696 [DEBUG][1] CaptureSource.LoadAll()
2019-12-06 18:21:49.286 [DEBUG][1] []
2019-12-06 18:21:49.335 [DEBUG][1] HDHR Discover
2019-12-06 18:21:50.432 [DEBUG][1] Local Devices: <devices>
</devices>

What distro are you using? There seems to be missing components

Martin
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#7
2019-12-07, 03:16 AM (This post was last modified: 2019-12-07, 03:26 AM by arud01ph.)
I did not configure nor do I have a HomeRun device.  Running IPTV only.

Distro: rasbian buster lite on Raspberry Pi 4 / 4Gig
Linux NextPVR 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l

The original install may have had a hardware device listed.  I can't remember now.  However, I am guinea pig material and am willing to start over with a fresh Raspbian install.  First time installation included a buster update/upgrade and
- curl https://nextpvr.com/nextpvr-helper.deb -O
  - sudo apt install ./nextpvr-helper.deb --install-recommends
  - sudo dpkg -i nextpvr-helper.deb

I've re-installed a number of times since to try two IPTV services following this procedure
- uninstalll as per https://forums.nextpvr.com/showthread.php?tid=59576
  - does step #3 need fixing?  the purge command is listed twice?  second run reports not installed
- install as per https://forums.nextpvr.com/showthread.php?tid=59590 and https://forums.nextpvr.com/showthread.php?tid=59576
      - curl https://nextpvr.com/nextpvr-helper.deb -O
      - sudo apt install ./nextpvr-helper.deb --install-recommends
- Wait - test web server = ok
      - sudo dpkg -i nextpvr-helper.deb
- wait a minute or two - reboot
- after reboot service not running
- login
- sudo service nextpvr-server restart
- Configure IPTV device (only one listed)
- After configuring, service serves up guide/liveTV ok
- subsequent reboots require a login/restart
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#8
2019-12-07, 03:42 AM
Ok that HDHR error confused me.

Do you have a folder /var/opt/nextpvr/web/temp

Martin
arud01ph
Offline

Junior Member

Posts: 13
Threads: 3
Joined: Dec 2019
#9
2019-12-07, 03:45 AM
Yes, it is empty at the moment
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#10
2019-12-07, 03:50 AM (This post was last modified: 2019-12-07, 03:50 AM by mvallevand.)
Good and it is not crashing now, I expect NextPVR was coming up before the network was ready. A server restart rather than a reboot should tell you if that is the problem.

However your main problem seems to be your RPi is too slow (that is expected) for browser playback

2019-12-06 18:40:47.003 [DEBUG][46] [FFMPEG]: frame= 27 fps= 10 q=24.0 size=N/A time=00:00:01.55 bitrate=N/A speed=0.597x

You need to try with another client like Kodi for playback.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Settings page shows only the main content area, not the side nav TheRealRoland 2 660 2024-02-13, 02:10 AM
Last Post: TheRealRoland
  Wrong frequencies in DVB-C-channels.conf, but scan log shows correct frequencies RonnyAdam 25 3,702 2023-07-24, 10:24 PM
Last Post: mvallevand
  How to record to a drive other than the boot drive? RocketDestroyer 5 1,312 2022-07-22, 08:38 PM
Last Post: mvallevand
  nextpvr server stopped running SteveTyrakowski 22 4,575 2021-10-30, 10:41 PM
Last Post: mvallevand
  Headless Linux install and update for dummies snagglewest 5 10,704 2021-06-12, 01:37 PM
Last Post: mvallevand
  Arch x64 install fails ATSC scan ("status":"Error: No such file or directory") jwh7 18 6,848 2020-11-27, 05:52 PM
Last Post: jwh7
  Recording service not running at recording time baj1 22 5,216 2020-11-21, 07:05 PM
Last Post: mvallevand
  RPi4 crashes or root disk is unmounted while recording on Hauppauge WinTV-dualHD scotrich99 17 4,030 2020-06-09, 02:56 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode