Lost internet connection of the app when write some code in terminal for another app - swift

I write some code and install gem, cocoa pod and ruby on terminal for another app location file but seems like these installations installed on Xcode : my commands on terminal that run was this :
sudo gem install cocoapods
curl -L https://get.rvm.io | bash -s stable
rvm install ruby-[version]
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods --user-install
Dear guys ,
Actually I want to return on first state before I install these line because my another Xcode project that is really important , not working , how could I do to solve this problem?
for your attention thanks alot.
following line is some error that i facing with in debug area :
2021-08-30 13:41:48.774954+0430 offerNews[3999:146045] Connection 1: received failure notification
2021-08-30 13:41:48.775252+0430 offerNews[3999:146045] Connection 1: failed to connect 12:8, reason -1
2021-08-30 13:41:48.775473+0430 offerNews[3999:146045] Connection 1: encountered error(12:8)
2021-08-30 13:41:48.822838+0430 offerNews[3999:146037] Task <D97DE843-5D1D-4970-B7FA-D11F64800BE3>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:48.823608+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
2021-08-30 13:41:48.865862+0430 offerNews[3999:145966] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x6000028efa70 UIView:0x7fe90cf28e60.height == 50 (active)>",
"<NSLayoutConstraint:0x6000028e38e0 V:|-(10)-[UIStackView:0x7fe90cf28cd0] (active, names: '|':UIView:0x7fe90cf28b60 )>",
"<NSLayoutConstraint:0x6000028d0050 V:[UIStackView:0x7fe90cf28cd0]-(10)-| (active, names: '|':UIView:0x7fe90cf28b60 )>",
"<NSLayoutConstraint:0x6000028d0550 UIStackView:0x7fe90cc19a60.top == UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'.top (active)>",
"<NSLayoutConstraint:0x6000028d0780 UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'.bottom == UIStackView:0x7fe90cc19a60.bottom (active)>",
"<NSLayoutConstraint:0x6000028d1b30 'UISV-canvas-connection' UIStackView:0x7fe90cf28cd0.top == UIView:0x7fe90cf28e60.top (active)>",
"<NSLayoutConstraint:0x6000028d1b80 'UISV-canvas-connection' V:[UIStackView:0x7fe90cf08340]-(0)-| (active, names: '|':UIStackView:0x7fe90cf28cd0 )>",
"<NSLayoutConstraint:0x6000028d1f90 'UISV-canvas-connection' UIStackView:0x7fe90cc19a60.top == UIView:0x7fe90cc19ff0.top (active)>",
"<NSLayoutConstraint:0x6000028d1fe0 'UISV-canvas-connection' V:[UIView:0x7fe90cf29150]-(0)-| (active, names: '|':UIStackView:0x7fe90cc19a60 )>",
"<NSLayoutConstraint:0x6000028d1c20 'UISV-fill-equally' UIStackView:0x7fe90cf08340.height == UIView:0x7fe90cf28e60.height (active)>",
"<NSLayoutConstraint:0x6000028d2080 'UISV-fill-equally' UIView:0x7fe90cf28b60.height == UIView:0x7fe90cc19ff0.height (active)>",
"<NSLayoutConstraint:0x6000028d2120 'UISV-fill-equally' UIView:0x7fe90cf29150.height == UIView:0x7fe90cc19ff0.height (active)>",
"<NSLayoutConstraint:0x6000028d1bd0 'UISV-spacing' V:[UIView:0x7fe90cf28e60]-(15)-[UIStackView:0x7fe90cf08340] (active)>",
"<NSLayoutConstraint:0x6000028d2030 'UISV-spacing' V:[UIView:0x7fe90cc19ff0]-(0)-[UIView:0x7fe90cf28b60] (active)>",
"<NSLayoutConstraint:0x6000028d20d0 'UISV-spacing' V:[UIView:0x7fe90cf28b60]-(0)-[UIView:0x7fe90cf29150] (active)>",
"<NSLayoutConstraint:0x6000028d23a0 'UIView-Encapsulated-Layout-Height' UIView:0x7fe90cc198f0.height == 667 (active)>",
"<NSLayoutConstraint:0x6000028d0640 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide']-(0)-| (active, names: '|':UIView:0x7fe90cc198f0 )>",
"<NSLayoutConstraint:0x6000028d05a0 'UIViewSafeAreaLayoutGuide-top' V:|-(20)-[UILayoutGuide:0x6000032f7560'UIViewSafeAreaLayoutGuide'] (active, names: '|':UIView:0x7fe90cc198f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x6000028efa70 UIView:0x7fe90cf28e60.height == 50 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2021-08-30 13:41:53.100353+0430 offerNews[3999:146037] Connection 2: received failure notification
2021-08-30 13:41:53.100586+0430 offerNews[3999:146037] Connection 2: failed to connect 12:8, reason -1
2021-08-30 13:41:53.100962+0430 offerNews[3999:146037] Connection 2: encountered error(12:8)
2021-08-30 13:41:53.106221+0430 offerNews[3999:146045] Task <74E4D6A1-E3AC-4CF0-B3C1-5DA6424C9DDA>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:53.106746+0430 offerNews[3999:146045] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:53.121206+0430 offerNews[3999:146045] Connection 3: received failure notification
2021-08-30 13:41:53.121414+0430 offerNews[3999:146045] Connection 3: failed to connect 12:8, reason -1
2021-08-30 13:41:53.121819+0430 offerNews[3999:146045] Connection 3: encountered error(12:8)
2021-08-30 13:41:53.126050+0430 offerNews[3999:146037] Task <066F3763-D89D-4B24-9767-CFC7AA1DE87A>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:53.126349+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:55.916065+0430 offerNews[3999:146045] Connection 4: received failure notification
2021-08-30 13:41:55.916257+0430 offerNews[3999:146045] Connection 4: failed to connect 12:8, reason -1
2021-08-30 13:41:55.916600+0430 offerNews[3999:146045] Connection 4: encountered error(12:8)
2021-08-30 13:41:55.922064+0430 offerNews[3999:146042] Task <B3949210-9E23-42CF-9935-5AA704844E30>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:55.922544+0430 offerNews[3999:146045] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}
2021-08-30 13:41:55.929545+0430 offerNews[3999:146042] Connection 5: received failure notification
2021-08-30 13:41:55.929733+0430 offerNews[3999:146042] Connection 5: failed to connect 12:8, reason -1
2021-08-30 13:41:55.930229+0430 offerNews[3999:146042] Connection 5: encountered error(12:8)
2021-08-30 13:41:55.934136+0430 offerNews[3999:146037] Task <3150191D-0192-4A7E-9643-5F5D4342159D>.<0> HTTP load failed, 0/0 bytes (error code: -1003 [12:8])
2021-08-30 13:41:55.934535+0430 offerNews[3999:146037] NSURLConnection finished with error - code -1003
Error Domain=NSCocoaErrorDomain Code=256 "The file “citys” couldn’t be opened." UserInfo={NSURL=https://api.offernews.co/api/citys}

Related

What is causing this Flutter Firestore error on macOS?

I'm trying to create a simple document in my Firestore database when a user presses submit. It works when the app is run on iOS but this is what I see when I run it on macOS:
2022-03-20 19:39:47.333823-0700 globe_artist[62624:775059] Connection 12: received failure notification
2022-03-20 19:39:47.333872-0700 globe_artist[62624:775059] Connection 12: failed to connect 1:1, reason -1
2022-03-20 19:39:47.333901-0700 globe_artist[62624:775059] Connection 12: encountered error(1:1)
2022-03-20 19:39:47.337548-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> HTTP load failed, 0/0 bytes (error code: 1 [1:1])
2022-03-20 19:39:47.338184-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> finished with error [1] Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns}
2022-03-20 19:40:19.959305-0700 globe_artist[62624:775842] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW A50B5D10-DA1B-457F-9F74-3EAC1A8BA7A6 [1: Operation not permitted]
2022-03-20 19:40:19.959890-0700 globe_artist[62624:775842] [connection] nw_endpoint_flow_setup_channel [C13.1 142.250.217.106:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow

Fail2ban errors on Freeswitch logs without date

I am trying to configure fail2ban for Freeswithc.
Freeswithc logs also some entries without timestamp, like this:
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7084 Channel sofia/LanSideProfile/27124760025#192.16
8.253.99 entering state [received][100]
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7094 Remote SDP:
639eacf2-908f-11ec-96f0-f19b85175ba0 v=0
639eacf2-908f-11ec-96f0-f19b85175ba0 o=FreeSWITCH 1645143180 1645143181 IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH
639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0
639eacf2-908f-11ec-96f0-f19b85175ba0 m=audio 27426 RTP/AVP 0 18 8 101
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:18 G729/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:18 annexb=no
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:8 PCMA/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:101 telephone-event/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-15
639eacf2-908f-11ec-96f0-f19b85175ba0 a=silenceSupp:off - - - -
639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20
639eacf2-908f-11ec-96f0-f19b85175ba0
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
Fail2Ban encounters errors on these:
2022-02-18 11:19:51,678 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:51,679 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,681 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,682 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,692 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,693 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,698 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,697 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,701 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,702 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
This is most likely because the logs don't have a date.
How can I get rid of these errors?
Stackoverflow is a inappropriate place for that issue, next time please use https://serverfault.com/, https://superuser.com/ etc instead.
see https://github.com/fail2ban/fail2ban/issues/3020
Shortly it is fixed in newer versions, but you can workaround it using precise datepattern (like '^\S+ {DATE}), if the message you're searching for contain the timestamp, otherwise...
see https://github.com/fail2ban/fail2ban/pull/2814 (released with 0.11.2/0.10.6), for instance set datepattern = {NONE} would allow to find failures totally without date-time in log messages.
1645143180 is also timestamp (posix unix time since epoch), fail2ban has also a special datepattern for such format (EPOCH or as part of RE {EPOCH}), but you may need also use more precise pattern.
Anyway I don't see any failure in log, thus don't really know which lines may be interesting here.

Safari Extension Fails to perform URLSession Tasks with error: failed path:/var/run/mDNSResponder Operation not permitted

Hi guys I attempts to make RESTful call when toolbar item is click.
then it fails to connect to the internet with the following error in log.
[default] Unable to load Info.plist exceptions (eGPUOverrides)
The extension's toolbar item was clicked
dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:5 Err:-1 Errno:1 Operation not permitted
Error: Optional(Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x600003e3c4b0 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=-72000, _kCFStreamErrorDomainKey=10}}, NSErrorFailingURLStringKey=https://some_valid_url, NSErrorFailingURLKey=https://some_valid_url, _kCFStreamErrorDomainKey=10, _kCFStreamErrorCodeKey=-72000, NSLocalizedDescription=A server with the specified hostname could not be found.})
[] nw_resolver_create_dns_service_locked [C1] DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
TIC TCP Conn Failed [1:0x60000051d200]: 10:-72000 Err(-65563)
Task <D9356F42-2832-426A-9FE6-C37C0A22F954>.<1> HTTP load failed (error code: -1003 [10:-72000])
Task <D9356F42-2832-426A-9FE6-C37C0A22F954>.<1> finished with error - code: -1003
Program ended with exit code: 0
So then I tried:
Turn on App sandbox and tick both incoming and outgoing connection
Does not work, same error
Turn off App sandbox
Extension disappears in safari preferences
No response when I click "Open in Safari Extensions Preferences"
My config:
Xcode: Version 10.1 (10B61)
Mac: Mojave 10.14.2(18C54)
Safari: 12.0.2(14606.3.4)
Any ideas?
You may need to enable Incoming and Outgoing connections on the app Sandbox to let your requests go thru.

Network connection was lost error

I am trying to connect into realm object server from an app developed with swift on macos
When I try to connect, I get this error "Network connection was lost", but I can open the realm server from the browser without a problem.. btw, this problem happened recently, it was working correctly few weeks ago
let credentials = SyncCredentials.usernamePassword(username: username, password: password)
SyncUser.logIn(with: credentials, server: serverurl) {
user, error in
if let u = user {
onCompletion(syncUser: u, error: nil)
} else if let error = error {
onCompletion(syncUser: nil, error: error)
} else {
onCompletion(syncUser: nil, error: nil)
}
}
Here, user is always nil and the error description is Network connection was lost
This happens with both a local server and one hosted on digitalocean
Server version 1.8.3
xcode console log
2018-01-15 12:46:07.077741+0300 Oncobase[8138:9497304]
ApplePersistence=NO 2018-01-15 12:46:07.207859+0300
Oncobase[8138:9497813] dnssd_clientstub ConnectToServer: connect()->
No of tries: 1 2018-01-15 12:46:08.218889+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
2018-01-15 12:46:09.228932+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
2018-01-15 12:46:10.239595+0300 Oncobase[8138:9497813]
dnssd_clientstub ConnectToServer: connect() failed
path:/var/run/mDNSResponder Socket:16 Err:-1 Errno:1 Operation not
permitted 2018-01-15 12:46:10.239850+0300 Oncobase[8138:9497813] []
nw_resolver_create_dns_service_locked
DNSServiceCreateDelegateConnection failed: ServiceNotRunning(-65563)
2018-01-15 12:46:10.240322+0300 Oncobase[8138:9497813] TIC TCP Conn
Failed [1:0x600000163300]: 10:-72000 Err(-65563) 2018-01-15
12:46:10.257327+0300 Oncobase[8138:9497796] Task
.<1> HTTP load failed (error
code: -1003 [10:-72000]) 2018-01-15 12:46:10.257548+0300
Oncobase[8138:9497796] Task .<1>
finished with error - code: -1003 2018-01-15 12:46:23.852072+0300
Oncobase[8138:9497838] [] nw_socket_connect connectx failed (fd 16,
127.0.0.1:9080 stream, pid: 8138, sanitized url: http://127.0.0.1:9080/auth): [1] Operation not permitted 2018-01-15
12:46:23.852142+0300 Oncobase[8138:9497838] []
nw_socket_get_input_frames recvmsg(fd 16, 1024 bytes): [57] Socket is
not connected 2018-01-15 12:46:23.852284+0300 Oncobase[8138:9497838]
TIC TCP Conn Failed [2:0x600000169b40]: 1:57 Err(57) 2018-01-15
12:46:23.852618+0300 Oncobase[8138:9497838] Task
<91597B31-6AB4-41BB-A5A6-C32525BC8A67>.<2> HTTP load failed (error
code: -1005 [1:57]) 2018-01-15 12:46:23.853839+0300
Oncobase[8138:9497798] Task <91597B31-6AB4-41BB-A5A6-C32525BC8A67>.<2>
finished with error - code: -1005
Edit 1: I have just enabled sandboxing to be able to upload the app into apple app store.. could this be the issue? any workaround?
It seems sandboxing was the real problem
I had to enable Ingoing Connections and Outgoing Connections with sandboxing for this to work
You have to off the "App Sandbox".
Go to: xcode Project-> Capabilities -> App SandBoxScreenShot

Pushnotification issue while sending from browser

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.