Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build not working. #10

Open
nejifresh opened this issue Jan 31, 2020 · 5 comments
Open

Build not working. #10

nejifresh opened this issue Jan 31, 2020 · 5 comments
Assignees

Comments

@nejifresh
Copy link

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
Copy link
Owner

bmoers commented Jan 31, 2020

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 bmoers self-assigned this Jan 31, 2020
@bmoers
Copy link
Owner

bmoers commented Jan 31, 2020

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
Copy link
Author

nejifresh commented Jan 31, 2020

Hi Boris,

  • My setup are 2 instances running New York. The dev instance and the prod instance both have the CICD Integration application installed.
  • The Mid Server is a docker container running on my local machine. I've set it up and it's connected to the Dev Instance. (I'm attaching images)
  • The CICD integration properties are as follows:
    • Everything is set to YES
  • CICD Server host name is set to http://localhost:8443.
  • MID SERVER Host is 172.20.10.2, i am able to ping. I left the name as empty so the first mid server is picked.

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
Copy link
Author

nejifresh commented Jan 31, 2020

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
Copy link
Owner

bmoers commented Feb 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants