Cyberark- ServiceNow Ticketing Connection Error.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Cyberark- ServiceNow Ticketing Connection Error.

L2 Linker

Hello,

I configured cyberark to use company certificate. We need to connect to the ticketing system called ServiceNow. However we are getting "Invalid TIcket ID" in the gui/pvwa and as shown in the session logs there is many errors we cannot seem to solve. I disabled ssl, and other tls to use ony tls1.2 but still it wont work.

Has anyone found a solution for this?

 

 

logs before tls1.2 was enabled:

[09/10/2019 | 14:52:32.054239] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] RestConnector::ConnectAndRetriveTicketInformation()->Sending message: GET https://bupaidam.service-now.com/api/now/table/change_request?sysparm_limit=1&number=CHG0044986&sysparm_display_value=true [09/10/2019 | 14:52:32.102436] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] RestConnector::GetResponse()->START [09/10/2019 | 14:52:32.102791] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] RestConnector::GetResponse()->Get response from Web Service [09/10/2019 | 14:52:32.178406] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [ERROR] RestConnector::GetResponse()->System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) --- End of inner exception stack trace --- at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at CyberArk.TicketingSystemUtils.RestConnector.GetResponse(WebRequest WebReq) [09/10/2019 | 14:52:32.181715] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [ERROR] ConnectionLogic::SubmitRequest()->Failed to retrieve ticket information. [09/10/2019 | 14:52:32.182268] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [ERROR] TicketValidator::ValidateTicket()->Exception: System.Exception: A connection error occurred while communicating with the ticketing system. Please check the communication settings. ---> System.NullReferenceException: Object reference not set to an instance of an object. at CyberArk.TicketingSystemUtils.RestConnector.GetResponse(WebRequest WebReq) at CyberArk.TicketingSystemUtils.RestConnector.ConnectAndRetriveTicketInformation(String serviceURI, String username, String password, String ProxyUser, String ProxyPass) at CyberArk.ServiceNow.ConnectionLogic.SubmitRequest(IRequest request) --- End of inner exception stack trace --- at CyberArk.ServiceNow.ConnectionLogic.SubmitRequest(IRequest request) at CyberArk.ServiceNow.TicketValidator.ValidateTicket(IValidationParametersEx parameters, ITicketOutput& ticketingOutput) [09/10/2019 | 14:52:32.183259] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] CommonFunctions::RemoveSpecialCharacters()->START [09/10/2019 | 14:52:32.183549] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] CommonFunctions::RemoveSpecialCharacters()->END [09/10/2019 | 14:52:32.183893] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] TicketValidator::ValidateTicket()->Ticket was rejected [09/10/2019 | 14:52:32.184144] | {pid= 3144} | {tid= 3632} | :: | EPVBL001D [Ticketing system ServiceNow] [INFO] TicketValidator::ValidateTicket()->END [09/10/2019 | 14:52:32.188420] | {pid= 3144} | {tid= 3632} | :: | PASWS090E Input parameter for [TicketID] value is invalid. A connection error occurred while communicating with the ticketing system. Please check the communication settings. [09/10/2019 | 14:52:32.189496] | {pid= 3144} | {tid= 3632} | :: | PASWS002I Ending method Accounts::Retrieve [09/10/2019 | 14:52:32.200373] | {pid= 3144} | {tid= 3632} | :: | PASWS001I Starting method GeneralExceptionAttribute::OnException [09/10/2019 | 14:52:32.201591] | {pid= 3144} | {tid= 3632} | :: | PASWS001E Error occurred: PASWS090E Input parameter for [TicketID] value is invalid. A connection error occurred while communicating with the ticketing system. Please check the communication settings. [09/10/2019 | 14:52:32.202127] | {pid= 3144} | {tid= 3632} | :: | CyberArk.PasswordVault.PASWebServices.ValidationParameterException: PASWS090E Input parameter for [TicketID] value is invalid. A connection error occurred while communicating with the ticketing system. Please check the communication settings. ---> aht: A connection error occurred while communicating with the ticketing system. Please check the communication settings. at aiw.a(RetrievePasswordData A_0, PVPassword A_1, Boolean A_2) at CyberArk.PasswordVault.PASWebServices.Versioned.v10_10.Controllers.AccountsController.Content(String accountId, AccountContentPrerequsites accountContentPrerequisites) --- End of inner exception stack trace --- at CyberArk.PasswordVault.PASWebServices.Utils.PasswordRetrieveErrorHandler.HandleContentTicketingException(Exception ex) at CyberArk.PasswordVault.PASWebServices.Versioned.v10_10.Controllers.AccountsController.Content(String accountId, AccountContentPrerequsites accountContentPrerequisites) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

 

7 REPLIES 7

L6 Presenter

@Lokhilesh Takoor​ Is this issue still open? You can probably, check if you are able to open the servicenow url from PVWAs. Generally Servers' infra are not allowed to open internet based urls in many organizations. If you are able to get through it from PVWA, then you can also check enabling TLS1.2 as well. you probably will get some idea..

We had a similar problem where the ServiceNow urls were not accessible from PVWA servers & we allowed to access servicenow urls through Proxy/firewall. it worked.

L2 Linker

​Hello THis issue has been resolved. The Issue was a combination of Networking Issues where the Palo Alto firewall needed the service-now app added to the firewall rule. Also the Service Now engineer created a ticket on which Cyberark communicated with.

 

Also be mindful of the configurations in the Ticket parameters.

L2 Linker

​I could not find this ticket in my profile can someone add this as a feature to ones profile? thanks.

​thanks I added a response, the TLS value was verified and it is a dependency in order for the integration to work. I disabled SSL 2 and 3 and only allowed TLS 1.2

L1 Bithead

Can you share what permissions in ServiceNow you gave to the serviceaccount used for integration? I have given ITIL but still getting 401 unauthorized error.

L2 Linker

@sunny ajmera​ -- I'm getting same error after 14.2 upgrade, did you fix this error?

L7 Applicator

Hi @Siva Adigopula​ 

 

In my experience, the account in ServiceNow only needs read-only access.

  • 2039 Views
  • 7 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!