-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Unable to locate executable file: 'iotedgedev' #14167
Comments
We have the same issue. It appears since yesterday without any changes. AzureIoTEdge task version 2.4.5 |
It will disappear after some hours magically probably.
|
+1. Not liking the idea of manually installing dependencies for devops tasks. Calling pip manually feels wrong. If we end up doing that we might also consider removing the devops task and using custom scripts instead. |
Totally agree. The suggestion is meant as a workaround. But for deploying deploment manifests to IoT hub, we switched to custom azure CLI script. This is weirdly much faster than the IoT Edge pipeline task. |
I just stumbled upon this issue aswell. Did you just wait a few hours, and ran the pipeline again? |
Our pipeline still failed today in the moring. Therefore we replaced the devops task with a custom script. |
Did the script include the 'pip install -U iotedgedev' mentioned above? I'm not sure how to install iotedgedev |
@holmeren This happened to me about three times. In my case it disappeared every time after some hours, when I retried to run the pipeline. |
@randomstring384540 could you share your custom script to replace the IoTEdge pipeline task |
@randomstring384540 Oh, I just saw, its logged in the pipeline run: |
After 14 hours and no success, i tried updating Agent Specification fromubunto-18.04 -> ubunto-20.04, and it seems to work :) |
Hi @holmeren @oliverchristen is this issue still reproducible for you? |
@anatolybolshakov not for me at the moment. |
@anatolybolshakov Yes. It is reproducible for me if I don't specify a build agent. It goes away if I add below to YAML. pool:
vmImage: ubuntu-latest |
@microsoft/akvelon-ecosystem-team this seem to be related to some difference between ubuntu-18.04 and ubuntu-20.04 - do you know if this is some known issue? |
@anatolybolshakov it's not known. We will take a look |
@kiranpradeep @holmeren I'm unable to reproduce the issue on Ubuntu 18 Image version 20210330.1. azure-pipelines-tasks/Tasks/AzureIoTEdgeV2/util.ts Lines 88 to 94 in 8c190dc
Could you please clarify, on which version do you see the issue? It can be found here |
Version: 20210327.1. Last run was at 2021-04-07T07:20:58.0398479Z. Also to be clear, the error is only if I don't mention |
@kiranpradeep it looks like if you don't specify the vmImage the pipeline will run on Ubuntu 16.04, which is not supported by the task I guess. |
As on 2021-03-12T12:47:51.4740078Z, the task worked for Ubuntu 16.04.7. The Version field then was 20210302.0. |
As of today we have the same problem. Our Build-Pipeline is not running anymore with any agent (I event tried the Windows one...) |
@karakal could you please share the logs? |
@kiranpradeep @anatolybolshakov it looks like some of the pip modules drop support for python 3.5, which is the default one on Ubuntu 16 |
Here you find my log. I removed all private parts of the log, I hope the requested information can be find within.... |
I tried the build on:
The build failed with all agents. |
@karakal what version of task do you use?
|
2.* I don't have any other choice? |
@karakal Sorry, I meant the exact version, found it from the logs — |
@marianan I tried building with Ubuntu 18.04 with following configuration and it worked: It is not a critical issue for us anymore as the workaround exists. Thanks for your help I will keep you posted, should this issue reoccur. |
@YarekTyshchenko and @Vic152 thanks for your follow ups. The issue on Ubuntu 20.04 seems to originate from the python version (3.8) but we have yet to narrow down the root cause. At this point Ubuntu 16.04 and Ubuntu 18.04 are expected to both work well with the Azure IoT Edge V2 task 2.4.7. |
@marianan @cindydeng1998 For an unknown reason this workaround still works for me with vmImage 20.04. |
For me too. But it doesn't work on Ubuntu 18.04.... |
@marianan I just tried ubuntu-18.04 agent with task v2.4.7 and it did successfully pull down 3.0.0. It fails on 20.04 because the requires-python metadata in setup.py on the recently released packages exclude it from installation on higher python versions -- i.e. running this works: @oliverchristen that workaround (manually running a |
@stewartadam you are correct; Ubuntu 20.04 defaults to python 3.8 which isn't yet supported by iotedgedev. |
Since specific version of Python and/or dependencies are required, can this task be moved to using a Docker container? |
Thanks @stewartadam, your suggestion has been added to our backlog. As there are no recent symptoms of this issue, I am closing it. |
@marianan I just got this issue again today, so it doesn't seem fixed:
I tried removing the version pin I had for the AzureIoTEdge task (to 2.4.5, as a workaround for this issue), but it seems I have to revert that again. |
@timstokman can you confirm your agent pool |
@stewartadam It's set to "ubuntu-latest" |
@timstokman the comments above elaborate in more detail, but due to Python version compatibility issues the build task will function on 16.04 and 18.04 but not 20.04 (which is what is tagged as 'ubuntu-latest'). |
@marianan since this issue still persists on the default agent, I would suggest to reopen this issue and only close it when the fix is released. What do you think? |
Hi @oliverchristen , I suggest filing a new issue to track the work for Ubuntu 20.04 support and linking it here. The root cause for this issue has been resolved so I feel that it will be more clear if we start a new thread. Also, supporting Ubuntu 20.04 is already in our backlog but it doesn't hurt to have a tracking thread on GitHub for everyone's awareness. Does this sound like a plan? |
Thanks for the suggestion @marianan. But I don't see the necessity to start a new thread. The initial issue still persists since it's probably related to Ubuntu 20.04. It would also be nice to link the backlog item for the Ubuntu 20.04 support here. It's not yet, isn't it? |
I have the same problem and the same workaround "works".
It also doesn't work anymore at all with 18.0.4.
I would also prefer to keep this bug open and not start another thread
anywhere...
Oliver Christen ***@***.***> schrieb am Mi., 12. Mai 2021,
07:47:
… Thanks for the suggestion @marianan <https://github.com/marianan>. But I
don't see the necessity to start a new thread. The initial issue still
persists since it's probably related to Ubuntu 20.04. It would also be nice
to link the backlog item for the Ubuntu 20.04 support here. It's not yet,
isn't it?
For me it only works with the workaround
pip install -U iotedgedev
which I don't understand why this works - but it does. I would rather
remove this workaround.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14167 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASVXJNHVE7VAZJF4DVAMBDTNII6VANCNFSM4VSZ37BQ>
.
|
Hi everyone, if anyone is still having this issue, this is how I solved it: Enable debugging logs (set build variable system.debug = true) From the logs I found these lines: and: So I just set a build variable to the latest version specified in the logs, in this case: IOTEDGEDEV_VERSION=2.1.0 I then just ran the build pipline again and it solved the issue. I was running on |
Type: Bug
Enter Task Name: AzureIoTEdgeV2
Environment
vmImage ubuntu 20.04.1
agent version 2.179.0
AzureIoTEdge task version 2.4.5
Issue Description
##[error]Error: Unable to locate executable file: 'iotedgedev'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.
This happened from time to time and solves itself after some hours. But it happens again every few weeks.
All the required informations are found here:
https://developercommunity.visualstudio.com/content/problem/1282804/errorerror-unable-to-locate-executable-file-iotedg-1.html
If full log is required, I can provide it privately.
The text was updated successfully, but these errors were encountered: