nebhead / PlexPostProc

Plex PostProcessing Script for DVR(Beta)
77 stars 30 forks source link

Looks like there is another script running #19

Closed Hylas01 closed 2 years ago

Hylas01 commented 3 years ago

Nice little script but it doesn't work for me. It never ends. The log just says Looks like there is another scripting running. Waiting,,,,,, and it never ends. this happens when it is just a single encode...no multiple streams going.

nebhead commented 3 years ago

Hi @Hylas01 - What does your installation look like? Are you running in a Docker container or directly in Linux? What flavor of Linux are you using?

The script sets up a temporary "lockfile" using the following command: LOCKFILE="$(mktemp).ppplock"

Then at the end of the script, will delete it's lockfile, then check if there are any other lock files open before exiting.

With that said, you might check if there are any other lock files (files with extension .ppplock) in the /tmp folder. If there are, then delete those. It's possible that one got created and the script crashed without deleting the lock file.

If all else fails, check your log files in the /tmp directory. The script creates a log for each time it's run in the following format: LOGFILE="$TMPFOLDER/plexpp$(date +"%Y%m%d-%H%M%S").log"

Let me know how it goes.

nebhead commented 3 years ago

@Hylas01 - Just checking if you had a chance to look into this. If it's resolved, I'll go ahead an close this.