Comments (9)
@Voxel07 Thanks for the feedback, mind sharing the full do agent logs - or are those two lines of text the only ones appearing? The json file not being present is not a fatal error, the logging should just reflect that the file isn't there - but this shouldn't block your download. Having more logging would help.
From the adu-agent logging, that specific error code bubbling from DO is maps to E_INVALIDARG, this usually signals something wrong with the filepath or the download url. The url looks okay, so I suspect perhaps DO may not have permissions to download to that directory.
Is the DU agent running as DU user? Is DO running as DO user?
You can also try verify the file permissions of the download sandbox in /tmp/ - or feel free to share them here.
You can verify file permissions by trying to catch the sandbox when it's created and before adu agent removes it and running
'ls -l' in the /tmp/ directory.
from do-client.
I will post the whole log on Monday, but I think the rights might be the issue, because when I check with ls -l everything was root.
@jimson-msft The whole log:
please note that the IoT Hub Url changed because I had to change subscriptions.
2021-04-23T11:45:16.9965108Z 787 787 info {Run} Started, DU;deliveryoptimization-agent/v0.4.0+20210422.071111.b40eeac (HEAD)
2021-04-23T12:19:22.5082106Z 787 832 trace {_TryRefresh} json file not found at /etc/deliveryoptimization-agent/admin-config.json
2021-04-23T12:19:22.5118934Z 787 832 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:19:22.5191264Z 787 832 info {Download} 7f64b890-9001-934b-a3b6-c60df8e5770f, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
2021-04-23T12:19:22.5191870Z 787 832 info {GetProperty} 7f64b890-9001-934b-a3b6-c60df8e5770f, key: 0
2021-04-23T12:19:22.5437531Z 787 851 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:19:22.5441508Z 787 851 info {ParseAndProcess} Download state change: 2
2021-04-23T12:19:22.5445764Z 787 827 trace {_PerformStateChange} 7f64b890-9001-934b-a3b6-c60df8e5770f, state change request 0 --> 1
2021-04-23T12:19:22.5446218Z 787 827 error {_Start} (hr:80D02200) _url.empty() [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253]
2021-04-23T12:19:22.5449496Z 787 827 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253], {_url.empty()} [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-23T12:19:22.5451611Z 787 851 error {SchedBlock} (hr:80D02200) hr [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-23T12:19:22.5453154Z 787 851 error {Process} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-23T12:19:22.5453584Z 787 851 error {operator()} (hr:80D02200) apiRequest->Process(_downloadManager, response) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-23T12:19:22.5463558Z 787 836 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(_downloadManager, response)} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
2021-04-23T12:41:34.9512811Z 787 833 trace {_TryRefresh} json file not found at /etc/deliveryoptimization-agent/admin-config.json
2021-04-23T12:41:34.9513962Z 787 833 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:41:34.9545875Z 787 833 info {Download} 6327dc2b-390c-194e-aeaf-a6c720db6d2c, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
2021-04-23T12:41:34.9546134Z 787 833 info {GetProperty} 6327dc2b-390c-194e-aeaf-a6c720db6d2c, key: 0
2021-04-23T12:41:34.9591989Z 787 848 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:41:34.9593639Z 787 848 info {ParseAndProcess} Download state change: 2
2021-04-23T12:41:34.9594768Z 787 827 trace {_PerformStateChange} 6327dc2b-390c-194e-aeaf-a6c720db6d2c, state change request 0 --> 1
2021-04-23T12:41:34.9595026Z 787 827 error {_Start} (hr:80D02200) _url.empty() [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253]
2021-04-23T12:41:34.9595832Z 787 827 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253], {_url.empty()} [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-23T12:41:34.9596547Z 787 848 error {SchedBlock} (hr:80D02200) hr [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-23T12:41:34.9597208Z 787 848 error {Process} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-23T12:41:34.9597400Z 787 848 error {operator()} (hr:80D02200) apiRequest->Process(_downloadManager, response) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-23T12:41:34.9599425Z 787 848 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(_downloadManager, response)} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
2021-04-23T12:53:45.7713884Z 787 842 trace {_TryRefresh} json file not found at /etc/deliveryoptimization-agent/admin-config.json
2021-04-23T12:53:45.7715810Z 787 842 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:53:45.7783299Z 787 842 info {Download} e6747178-4481-4547-a0b0-fe33bbf4f47c, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
2021-04-23T12:53:45.7783816Z 787 842 info {GetProperty} e6747178-4481-4547-a0b0-fe33bbf4f47c, key: 0
2021-04-23T12:53:45.7862285Z 787 831 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T12:53:45.7864594Z 787 831 info {ParseAndProcess} Download state change: 2
2021-04-23T12:53:45.7867600Z 787 827 trace {_PerformStateChange} e6747178-4481-4547-a0b0-fe33bbf4f47c, state change request 0 --> 1
2021-04-23T12:53:45.7868038Z 787 827 error {_Start} (hr:80D02200) _url.empty() [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253]
2021-04-23T12:53:45.7869412Z 787 827 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253], {_url.empty()} [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-23T12:53:45.7871218Z 787 831 error {SchedBlock} (hr:80D02200) hr [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-23T12:53:45.7873140Z 787 831 error {Process} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-23T12:53:45.7874154Z 787 831 error {operator()} (hr:80D02200) apiRequest->Process(_downloadManager, response) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-23T12:53:45.7877560Z 787 831 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(_downloadManager, response)} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
2021-04-23T13:44:32.5899381Z 787 868 warning {_TryRefresh} Could not read json config file /etc/deliveryoptimization-agent/admin-config.json: /etc/deliveryoptimization-agent/admin-config.json(1): expected value
2021-04-23T13:44:32.5901189Z 787 868 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T13:44:32.5969194Z 787 868 info {Download} de5d13bf-8cca-9d49-be24-10424938a42b, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
2021-04-23T13:44:32.5969709Z 787 868 info {GetProperty} de5d13bf-8cca-9d49-be24-10424938a42b, key: 0
2021-04-23T13:44:32.6041828Z 787 855 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T13:44:32.6044055Z 787 855 info {ParseAndProcess} Download state change: 2
2021-04-23T13:44:32.6046578Z 787 827 trace {_PerformStateChange} de5d13bf-8cca-9d49-be24-10424938a42b, state change request 0 --> 1
2021-04-23T13:44:32.6047014Z 787 827 error {_Start} (hr:80D02200) _url.empty() [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253]
2021-04-23T13:44:32.6048411Z 787 827 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253], {_url.empty()} [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-23T13:44:32.6050487Z 787 855 error {SchedBlock} (hr:80D02200) hr [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-23T13:44:32.6052023Z 787 855 error {Process} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-23T13:44:32.6052454Z 787 855 error {operator()} (hr:80D02200) apiRequest->Process(_downloadManager, response) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-23T13:44:32.6055622Z 787 855 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(_downloadManager, response)} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
2021-04-23T13:45:27.7584805Z 787 843 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T13:45:27.7653800Z 787 843 info {Download} 73e1d3c7-0c61-5e42-b9ef-5ccbe2159b5b, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
2021-04-23T13:45:27.7654332Z 787 843 info {GetProperty} 73e1d3c7-0c61-5e42-b9ef-5ccbe2159b5b, key: 0
2021-04-23T13:45:27.7729583Z 787 867 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-23T13:45:27.7733298Z 787 867 info {ParseAndProcess} Download state change: 2
2021-04-23T13:45:27.7735801Z 787 827 trace {_PerformStateChange} 73e1d3c7-0c61-5e42-b9ef-5ccbe2159b5b, state change request 0 --> 1
2021-04-23T13:45:27.7736240Z 787 827 error {_Start} (hr:80D02200) _url.empty() [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253]
2021-04-23T13:45:27.7738192Z 787 827 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/download/download.cpp, 253], {_url.empty()} [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-23T13:45:27.7739967Z 787 867 error {SchedBlock} (hr:80D02200) hr [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-23T13:45:27.7741475Z 787 867 error {Process} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-23T13:45:27.7741905Z 787 867 error {operator()} (hr:80D02200) apiRequest->Process(_downloadManager, response) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-23T13:45:27.7745036Z 787 867 error {operator()} (hr:80D02200) DO failure: (null) (hr:0x80D02200) [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(_downloadManager, response)} [/home/matthias/Desktop/azure/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
from do-client.
@Voxel07, how strange - it looks like the caller of the download_url_to_path() api is supplying an empty url, and it looks like the download path is getting supplied with respective download url.
Taking a look at logging line here:
2021-04-23T13:44:32.5969194Z 787 868 info {Download} de5d13bf-8cca-9d49-be24-10424938a42b, new download, url: , dest: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate
Notice the empty url, and the presumed download url getting supplied as the download file destination.
Did you happen to modify the source for either client?
@Nox-MSFT as an FYI
from do-client.
@jimson-msft, I compared the files with meld and could not find a relevant change. So reverted all changes and no that made no difference. To be a 100% sure I downloaded the newest releases from git (changed from 0.6.0 to 0.7.0) and ran the whole setup again. And the log changed. Now the url and dest contain the correct paths. Out of Curiosity I installed the agent with my changes and the the missing url error is gone as well. I think I had changes in the background which were overwritten by the install-deps script.
Unfortunately the E _INVALIDARG Error is still present.
Permissions
matthias@matthias-VirtualBox:/tmp$ sudo ls -la aduc-dl-210426095427/
total 8
drwxrwx--- 2 adu adu 4096 Apr 26 11:54 .
drwxrwxrwt 17 root root 4096 Apr 26 11:55 ..
matthias@matthias-VirtualBox:/tmp$ sudo -H -u adu bash -c 'mkdir aduc-dl-210426124154/test'
matthias@matthias-VirtualBox:/tmp$ sudo -H -u do bash -c 'mkdir aduc-dl-210426124154/test2'
matthias@matthias-VirtualBox:/tmp$ sudo ls -la aduc-dl-210426124154
total 16
drwxrwx--- 4 adu adu 4096 Apr 26 16:06 .
drwxrwxrwt 20 root root 4096 Apr 26 16:04 ..
drwxr-xr-x 2 adu adu 4096 Apr 26 16:06 test
drwxr-xr-x 2 do do 4096 Apr 26 16:06 test2
NewLog
2021-04-27T08:47:46.5425962Z 815 869 trace {_TryRefresh} json file not found at /etc/deliveryoptimization-agent/admin-config.json
2021-04-27T08:47:46.5434820Z 815 869 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-27T08:47:46.5503700Z 815 869 info {Download} 1f2f1c9d-d007-664d-a539-82dd13d285ab, new download, url: http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate, dest: /tmp/aduc-dl-210427084718/workingUpdate
2021-04-27T08:47:46.5507854Z 815 869 info {GetProperty} 1f2f1c9d-d007-664d-a539-82dd13d285ab, key: 0
2021-04-27T08:47:46.5589853Z 815 870 error {Get} (hr:8007023E) std::exception: No such node (RestControllerValidateRemoteAddr) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/util/do_json_parser.h, 27]
2021-04-27T08:47:46.5593281Z 815 870 info {ParseAndProcess} Download state change: 2
2021-04-27T08:47:46.5599869Z 815 864 trace {_PerformStateChange} 1f2f1c9d-d007-664d-a539-82dd13d285ab, state change request 0 --> 1
2021-04-27T08:47:46.5601573Z 815 864 error {_Start} (hr:80070057) Error: 1, basic_ios::clear: iostream error, file: /tmp/aduc-dl-210427084718/workingUpdate [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/download/download.cpp, 265]
2021-04-27T08:47:46.5603121Z 815 864 error {operator()} (hr:80070057) DO failure: Error: 1, basic_ios::clear: iostream error, file: /tmp/aduc-dl-210427084718/workingUpdate (hr:0x80070057) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/download/download.cpp, 265], {E_INVALIDARG} [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/threading/task_thread.cpp, 80]
2021-04-27T08:47:46.5604769Z 815 870 error {SchedBlock} (hr:80070057) hr [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/threading/task_thread.cpp, 96]
2021-04-27T08:47:46.5606263Z 815 870 error {Process} (hr:80070057) DO failure: (null) (hr:0x80070057) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/threading/task_thread.cpp, 96], {hr} [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/ipc/rest_api_request.cpp, 83]
2021-04-27T08:47:46.5606696Z 815 870 error {operator()} (hr:80070057) apiRequest->Process(*_downloadManager, response) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63]
2021-04-27T08:47:46.5609685Z 815 870 error {operator()} (hr:80070057) DO failure: (null) (hr:0x80070057) [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/ipc/rest_http_controller.cpp, 63], {apiRequest->Process(*_downloadManager, response)} [/home/matthias/Desktop/azure/compare/do-client/client-lite/src/ipc/rest_http_controller.cpp, 76]
from do-client.
Thanks @Voxel07, In this case - the E_INVALIDARG may be the result of the DU and DO user/groups not being set up. The error specifically looks like DO does not have permissions to download to the destination path (the DU sandbox).
DU agent runs as DU user and DO runs as DO user - in our binary distributions (debian packages) - the debian control scripts handle provisioning this. If you're building from source, its possible that the DU and DO user/group is not being setup correctly. I believe I've seen this issue a couple times on the DU github issues as well - so this is great feedback for our teams to make the the provisioning of the user/group more clear.
Consider reviewing our control scripts (they're just shell scripts) to find the relevant code to setup the DO/DU users directly.
The DO control script which handles post-install and setup of the user/group can be run from here:
https://github.com/microsoft/do-client/blob/main/client-lite/build/postinst.in.sh
The DU control script which handles post-install and setup of the user/group can be run from here:
https://github.com/Azure/iot-hub-device-update/blob/main/packages/debian/postinst
from do-client.
@jimson-msft I already looked into the src code to find out how it should be and wrote my own setup script. But I will take another look into this tomorrow.
@ValOlson mentioned how to set it up until the documentation is updated.
I am running the Agent with this command:
matthias@matthias-VirtualBox:~/Desktop/azure/do-client$ sudo -H -u adu bash -c AducIotAgent
And when looking at the process with "top" I can see that DU is running as du and DO as do. The only thing remaining thing is the do agent exe in /usr/local/bin
voxel@ubuntu:/usr/local/bin$ ll
total 14992
drwxr-xr-x 2 root root 4096 Apr 19 10:23 ./
drwxr-xr-x 10 root root 4096 Aug 6 2020 ../
-rwxr-xr-x 1 root root 15341520 Apr 19 10:11 deliveryoptimization-agent*
should this be
voxel@ubuntu:/usr/local/bin$ ll
total 14992
drwxr-xr-x 2 root root 4096 Apr 19 10:23 ./
drwxr-xr-x 10 root root 4096 Aug 6 2020 ../
-rwxr-xr-x 1 root do 15341520 Apr 19 10:11 deliveryoptimization-agent*
from do-client.
Here are the updated instructions on how to create 'adu' user and group that includes the DO agent.
from do-client.
@ValOlson @jimson-msft Thank you very much for helping with this.
- I deleted the agent in /usr/lib. The install_prefix mentioned in build.sh is also /usr/local.
If my research is correct, then this is the folder for programs installed with a package manager. And when compiling software with cmake,... it should be placed in /user/local/lib. Pls correct me if I am wrong, because the build.sh with the --install option puts it into /usr/lib/adu.
- Then I changed the permissions of the agent in /local/lib according to the new instructions. To me everything looks the same, but the download is now successful.
2021-04-28T07:42:30.2194Z [I] --!!--Downloading File 'workingUpdate' from 'http://iot-hub-update-instance-schneider--device-update-schneider.b.nlu.dl.adu.microsoft.com/northeurope/IoT-Hub-Update-Instance-Schneider--device-update-schneider/8761c4bc9566483a94ef012d0426f9b2/workingUpdate' to '/tmp/aduc-dl-210428074149/workingUpdate' [Download]
2021-04-28T07:42:48.6492Z [I] Validating file hash [Download]
2021-04-28T07:42:54.5827Z [I] microsoft_swupdate_CreateFunc called. [microsoft_swupdate_CreateFunc]
2021-04-28T07:42:54.5827Z [I] Download called - no-op for swupdate [Download]
2021-04-28T07:42:54.5827Z [I] Content Handler Download resultCode: 1, extendedCode: 0 [Download]
2021-04-28T07:42:54.5828Z [I] ProgressCallback: workflowId: 210428074149; Id 00000; State: Completed; Bytes: 144549945/144549945 [DownloadProgressCallback]
2021-04-28T07:42:54.5828Z [I] Download resultCode: 1, extendedCode: 0 [Download]
2021-04-28T07:42:54.5828Z [I] Action 'Download' complete. Result: 1, 0 [ADUC_Workflow_WorkCompletionCallback]
2021-04-28T07:42:54.5828Z [I] WorkCompletionCallback: Download succeeded. Going to state DownloadSucceeded [ADUC_Workflow_WorkCompletionCallback]
2021-04-28T07:42:54.5828Z [I] Setting UpdateState to DownloadSucceeded [ADUC_SetUpdateStateHelper]
2021-04-28T07:42:54.5828Z [I] Reporting state: DownloadSucceeded (2) [AzureDeviceUpdateCoreInterface_ReportStateAndResultAsync]
from do-client.
@jimson-msft, @ValOlson can this issue be closed?
from do-client.
Related Issues (12)
- Missing cmake-file deliveryoptimization_sdk-targets.cmake? HOT 2
- Provide Documentation for Apt Plugin HOT 2
- Support for armhf HOT 3
- After installation and configuration of du-config.json Apt-get update no longer works on Ubuntu 18.04 server VM HOT 1
- Are versions being tracked properly HOT 4
- raspberry pi 4: apt fails with "Sub-process https received a segmentation fault" HOT 4
- Ubuntu Bootstrapper: Python failes with "invalid syntax". Command "python setup.py egg_info" failed wit error code 1 HOT 1
- Testing DO Client components: Download tests fails HOT 4
- build/boostrap.sh lacks execute permissions and has several errors on Ubuntu 20.04 HOT 2
- build fails on Ubuntu 20.04 HOT 2
- DO-Agent uses to mutch RAM HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from do-client.