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

I am getting "Config file corrupted" when deploying to Kubernetes using MySQL #5923

Open
monawwar-appointy opened this issue Apr 19, 2024 · 3 comments

Comments

@monawwar-appointy
Copy link

Version of Cadence server, and client(which language)
This is very important to root cause bugs.

  • Server version: v1.2.8
  • Client version: ~
  • Client langauge: Go

Describe the bug
I am trying to deploy Cadence on GCP using Kubernetes with managed MySQL database. When I start the server, I am getting errors (check logs below). But when I use Cassandra database (running Cassandra inside pod), everything works fine.

Error:

....
2024/04/19 09:06:02 Loading config; env=docker,zone=,configDir=/etc/cadence/config
2024/04/19 09:06:02 Loading configFiles=[/etc/cadence/config/docker.yaml]
Config file corrupted: unable to create yaml parser: couldn't merge YAML sources: couldn't decode source: yaml: line 17: found character that cannot start any token
....

To Reproduce
Is the issue reproducible?

  • Yes

Steps to reproduce the behavior:
Deploy on Kubernetes using MySQL database

Expected behavior
It should be able to start the server

Screenshots
Screenshot 2024-04-19 at 14 41 21

Additional context
It works fine on local machine.

@demirkayaender
Copy link
Contributor

Just to clarify, do you mean it works fine with MySQL on your local machine (referring to "Additional context")?

@mantas-sidlauskas
Copy link
Contributor

@monawwar-appointy hey, can you check what's on line 17 in your config?

@mantas-sidlauskas
Copy link
Contributor

I think this might be related to config ENV expansion. I have a fix here: #5931

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

3 participants