aws-samples / aws-samples/easy-amazon-sagemaker-deployments

update_endpoint is a no-op in sagemaker>=2 (local or SageMaker deployment)

Open
#5 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
63
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I receive the following warning whenever I try to deploy an XgBoost model or GluonCV model (which had previously worked with ezsmdeploy). I am now using version 1.0.8.

```
update_endpoint is a no-op in sagemaker>=2.
See: https://sagemaker.readthedocs.io/en/stable/v2.html for details.
```

In addition, when I try to deploy locally, I subsequently get the following error:

```
0:00:07.305984 | created model(s). Now deploying on local
∙∙∙

Exception in thread Thread-10:
Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/local/image.py", line 627, in run
_stream_output(self.process)
File "/home/ec2-user/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/local/image.py", line 687, in _stream_output
raise RuntimeError("Process exited with code: %s" % exit_code)
RuntimeError: Process exited with code: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ec2-user/anaconda3/envs/mxnet_p36/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/ec2-user/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages/sagemaker/local/image.py", line 632, in run
raise RuntimeError(msg)
RuntimeError: Failed to run: ['docker-compose', '-f', '/tmp/tmp0gjglfd6/docker-compose.yaml', 'up', '--build', '--abort-on-container-exit'], Process exited with code: 1

```

For SageMaker deployment, I get the following (presumably because the above docker command failed)

`UnexpectedStatusException: Error hosting endpoint ezsmdeploy-endpoint-lk4we6jfx2uyjpz8tbdhhe: Failed. Reason: The image 'XXX.dkr.ecr.us-east-1.amazonaws.com/ezsmdeploy-image-lk4we6jfx2uyjpz8tbdhhe' does not exist..`

Not sure how to get around this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.