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

Unable to login #363

Open
gigi206 opened this issue Aug 24, 2022 · 1 comment
Open

Unable to login #363

gigi206 opened this issue Aug 24, 2022 · 1 comment

Comments

@gigi206
Copy link

gigi206 commented Aug 24, 2022

Server crash when login

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: zulip
  namespace: argo-cd
spec:
  destination:
    namespace: zulip
    server: 'https://kubernetes.default.svc'
  source:
    path: kubernetes/chart/zulip
    repoURL: 'https://github.com/zulip/docker-zulip/'
    targetRevision: 5.5-0
    helm:
      parameters:
        - name: ingress.enabled
          value: 'true'
        - name: 'ingress.hosts[0].host'
          value: zulip.gigix
        - name: 'ingress.hosts[0].paths[0].path'
          value: /
        - name: 'ingress.hosts[0].paths[0].pathType'
          value: Prefix
        - name: 'ingress.tls[0].secretName'
          value: zulip-tls
        - name: 'ingress.tls[0].hosts[0]'
          value: zulip.gigix
        - name: ingress.annotations.cert-manager\.io/cluster-issuer
          value: selfsigned-cluster-issuer
        - name: ingress.className
          value: nginx
        - name: persistence.enabled
          value: 'true'
        - name: persistence.size
          value: 2Gi
        - name: zulip.environment.ZULIP_AUTH_BACKENDS
          value: GoogleAuthBackend
        - name: zulip.environment.SETTING_EMAIL_HOST
          value: mailhog.mailhog.svc.cluster.local
        - name: zulip.environment.SETTING_EMAIL_PORT
          value: '25'
        - name: zulip.environment.SETTING_EXTERNAL_HOST
          value: zulip.gigix
        - name: zulip.password
          value: set-secure-password
        - name: memcached.memcachedPassword
          value: set-secure-password
        - name: rabbitmq.auth.password
          value: set-secure-password
        - name: rabbitmq.auth.erlangCookie
          value: set-secure-password
        - name: redis.auth.password
          value: set-secure-password
        - name: postgresql.auth.postgresqlPassword
          value: set-secure-password
        - name: postgresql.auth.password
          value: set-secure-password
        - name: zulip.persistence.enabled
          value: 'true'
        - name: zulip.persistence.size
          value: 1Gi
        - name: zulip.environment.SECRETS_email_password
  project: default
  syncPolicy:
    syncOptions:
      - CreateNamespace=true
      - PruneLast=true

Logs error on /var/log/zulip/errors.log file:

2022-08-24 22:07:20.767 WARN [zerver.lib.push_notifications] Mobile push notifications are not configured.
  See https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html
2022-08-24 22:08:09.082 ERR  [django.request] Internal Server Error: /accounts/login/
Traceback (most recent call last):
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/zulip/deployments/2022-07-22-01-43-20/./zerver/lib/request.py", line 449, in _wrapped_view_func
    return view_func(request, *args, **kwargs)
  File "/home/zulip/deployments/2022-07-22-01-43-20/./zerver/views/auth.py", line 796, in login_page
    template_response = DjangoLoginView.as_view(
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/views/decorators/debug.py", line 89, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/utils/decorators.py", line 43, in _wrapper
    return bound_method(*args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 63, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 141, in post
    if form.is_valid():
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/forms/forms.py", line 175, in is_valid
    return self.is_bound and not self.errors
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/forms/forms.py", line 170, in errors
    self.full_clean()
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/forms/forms.py", line 373, in full_clean
    self._clean_form()
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/forms/forms.py", line 400, in _clean_form
    cleaned_data = self.clean()
  File "/home/zulip/deployments/2022-07-22-01-43-20/./zerver/forms.py", line 422, in clean
    realm = get_realm(subdomain)
  File "/home/zulip/deployments/2022-07-22-01-43-20/./zerver/models.py", line 1004, in get_realm
    return Realm.objects.get(string_id=string_id)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/srv/zulip-venv-cache/5a2b3930c13b10581d6b0313fd9b016d02c6b36e/zulip-py3-venv/lib/python3.8/site-packages/django/db/models/query.py", line 435, in get
    raise self.model.DoesNotExist(
zerver.models.Realm.DoesNotExist: Realm matching query does not exist.
@p-baum
Copy link

p-baum commented Dec 3, 2022

I have this problem too. How do a set the default user? SETTING_ZULIP_ADMINISTRATOR? If so whats the password or where do I set it?

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

2 participants