Open dcaud opened 2 years ago
The error here stems from the fact that in the Cloud Run UI (after a prior successful deployment using cr_deploy_plumber
) I went to EDIT & DEPLOY NEW VERSION and selected this option:
"Second generation PREVIEW File system access, full Linux compatibility, faster CPU performance, slower cold starts."
When I went to redeploy using cr_deploy_plumber
it didn't like the second generation. So, I changed it back to first generation and then everything worked.
Can I see the code that you built with? It's saying the CPU/Memory configuration is not the right syntax.
I don't think it was a syntax problem (see my comment above that I posted just before you did). But a problem with "Second Generation."
This works:
cr <- cr_deploy_plumber(my_plumber_folder,
cpu = 4,
memory= "8Gi",
timeout = 3500,
max_instances = 20
)
(Note that in order for the above to work I changed cr_deploy_plumber
according to #126)
Ok interesting looks like I'll need to keep an eye on this new version to see how it affects deployments. Thanks for info!
Existing gcloud run docs: https://cloud.google.com/sdk/gcloud/reference/run/deploy Beta gcloud run docs: https://cloud.google.com/sdk/gcloud/reference/beta/run/deploy
I guess perhaps original error was because "8Gi" was too big when max was "4Gi" according to error message?
cr_setup_test() passed with flying colors, but with a custom plumber deploy, I get the following error:
Any ideas how to troubleshoot this?