Skip to content

Instantly share code, notes, and snippets.

@txag1995
Created July 29, 2015 18:58
Show Gist options
  • Save txag1995/3b100cf33b2222fd54fb to your computer and use it in GitHub Desktop.
Save txag1995/3b100cf33b2222fd54fb to your computer and use it in GitHub Desktop.
Decode-Base64File Error
D [FileTransporter] Wrote chunk 1325 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1350 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1375 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1400 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1425 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1450 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1475 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [CommandExecutor] Resetting WinRM shell (Max command limit is 1498)
D [FileTransporter] Wrote chunk 1500 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1525 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1550 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1575 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1600 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1625 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1650 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1675 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1700 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Wrote chunk 1725 for $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt
D [FileTransporter] Finished uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-7gg2yp.zip to encoded tmpfile $env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt (13930.64 KB over 1742 chunks) in (5m1.46s)
D [FileTransporter] Uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-1hntn87.zip to encoded tmpfile $env:TEMP\b64-2944607392c9435832dcd498d4c699ea.txt
D [FileTransporter] Wrote chunk 25 for $env:TEMP\b64-2944607392c9435832dcd498d4c699ea.txt
D [FileTransporter] Finished uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-1hntn87.zip to encoded tmpfile $env:TEMP\b64-2944607392c9435832dcd498d4c699ea.txt (226.1 KB over 29 chunks) in (0m5.38s)
D [FileTransporter] File $env:TEMP\kitchen\dna.json is up to date, skipping
D [FileTransporter] Uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-125suy2.zip to encoded tmpfile $env:TEMP\b64-b1e33ca18053d511c3c867127ed4267c.txt
D [FileTransporter] Finished uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-125suy2.zip to encoded tmpfile $env:TEMP\b64-b1e33ca18053d511c3c867127ed4267c.txt (14.236 KB over 2 chunks) in (0m0.63s)
D [FileTransporter] Uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-1bljml6.zip to encoded tmpfile $env:TEMP\b64-0f52cfddbbeaa6c80e1da3a40ef3a1cd.txt
D [FileTransporter] Finished uploading C:/Users/bryan/AppData/Local/Temp/tmpzip-20150729-6716-1bljml6.zip to encoded tmpfile $env:TEMP\b64-0f52cfddbbeaa6c80e1da3a40ef3a1cd.txt (11.228 KB over 2 chunks) in (0m0.61s)
D [FileTransporter] File $env:TEMP\kitchen\validation.pem is up to date, skipping
D [FileTransporter] Running decode_files.ps1
D [FileTransporter] @{
D [FileTransporter] "$env:TEMP\b64-d29bab678727370508dabd697352eb8a.txt" = @{
D [FileTransporter] "dst" = "$env:TEMP\kitchen";
D [FileTransporter] "tmpzip" = "$env:TEMP\tmpzip-d29bab678727370508dabd697352eb8a.zip"
D [FileTransporter] };
D [FileTransporter] "$env:TEMP\b64-2944607392c9435832dcd498d4c699ea.txt" = @{
D [FileTransporter] "dst" = "$env:TEMP\kitchen";
D [FileTransporter] "tmpzip" = "$env:TEMP\tmpzip-2944607392c9435832dcd498d4c699ea.zip"
D [FileTransporter] };
D [FileTransporter] "$env:TEMP\b64-b1e33ca18053d511c3c867127ed4267c.txt" = @{
D [FileTransporter] "dst" = "$env:TEMP\kitchen";
D [FileTransporter] "tmpzip" = "$env:TEMP\tmpzip-b1e33ca18053d511c3c867127ed4267c.zip"
D [FileTransporter] };
D [FileTransporter] "$env:TEMP\b64-0f52cfddbbeaa6c80e1da3a40ef3a1cd.txt" = @{
D [FileTransporter] "dst" = "$env:TEMP\kitchen";
D [FileTransporter] "tmpzip" = "$env:TEMP\tmpzip-0f52cfddbbeaa6c80e1da3a40ef3a1cd.zip"
D [FileTransporter] }
D [FileTransporter] }
D Cleaning up local sandbox in C:/Users/bryan/AppData/Local/Temp/primary-windows-2012r2-sandbox-20150729-6716-1x5crzu
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #converge action: [[WinRM::Transport::FileTransporter] Upload failed (exitcode: 1)
Decode-Base64File : Instance is read-only.
At line:20 char:5
+ Decode-Base64File $tmp $decoded
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Decode-Base64File], InvalidOp
erationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Decode-Base64Fi
le
]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
D ------Exception-------
D Class: Kitchen::ActionFailed
D Message: Failed to complete #converge action: [[WinRM::Transport::FileTransporter] Upload failed (exitcode: 1)
Decode-Base64File : Instance is read-only.
At line:20 char:5
+ Decode-Base64File $tmp $decoded
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Decode-Base64File], InvalidOp
erationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Decode-Base64Fi
le
]
D ---Nested Exception---
D Class: WinRM::Transport::FileTransporterFailed
D Message: [WinRM::Transport::FileTransporter] Upload failed (exitcode: 1)
Decode-Base64File : Instance is read-only.
At line:20 char:5
+ Decode-Base64File $tmp $decoded
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Decode-Base64File], InvalidOp
erationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Decode-Base64Fi
le
D ------Backtrace-------
D C:/Users/bryan/.chefdk/gem/ruby/2.1.0/gems/winrm-transport-1.0.2/lib/winrm/transport/file_transporter.rb:384:in `parse_response'
D C:/Users/bryan/.chefdk/gem/ruby/2.1.0/gems/winrm-transport-1.0.2/lib/winrm/transport/file_transporter.rb:260:in `decode_files'
D C:/Users/bryan/.chefdk/gem/ruby/2.1.0/gems/winrm-transport-1.0.2/lib/winrm/transport/file_transporter.rb:96:in `block in upload'
D C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
D C:/Users/bryan/.chefdk/gem/ruby/2.1.0/gems/winrm-transport-1.0.2/lib/winrm/transport/file_transporter.rb:87:in `upload'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:118:in `upload'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:68:in `block in call'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/base.rb:79:in `initialize'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:422:in `new'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:422:in `create_new_connection'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/transport/winrm.rb:62:in `connection'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/provisioner/base.rb:64:in `call'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:366:in `block in converge_action'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `call'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:488:in `synchronize_or_call'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:453:in `block in action'
D C:/opscode/chefdk/embedded/lib/ruby/2.1.0/benchmark.rb:279:in `measure'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:452:in `action'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:362:in `converge_action'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:341:in `block in transition_to'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `each'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:340:in `transition_to'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/instance.rb:138:in `converge'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `public_send'
D C:/opscode/chefdk/embedded/apps/test-kitchen/lib/kitchen/command.rb:176:in `block (2 levels) in run_action'
D C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
D C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
D ----------------------
D [CommandExecutor] closing remote shell A4954C79-9B7D-40DB-B92F-BA5F624ED9FA on plaintext::http://192.168.1.110:5985/wsman<{:disable_sspi=>true, :basic_auth_only=>true, :user=>"Administrator", :pass=>"ChefDev!123"}>
D [CommandExecutor] remote shell A4954C79-9B7D-40DB-B92F-BA5F624ED9FA closed
PS C:\Users\bryan\repos\deployinator\cookbooks\yellowfin>
@csallen1204
Copy link

Did you ever figure out why you got the base64 decode error? I've been running into the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment