Octopus tentacles SamplerZip

Hi I am trying to run sampler.exe to test out the template samplers from command prompt and its features. I am getting an error as below.

Can you please assist. I tried deleting cookies, refreshed, signedout and signed back in. Still no help.

Octopus Deploy Sampler, version 1.0.0+Branch.master.Sha.ba1f804e5853756694f44c96851e65a216799266
Beginning operation 807c489c-a688-409f-8854-3f651f6f1a4e: MultiTenantSampleCommand
Handshaking with Octopus server http://octopusdeploy-XXX
Signing in using basic authentication as XXX
Handshake successful. Octopus version: 2018.7.0; API version: 3.0.0
Authenticated as: Mamidala, Srikanth SMamidala@XXXX.COM (a user account)
Building multi-tenant sample with 20 projects, 50 customers and 10 testers…
Ensuring multi-tenant deployments are enabled…
Completed operation 807c489c-a688-409f-8854-3f651f6f1a4e: MultiTenantSampleCommand in 00:00:06.7648077 (6764 ms)
Error from Octopus server (HTTP 403): A required anti-forgery token was not supplied or was invalid. If you are using a browser, please refresh your browser page, t
d sign back in to Octopus Deploy again. If you are using the API directly please consider using an API Key for authentication. If you are using a tool provided by Oc
ease upgrade to the latest version of that tool and try again.

I was able to get past the above issue using the apikey but got struck at a different step now.

Projects were build fine but not these testers thing.

[11:15:11 INF] Building 10 sample Testers…
[11:15:11 INF] Completed operation e54ab0ba-0cf0-414d-b656-9c8941d07cef: MultiTenantSampleCommand in 00:06:42.5454638 (402545 ms)
[11:15:11 ERR] The remote server returned an error: (407) Proxy Authentication Required.
System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at Octopus.Sampler.Commands.MultiTenantSampleCommand.d__29.MoveNext() in Z:\BuildAgent\work\1a7577022e49770c\source\Sampler\Commands\MultiTenan
d.cs:line 411
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Buffer1…ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at Octopus.Sampler.Commands.MultiTenantSampleCommand.Execute() in Z:\BuildAgent\work\1a7577022e49770c\source\Sampler\Commands\MultiTenantSampleCommand.cs:line 247
at Octopus.Sampler.Program.Main(String[] args) in Z:\BuildAgent\work\1a7577022e49770c\source\Sampler\Program.cs:line 44
Exit code: -3

It looks like the machine you are running the Sampler on requires Proxy authentication to reach the Internet. My guess is that the Sample app isn’t using the default proxy from the Operating System.

You need to add a file named Sampler.exe.config in the same folder as your Sampler.exe and then you can follow the steps on this page to enable the default proxy and it should work.

Thank you and kind regards,
Henrik

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.