Pushnotification issue while sending from browser - iphone

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.

Related

Token number 2 (-d) not recognized. Command Result : 22 (Invalid argument) Fatal: Received unexpected end-of-file from server in Luna HSM

when I used this command pscp in Luna HSM I get this error: Token number 2 (-d) not recognized. Command Result : 22 (Invalid argument) Fatal: Received unexpected end-of-file from server in Luna HSM . I don't know.

Why won't my deployment group agent connect to the server?

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?

FreeIPA Server Error - ipa: ERROR: No valid Negotiate header in server response

I have recently installed FreeIPA on RHEL7. This seems to be running well for few hours and then calls to ipa starts to fail with the following error.
ipa: ERROR: No valid Negotiate header in server response
==================================================
[root ~]# ipa -v user-find --all
ipa: INFO: trying https://xxx.xxx.xxx.xxx/ipa/json
ipa: INFO: [try 1]: Forwarding 'user_find/1' to json server 'https://xxx.xxx.xxx.xxx/ipa/json'
ipa: ERROR: No valid Negotiate header in server response
-=================================================
[I have masked the hostnames with 'xxx']
In /var/log/httpd/error_log - I see the following error.
[Thu Dec 14 15:50:23.413286 2017] [auth_gssapi:error] [pid 10694] [client xxx.xxx.xxx.xxx:50198] GSS ERROR In Negotiate Auth: gss_accept_sec_context() failed: [Unspecified GSS failure. Minor code may provide more information ( Request ticket server HTTP/xxx.xxxx.xxxx.xxx#EC2.INTERNAL kvno 2 not found in keytab; keytab is likely out of date)], referer: https://xxx.xxx.xxx.xxx/ipa/xml
What is the possible cause? Looks like some misconfiguration.

Getting 500 Internal server error from application deployed on IHS and WAS server

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.

DataStax Enterprise throwing errors when Kerberos is enabled

The following error keeps showing up:
ERROR 12:39:10,529 PriviledgedActionException as:cassandra/datastax3.mytest.org#MYTEST.ORG cause:org.apache.hadoop.ipc.RemoteException: GSS initiate failed
INFO 12:39:10,529 Initiating logout for cassandra/datastax3.mytest.org#MYTEST.ORG
INFO 12:39:10,529 Initiating re-login for cassandra/datastax3.mytest.org#MYTEST.ORG
WARN 12:39:13,009 Auth failed for 170.173.220.222:56765:null
INFO 12:39:13,009 IPC Server listener on 8012: readAndProcess threw exception javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: Failure unspecified at GSS-API level (Mechanism level: Encryption type AES256 CTS mode with HMAC SHA1-96 is not supported/enabled)]. Count of bytes read: 0
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: Failure unspecified at GSS-API level (Mechanism level: Encryption type AES256 CTS mode with HMAC SHA1-96 is not supported/enabled)]
at com.sun.security.sasl.gsskerb.GssKrb5Server.evaluateResponse(GssKrb5Server.java:177)
at org.apache.hadoop.ipc.Server$Connection.saslReadAndProcess(Server.java:1007)
at org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1180)
at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:537)
at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:344)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: GSSException: Failure unspecified at GSS-API level (Mechanism level: Encryption type AES256 CTS mode with HMAC SHA1-96 is not supported/enabled)
at sun.security.jgss.krb5.Krb5Context.acceptSecContext(Krb5Context.java:788)
Original post: http://www.datastax.com/support-forums/topic/error-message-in-systemlog-with-kerberos-enabled
AES 256 is not supported by JVM by default. You need to install unlimited strength cryptography extension first to enable AES 256.
http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
Thanks to Piotr for the original answer.