Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
When I Send A Request Of Creating A User To Clearml-Apiserver, It Logs An Error Likes This:

@<1523701205467926528:profile|AgitatedDove14>
When I send a request of creating a user to ClearML-APIServer, it logs an error likes this:

[2022-05-17 09:34:13,337] [8] [WARNING] [clearml.service_repo] Returned 400 for auth.create_user in 7ms, msg=Value combination already exists:

I search the error in ClearML-Server source codes, and find out that this error may come up when userid existed in backend.

raise errors.bad_request.UserIdExists(id=user_id)
source codes: 

So I delete this user in user collection of auth database as well as user collection of backend. However, this error comes up again when I create the same user.

How can I solve this problem?

Tips:

  • ClearML-Server: 1.0.2
  
  
Posted 2 years ago
Votes Newest

Answers 24


Sorry, my test environment crashed. I have to fix it first to reproduce the problem. 😓

  
  
Posted 2 years ago

auth.user

  
  
Posted 2 years ago

Sorry, I can not understand what does nut from mean.

  
  
Posted 2 years ago

I am sure that I delete this user in auth.user and backend.user before call auth.create_user

  
  
Posted 2 years ago

And are you using an email that does not exist in the server?

  
  
Posted 2 years ago

ok, I check it now

  
  
Posted 2 years ago

but it's still there... can you try to delete again? Also, is this a new company?

  
  
Posted 2 years ago

Sorry, I meant "But from the picture you sent this user exists" 😄

  
  
Posted 2 years ago

which collection?

  
  
Posted 2 years ago

hi , @<1687645223846416384:profile|GracefulToad94> .
About Upgrade.

This version is deployed in the productive environment, so it is not easy to upgrade it.

About special user.

an ordinary user with the following information:
url:

http://{webServerHost}/api/v2.13/auth/create_user

createRequest:

type AuthCreateUserReq struct {
   Avatar     string 
   // brain, this value is also configured for apiserver's env CLEARML__APISERVER__DEFAULT_COMPANY(brain)
   Company    string 
   // kubebrain@megvii.com
   Email      string 
   // kubebrain
   FamilyName string 
   // kubebrain
   GivenName  string  
   // kubebrain
   Name       string 
   // user
   Role       string 
}

hi, @<1523701087100473344:profile|SuccessfulKoala55>
About creation.

like above

About unique.

This user is the first user in this company, so I think it is unique.

  
  
Posted 2 years ago

Also, please note auth.create_user will only create an auth user - this is part of the server's internal process and is not a complete user

  
  
Posted 2 years ago

hey @<1523704089874010112:profile|FloppyDeer99>
did you manage to get rid of your issue ?
thanks

  
  
Posted 2 years ago

no, I just suspend this issue.

  
  
Posted 2 years ago

image

  
  
Posted 2 years ago

I check it with the following result:

action:

auth.create_user

mongo:

see picture

apiserver logs:
`[2022-05-17 10:02:50,024] [8] [WARNING] [clearml.service_repo] Returned 400 for auth.create_user in 8ms, msg=Value combination already exists: email=

`

image

  
  
Posted 2 years ago

@<1523704089874010112:profile|FloppyDeer99> , can you try upgrading your server? It appears to be pretty old version.

When looking at the user in MongoDB, is it some special user or just something regular?

  
  
Posted 2 years ago

How can I ensure that whether this email has existed in the server?

Check mongo?

  
  
Posted 2 years ago

that's one way, yeah

  
  
Posted 2 years ago

And there is a user there already with the same email?

  
  
Posted 2 years ago

@<1523704089874010112:profile|FloppyDeer99> how exactly are you creating the user? the uniqueness is for the user's email in the company

  
  
Posted 2 years ago

😞 anything that can be done?

  
  
Posted 2 years ago

  • delete documents in auth.user and backend.user - > see picture
  
  
Posted 2 years ago

No, this is the first user in the brain company.

  
  
Posted 2 years ago

Nut from the picture you sent this user exists

  
  
Posted 2 years ago
597 Views
24 Answers
2 years ago
8 months ago
Tags