Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLSocketFactory IOException unrecoverable error #51

Closed
ckrey opened this issue Aug 25, 2014 · 9 comments
Closed

SSLSocketFactory IOException unrecoverable error #51

ckrey opened this issue Aug 25, 2014 · 9 comments

Comments

@ckrey
Copy link
Member

ckrey commented Aug 25, 2014

2014-08-25 12:38:59 E SSLSocketFactory IOException
2014-08-25 19:56:26 E SSLSocketFactory IOException
2014-08-25 21:25:45 E SSLSocketFactory IOException
2014-08-25 21:42:29 E SSLSocketFactory IOException
2014-08-25 21:43:15 E SSLSocketFactory IOException
2014-08-25 21:44:00 E SSLSocketFactory IOException
2014-08-25 21:44:45 E SSLSocketFactory IOException
2014-08-25 21:45:30 E SSLSocketFactory IOException
2014-08-25 21:46:15 E SSLSocketFactory IOException
2014-08-25 21:47:00 E SSLSocketFactory IOException
2014-08-25 21:47:45 E SSLSocketFactory IOException
2014-08-25 21:48:30 E SSLSocketFactory IOException
2014-08-25 21:49:15 E SSLSocketFactory IOException
2014-08-25 21:50:00 E SSLSocketFactory IOException
2014-08-25 21:50:45 E SSLSocketFactory IOException
2014-08-25 21:51:30 E SSLSocketFactory IOException
2014-08-25 21:52:15 E SSLSocketFactory IOException
2014-08-25 21:53:00 E SSLSocketFactory IOException
2014-08-25 21:53:45 E SSLSocketFactory IOException

2014-08-25 21:54:30 E SSLSocketFactory IOException
2014-08-25 21:54:30 W MQTTHandler connectToBroker: 32103
2014-08-25 21:54:33 W MQTTHandler disconnect: 32101

@ckrey ckrey added the bug label Aug 25, 2014
@ckrey
Copy link
Member Author

ckrey commented Aug 25, 2014

$reconnect
2014-08-25 22:00:29 E SSLSocketFactory IOException
2014-08-25 22:00:30 W MQTTHandler connectToBroker: 32103
2014-08-25 22:00:30 W MQTTHandler disconnect: 32101
2014-08-25 22:00:36 W MQTTHandler disconnect: 32101
Uncaught exception: java.lang.NullPointerException: 0

  • general.MQTTHandler.publish(), bci=4
  • general.SocketGPRSThread.processMessage(), bci=48
  • general.SocketGPRSThread.run(), bci=140
    reconnecting

@ckrey
Copy link
Member Author

ckrey commented Aug 25, 2014

$reconnect
2014-08-25 22:02:50 W MQTTHandler disconnect: 32101
reconnecting
$state
NUMSAT:9;BEARER:3;CREG:5;CGREG:5;BATT:4.0;EXTV:0.0;Q:34;CONN:1;NETW:1;OPER:"E-Plus";WAKEUP:IgnitionWakeup;uFW:02.18,02.01,02.16;SW:0.6.88;EG5:Cinterion,EGS5-X,REVISION 02.004;IMEI:356612027383852;DATE:2014-08-25 22:03:11

@ckrey
Copy link
Member Author

ckrey commented Aug 25, 2014

Watchdog is running, detecting GPRS is dead, but Watchdog is not killing the app

@ckrey
Copy link
Member Author

ckrey commented Aug 26, 2014

another, maybe unrelated observation: GPRS connection gets lost from time to time (good weather, not moving):

2014-08-26 06:56:27 I AppMain wakeupMode is IgnitionWakeup
2014-08-26 07:18:19 W MQTTHandler connectionLost
2014-08-26 07:18:22 W MQTTHandler disconnect: 32101
$gps
2014-08-26 07:34:53
...
Altitude 65m
Speed 2kph
Course 0
Trip 44m

2014-08-26 07:49:11 W MQTTHandler connectionLost
2014-08-26 07:49:14 W MQTTHandler disconnect: 32101

@ckrey
Copy link
Member Author

ckrey commented Aug 26, 2014

Extended error message probably was

E SSLSocketFactory IOException Profile could not be activated ssl://...

lowered log level from Error to Warning

@Choralthings
Copy link

Could be a DNS problem?
Try to close the connection using AT+CGATT=0, and then retry to open the profile.

@jpmens
Copy link
Member

jpmens commented Aug 26, 2014

It's always a fscking DNS problem ... ;-)

@ckrey
Copy link
Member Author

ckrey commented Aug 26, 2014

Thanks for the hint. Obviously, the first thing the gw does to establish a
connection to the MQTT broker is to resolve it's name.

I already close the connection and repeat until the connect succeeds.

If the software stops retrying or hangs in a loop, I rely on the GPIO6
watchdog.

@ckrey ckrey added the testing label Aug 27, 2014
@ckrey
Copy link
Member Author

ckrey commented Aug 30, 2014

Live testing showed no hang-up problems in the last 2 days

@ckrey ckrey closed this as completed Aug 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants