Comments (9)
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.
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.
Try rebooting the computer and run PlexBackup with additional flags: -Verbose -Debug
. Then share all output.
from plexbackup.
Hi Alek, i'll do it
system rebooted,here a screen of uptime on task manager and the powershell command as admin
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:
Anyway i'll run the backup as per your indication and keep you updated with the output
from plexbackup.
Here : https://pastebin.com/CJBGCnZ2
you'll find the output requested
Thanks
from plexbackup.
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.
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.
Thank you @mpk99. Good info.
from plexbackup.
Added a workaround in https://github.com/alekdavis/PlexBackup/releases/tag/v2.1.7.
from plexbackup.
Related Issues (20)
- issue with backup HOT 5
- Cannot import run-time settings from default configuration file (if any). Invalid JSON primitive: Skip. HOT 1
- Validation error. Backup version does not match HOT 3
- Can't start Plex after backup HOT 6
- After backup completes getting an error when the script attempts to start Plex HOT 3
- Plex Media Server Not Restarting HOT 1
- Email Notification Not Working HOT 2
- Plex Backup Failing-Nothing Changed HOT 16
- question/enhancement HOT 4
- Only receiving the error "Error processing dependencies. You cannot call a method on a null-valued expression." HOT 6
- Fix typo in log message HOT 1
- Add support for PowerShell 7.
- RUNAS ERROR: Unable to run ... 87: The parameter is incorrect. HOT 2
- Plex Backup Fails Through Task Scheduler (Win 10 Pro) HOT 2
- 87: The parameter is incorrect HOT 13
- Create a workaround for the error 87: The parameter is incorrect HOT 1
- Restore didn
- Restore didn't work too well for me HOT 16
- Sub folders not being created by backup process HOT 5
- Add the option to exclude Cache folder HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexbackup.