NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 95 96 97 98 99 … 101 Next »
Windows Service Hangs in "Starting" status after using InstallService.batch

 
  • 0 Vote(s) - 0 Average
Windows Service Hangs in "Starting" status after using InstallService.batch
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#1
2019-10-06, 07:01 PM
I was out of town when sub first did the release with the installservice.bat to create the Windows service, so didn't try it right away. Yesterday, I upgraded to the latest 20191005 version, and tried to use the installservice.bat. It seemed to create the service OK, but when it tried to start it, I got the error
Code:
The NextPVR Service service is starting........
The NextPVR Service service could not be started.

The service did not report an error.
I did not find any entries in the Windows logs. And no NRecord.log got created. When I manually killed the process for the "starting" service, I could manually run the NextPVRserver.exe like I've been doing all along just fine.

Today, I shut down the server, removed the service which had been created, installed the 20191006 version, and again ran the installservice.bat (in an Administrator command prompt window). I got the same results. The service gets created, but apparently "hangs" during startup. I'm not sure what else to do to try troubleshooting this.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#2
2019-10-06, 08:36 PM
We got BrettB going. I'm not really sure what we did, but it started running. We effectively manually ran NextPVRServer.exe, then restarted the service and it ran correctly.
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#3
2019-10-06, 10:09 PM
(2019-10-06, 08:36 PM)sub Wrote: We got BrettB going. I'm not really sure what we did, but it started running. We effectively manually ran NextPVRServer.exe, then restarted the service and it ran correctly.

FYI - the key program that you had to run manually first was NextPVRService.exe not NextPVRServer.exe.

When I stopped the service, did the normal unzip to get this latest test version, and then tried to start the service again, it did the same hanging thing.

So this time, I opened a Non-Administrator command window. Went to C:\Program Files\NPVR5\ folder and tried to manually do "NextPVRService.exe RUN". This time, I got a Windows security pop-up asking me to approve running the unknown program. I tried to capture a copy of the message because it did include an signature ID or something for the image, but the capture didn't work. Anyway, as soon as I approved it, the manual run continued and started the server. I was then able to immediately shutdown the manual run and start the service without problem. Kind of a pain if we have to do that every time that we get a new version, but at least the service part seems to be working.

FYI I'm not running any 3rd party anti-virus--just the built-in Windows 10 Defender/Firewall/etc.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,881
Threads: 954
Joined: May 2006
#4
2019-10-06, 10:35 PM
This is typical behavior when downloading exe files from the internet through a browser.

Martin
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,666
Threads: 170
Joined: Jun 2007
#5
2019-10-06, 11:08 PM
(2019-10-06, 10:35 PM)mvallevand Wrote: This is typical behavior when downloading exe files from the internet through a browser.

In this case, it was a .zip file downloaded and then extracted, but basically the same thing. The difference from when sub did it the first time is that it was running in a command window started with Administrator privileges, and in that case, we never got a prompt. It just "magically" started working.

At any rate, it's probably going to be a confusing/support thing for end-users right now.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,881
Threads: 954
Joined: May 2006
#6
2019-10-07, 12:08 AM (This post was last modified: 2019-10-07, 09:21 PM by mvallevand.)
The easy solution is not to use the browser (since it is all command line anyway). Win10 has curl built in so using

curl -k https://nextpvr.com/beta/windows/NPVR.zip -o NPVR.zip

would solve browser security issues.

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#7
2019-10-08, 11:43 AM
(2019-10-06, 07:01 PM)BrettB Wrote: I was out of town when sub first did the release with the installservice.bat to create the Windows service, so didn't try it right away. Yesterday, I upgraded to the latest 20191005 version, and tried to use the installservice.bat. It seemed to create the service OK, but when it tried to start it, I got the error
Code:
The NextPVR Service service is starting........
The NextPVR Service service could not be started.

The service did not report an error.

I got the same error message when running installservice.bat.
What worked for me is to run from a command prompt

sc.exe delete "NextPVR Service"

The I restarted the PC and ran installservice.bat then it started. 

So, I guess you may need to stop the old service, then uninstall it before upgrading to new software and installing the new service.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,881
Threads: 954
Joined: May 2006
#8
2019-10-08, 12:57 PM
For any upgrade you will need stop the service to update open files. However you should not need to run installservice.bat again, just restart the service.

Martin
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#9
2019-10-08, 01:38 PM
(2019-10-08, 12:57 PM)mvallevand Wrote: For any upgrade you will need stop the service to update open files.  However you should not need to run installservice.bat again, just restart the service.

Martin
I'll have to remember that next time. 

Running  installservice.bat is what caused my problem since it tried to install a service that already exists.
VCR58
Offline

Posting Freak

Marion Iowa, USA
Posts: 1,845
Threads: 177
Joined: Aug 2016
#10
2019-10-09, 02:58 AM
I tried v5 it on a different PC and nothing I tried was getting the service working. I fussed with it for an hour and magically it started working. What a royal pain Sad  The last version that had a service wasn't a problem.
« 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
  NPVR Windows recordings folder cleanup.... Colincam 21 2,971 2025-04-16, 07:38 PM
Last Post: mvallevand
  Windows 24H2 - Can't install Hauppage Drivers Lao Pan 6 1,325 2025-04-04, 04:49 AM
Last Post: seattlefog
  Freezing/Buffering on Windows 11 (NPVR app only) nextpvrnoob 64 7,837 2025-02-21, 07:52 PM
Last Post: mvallevand
  7.0.1.241229 Back end status stuck in record mode PIPE... eastavin 3 313 2025-01-28, 05:10 PM
Last Post: mvallevand
  Starting Device:please wait JohnMark 14 872 2025-01-19, 02:24 PM
Last Post: mvallevand
  DVB-T210 August USB Freeview HD TV Stick Windows 10 16brae 6 423 2025-01-17, 03:20 AM
Last Post: jimil
  7.0.0.241105 Back end status stuck in record mode PIPE... eastavin 1 293 2024-12-11, 10:54 PM
Last Post: Bobins
  I can't start service daydreaming5 17 906 2024-12-08, 03:24 AM
Last Post: daydreaming5
  Windows Client not receiving class messages ElihuRozen 1 249 2024-12-01, 06:55 PM
Last Post: sub
  can't get http://localhost:8866/service=?method=channel.m3u JCDinPGH 15 1,058 2024-11-28, 03:20 AM
Last Post: JCDinPGH

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

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

Linear Mode
Threaded Mode