Open idbanham opened 4 years ago
@idbanham Thanks for the feedback! We are currently investigating and will update you shortly.
@idbanham We are engaging with the content author to have the code validated with the sample creators on this. Thank you for your patience on the same.
@mlottner Could you please help on this issue . As per the output provided by the customer, we may need to update the article as the sample output seems to be failing in different situations.
@idbanham Thanks for your message and feedback. I'm working with the developer to try to understand what happened and why your install in failing. Stay tuned.
@idbanham In trying to understand where and why your install failed, I believe you were trying to use the source code to install rather than the binaries. The binaries are found per OS under the release tab. I'll update the page to ensure the distinction is more clear. Meanwhile, can you please confirm you are using the correct binary from the release tab to attempt the agent installation?
Hi
Sorry for slow reply - yes I was using the src. There's quite a few other tools in the Microsoft pattern where you just take a copy of the repo and follow the instructions. I just followed that pattern. Agree the instructions could be made clearer. https://github.com/Azure/azure-iot-sdk-csharp/tree/master/tools/DeviceExplorer might be a useful example.
I'll attempt another install using the right files on Monday.
regards
Ian
On Sun, Dec 15, 2019 at 2:08 PM Miriam Lottner notifications@github.com wrote:
@idbanham https://github.com/idbanham In trying to understand where and why your install failed, I believe you were trying to use the source code to install rather than the binaries. The binaries are found per OS under the release tab. I'll update the page to ensure the distinction is more clear. Meanwhile, can you please confirm you are using the correct binary from the release tab https://github.com/Azure/Azure-IoT-Security-Agent-CS/releases to attempt the agent installation?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/azure-docs/issues/44133?email_source=notifications&email_token=AJ4R5ALWNWIVNMJHYT2R3FDQYY24JA5CNFSM4JV3D3C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG4Z5ZA#issuecomment-565812964, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4R5AKTCHZUDBIXDN5YK63QYY24JANCNFSM4JV3D3CQ .
For point 2 of the installation process "Extract the contents of the package and navigate to the /Install folder." There is no /Install folder. InstallSecurityAgent.sh is found in /Azure-IoT-Security-Agent-CS-master/src/Modules/Security/Linux/Install folder. However, if you run if from there the installation fails with " ./InstallSecurityAgent.sh: line 183: /home/xxx/Azure-IoT-Security-Agent-CS-master/src/Modules/Security/Linux/Install/CoreAgentInstallation.sh: No such file or directory"
CoreAgentInstallation.sh can be found in Azure-IoT-Security-Agent-CS-master/src/Agent/Linux/Install but there's no InstallSecurityAgent.sh script in this directory only a InstallAgent.sh if you try to run that it fails with "Failed to start MSIoTAgent.service: Unit MSIoTAgent.service not found" There's no file in the repo with that name.
Copying the CoreAgentInstallation.sh to the /Azure-IoT-Security-Agent-CS-master/src/Modules/Security/Linux/Install folder gives some level of success... however you get errors that Authentication.config cannot be read and finally after the message "installing agent" you get the messages "Failed to execute operation: Unit file is masked" and Failed to start ASCIoTAgent.service: Unit ASCIoTAgent.service is masked.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.