Skip to content
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

AI Platform prediction hosting fails #42

Open
dvdjlaw opened this issue Dec 10, 2020 · 0 comments
Open

AI Platform prediction hosting fails #42

dvdjlaw opened this issue Dec 10, 2020 · 0 comments

Comments

@dvdjlaw
Copy link
Member

dvdjlaw commented Dec 10, 2020

(project name has been redacted)

Using endpoint [
https://us-central1-ml.googleapis.com/
]
Listed 0 items.
Using endpoint [
https://ml.googleapis.com/
]
ERROR: (gcloud.beta.ai-platform.models.create) Resource in projects [...] is the subject of a conflict: Field: model.name Error: A model with the same name already exists.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: A model with the same name already exists.
    field: model.name
Traceback (most recent call last):
  File "host_xgboost.py", line 46, in <module>
    run()
  File "host_xgboost.py", line 35, in run
    subprocess.check_call([shutil.which('gcloud'),'beta', 'ai-platform','models','create',MODEL_NAME,'--regions','us-central1', "--enable-logging", "--enable-console-logging"])
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/gcloud', 'beta', 'ai-platform', 'models', 'create', 'xgboost_FT', '--regions', 'us-central1', '--enable-logging', '--enable-console-logging']' returned non-zero exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant