Git Product home page Git Product logo

Comments (9)

mpk99 avatar mpk99 commented on July 3, 2024 2

This is happening to me as well, same build (win11 etc).

It's a known issue apparently that's been fixed in the upcoming preview build. I changed line 2338 to the following, and it fixed it for me:

runas /machine:amd64 /trustlevel:0x20000 "$Script:PlexServerPath"

here's where it's a known issue:

https://superuser.com/a/1755207

from plexbackup.

ManuJapan89 avatar ManuJapan89 commented on July 3, 2024 1

Hi Alek, i'll try when i have time
But, if the backup succeded as i suppose looking at the backup.log
the fact that the backup script.ps1 doesn't run plex media server again after finish is not an issue at all. at least for me.
Do you expect issue on restore or everything will be fine?
i usually use this command for restore: .\PlexBackup.ps1 -Mode Restore -Type 7zip -LogLevel Debug -Log -ErrorLog -NoRestart
Anyway, here is the backup log : https://pastebin.com/Czs73R9N

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Try rebooting the computer and run PlexBackup with additional flags: -Verbose -Debug. Then share all output.

from plexbackup.

ManuJapan89 avatar ManuJapan89 commented on July 3, 2024

Hi Alek, i'll do it
system rebooted,here a screen of uptime on task manager and the powershell command as admin
image
Other info:
this system run simultaneously :
Plex
Tautulli
Docker(Hyper-V mode)
Sonarr
Jdownloader2
The AV is the default MS Defender, configured with configuredefender(github) in HIGH mode security
The windows version with winver command is this:
image
Anyway i'll run the backup as per your indication and keep you updated with the output

from plexbackup.

ManuJapan89 avatar ManuJapan89 commented on July 3, 2024

Here : https://pastebin.com/CJBGCnZ2
you'll find the output requested

Thanks

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Thanks for the info. Unfortunately, I do not have a Windows 11 with Plex installed (my system does not allow upgrade to Windows 11). Basically, you get this error when the script is trying to execute the command on line 2338 (in the current version):

runas /trustlevel:0x20000 "$Script:PlexServerPath"

I suspect, it must be some internal bug in Windows, possibly due to a localized Windows version, similar to the one reported here: https://learn.microsoft.com/en-us/answers/questions/741503/runas-fail.html

For now, I'd recommend first making sure you have the latest Windows build. If you do, try running this command form an elevated PowerShell session (run PowerShell as Administrator) manually. As the last parameter, you can pass the full path to the Plex Media Server executable or some built-in program, such as Notepad.exe (make sure the path is enclosed in double quotes).

If it fails, I'd report it to Microsoft (I'd leave Plex out of it, just say the command does not work for Notepade or some built-in app). In the meantime, you can try changing lines 2337 and 2338 in the PlexBackup.ps1 script from

# Start-Process $plexServerExePath -LoadUserProfile
runas /trustlevel:0x20000 "$Script:PlexServerPath"

to

Start-Process $Script:PlexServerPath -LoadUserProfile
# runas /trustlevel:0x20000 "$Script:PlexServerPath"

This may introduce other issues, or maybe it won't. Let me know.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

The restore should work fine. The only issue seems to be with this particular command that tries to launch PMS after backup, and I use a hack to do this because that's what seem to be the recommended way (I want to make sure PMS does not start as Administrator). Hopefully, it's a Windows update bug that gets fixed.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Thank you @mpk99. Good info.

from plexbackup.

alekdavis avatar alekdavis commented on July 3, 2024

Added a workaround in https://github.com/alekdavis/PlexBackup/releases/tag/v2.1.7.

from plexbackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.