Read my previous email first.
I was able to get the deployment to stop in the middle so I can examine the contents of the Work directory.
tectonic@tectonicsetup:~/.octopus/OctopusServer/Work/20170901040954-22635-1980$ ls -al
total 128
drwxrwxr-x 2 tectonic tectonic 4096 Sep 1 04:09 .
drwxrwxr-x 3 tectonic tectonic 4096 Sep 1 04:09 …
-rw-rw-r-- 1 tectonic tectonic 229 Sep 1 04:09 Bootstrap.931-4b85-8d54-07198accf057.src\provisionk8.sh
-rw-rw-r-- 1 tectonic tectonic 882 Sep 1 04:09 command.sh
-rw-rw-r-- 1 tectonic tectonic 22617 Sep 1 04:09 Configure.fa1-4d9c-9d6a-eaa67becd34b.sh
-rw-rw-r-- 1 tectonic tectonic 648 Sep 1 04:08 README.md
-rw-rw-r-- 1 tectonic tectonic 8655 Sep 1 04:08 src\appgatewaydeploy.json
-rw-rw-r-- 1 tectonic tectonic 153 Sep 1 04:08 src\command.sh
-rw-rw-r-- 1 tectonic tectonic 15 Sep 1 04:08 src\file.txt
-rw-rw-r-- 1 tectonic tectonic 4890 Sep 1 04:09 src\provisionk8.sh
-rw-rw-r-- 1 tectonic tectonic 13966 Sep 1 04:08 src\sntk8eastnp\terraform.tfvars
-rw-rw-r-- 1 tectonic tectonic 808 Sep 1 04:08 src\sntk8eastnp\vnet.parameters.json
-rw-rw-r-- 1 tectonic tectonic 13990 Sep 1 04:08 src\sntk8westnp\terraform.tfvars
-rw-rw-r-- 1 tectonic tectonic 803 Sep 1 04:08 src\sntk8westnp\vnet.parameters.json
-rw-rw-r-- 1 tectonic tectonic 2655 Sep 1 04:08 src\vnetdeploy.json
-rw-rw-r-- 1 tectonic tectonic 8614 Sep 1 04:09 variables.json
See the problem is that when calamari extracts the package it does not create directories. Instead of creating src directory with a file called command.sh it created a file called src\command.sh which is not valid.
If I use src\command.sh the script executes but creates invalid files.
If I use src/command.sh Octo cannot even find the command.sh file.
Rajinder Singh
Principal Cloud Specialist
Cheval Partners
Cell: 612 802 4156 | Email: rsingh@chevalpartners.commailto:rsingh@chevalpartners.com
Bloghttp://www.rajinders.com/ | LinkedInhttp://www.linkedin.com/in/singhrajinder/ | Twitterhttps://twitter.com/rajsinghper | Webhttp://www.chevalpartners.com/
From: Rajinder Singh rsingh@chevalpartners.com
Date: Thursday, August 31, 2017 at 10:59 PM
To: Shane Gill tender2+dd9e92b3ba@tenderapp.com
Subject: Re: SSH Target unable to extract files from package [Problems #57421]
In my case the package was created by Atlasssion Bamboo file zip plugin. Bamboo was running on windows server.
I changed the slash to forward slash.
Once I did that I got this error.
Executing script on ‘10.0.0.29’
August 31st 2017 22:13:05
Warning
OctopusPrintVariables is enabled. This should only be used for debugging problems with variables, and then disabled again for normal deployments.
August 31st 2017 22:13:08
Error
Could not find script file: /home/tectonic/.octopus/OctopusServer/Work/20170901031302-22628-1935/src/provisionk8.sh
[cid:image001.png@01D322AF.A95BC020]
I took command.sh and file.txt from your package and added it to my bitbucket repo.
I got this error
Could not find script file: /home/tectonic/.octopus/OctopusServer/Work/20170901034833-22632-1938/src/command.sh
I logged into the Linux VM and manually extracted the package using unzip command
I do see these files
-rw-rw-r-- 1 tectonic tectonic 8655 Sep 1 03:46 appgatewaydeploy.json
-rw-rw-r-- 1 tectonic tectonic 153 Sep 1 03:46 command.sh
-rw-rw-r-- 1 tectonic tectonic 15 Sep 1 03:46 file.txt
-rw-rw-r-- 1 tectonic tectonic 4888 Sep 1 03:46 provisionk8.sh
drwxrwxr-x 2 tectonic tectonic 4096 Sep 1 03:55 sntk8eastnp
drwxrwxr-x 2 tectonic tectonic 4096 Sep 1 03:55 sntk8westnp
-rw-rw-r-- 1 tectonic tectonic 2655 Sep 1 03:46 vnetdeploy.json
Rajinder Singh
Principal Cloud Specialist
Cheval Partners
Cell: 612 802 4156 | Email: rsingh@chevalpartners.commailto:rsingh@chevalpartners.com
Bloghttp://www.rajinders.com/ | LinkedInhttp://www.linkedin.com/in/singhrajinder/ | Twitterhttps://twitter.com/rajsinghper | Webhttp://www.chevalpartners.com/