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

job fails to submit when containing directory includes a dash #42

Closed
jjallaire opened this issue Dec 4, 2017 · 3 comments
Closed

job fails to submit when containing directory includes a dash #42

jjallaire opened this issue Dec 4, 2017 · 3 comments

Comments

@jjallaire
Copy link
Member

I had a directory with a dash in it (hello-cloudml) and got this error:

ERROR: (gcloud.ml-engine.jobs.submit.training) INVALID_ARGUMENT: Field: job_id Error: A name should start with a letter and contain only letters, numbers and underscores.
- '@type': type.googleapis.com/google.rpc.BadRequest
  fieldViolations:
  - description: A name should start with a letter and contain only letters, numbers
      and underscores.
    field: job_id

Renaming the directory to hello_cloudml resolved the error. Perhaps we need to substitute invalid characters somewhere in the submission pipeline?

@jjallaire
Copy link
Member Author

Trining to make the local directory name align with the project name however project names can’t include _ in them. So right now the only way to have the local directory and the project name be the same is to include neither - nor _ (e.g. “hellocloudml”)

@hafizurcse
Copy link

hafizurcse commented Jun 18, 2018

In my case, the job name was the issue. Google makes an issue if you have dash (-) in your job name.

For example, following were not working and producing an error as reported by @jjallaire:

PROJ_NAME="my-first-project"
JOB_NAME=$PROJ_NAME"_$(date +%Y%m%d_%H%M%S)"

Then I replaced by:

PROJ_NAME="my_first_project"
JOB_NAME=$PROJ_NAME"_$(date +%Y%m%d_%H%M%S)"

and it works fine.

@sohartma
Copy link

In my case, the job name was the issue. Google makes an issue if you have dash (-) in your job name.

For example, following were not working and producing an error as reported by @jjallaire:

PROJ_NAME="my-first-project"
JOB_NAME=$PROJ_NAME"_$(date +%Y%m%d_%H%M%S)"

Then I replaced by:

PROJ_NAME="my_first_project"
JOB_NAME=$PROJ_NAME"_$(date +%Y%m%d_%H%M%S)"

and it works fine.

Hi, i'm having the same issue. Where exactly did you rename your project and job names? I renamed my project in the google cloud, that doesn't help. I renamed my job in the command i run in the terminal, that doesn't help either...

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

3 participants