Open jihwong opened 1 year ago
@jihwong Could you provide more context? Like executed command line, what parameters did you specify?
@jihwong Could you provide more context? Like executed command line, what parameters did you specify?
I use helm to install it
apiVersion: v1
data:
DRIVER_CLASS_NAME: org.postgresql.Driver
LOG_LEVEL: DEBUG
REDIRECT_HOST: http://127.0.0.1
REDIRECT_PORT: "9527"
URL: jdbc:postgresql://127.0.0.1:5432/pulsar_manager
kind: ConfigMap
---
# kind: Deployment
containers:
- env:
- name: PULSAR_CLUSTER
value: pulsar
- name: PULSAR_MANAGER_OPTS
value: $(PULSAR_MANAGER_OPTS) -Dlog4j2.formatMsgNoLookups=true
envFrom:
- configMapRef:
name: pulsar-pulsar-manager
image: apachepulsar/pulsar-manager:v0.3.0
It may be because postgreSQL is enabled but it is not running properly or for other reasons. I can login using the default configuration in image:0.4.0
@jihwong remove the default postgres configurations as there is no internal postgres which will run inside the pod, only add
REDIRECT_HOST: your_ingress_url
REDIRECT_PORT: '80'
SECRET_KEY: my_secret_key
SPRING_CONFIGURATION_FILE: /pulsar-manager/pulsar-manager/application.properties
in configuration should start manager with internal DB. If you want to use external DB use below configuration:
SPRING_CONFIGURATION_FILE: "/pulsar-manager/pulsar-manager/application.properties"
REDIRECT_HOST: XXXXXXX
REDIRECT_PORT: "80"
SPRING_DATASOURCE_URL: XXXXXXXX
SPRING_DATASOURCE_DRIVERCLASSNAME: org.postgresql.Driver
URL: XXXXXXXXX
SPRING_DATASOURCE_USERNAME: XXXXXXX
SPRING_DATASOURCE_PASSWORD: XXXXXXX
SPRING_DATASOURCE_SCHEMA: classpath:/META-INF/sql/postgresql-schema.sql
SPRING_DATASOURCE_INITIALIZATIONMODE: never
set PULSAR_MANAGER_OPTS to empty string in your configmap
image: apachepulsar/pulsar-manager:v0.4.0
Start log
image: apachepulsar/pulsar-manager:v0.3.0
Start log