Open powertronglobal opened 9 years ago
Hmm, that's on the log function that runs at the end of the script. Does your snapshot get created?
wow that was fast. Snapshot doesn’t get created.
I was setting this other backup script up yesterday: https://github.com/noahlh/aws-automated-backup-powershell ran it today and it stopped working , which lead me to your solution looking for another. Maybe its a problem with aws. I’ll give it a shot again in the morning. Your solution looked really clean and was hoping it would work.
thanks for the reply.
On Sep 23, 2015, at 4:04 PM, Jason Boeshart notifications@github.com<mailto:notifications@github.com> wrote:
Hmm, that's on the log function that runs at the end of the script. Does your snapshot get created?
— Reply to this email directly or view it on GitHubhttps://github.com/CaseyLabs/aws-ec2-ebs-automatic-snapshot-powershell/issues/6#issuecomment-142727553.
ELECTRONIC COMMUNICATION DISCLAIMER The information contained in this email and any attachments is confidential and intended solely for the use of the named addressee(s). Any unauthorized use, copying, disclosure, or distribution of this information is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail. Copyright Powertron Global, LLC 2012.
@powertronglobal What was the outcome? I'm getting the same thing today.
C:>powershell.exe -ExecutionPolicy Bypass -file "C:\aws\3-ebs-snapshot.ps1"
An error occurred (UnauthorizedOperation) when calling the DescribeVolumes opera tion: You are not authorized to perform this operation.
Write-EventLog : Cannot validate argument on parameter 'Message'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try the command again. At C:\aws\3-ebs-snapshot.ps1:39 char:101
- CategoryInfo : InvalidData: (:) [Write-EventLog], ParameterBind
ingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
Shell.Commands.WriteEventLogCommand
Script complete. Results written to the Event Log (check under Applications, Eve nt ID 1377). -> end backup -> ->
C:>
When I run it by hand I get an access error. Hmm... C:\Program Files\Amazon\AWSCLI>aws ec2 describe-volumes
An error occurred (UnauthorizedOperation) when calling the DescribeVolumes opera tion: You are not authorized to perform this operation.
C:\Program Files\Amazon\AWSCLI>
This error seems to correspond...and I don't see any EID1377 entries.
The machine-default permission settings do not grant Local access permission to the COM Server application C:\Windows\Explorer.EXE with APPID Unavailable to the user NT AUTHORITY\LOCAL SERVICE SID (S-1-5-19) from address LocalHost (Using LRPC). This security permission can be modified using the Component Services administrative tool.
I just realized that the error above says Event ID 1337 and 1377, but neither actually show up.
Snapshot" -EntryType $type -EventID 1337 -Message $global:log_message esults written to the Event Log (check under Applications, Event ID 1377).
Followed setup instructions, when I run it , it starts runs for about 1 min and throws this error. Any ideas?
Write-EventLog : Cannot validate argument on parameter 'Message'. The argument is null, empty, or an element of the argument collection contains a null value. Supply a collection that does not contain any null values and then try t command again. At C:\aws\3-ebs-snapshot.ps1:39 char:101