pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Error at starting apachepulsar/pulsar-dashboard docker container within Kubernetes

Open julio666 opened this issue 6 years ago • 14 comments

Hi there!

Issue I've used the helm chart available in the 2.4.2 Apache Pulsar project. Every pod is created and running correctly except pulsar-dashboard which has the CrashLoopBackOff status.

It looks like the initdb file from postgresql does not exist. Here what the logs are saying :

Starting Pulsar dasboard
+ /pulsar/init-postgres.sh
+ rm -rf '/data/*'
+ chown -R postgres: /data
+ chmod 700 /data
+ sudo -u postgres /usr/lib/postgresql/9.6/bin/initdb /data/
sudo: /usr/lib/postgresql/9.6/bin/initdb: command not found

To Reproduce Simply install the helm chart with values-mini.yaml and look at the pods in the pulsar namespace. To be sure, I've tried to run the container alone on my machine and I get the same error.

Expected behavior I would expect Pulsar Dashboard to run properly :)

Cluster Kubernetes:

  • Server version 1.12 on linux/amd64 platform

julio666 avatar Dec 12 '19 19:12 julio666

It looks like the installed version of postgresql is now 11 and no more 9.6.

julio666 avatar Dec 12 '19 20:12 julio666

running into same problem too. use “kubectl set image deployment” set image to pulsar-dashboard:2.3.0 is ok.

then I have another problem: https://github.com/apache/pulsar/issues/5849

tshh avatar Dec 13 '19 04:12 tshh

Thanks @julio666 , Seems you already found the version issue . Would you like to provide a PR to fix it?

jiazhai avatar Dec 13 '19 05:12 jiazhai

And also in master pulsar-manager is added in helm, you could try pulsar-manager instead of dashboard.

jiazhai avatar Dec 13 '19 05:12 jiazhai

I'm looking for a working docker-compose for local standalone pulsar with dashboard, someone already made it?

Allysh0w avatar Dec 13 '19 12:12 Allysh0w

@jiazhai no problem, I'll do it. Thanks for the tip about pulsar-manager.

julio666 avatar Dec 13 '19 20:12 julio666

there is a bug in apachepulsar/pulsar-dashboard:2.4.2 docker image, /usr/lib/postgresql/9.6/bin/initdb - > /usr/lib/postgresql/11/bin/initdb for /pulsar/init-postgres.sh perhaps you can set image tag to other version, apachepulsar/pulsar-dashboard:2.4.1 works fine for me.

dockerzhang avatar Dec 18 '19 01:12 dockerzhang

there is a bug in apachepulsar/pulsar-dashboard:2.4.2 docker image, /usr/lib/postgresql/9.6/bin/initdb - > /usr/lib/postgresql/11/bin/initdb for /pulsar/init-postgres.sh perhaps you can set image tag to other version, apachepulsar/pulsar-dashboard:2.4.1 works fine for me.

Same issue here, downgraded to 2.4.1 and now it's up and running!

nirodg avatar Dec 22 '19 23:12 nirodg

I made a build from version 2.4.2 so you can pull here: docker pull javac7/apachepulsar-dashboard or can get the docker-compose here: pulsar compose.

Allysh0w avatar Dec 23 '19 05:12 Allysh0w

@tuteng also has already pushed the 2.4.2 version into apachepulsar 's dockerhub, @julio666 Could we close this issue?

jiazhai avatar Jan 10 '20 02:01 jiazhai

@jiazhai yes, I close it !

julio666 avatar Jan 10 '20 15:01 julio666

Running into this issue with the image apachepulsar/pulsar-dashboard:2.5.1 and the following error:

Starting Pulsar dasboard
+ /pulsar/init-postgres.sh
+ rm -rf '/data/*'
+ chown -R postgres: /data
+ chmod 700 /data
+ sudo -u postgres /usr/lib/postgresql/11/bin/initdb /data/
sudo: /usr/lib/postgresql/11/bin/initdb: command not found

Inspecting the docker image, it appears /usr/lib/postgresql/9.6/bin/initdb exists but /usr/lib/postgresql/11/bin/initdb does not.

complex64 avatar Apr 29 '20 17:04 complex64

You can try http://pulsar.apache.org/docs/en/administration-pulsar-manager/ first. https://github.com/apache/pulsar-manager is a better management tool. Let's take a look at this problem next. @complex64

tuteng avatar Apr 30 '20 03:04 tuteng

You can try http://pulsar.apache.org/docs/en/administration-pulsar-manager/ first. https://github.com/apache/pulsar-manager is a better management tool. Let's take a look at this problem next. @complex64

Thanks for the pointer to the manager, we'll give that project a try :+1:

complex64 avatar Apr 30 '20 13:04 complex64