-
Notifications
You must be signed in to change notification settings - Fork 458
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
standard_init_linux.go:211: exec user process caused "exec format error" #1912
Comments
Hello @nextdynamic, Usually, this error message relates to situation where a user tries to run a container on the unsupported architecture of a host machine. For instance, when tries to run |
I assume that you have followed some kind of guide/tutorial when faced with this issue, right? Could you provide a link for it? In addition, could you post a |
@nextdynamic thank you for sharing the information how you managed to deploy a module. It is going to help us to further investigate what happened on your environment. |
@nextdynamic Did you solve the issue running IoT Edge modules on Raspberry PI 4 with the arm32 architecture, or did you just choose a different path? I am experiencing the same issue reported here. |
This is the link I followed.
It was not the deployment template mods, but the settings.json. Specifically –
"azure-iot-edge.executor.env": {
"DOCKER_HOST": "ssh://pi@192.168.86.74"
}
Using the docker host on windows seemed to cause the cross compiler issue.
From: Denis Molokanov <notifications@github.com>
Sent: Friday, October 25, 2019 4:24 PM
To: Azure/iotedge <iotedge@noreply.github.com>
Cc: Tim Brown <Timothy.Brown@microsoft.com>; Mention <mention@noreply.github.com>
Subject: Re: [Azure/iotedge] standard_init_linux.go:211: exec user process caused "exec format error" (#1912)
I assume that you have followed some kind of guide/tutorial when faced with this issue, right? Could you provide a link for it? In addition, could you post a deployment.template.json? We need as much information as possible to address this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fiotedge%2Fissues%2F1912%3Femail_source%3Dnotifications%26email_token%3DAF3JJ6XFF4GFFCR42AM4ST3QQNIUVA5CNFSM4JFC5P5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECJOYRQ%23issuecomment-546499654&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cbe47b8b91bc149d2951e08d7598938a4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637076318204943894&sdata=oiwfAQwZJXxOIP6jwxIGHO%2B6k82i%2BA4oxv2SA3CuoO0%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAF3JJ6W4NURTUDR62Y63HYDQQNIUVANCNFSM4JFC5P5A&data=02%7C01%7Ctimothy.brown%40microsoft.com%7Cbe47b8b91bc149d2951e08d7598938a4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637076318204943894&sdata=06hZpMH7twISOU3pvEsCVNu9XbPdxEJoLRYGENyEOWo%3D&reserved=0>.
|
Expected Behavior
On Raspberry Pi4, I want to deploy a custom python module.
Current Behavior
The module deploys, but I receive the following error:
standard_init_linux.go:211: exec user process caused "exec format error"
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
Context (Environment)
Visual Studio Code [ latest ]
Iot Edge extensions
Python 3.7.3
Raspberry Pi4 with Docker running and IoT Edge installed
Output of
iotedge check
pi@rpi4-tibrown:~ $ sudo iotedge check
Configuration checks
√ config.yaml is well-formed - OK
√ config.yaml has well-formed connection string - OK
√ container engine is installed and functional - OK
√ config.yaml has correct hostname - OK
√ config.yaml has correct URIs for daemon mgmt endpoint - OK
√ latest security daemon - OK
√ host time is close to real time - OK
√ container time is close to host time - OK
‼ DNS server - Warning
Container engine is not configured with DNS server setting, which may impact connectivity to IoT Hub.
Please see https://aka.ms/iotedge-prod-checklist-dns for best practices.
You can ignore this warning if you are setting DNS server per module in the Edge deployment.
‼ production readiness: certificates - Warning
Device is using self-signed, automatically generated certs.
Please see https://aka.ms/iotedge-prod-checklist-certs for best practices.
√ production readiness: certificates expiry - OK
‼ production readiness: container engine - Warning
Device is not using a production-supported container engine (moby-engine).
Please see https://aka.ms/iotedge-prod-checklist-moby for details.
‼ production readiness: logs policy - Warning
Container engine is not configured to rotate module logs which may cause it run out of disk space.
Please see https://aka.ms/iotedge-prod-checklist-logs for best practices.
You can ignore this warning if you are setting log policy per module in the Edge deployment.
Connectivity checks
√ host can connect to and perform TLS handshake with IoT Hub AMQP port - OK
√ host can connect to and perform TLS handshake with IoT Hub HTTPS / WebSockets port - OK
√ host can connect to and perform TLS handshake with IoT Hub MQTT port - OK
√ container on the default network can connect to IoT Hub AMQP port - OK
√ container on the default network can connect to IoT Hub HTTPS / WebSockets port - OK
√ container on the default network can connect to IoT Hub MQTT port - OK
√ container on the IoT Edge module network can connect to IoT Hub AMQP port - OK
√ container on the IoT Edge module network can connect to IoT Hub HTTPS / WebSockets port - OK
√ container on the IoT Edge module network can connect to IoT Hub MQTT port - OK
√ Edge Hub can bind to ports on host - OK
19 check(s) succeeded.
Click here
Device Information
Runtime Versions
iotedge version
]: iotedge 1.0.8 (208b220)docker version
]: 19.03.4Note: when using Windows containers on Windows, run
docker -H npipe:////./pipe/iotedge_moby_engine version
insteadLogs
pi@rpi4-tibrown:~ $ sudo iotedge logs samplemodule
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
iotedged logs
The text was updated successfully, but these errors were encountered: