-
Notifications
You must be signed in to change notification settings - Fork 89
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
exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error #28
Comments
Finally the problem was that I was doing the build on a Mac with M1 Apple Silicon, and the architecture is not compatible. The solution is simply to specify the architecture in the Dockerfile or in the build command: I close the issue. I hope the error message I used in the title can help someone in the future. As a suggestion it would be interesting to add the architecture inside the Dockerfile or a note in the README. |
@tomasborrella thanks for your prompt reply. But I should have mentioned earlier, I already this in my Dockerfile, but still having the same error. It's worth to share the my Dockerfile, only thing I could think of the FileSystemConfig the mount-path as
|
I specify the platform within the Dockerfile, in the FROM (first line): Regarding the user home and IDs, make sure you are adding the image settings correctly, it should look like this:
|
Thanks I think it's working only thing I changed now instance type...be aware even though it works fine, it will still throw same error in CWLogs ... don't know why...but it's working |
This doesn't seem to have been added to the Readme or the Dockerfile. Maybe we should re-open until this has been done @tomasborrella? |
I reopen the issue (as suggested) because it would be nice to have the information updated in the Readme or the Dockerfile. |
I've been trying to use my own custom image in SageMaker Studio and I always get the same error when trying to associate a notebook to the kernel (as seen in SageMaker Studio) :
And, the only log event seen in CloudWatch for the image is:
exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error.
At first I thought it might be a bug in my container, so I have carefully checked all the steps described in DEVELOPMENT.md.
And finally, to try to discard a bug in the platform I tried to use the examples
echo-kernel-image and python-poetry-image without modifications from the repository and in both of them the same error occurred.
I have also tried the tf23-image example, and it works, so I have been comparing the images and my feeling is that it could be related to the base image (the operating system used in the container): echo-kernel-image and python-poetry-image are based on
debian
and tf23-image is based onubuntu
. Could that be the issue?Could you please confirm that echo-kernel-image and python-poetry-image images are working (as is) in current SageMaker Studio version?
The text was updated successfully, but these errors were encountered: