Hi @jon.vansteen
Thanks you for your help with this issue. I have reached out to our network security team. I want to be armed with information and explain to them why I think it's a network issue when they get back to me.
I am able to successfully use the version command on Command Terminal and in Powershell but that call fails when it happens within the archy setup command across both types of terminals.
I can successfully make the curl call directly in Window Powershell. However, I still get the same error upon accessing the properties URL when the call is made within the Archy setup.
I am pasting below the log of the latest attempt. I have tried using both Command Prompt and Powershell with and without elevated privileges.
To gather the questions in one place:
- Would I be able to make a successful version call or curl call if there was a proxie issue--do these successful calls rule out a proxie issue and a network issue?
- If we cannot rule out a Proxie issue, it seems that you were able to tell that it was a proxie issue in a past discussion after looking at the log. Where do you look for that?
- That I am able to make the version and curl command successfully outside of the setup command makes me wonder if the issue is specific to configuring the setup. Are there are any options/flags I can set when running the archy setup command?
- I am confident that I have responded correctly to the prompts while archy setup is running (debug=true; location=where our instance is hosted; clientId copied from OAuth client I created; clientSecret copied from OAuth client I created; authToken: no value entered). Is there a need to see if the OAuth Client was configured correctly (roles and permissions)?
Best,
Waqar
2022-11-30T23:04:23.891Z: [DEBUG] readline - answer was 'Y'
2022-11-30T23:04:23.893Z: [INFO] getting ready to run refresh command.
2022-11-30T23:04:23.893Z: [INFO] processing the configuration setting 'homeDir'.
2022-11-30T23:04:23.896Z: [INFO] getting the value for the setting 'homeDir' from the Archy configuration file.
2022-11-30T23:04:23.899Z: [INFO] processing the configuration setting 'authToken'.
2022-11-30T23:04:23.900Z: [INFO] processing the configuration setting 'authTokenIsClientCredentials'.
2022-11-30T23:04:23.900Z: [DEBUG] the 'authTokenIsClientCredentials' value is being set to the default value 'false' since no value was specified on a command line parameter, options file or in the archy_config file.
2022-11-30T23:04:23.901Z: [INFO] processing the configuration setting 'clientId'.
2022-11-30T23:04:23.902Z: [INFO] getting the value for the setting 'clientId' from the Archy configuration file.
2022-11-30T23:04:23.903Z: [INFO] processing the configuration setting 'clientSecret'.
2022-11-30T23:04:23.903Z: [INFO] getting the value for the setting 'clientSecret' from the Archy configuration file.
2022-11-30T23:04:23.904Z: [INFO] processing the configuration setting 'location'.
2022-11-30T23:04:23.904Z: [INFO] getting the value for the setting 'location' from the Archy configuration file.
2022-11-30T23:04:23.905Z: [INFO]
2022-11-30T23:04:23.906Z: [INFO]
2022-11-30T23:04:23.906Z: [INFO] *****************************************************************************************
2022-11-30T23:04:23.907Z: [INFO] Runtime Input Values
2022-11-30T23:04:23.908Z: [INFO] *****************************************************************************************
2022-11-30T23:04:23.908Z: [INFO]
2022-11-30T23:04:23.909Z: [INFO]
2022-11-30T23:04:23.920Z: [INFO] version: '2.15.2'
2022-11-30T23:04:23.921Z: [INFO]
2022-11-30T23:04:23.922Z: [INFO] homeDir: 'c:\Development\genesys\archy\archyHome'
2022-11-30T23:04:23.922Z: [INFO] source - config file: 'C:\Users\waqarm.archy_config'
2022-11-30T23:04:23.923Z: [INFO]
2022-11-30T23:04:23.923Z: [INFO] running refresh command.
2022-11-30T23:04:23.925Z: [INFO] - setting the endTerminatesProcess to falsee[36m -- [ArchSession, ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:23.925Z: [INFO]
2022-11-30T23:04:23.928Z: [INFO] startup Mode: Using client ID and secret. Treating as client credentials grant.
2022-11-30T23:04:23.929Z: [INFO]
2022-11-30T23:04:23.930Z: [INFO] - setting session status to 'running'.e[36m -- [ArchSession, ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:23.931Z: [INFO] - architect scripting version: 0.34.1e[36m -- [ArchSession, ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:23.931Z: [INFO] - core environment configuration. env: 'prod', host: 'apps.mypurecloud.de', region: 'eu-central-1', clientId: 'xxxx', clientSecret: 'xxxx', isClientCredentialsOAuthClient: 'true'e[36m -- [ArchSession, ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:23.932Z: [INFO] - getting discovery properties...e[36m -- [ArchSession, ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:23.933Z: [INFO] - calling urle[36m -- [GET::https://apps.mypurecloud.de/services/discovery.properties]e[39m
2022-11-30T23:04:24.166Z: [ERROR] - ERROR! Unable to read discovery properties. Exception info: {"isRequestError":true,"response":{"code":"SELF_SIGNED_CERT_IN_CHAIN"},"status":0,"statusText":"","name":"Request Error","message":"self signed certificate in certificate chain (SELF_SIGNED_CERT_IN_CHAIN)","code":"SELF_SIGNED_CERT_IN_CHAIN","isAborted":false} ending the Session. Setting the exit code to 99.e[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.172Z: [INFO] - waiting for any pending work to complete before ending the sessione[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.172Z: [INFO] - setting session status to 'ended'.e[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.173Z: [INFO] - waiting for any pending work to complete before ending the sessione[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.174Z: [INFO] - ending with exit code: 99e[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.174Z: [INFO] - the session is ending but is not configured to terminate the process in which it is running.e[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.175Z: [INFO] - resolving session start promise.e[36m -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.de', Region:'eu-central-1', ArchSessionId:'SJ9BZDHvj']e[39m
2022-11-30T23:04:24.175Z: [ERROR] setting the Archy exit code to 116
2022-11-30T23:04:24.176Z: [ERROR] An error occurred.
2022-11-30T23:04:24.176Z: [INFO]
2022-11-30T23:04:24.183Z: [INFO]
2022-11-30T23:04:24.184Z: [INFO] *****************************************************************************************
2022-11-30T23:04:24.185Z: [INFO] Archy - Architect Yaml Flow Processor ver. 2.15.2 - Failure
2022-11-30T23:04:24.185Z: [INFO] *****************************************************************************************
2022-11-30T23:04:24.186Z: [INFO] DateTime: Wed Nov 30 2022 15:04:24 GMT-0800 (Pacific Standard Time)
2022-11-30T23:04:24.186Z: [INFO]
2022-11-30T23:04:24.187Z: [INFO] Summary
2022-11-30T23:04:24.187Z: [INFO]
2022-11-30T23:04:24.188Z: [INFO] Command: 'setup'
2022-11-30T23:04:24.188Z: [INFO]
2022-11-30T23:04:24.189Z: [INFO] Configuration Settings File
2022-11-30T23:04:24.189Z: [INFO] C:\Users\waqarm.archy_config
2022-11-30T23:04:24.189Z: [ERROR] unable to authenticate with the supplied client ID and secret. Are they valid and is the OAuth client set up with a client credentials grant?
2022-11-30T23:04:24.190Z: [INFO]
2022-11-30T23:04:24.190Z: [ERROR] error(s) encountered.
2022-11-30T23:04:24.191Z: [ERROR] - Architect Scripting errors will be listed above.
2022-11-30T23:04:24.191Z: [INFO]
2022-11-30T23:04:24.192Z: [INFO] Log: c:\Development\genesys\archy\archyHome\debug\archy-debug-2022-11-30T23.03.30.027Z.txt
2022-11-30T23:04:24.340Z: [INFO] did not fetch versions successfully ( attempt 1 out of 3 ), retrying.
2022-11-30T23:04:25.354Z: [DEBUG] version fetch error: Error: self signed certificate in certificate chain
2022-11-30T23:04:25.362Z: [INFO] execution complete.
2022-11-30T23:04:25.365Z: [ERROR]
2022-11-30T23:04:25.375Z: [ERROR] exit code: 116
2022-11-30T23:04:25.376Z: [INFO]
2022-11-30T23:04:25.377Z: [DEBUG] ensureDirectoryExists - the directory 'c:\Development\genesys\archy\archyHome\debug' exists.
2022-11-30T23:04:25.377Z: [DEBUG] Writing log contents to 'c:\Development\genesys\archy\archyHome\debug\archy-debug-2022-11-30T23.03.30.027Z.txt'.