docker-zulip icon indicating copy to clipboard operation
docker-zulip copied to clipboard

500 internal server error in k8s pod when curl localhost

Open Kyriedk opened this issue 1 year ago • 0 comments

hi,guys, i got stuck when using kubernets to install zulip. I will briefly state my use case and problem.

use case

my use case is to set up zulip server in a cluster without internet, the reason is the company's security issue. The company requires us to use kubernetes, so i choose to install it with kubernetes. The kubernetes I use is minikube.

installation

  1. git clone https://github.com/zulip/docker-zulip.git
  2. cd docker-zulip/kubernetes/manual
  3. vim zulip-rc.yaml ,set DISABLE_HTTPS: "True"
  4. kubectl apply -f zulip-rc.yaml and wait for the installation to finish
  5. kubectl exec -it -c zulip bash

problem

curl localhost and got the result below

Screenshot from 2022-07-26 10-50-07

here is the content of django.log Screenshot from 2022-07-26 10-25-32

here is the content of error.log

root@zulip-1-4nvr9:/var/log/zulip# cat errors.log 
2022-07-26 02:14:26.481 WARN [zerver.lib.push_notifications] Mobile push notifications are not configured.
  See https://zulip.readthedocs.io/en/latest/production/mobile-push-notifications.html

then I tried to generate a link for registration and curl the link using http, but it was still 500 internal error. Screenshot from 2022-07-26 10-24-43

I use htop to monitor the cpu and memory usage and found all is ok Screenshot from 2022-07-26 10-23-19

I have no idea how to proceed, can someone give some advise on the problem.

Kyriedk avatar Jul 26 '22 02:07 Kyriedk