question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Cloud - "ResourceNotFoundException"

See original GitHub issue

I followed the instructions here for creating a docker repo with my model for Google Cloud deployment:

https://cloud.google.com/blog/topics/developers-practitioners/pytorch-google-cloud-how-deploy-pytorch-models-vertex-ai

When I run a health check, I get

curl localhost:7080/ping
{
  "status": "Healthy"
}

When I try:

curl -s -X POST \
  -H "Content-Type: application/json; charset=utf-8" \
  -d @./predictor/instances.json \
  http://localhost:7080/predictions/conv1dppm/

I get the error:

{
  "code": 404,
  "type": "ResourceNotFoundException",
  "message": "Requested resource is not found, please refer to API document."
}

So I should refer to the API. Except when I do that, nothing works. I have tried:

curl localhost:7080/models
curl localhost:7081/models
curl localhost:7080/models/all
curl localhost:7080/conv1dppm
etc.

Everything gives back that same error or something similar. Has anyone had any success deploying a model on Google Cloud? If not there, where? Why is the model “healthy” when it clearly doesn’t look healthy?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
therealjjj77commented, Oct 8, 2021

Figured out the problem. Every def from the preprocess down somehow got untabbed, so wasn’t getting called within the class. Well, I feel like a fool now.

0reactions
therealjjj77commented, Oct 10, 2021

Regarding the non-aggregate batching, I was able to get it working by modifying the custom preprocess such that it dynamically take batches in single requests. The data comes in as dims (batch_size, data_dim1, data_dim2) and then is treated accordingly such that batch_size receives -1 in all tensor views.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception SpannerException.ResourceNotFoundException ...
Open source tool to provision Google Cloud resources with declarative configuration files. ... Game server management service running on Google ...
Read more >
Getting ResourceNotFoundException on few message p...
we validated the deployments and tree using below api commands but we did not find any unusual. MPhost:8083/v1/classification/tree. MShost:8080/ ...
Read more >
com.google.gdata.util.ResourceNotFoundException
It seems to me that the resource you are trying to download according to the URL you are building is no longer there....
Read more >
ResourceNotFoundException is raised when querying ACM ...
A ResourceNotFoundException may be raised when a ansible module invokes the get_certificates function defined in module_utils/acm.py.
Read more >
GCDS error messages - Google Workspace Admin Help
You might encounter the following error messages when using Google Cloud ... ResourceNotFoundException: The sync key attribute specified in the Shared ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found