NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 17 18 19 20 21 … 433 Next »
PostProcessing.bat not executing

PostProcessing.bat not executing
MiyoshiSaki
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Dec 2014
#11
2019-08-21, 08:34 AM
Appeared "Plex media scanner.exe" doesn't like being triggered from a service. Terminates prematurely before finishing. It works perfectly fine if postprocessing.bat is executed by the user.

Was using notepad.exe as a way to test getting it to run as a user instead of a background service. Is there a script command to call another .bat script but executed as a desktop user?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,962
Threads: 956
Joined: May 2006
#12
2019-08-21, 12:23 PM
If the command line doesn't work for you I'd just following this https://support.plex.tv/articles/2016387...-commands/ and this linked post https://support.plex.tv/articles/2040594...lex-token/ and issuing this

Code:
curl http://localhost:32400/library/sections/1/refresh?X-Plex-Token=YourTokenGoesHere

Martin
MiyoshiSaki
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Dec 2014
#13
2019-09-03, 07:34 AM (This post was last modified: 2019-09-03, 07:39 AM by MiyoshiSaki.)
I figured out the problem and fixed it. Posting an update for others that might have the same issue.

PostProcessing.bat is properly triggering. The reason why "plex media server.exe" terminates prematurely is because it could not get access to my mapped network drive. Even doing change directory to the map drive fails.

Even though I've set NPVR Recording Service to use local desktop user account instead of "local service" account the launched commands still get executed under a non local user account. My mapped drives are associated with my local user account. It is not visible to other accounts. Logging the output of "net use" command in the PostProcessing.bat shows that my mapped drives are always in an "unavailable" state. This is the same issue people run into when executing script command under different credentials like using "run as admin" mode etc.

After updating from Win10 LTSC 1507 to 1809 I had this issue which wasn't a problem prior.

To work around, I remount the drive mapping with "net use <drive:> //unc_network_path" command as the first line of PostProcessing.bat. This allowed the rest of the script to function and have access drives.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,727
Threads: 767
Joined: Nov 2003
#14
2019-09-03, 10:36 PM
Great - glad you got to the bottom of it. (and glad I can continue to tell people that Postprocessing.bat is definitely being executed Big Grin)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  postprocessing batch to escape special characters donbrew 3 1,731 2019-11-06, 11:29 PM
Last Post: JavaWiz
  PostProcessing and PostCancel.bat being triggered but not working antenna 4 1,835 2018-08-05, 07:40 PM
Last Post: antenna
  PostProcessing.bat doesn't run wscrivens 23 7,786 2016-04-08, 06:30 PM
Last Post: Handy.Man
  Show CMD window while executing PostProcessing.bat uspino 6 2,834 2015-12-08, 11:41 PM
Last Post: mvallevand
  Havng trouble using VideoRedo in Batch (Postprocessing.bat) ????? puck64 0 1,489 2015-11-14, 10:39 AM
Last Post: puck64
  PostProcessing failing Quaraxkad 22 7,127 2015-10-19, 10:43 AM
Last Post: puck64
  PostProcessing.bat not run on Recording Cancel arrmo 9 2,626 2015-08-10, 01:31 PM
Last Post: arrmo
  Strange problem with PostProcessing and PsExec Reddwarf 8 2,642 2015-06-10, 07:39 PM
Last Post: Reddwarf
  PostProcessing not running, recording marked as recording service not running Reddwarf 12 3,566 2015-05-24, 11:20 PM
Last Post: sub
  Identifying subchannel for postprocessing wisfalls 3 1,697 2014-11-04, 11:16 PM
Last Post: johnsonx42

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

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

Linear Mode
Threaded Mode