-
Notifications
You must be signed in to change notification settings - Fork 382
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
out of memory error when trying to upload blob to iothub #80
Comments
Thanks for reporting this. Best Regards, |
We have a work item to investigate this. According to the current priorities we can get traction on this next month. Best Regards, |
I can confirm I'm running into the exact same issue in my C code: Starting /Users/dllau/Developer/build-LAUAzureIoTWidget-Desktop_Qt_5_9_2_clang_64bit-Debug/LAUAzureIoTWidget.app/Contents/MacOS/LAUAzureIoTWidget... Error: Time:Thu Nov 16 23:24:21 2017 File:/Users/dllau/azure-iot-sdk-c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:558 (result = HTTPAPI_OPEN_REQUEST_FAILED) |
This is still a valid issue and will investigate in the C-SDK. Once fixed, we'll update the Python wrapper SDK. |
In the meantime, you can use the following sample python/node code to upload files to IoT Hub. It uses the REST APIs directly. https://github.com/jonbgallant/azure-iot-rest/blob/master/data-plane/devices/files/file-upload.py |
I am also getting same error on Raspberry Pi Zero / Python2.7:
+1 for this issue... |
get_device also doesn't work:
Produces this error:
|
This is a valid workaround that will remove openssl in favor of gnutls.
|
What about Mac OS X.
On Dec 3, 2017, at 10:04 PM, Jon Gallant <notifications@github.com> wrote:
This is a valid workaround that will remove openssl in favor of gnutls.
cd build_all/linux
./setup.sh
sudo apt remove libcurl4-openssl-dev
sudo apt install libcurl4-gnutls-dev
./build.sh
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#80 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AKL1ohCMW8M7h8aDMdjVPmrtj12imTudks5s82FTgaJpZM4P7y_W>.
|
@drhalftone - Apologies, I didn't notice this was for Mac. I will try soon. |
@drhalftone - I researched a workaround with Mac, but I wasn't able to find one. The fix should be rolled out soon. @zolvarga @jebrando |
We are still working on the optimization of memory usage in curl. We will let you know if it is done. Best Regards, |
Hi @andrewwylie, Would it be possible for you to try that and confirm if it addresses your issue? |
Closed as duplicate and answered |
@zolvarga Hi, I have the same issue on Mac OS. Is there any update about it? Invoking device to reboot... Error: Time:Mon Feb 26 09:42:33 2018 File:/Users/X/azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:589 (result = HTTPAPI_OPEN_REQUEST_FAILED) Thanks a lot, |
I am executing the following code on my RPi Model 3. This code executes perfect on my Surface Pro so I know it will work: import time CONNECTION_STRING = "" source = '/media/pi/Navistar/images' # directory where raw images are stored def blob_upload_conf_callback(result, user_context): def iothub_file_upload_sample_run():
if name == 'main':
|
When I run it on my RPI Model 3. Running Raspian (stretch) version 9 and python 2.7.13 with I get the following errors: Time:Mon Mar 5 01:13:27 2018 Error: |
OS and version used: OSX High Sierra
Python runtime used: 3.6.3
SDK version used: latest
Description of the issue:
When running the device sample (device/samples/iothub_client_sample_class.py) the upload fails with the error below, reporting a curl out of memory failure
Code sample exhibiting the issue:
iothub_client_sample_class.py from sdk
Console log of the issue:
python3 iothub_client_sample_class.py -p mqtt -c "HostName=xx;DeviceId=xx"
Python 3.6.3 (default, Oct 12 2017, 14:23:48)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)]
IoT Hub Client for Python
Info: IoT Hub SDK for C, version 1.1.25
Starting the IoT Hub Python sample using protocol MQTT...
IoTHubClient sending 5 messages
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:552 curl_easy_perform() failed: Out of memory
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:554 (result = HTTPAPI_OPEN_REQUEST_FAILED)
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/c-utility/src/httpapiex.c Func:HTTPAPIEX_ExecuteRequest Line:475 unable to recover sending to a working state
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/iothub_client/src/iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadToBlob_step1and2 Line:396 unable to HTTPAPIEX_SAS_ExecuteRequest
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/iothub_client/src/iothub_client_ll_uploadtoblob.c Func:IoTHubClient_LL_UploadToBlob_Impl Line:873 error in IoTHubClient_LL_UploadToBlob_step1
Error: Time:Tue Oct 17 09:48:49 2017 File:/Users/andrewwylie/Workspace/repos/azure-iot-sdk-python/c/iothub_client/src/iothub_client.c Func:uploadingThread Line:1783 unable to IoTHubClient_LL_UploadToBlob
Blob upload confirmation[1001] received for message with result = ERROR
The text was updated successfully, but these errors were encountered: