Internet available, Cloud not reachable, No DNS resolution

New error after running app for 3 days with no issues.

0184102170 [app] WARN: Cloud connecting
0184103994 [system] ERROR: Failed to determine server address
0184104000 [system] WARN: Cloud socket connection failed: -230
0184104006 [system] WARN: Internet available, Cloud not reachable!
0184104009 [system] WARN: Handling cloud error: 3
0184104006 [app] WARN: Cloud disconnected

The [app] WARN: Cloud connecting is my app trapping all errors. The ARGON is fast flashing cyan.

This is the console log for that period:

So it seems to have rebooted - although the log doesn’t have the sequence I would expect, which based on past reboots should be:

The Serial output shows that my app is looking for DNS resolution of an external server and its returning - so my suspicions is that somewhen it lost its IP configuration.

Once manually restarted it resumed expected operation
Any ideas as to where to look?

@shanevanj did 1.2.1-rc.2 help this like it did on some of your other posts?

So - in short it did. This issue has not returned since updating. I think there was an issue with Publishing as I did have logging events being published to the console. If there was a network issue the console logging probably caused it to escalate due to blocked responses and timeouts.

Since then I have made two significant changes.

  1. Update to 1.2.1.-rc.2
  2. Install PUBLISHQUEUEASYNCRK library and use that for all publishing

Now that Publish does not block the system thread anymore - I believe that the DeviceOS can manage its life in a way more consistent way and as such I have have none of the previous issues. I would make a strong call for a system config parameter to enable a publish queue so that in normal operation this queue is drained as and when resources allow and that the system thread does not get locked up.

1 Like