Giter VIP home page Giter VIP logo

Comments (5)

gitlabbin avatar gitlabbin commented on July 1, 2024

error logs in service now target box:
Looks like the Business Rule abort the api /api/devops/v1/cicd/pull call

Operation against file 'sys_update_set_source' was aborted by Business Rule 'Validate Connection^1d7981a6dbbb6b4421972db61496196d'. Business Rule Stack:Validate Connection


20:17:21.773 | Info | API_INT-thread-2 | 1D7905EEDB7B6B4421972DB61496194B | txid=157905eedb7b Background message, type:error, message: A remote instance with the same instance id already exists.
-- | -- | -- | -- | --
20:17:21.773 | Info | API_INT-thread-2 | 1D7905EEDB7B6B4421972DB61496194B | txid=157905eedb7b Operation against file 'sys_update_set_source' was aborted by Business Rule 'Validate Connection^1d7981a6dbbb6b4421972db61496196d'. Business Rule Stack:Validate Connection
20:17:21.773 | Info | API_INT-thread-2 | 1D7905EEDB7B6B4421972DB61496194B | txid=157905eedb7b Slow business rule 'Validate Connection' on sys_update_set_source:7a228ade330c9d94249617d7017f7ca0, time was: 0:00:00.237
20:17:21.789 | Info | API_INT-thread-2 | 1D7905EEDB7B6B4421972DB61496194B | txid=157905eedb7b #24499729 [REST API] RESTAPIProcessor : Source Creation Failed
20:17:21.789 | Info | API_INT-thread-2 | 1D7905EEDB7B6B4421972DB61496194B | txid=157905eedb7b *** End #24499729 /api/devops/v1/cicd/pull, user: svc_cicd, total time: 0:00:00.282, processing time: 0:00:00.282, SQL time: 0:00:00.027 (count: 29), business rule: 0:00:00.237 (count: 1), ACL time: 0:00:00.001, Cache build time: 0:00:00.001 , type:rest, method:POST, api_name:devops/cicd, resource:devops/v1/cicd/pull, version:v1, user_id:ae51b9c2dbdbeb8421e95d87f49619e1, response_status:666


from sn-cicd-integration.

bmoers avatar bmoers commented on July 1, 2024

admin is sufficient :-)

guess the host 'https://dummytest.service-now.com/' does not exist. (this is taken from the initial run request on an update set.)

from sn-cicd-integration.

gitlabbin avatar gitlabbin commented on July 1, 2024

That's not real log file, I replaced some sensitive server information.

Saw some docs mention "Business Rule " validateConnection
https://community.servicenow.com/community?id=community_blog&sys_id=20dc2665dbd0dbc01dcaf3231f9619ed

If you were to bypass the validation you would have to also modify or temporarily disable the business rule "Validate Connection" that refers to GlideUpdateSetWorker on the sys_update_set_source table. There is very little documentation on GlideUpdateSetWorker.

from sn-cicd-integration.

bmoers avatar bmoers commented on July 1, 2024

pls on target env. comment 'source.deleteRecord();' on line https://github.com/bmoers/sn-cicd-integration/blob/master/script_include/CiCdDeploy.js#L318 and run again.
It then will not remove the source definition on the target on failure.

My guess is that its using the non admin CI user in the source definition to connect.
Pleas let me know.

Anyway, the deployment part is somehow not transparent enough. I'm currently working on this as mentioned in bmoers/sn-cicd#5.

from sn-cicd-integration.

gitlabbin avatar gitlabbin commented on July 1, 2024

thanks for your reply, will try it out.

from sn-cicd-integration.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.