bmoers / sn-cicd-example-v3

Example implementation of https://github.com/bmoers/sn-cicd V3
10 stars 24 forks source link

Build not working. #10

Open nejifresh opened 4 years ago

nejifresh commented 4 years ago

I have tried to get this working on instances running New York. The mid servers were setup using Docker and the application is running. Nothing happens when i click BUILD THIS APPLICATION from ServiceNow.

I have attached my .env file here. neji_example.env.txt

bmoers commented 4 years ago

Hi Neji Please describe your setup. What ServiceNow environments do you have? What are the CiCd integration properties? CICD Server host / Ip MID server host / ip

Please also share the CiCd server console log and the service now logs (messages starting with [CI) Thanks Boris

bmoers commented 4 years ago

Short side note Please use the latest version https://github.com/bmoers/sn-cicd-example (v4) in combination with https://github.com/bmoers/sn-cicd-integration/blob/master/update_set/CICD%20Integration.xml (1.4.2.0)

nejifresh commented 4 years ago

Hi Boris,

I am also using v4 for mid server and cicd integration.

The logs from CICD server console: [14:39:39.553] [LOG] [534] INIT mode worker [14:39:39.554] [LOG] [534] initializing :: worker [14:39:39.562] [LOG] [535] initialized :: worker [14:39:39.569] [LOG] [535] Event Bus Worker Created [14:39:39.628] [LOG] [534] INIT db-type socket [14:39:39.654] [LOG] [534] initialized :: worker [14:39:39.686] [LOG] [534] Event Bus Worker Created [14:39:39.966] [LOG] [533] Worker connected [14:39:39.975] [LOG] [533] worker-started :: /worker#NVOk572i_gcRNRVzAAAA [14:39:39.983] [LOG] [536] Worker connected [14:39:40.007] [LOG] [536] worker-started :: /worker#-dDLUoJ0GGpfdw0zAAAB [14:39:40.008] [LOG] [526] /worker#NVOk572i_gcRNRVzAAAA has connected (/worker/register). Total nodes: 1 [14:39:40.055] [LOG] [526] /worker#-dDLUoJ0GGpfdw0zAAAB has connected (/worker/register). Total nodes: 2 [14:39:40.072] [LOG] [533] [/worker#NVOk572i_gcRNRVzAAAA] Worker: copy environment variables from server #59 [14:39:40.077] [LOG] [536] [/worker#-dDLUoJ0GGpfdw0zAAAB] Worker: copy environment variables from server #59 [14:39:40.096] [LOG] [535] Worker connected [14:39:40.100] [LOG] [535] worker-started :: /worker#E_YMMDJSn7Up8u-PAAAC [14:39:40.102] [LOG] [526] /worker#E_YMMDJSn7Up8u-PAAAC has connected (/worker/register). Total nodes: 3 [14:39:40.110] [LOG] [535] [/worker#E_YMMDJSn7Up8u-PAAAC] Worker: copy environment variables from server #59 [14:39:40.136] [LOG] [534] Worker connected [14:39:40.139] [LOG] [534] worker-started :: /worker#rx7HpvjcNJmwbpYUAAAD [14:39:40.146] [LOG] [526] /worker#rx7HpvjcNJmwbpYUAAAD has connected (/worker/register). Total nodes: 4 [14:39:40.155] [LOG] [534] [/worker#rx7HpvjcNJmwbpYUAAAD] Worker: copy environment variables from server #59  

nejifresh commented 4 years ago

PS: When i trigger a build from ServiceNow, i observed the following error message in system log.

com.glide.ecc.ECCResponseTimeoutException: No response for ECC message request with sysid=28563ab7dba60010df8cab7dca961960 after waiting for 30 seconds in ECC Queue

UPDATE: After opening up iP ranges for mid server, new error message: *** Script: [CiCdRun] request ended in error - StatusCode 0, ResponseMessage: The request failed: java.net.ConnectException: Connection refused (Connection refused) when posting to http://localhost:8443/run, Endpoint: http://localhost:8443/run, RequestBody: [object Object]: no thrown error

Will keep debugging.

bmoers commented 4 years ago

Hi Neji

The CICD server can not be reached under http://localhost:8443 as 'localhost' is the MID server (unless you run MID and CICD server on the same host)

If you use the example docker setup, set the CICD server to http://cicd:8443 (the container gets the name by default from the service https://github.com/bmoers/sn-cicd-example/blob/release/4/docker-compose.yml#L11)

Cheers Boris