I'm trying to provision a deployment group agent (vsts-agent-win-x64-2.170.1.zip) on a lab machine for an on-premises DevOps server. The registration script successfully completes, the VstsAgentAService runs, and I can see the agent in the deployment group (the machine is present and all the Capabilities are visible) but it appears Offline.
Even though the script was clearly able to communicate with the server to provide the Capabilities, things break down when it's the agent's turn.
Event Viewer (VstsAgentAService):
2022-05-16 18:19:32Z: Agent connect error: An error occurred while sending the request.. Retrying until reconnected.
_diag log:
[2022-05-16 18:15:59Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2022-05-16 18:15:59Z WARN VisualStudioServices] Attempt 1 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:15:59Z WARN VisualStudioServices] Attempt 1 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:15:59Z WARN VisualStudioServices] Attempt 1 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:10Z WARN VisualStudioServices] Attempt 2 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:10Z WARN VisualStudioServices] Attempt 2 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:10Z WARN VisualStudioServices] Attempt 2 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:23Z WARN VisualStudioServices] Attempt 3 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:23Z WARN VisualStudioServices] Attempt 3 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:24Z WARN VisualStudioServices] Attempt 3 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The operation will be retried[...]
[2022-05-16 18:16:40Z ERR VisualStudioServices] Attempt 4 of GET request to https://[url] failed (WinHttp Error: ERROR_WINHTTP_SECURE_FAILURE). The maximum number of attempts has been reached.
[2022-05-16 18:16:40Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2022-05-16 18:16:40Z INFO AgentServer] Catch exception during connect. 4 attempt left.
[2022-05-16 18:16:40Z ERR AgentServer] System.Net.Http.HttpRequestException: An error occurred while sending the request.
---> System.Net.Http.WinHttpException (80072F8F, 12175): Error 12175 calling WINHTTP_CALLBACK_STATUS_REQUEST_ERROR, 'A security error occurred'.
This is when I run the registration script with authentication type: negotiate. If I instead run the script using PAT, it fails right off the bat.
config.cmd:
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Error reported in diagnostic logs. Please examine the log for more details.
- C:\dev\azagent\_diag\Agent_20220516-174740-utc.log
TF400813: Resource not available for anonymous access. Client authentication required.
_diag log:
[2022-05-16 17:55:48Z WARN VisualStudioServices] Basic issued token provider instance 52136803 requires an interactive prompt which is not allowed by the current settings
[2022-05-16 17:55:48Z ERR VisualStudioServices] GET request to https://[url] is not authorized. Details: VS30063: You are not authorized to access https://[url].
[2022-05-16 17:55:48Z INFO VisualStudioServices] Finished operation Location.GetConnectionData
[2022-05-16 17:55:48Z INFO LocationServer] Catch exception during connect. 4 attempt left.
[2022-05-16 17:55:48Z ERR LocationServer] Microsoft.VisualStudio.Services.Common.VssUnauthorizedException: VS30063: You are not authorized to access https://[url].
If I go to the URL with Chrome (and enter my credentials), it dumps a bunch of "authenticatedUser" information. Clearly the server is happy with my credentials.
Does anyone know what's going on? What am I missing to make the sever recognize the agent beyond the initial registration?
Related
I am following the documentation at
https://console.bluemix.net/docs/services/Registry/index.html#registry_images_pushing
But Unable to push image to IBM container registry
**1. Login to container service **
bx cr login
Logging in to 'registry.ng.bluemix.net'...
FAILED
Failed to 'docker login' to 'registry.ng.bluemix.net' with error: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get https://registry.ng.bluemix.net/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
.
That, specifically the line: Error response from daemon: Get https://registry.ng.bluemix.net/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers), indicates that your docker daemon is not able to open a connection to the registry.
This is a network problem, you'll need to look into why you can't open this connection. nc -zv registry.ng.bluemix.net 443 should succeed and curl -v https://registry.ng.bluemix.net/v2/ should return 401 UNAUTHORIZED.
when I tried to SSO using Shibboleth IDP, a login Error occured, when username and password was submitted as, Login Failure: Pool is empty and connection creation failed.
My error logs are as follows
==> /opt/shibboleth-idp/logs/idp-warn.log <==
at org.ldaptive.provider.jndi.JndiConnectionFactory.createInternal(JndiConnectionFactory.java:102)
Caused by: javax.naming.CommunicationException: localhost:10389
at com.sun.jndi.ldap.Connection.<init>(Connection.java:216)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
2018-08-13 09:32:53,752 - WARN [org.ldaptive.pool.BlockingConnectionPool:600] - unable to create active connection
2018-08-13 09:32:53,753 - ERROR [org.ldaptive.pool.BlockingConnectionPool:197] - Could not service check out request
2018-08-13 09:32:53,754 - WARN [net.shibboleth.idp.authn.impl.ValidateUsernamePasswordAgainstLDAP:192] - Profile Action ValidateUsernamePasswordAgainstLDAP: Login by admin produced exception
org.ldaptive.pool.PoolExhaustedException: Pool is empty and connection creation failed
at org.ldaptive.pool.BlockingConnectionPool.getConnection(BlockingConnectionPool.java:198)
Can anyone suggest me a way to solve this?
Old question, answer for google.
Check /opt/shibboleth-idp/conf/ldap.properties if your domain/IP and port are correct.
In my case i missed out that the image bitnami/openldap uses port 1389 by default.
Web based application intermittently throwing '500 Internal Server Error'. This application is deployed on WAS 8.0 server with IHS and WAS servers hosted on different machines. Please find below the TRACE level plugin logs at IHS end.
DEBUG: ws_common: websphereExecute: Wrote the request; reading the response (timeout 900)
DETAIL: lib_htresponse: htresponseRead: Reading the response: 64040a70 TRACE: lib_rio: Blocking for read, waiting 900
DEBUG: lib_rio.c line 896 : Read failed, rc=104
DEBUG: lib_htresponse: htresponseSetError: Setting the error to: |READ_FAILED|(1, Line: 713)
DEBUG: ws_common: websphereExecute: Failed to read from an old stream; probably Keep-Alive timeout fired
DEBUG: ws_transport: transportStreamDequeue: Checking for existing stream from the queue
DEBUG: lib_stream: destroyStream: Destroying the stream
DEBUG: lib_rio: rclose: socket 13 closed
STATS: ws_server: serverSetFailoverStatus: Server xxxxx : pendingRequests 0 failedRequests 7 affinityRequests 57 totalRequests 51.
ERROR: ws_common: websphereHandleRequest: Failed to execute the transaction to 'xxxxx' on host 'yyyyy'; will try another one
ERROR: ws_common: websphereWriteRequestReadResponse: Failed to find an app server to handle this request
ERROR: ESI: getResponse: failed to get response: rc = 10 DEBUG: ESI: esiHandleRequest: failed to get response
DEBUG: ESI: esiRequestUrlStackDestroy
DEBUG: ESI: cacheURL: '/site/index'
DETAIL: ESI: esiRequestPopUrl: '/site/index'
DEBUG: ESI: esiUrlDestroy: '/site/index'
ERROR: [://site/index] ws_common: websphereHandleRequest: Failed to handle request rc=10
DEBUG: ws_common: websphereCloseConnection
DETAIL: ws_common: websphereEndRequest: Ending the request
Please help me to get the issue resolved. Thanks in advance
rc=104 is the linux return code indicating that the socket was reset by the partner address so you need to look at the application server for errors.
After upgrading CDH5.3.2 to CDH5.3.5, zookeeper start failed, I got
Command aborted because of exception: Command timed-out after 150 seconds
in cloudera manager, and I got this error code in log file
2015-07-20 19:45:50,771 ERROR org.apache.zookeeper.server.NIOServerCnxn: Unexpected Exception:
java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:73)
at sun.nio.ch.SelectionKeyImpl.interestOps(SelectionKeyImpl.java:77)
at org.apache.zookeeper.server.NIOServerCnxn.sendBuffer(NIOServerCnxn.java:153)
at org.apache.zookeeper.server.NIOServerCnxn.sendResponse(NIOServerCnxn.java:1075)
at org.apache.zookeeper.server.NIOServerCnxn.process(NIOServerCnxn.java:1112)
at org.apache.zookeeper.server.WatchManager.triggerWatch(WatchManager.java:120)
at org.apache.zookeeper.server.WatchManager.triggerWatch(WatchManager.java:92)
at org.apache.zookeeper.server.DataTree.deleteNode(DataTree.java:594)
at org.apache.zookeeper.server.DataTree.killSession(DataTree.java:966)
at org.apache.zookeeper.server.DataTree.processTxn(DataTree.java:818)
at org.apache.zookeeper.server.ZKDatabase.processTxn(ZKDatabase.java:329)
at org.apache.zookeeper.server.ZooKeeperServer.processTxn(ZooKeeperServer.java:965)
at org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:116)
at org.apache.zookeeper.server.quorum.Leader$ToBeAppliedRequestProcessor.processRequest(Leader.java:634)
at org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:74)
what should I do to get zookeeper start successful? thanks very much
while i am using push notification in my application shows an error like below :
APNCRON: Started at 2012-02-08 00:32:42
3904
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 75
[1] Initiating push for UDID:a7fa910aef49a17bbd59ccf5c4487d9856b5b36e DevToken:20e05c55435094c84d27b2f5b9c217b5924fcb91e582388cc5fe9c9231d15c11 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
[2] Initiating push for UDID:828ee672c35c99fe8c106ddd2439495aed2fff00 DevToken:b6eb618c8bee91f19561be8b3554823822036d121faac2f7a0d5cc1362c31e96 MSG:{"aps":{"badge":6,"sound":"default"}}
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 118
close and reconnect the Apple server with 5 sec delay at 100
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages:
error:14094415:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate expired in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Unknown error) in /var/www/vhosts/solecollector.com/httpdocs/nikeadmin/apn_cron.php on line 91
Error with SSL. Please help...
APNS ssl://gateway.sandbox.push.apple.com:2195 connection fails
Chances are you don't have your .pem configured correctly, or at all.