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

User could not be found when used DefaultInstance in the chart #156

Closed
suchitsancheti opened this issue Jan 1, 2024 · 3 comments
Closed
Labels

Comments

@suchitsancheti
Copy link

I am trying to deploy the Zitadel on k8s using the helm chart and with the configuration as:

zitadel:
  masterkeySecretName: zitadel-masterkey
  configmapConfig:
    ExternalSecure: true
    ExternalDomain: dev.example.com
    ExternalPort: 443
    TLS:
      Enabled: false
    Log:
      Level: info
      Formatter:
        Format: text
    DefaultInstance:
      InstanceName: MyInstance
      DefaultLanguage: en
      Org:
        Name: MyOrg
        Human:
          FirstName: MyOrg
          LastName: Admin
          DisplayName: MyOrg Admin
          UserName: myorg-admin
          Password: <Password>
          PreferredLanguage: en
      MessageTexts:
        - MessageTextType: InitCode
          Language: en
          Title: "MyOrg - User Initialize User"
          PreHeader: Initialize User
          Subject: Initialize User
          Greeting: "Hello {{.DisplayName}},"
          Text: "This user was created. Use the username {{.PreferredLoginName}} to login. Please click the button below to finish the initialization process. (Code {{.Code}}) If you didn't ask for this mail, please ignore it."
          ButtonText: "Finish initialization"
      SMTPConfiguration:
        SMTP:
          Host: <SMTP Host>
          User: <SMTP User>
          Password: <SMTP Password>
        From: "[email protected]"
        FromName: "MyOrg Email"
        ReplyToAddress: "[email protected]"
  configSecretName: zitadel-db-config-secret
  configSecretKey: db_config.yaml

ingress:
  enabled: true
  className: kong
  hosts:
    - host: dev.example.com
      paths:
        - path: /
          pathType: Prefix
              
  

When I hit the URL https://dev.example.com/ui/console and try to login with user [email protected], it gives the following error:

User could not be found

Screenshot 2024-01-01 at 6 00 07 PM
  • Does Zitadel needs the Organisation to be first created before adding a default instance to any custom organisation? If yes, how to create the Organisation during deployment of the zitadel?
  • If not, then what is wrong here?
@hifabienne
Copy link
Member

@eliobischof @stebenz can you help here?

@hifabienne hifabienne moved this to 🧐 Investigating in Product Management Jan 2, 2024
@dmonad
Copy link

dmonad commented Jan 6, 2024

I think you need to use FirstInstance instead.

Here are the default values:
https://github.com/zitadel/zitadel/blob/main/cmd/setup/steps.yaml

@hifabienne
Copy link
Member

I will close this issue, as there has not been an answer to the last comment.
Please feel free to reopen if the problem still exists and you can confirm that you tried the FirstInstance

@github-project-automation github-project-automation bot moved this from 🧐 Investigating to ✅ Done in Product Management Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants