Git Product home page Git Product logo

Comments (15)

alekdavis avatar alekdavis commented on July 19, 2024

Did you follow the instructions on the Getting Started page?

from plexbackup.

alamoudimoh avatar alamoudimoh commented on July 19, 2024

Did you follow the instructions on the Getting Started page?

Yes,

  1. Saved files in the same location
  2. Rename the file name and removed SAMPLE
  3. Created a powershell shortcut on desktop and in advanced i checked run as admin
  4. CD the file directory
  5. Executed .\PlexBackup.ps1 and i got the error shared above

I do not what to do with update config File setting. It is not clear to me

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Try adding this line inside of the catch block on line 3216:

LogException $_ $false $false

So the code block will look like this:

# Load config settings from a config file (if any).
try {
    Import-ConfigFile -ConfigFilePath $ConfigFile -DefaultParameters $PSBoundParameters
}
catch {
    LogException $_ $false $false
    LogWarning "Cannot initialize run-time configuration settings." $false
    $mutex = StopSingleInstance $mutex
    exit $EXITCODE_ERROR_CONFIG
}

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Sorry, messed up the code block (updated now). Basically, I want to see the root cause error message. I suspect, there is something wrong with the config file or (less likely) the module that is supposed to process the config file. Please post the error message after you run the script.

from plexbackup.

deanalanmills avatar deanalanmills commented on July 19, 2024

alekdavis, above you say "updated now" but looks like same file with date time stamp the same in the zip file. What am I missing?

thanks for all you have done

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

I updated my comment (originally added the new line in the wrong place), not the script itself.

from plexbackup.

alamoudimoh avatar alamoudimoh commented on July 19, 2024

Sorry, messed up the code block (updated now). Basically, I want to see the root cause error message. I suspect, there is something wrong with the config file or (less likely) the module that is supposed to process the config file. Please post the error message after you run the script.

apologies for the delay i was having an emergency, here you go..

PS C:\Users\MAIN\OneDrive\AppsBackups\Plex> .\PlexBackup.ps1
PlexBackup v1.7.2 (c) 2020 Alek Davis
Script started at:
07/29/2020 22:19:13
LogException : Invalid JSON primitive: .
At C:\Users\MAIN\OneDrive\AppsBackups\Plex\PlexBackup.ps1:3216 char:5

  • LogException $_ $false $false
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,LogException

Cannot initialize run-time configuration settings.

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Yeah, looks like your configuration file is messed up. Can you post it here?

from plexbackup.

alamoudimoh avatar alamoudimoh commented on July 19, 2024

Yeah, looks like your configuration file is messed up. Can you post it here?

I just saved the files from https://github.com/alekdavis/PlexBackup/blob/master/PlexBackup.ps1

here is the file
PlexBackup.zip

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Not this file. I am asking for PlexBackup.ps1.json

from plexbackup.

alamoudimoh avatar alamoudimoh commented on July 19, 2024

Not this file. I am asking for PlexBackup.ps1.json

PlexBackup.ps1.zip

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

It looks like you save the web page layout instead of the configuration file. Just download the PlexBackup.ps1.SAMPLE.json (and make sure you download the actual file, not the web page), rename it (remove the .SAMPLE part), put the proper value in the backup directory setting (make sure you use double back slashes for each back slash in the path, so in your case, the value would be C:\\Users\\MAIN\\OneDrive\\AppsBackups\\Plex) and try it again. Basically, follow the instructions in the Getting Started section.

from plexbackup.

alamoudimoh avatar alamoudimoh commented on July 19, 2024

It looks like you save the web page layout instead of the configuration file. Just download the PlexBackup.ps1.SAMPLE.json (and make sure you download the actual file, not the web page), rename it (remove the .SAMPLE part), put the proper value in the backup directory setting (make sure you use double back slashes for each back slash in the path, so in your case, the value would be C:\\Users\\MAIN\\OneDrive\\AppsBackups\\Plex) and try it again. Basically, follow the instructions in the Getting Started section.

thanks for the help, i was doing everything wrong :(

ok, i managed to correct it and i can see the progress is running fine except there is an error with registry, i see it says it might be a non-critical error, so should i worry?

C:\Users\MAIN\OneDrive\AppsBackups\Plex\20200731035027\3\Plex2.reg
LogException : ERROR: The system was unable to find the specified registry key or value.
At C:\Users\MAIN\OneDrive\AppsBackups\Plex\PlexBackup.ps1:3118 char:13

  •         LogException $_
    
  •         ~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,LogException

Restoring special subfolders.
Copying folder:
C:\Users\MAIN\OneDrive\AppsBackups\Plex\20200731035027\4\Plug-in Support\Data\com.plexapp.system\DataItems\Deactivated
to:
C:\Users\MAIN\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.system\DataItems\Deactivated
at:
2020/07/31 04:11:29.830
Completed at:
2020/07/31 04:11:29.850
Starting Plex service(s):
Plex Update Service
Starting Plex Media Server process:
C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
Script ended at:
2020/07/31 04:11:30.324
Script ran for (hr:min:sec.msec):
00:21:03.192
Script returned:
SUCCESS
Done.
PS C:\Users\MAIN\OneDrive\AppsBackups\Plex>

Backup.err.log

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Yes, you can ignore it for now. Just make sure your backup files are of reasonable size. I will handle the missing registry key better later. Also check the Plex1.reg file to make sure it's backed up.

from plexbackup.

alekdavis avatar alekdavis commented on July 19, 2024

Fixed the registry issue in v2.0.0.

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.