I'm currently using programs based on the Azure-IoT-Hub-C-SDK MQTT examples as well as the samples itself. On my Ubuntu machine, after starting the program, I get a repeating connection error:
./iotsdk_linux/serializer/samples/devicetwin_simplesample/devicetwin_simplesample Info: IoT Hub SDK for C, version 1.1.21
Error: Time:Fri Aug 18 19:39:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/c-utility/adapters/socketio_berkeley.c Func:socketio_open Line:676 Failure: select failure.
Info: Closing tlsio from a state other than TLSIO_STATE_EXT_OPEN or TLSIO_STATE_EXT_ERROR
Error: Time:Fri Aug 18 19:39:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/c-utility/src/tlsio_openssl.c Func:on_underlying_io_open_complete Line:688 Invalid tlsio_state. Expected state is TLSIO_STATE_OPENING_UNDERLYING_IO.
Error: Time:Fri Aug 18 19:39:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/c-utility/src/tlsio_openssl.c Func:tlsio_openssl_open Line:1202 Failed opening the underlying I/O.
Error: Time:Fri Aug 18 19:39:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/umqtt/src/mqtt_client.c Func:mqtt_client_connect Line:974 Error: io_open failed
Error: Time:Fri Aug 18 19:39:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothubtransport_mqtt_common.c Func:SendMqttConnectMsg Line:1519 failure connecting to address XXXX.azure-devices.net.
Reported state will be send to IoTHub
press ENTER to end the sample
This happens with both the simplesample_mqtt and the devicetwin_simplesample.
Sometimes the errors don't stop and I have no chance trying the program.
I only changed the connection strings in the samples. The AMQP example (simplesample_amqp) does not show any connection errors and works fine even after starting it several times. On my Yocto board, I also see a few connection errors at every start of a custom MQTT application built on the SDK samples.
Does anyone know a possible cause? I don't know whether it's caused by SDK, IoT hub or my local setup (Ubuntu, Yocto?). I get this error even with a cellular connection and sometimes is also reappears after running fine for a certain time.
Please, if you think I should post more information, request that. Right now I just don't know where to start.
UPDATE:
Right now, nothing is working anymore, I only get errors, the applications don't connect anymore. See the issue on github here:
https://github.com/Azure/azure-iot-sdk-c/issues/214
Related
My Artifactory logs are showing the following errors with alarming frequency. The metadata service is up and healthy according to Artifactory, and aside from the log spam, it doesn't seem to be causing any problems. Does anyone have any ideas how to fix this?
[jfrt ] [ERROR] [af10ed1c492f4e88] [s.MetadataEventServiceImpl:346] [art-exec-6 ] - Unable to send statistics event to Metadata Server. Caught exception: Failed executing api/v1/stats, with response code: HTTP/1.1 500 Internal Server Error and response message: {"cause":"Internal error while processing request","message":"Failed to update stats with error couldn't find versionIDs for the given paths: couldn't find versionIDs for the given paths"}
Artifactory 7.27.10, running in Kubernetes
Using an external postgres 13 database
Using s3 as the storage backend
This is a known issue (documented internally as META-1180). This has been fixed and is released with Artifactory 7.29. This version of Artifactory is scheduled for release sometime over the next few weeks.
I'm trying to develop and deploy some firebase cloud functions using the firebase cli on Windows 7. I'm trying to set up my development environment from my office where the network is behind a corporate proxy.
In the past I have configured node.js and npm to work behind the proxy and I do not have any problems downloading dependencies.
Now when I started a firebase project I did not have any problem logging into my Firebase account. However when I tried to:
firebase use --add
in my project folder I get the following error message:
Error: Server Error. unable to get local issuer certificate
From the firebase-debug.log I get more info:
[debug] [2017-10-16T14:43:42.993Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects Mon Oct 16 2017 16:43:42 GMT+0200 (ora legale Europa occidentale)
[debug] [2017-10-16T14:43:43.587Z] Error: unable to get local issuer certificate at Error (native) at TLSSocket.<anonymous>(_tls_wrap.js:1092:38) at emitNone (events.js:86:13) at TLSSocket.emit (events.js:185:7) at TLSSocket._finishInit (_tls_wrap.js:610:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
[error]
[error] Error: Server Error. unable to get local issuer certificate
I tried to use
npm config set cafile "<path-to-a-cert-extracted-from-cacert.pem>"
with no luck.
I really can't figure out what's going on and I couldn't find any solution on the web.
On StackOverflow there's a similar question but the answers seem to point to a different problem.
I would be glad to hear if someone has found a solution to this problem. Thanks.
Ok so basically after 2 days of research I finally came up with a (hack)solution by looking at Node.js documentation on TLS.
Setting the following environment variable does the trick:
set NODE_TLS_REJECT_UNAUTHORIZED=0
I personally don't like this solution but at least it makes me work.
Is this something that has to be fixed?
Or am I missing something on the configuration of npm behind a proxy?
Thanks.
the first call to firebase is very slow > 10 seconds, and some Network error happend. I forked the repo to reproduce the issue: https://github.com/frankpolkm/ionic-conference-app
It simply added firebase to the driftyco/ionic-conference-app demo app. Please have a look at the code change in https://github.com/frankpolkm/ionic-conference-app/blob/master/app/app.ts
and here is the console log. There has no NetWork Error before firebase added.
0 104436 log DEVICE READY FIRED AFTER, 1308, ms
1 104725 log Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
2 104842 time signInAnonymously
3 105151 debug swiper initEvents, attach
4 109567 warn Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
5 109568 warn Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
6 110230 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260
7 110230 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260
8 115416 timeEnd signInAnonymously
9 115416 log signInAnonymously: 10574ms
10 115416 log uid=mZevh2GdnyaNv1BSfnB78HC17di2
11 120419 error Error: Network Error, http://192.168.2.103:8100/build/js/zone.js, Line: 260
12 120420 error Error: A network error (such as timeout, interrupted connection or unreachable host) has occurred., http://192.168.2.103:8100/build/js/zone.js, Line: 260
Please let me know what I did wrong.
Thanks,
Frank
Adding <allow-navigation href="*" /> to the confix.xml File solved it for me.
This is my first Arduino application, and I have programmed it and learned on it.
It runs and can create a blinking app, and even by entering through Serial.
But when I try to connect it to the internet, it gives
Fatal Exception 12
.
The board I am using is D1 Wemos (Retired). I am programming it using Arduino. I am currently running 1.6.8 version, but tried 1.6.5, and the same happens.
I tried to run the examples from esp8266 library... they as well don't run. sometimes I get
est Jan 8 2013 errors and then in the end wdt reset
but now, I get
warning: espcomm_sync failed error: espcomm_open failed error:
espcomm_upload_mem failed
I am not sure what is the issue? any body that has an idea?
While connecting to the DB via SQL Developer, I'm facing following error:
Io Exception: The Network Adapter could not establish the connection
I tried to find out the issue and end up seeing that the OracleXETNsListener service is not started.
I tried to start it but getting error as : The OracleXETNSListener service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs
also tried it through command prompt as follows:
C:\Windows\system32>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 16-JUN-2014 15:00
:43
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Message 1053 not found; No message file for product=NETWORK, facility=TNSTNS-125
57: Message 12557 not found; No message file for product=NETWORK, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=NETWORK, facili
ty=TNS
TNS-00527: Message 527 not found; No message file for product=NETWORK, facilit
y=TNS
That happened to me when I set the variables ORACLE_HOME & ORACLE_SID, restarted and that error appeared.
Possible Solution: I deleted variables ORACLE_HOME & ORACLE_SID, restarted my computer and everything went ok.