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

Panic during deploy if integer environment variable present #422

Open
mattbucci opened this issue Feb 14, 2019 · 1 comment
Open

Panic during deploy if integer environment variable present #422

mattbucci opened this issue Feb 14, 2019 · 1 comment

Comments

@mattbucci
Copy link

mattbucci commented Feb 14, 2019

I had the following in my yml file, I assume I can get around this by just quoting the number, which I have done. I'm writing this as I wait for it to redeploy

environment:
    APP_ENV:
      acceptance: qa
      production: production
    REDIS_HOST:
      acceptance: omitted
      production: omitted
    REDIS_PORT:
      acceptance: 6379
      production: 6379

This resulted in "panic: interface conversion: interface {} is int, not string" while deploying to acceptance environment

@mattbucci
Copy link
Author

Full log is here:

[32mDeploying service 'genecom' to 'acceptance' from '163453481336.dkr.ecr.us-west-2.amazonaws.com/mu-genecom:d07fd11'·[0m
panic: interface conversion: interface {} is int, not string
 goroutine 1 [running]:
github.com/stelligent/mu/workflows.resolveServiceEnvironment(0xc420350028, 0x7ffce49dd72a, 0xa)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/workflows/service_deploy.go:432 +0x4cc
github.com/stelligent/mu/workflows.(*serviceWorkflow).serviceEcsDeployer.func1(0x0, 0x0)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/workflows/service_deploy.go:351 +0x2f8
github.com/stelligent/mu/workflows.newPipelineExecutor.func1(0xc4202b9f01, 0x7)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/workflows/executor.go:18 +0x64
github.com/stelligent/mu/workflows.newConditionalExecutor.func1(0x0, 0x0)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/workflows/executor.go:39 +0x72
github.com/stelligent/mu/workflows.newPipelineExecutor.func1(0xc420350000, 0x7ffce49dd72a)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/workflows/executor.go:18 +0x64
github.com/stelligent/mu/cli.newServicesDeployCommand.func1(0xc42028a000, 0x0, 0xc42028a000)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/cli/services.go:122 +0x136
github.com/stelligent/mu/vendor/github.com/urfave/cli.HandleAction(0xdbff80, 0xc42033c5f0, 0xc42028a000, 0xc420364a00, 0x0)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/app.go:485 +0xd2
github.com/stelligent/mu/vendor/github.com/urfave/cli.Command.Run(0x102562e, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x103a6ad, 0x1d, 0x0, ...)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/command.go:193 +0xa99
github.com/stelligent/mu/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc420119860, 0xc4203388c0, 0x0, 0x0)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/app.go:374 +0xa7b
github.com/stelligent/mu/vendor/github.com/urfave/cli.Command.startApp(0x10260e5, 0x7, 0x0, 0x0, 0xc42033c650, 0x1, 0x1, 0x103aaa4, 0x1d, 0x0, ...)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/command.go:280 +0x86e
github.com/stelligent/mu/vendor/github.com/urfave/cli.Command.Run(0x10260e5, 0x7, 0x0, 0x0, 0xc42033c650, 0x1, 0x1, 0x103aaa4, 0x1d, 0x0, ...)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/command.go:79 +0x13ec
github.com/stelligent/mu/vendor/github.com/urfave/cli.(*App).Run(0xc4201191e0, 0xc420010090, 0x9, 0x9, 0x0, 0x0)
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/vendor/github.com/urfave/cli/app.go:250 +0x758
main.main()
 /home/circleci/.go_workspace/src/github.com/stelligent/mu/main.go:13 +0x75
 [Container] 2019/02/14 04:15:58 Command did not exit successfully mu -c mu.yml --assume-role arn:aws:iam::163453481336:role/mu-pipeline-genecom-mu-acpt-us-west-2 --disable-iam svc deploy acceptance exit status 2

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

1 participant