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 one year ago
Votes Newest

Answers 24


  • delete documents in auth.user and backend.user - > see picture
  
  
Posted one year ago

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

Check mongo?

  
  
Posted one year 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 one year 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 one year 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 one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

which collection?

  
  
Posted one year ago

ok, I check it now

  
  
Posted one year ago

auth.user

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

image

  
  
Posted one year 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 one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

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

  
  
Posted one year ago

😞 anything that can be done?

  
  
Posted one year ago

no, I just suspend this issue.

  
  
Posted one year ago

that's one way, yeah

  
  
Posted one year ago

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

  
  
Posted one year ago

Nut from the picture you sent this user exists

  
  
Posted one year ago
55 Views
24 Answers
one year ago
25 days ago
Tags