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

Failed to Deploy App (ERR panic: interface conversion: interface {} is string, not float64) #1380

Closed
1 of 5 tasks
7CHANHO opened this issue Nov 20, 2017 · 3 comments
Closed
1 of 5 tasks
Assignees

Comments

@7CHANHO
Copy link

7CHANHO commented Nov 20, 2017

Deployment type

  • Cloud Foundry Application (cf push)
  • Kubernetes, using a helm chart
  • Docker, using docker compose
  • Docker, single container deploying all components
  • Other (please provide below)

Expected behaviour

Start the app.

Actual behaviour

Failed to start app.

Steps to reproduce the behavior

$ git clone https://github.com/SUSE/stratos-ui.git
$ cd stratos-ui
$ vi manifest.yml

$ cf login -a api.<SYSTEM-DOMAIN> --skip-ssl-validation
$ cf create-service Mysql-DB Mysql-Plan1-5con mysql-console
$ cf push
applications:
- name: console
  memory: 256M
  disk_quota: 256M
  host: console
  timeout: 180
  buildpack: https://github.com/SUSE/stratos-buildpack
  health-check-type: port
  env:
    CF_API_URL: https://api.<SYSTEM-DOMAIN>
    CF_API_FORCE_SECURE: true
    FORCE_ENDPOINT_DASHBOARD: true
  services:
  - mysql-console

Log output covering before error and any error statements

2017-11-20T16:04:01.41+0900 [CELL/0]     OUT Starting health monitoring of container
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Starting Stratos UI
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Attempting to migrate database
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Attempting to parse VCAP_SERVICES
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Found 1 database service instances
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Using first database service instance: mysql-stratos
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Parsing MySQL db config
2017-11-20T16:04:01.44+0900 [APP/0]      OUT Migrating mysql instance on 172.16.20.12
2017-11-20T16:04:01.45+0900 [APP/0]      OUT ========================
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Stratos UI DB Migration
2017-11-20T16:04:01.45+0900 [APP/0]      OUT ========================
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Migrations dir: deploy/db/migrations
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Current 20170829154900
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Target: 20170829154900
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Running migrations ....
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Skipping migration: 20170818120003
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Skipping migration: 20170818162837
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Skipping migration: 20170829154900
2017-11-20T16:04:01.45+0900 [APP/0]      OUT No migrations to run.
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Database successfully migrated
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Starting...
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Initialization started.                      
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Loaded configuration from file: ./config.properties 
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Configuration loaded.                        
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Console Version loaded: 0.9.7                
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] HTTP client initialized.                     
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Encryption key set.                          
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Found 1 database service instances           
2017-11-20T16:04:01.45+0900 [APP/0]      OUT INFO[Mon Nov 20 07:04:01 UTC 2017] Using first database service instance: mysql-stratos 
2017-11-20T16:04:01.45+0900 [APP/0]      ERR panic: interface conversion: interface {} is string, not float64
2017-11-20T16:04:01.45+0900 [APP/0]      ERR goroutine 1 [running]:
2017-11-20T16:04:01.45+0900 [APP/0]      ERR github.com/SUSE/stratos-ui/components/app-core/backend/datastore.findDatabaseConfig(0xc420081c20, 0xc42008ca00, 0x240)
2017-11-20T16:04:01.45+0900 [APP/0]      ERR 	/tmp/tmp.eQalrwh5RW/src/github.com/SUSE/stratos-ui/components/app-core/backend/datastore/database_cf_config.go:85 +0xda7
2017-11-20T16:04:01.45+0900 [APP/0]      ERR github.com/SUSE/stratos-ui/components/app-core/backend/datastore.ParseCFEnvs(0xc42008ca00, 0x1)
2017-11-20T16:04:01.45+0900 [APP/0]      ERR 	/tmp/tmp.eQalrwh5RW/src/github.com/SUSE/stratos-ui/components/app-core/backend/datastore/database_cf_config.go:44 +0x1ab
2017-11-20T16:04:01.45+0900 [APP/0]      ERR main.loadDatabaseConfig(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
2017-11-20T16:04:01.45+0900 [APP/0]      ERR 	/tmp/tmp.eQalrwh5RW/src/github.com/SUSE/stratos-ui/components/app-core/backend/main.go:330 +0x104
2017-11-20T16:04:01.45+0900 [APP/0]      ERR main.main()
2017-11-20T16:04:01.45+0900 [APP/0]      ERR 	/tmp/tmp.eQalrwh5RW/src/github.com/SUSE/stratos-ui/components/app-core/backend/main.go:101 +0x566
2017-11-20T16:04:01.45+0900 [APP/0]      OUT Exit status 2
2017-11-20T16:04:01.46+0900 [CELL/0]     OUT Exit status 0
2017-11-20T16:04:01.50+0900 [CELL/0]     OUT Creating container
2017-11-20T16:04:02.42+0900 [API/0]      OUT App instance exited with guid 39bd92de-8acd-4612-861f-c07607f8c852 payload: {"instance"=>"", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"2 error(s) occurred:\n\n* 2 error(s) occurred:\n\n* Exited with status 2\n* cancelled\n* cancelled", "crash_count"=>2, "crash_timestamp"=>1511161465560971699, "version"=>"09cddf13-dbbd-4fe2-a169-879a43e626c7"}
@irfanhabib
Copy link
Contributor

I've raised the PR #1381 to fix this issue.

@irfanhabib irfanhabib self-assigned this Nov 20, 2017
@richard-cox
Copy link
Contributor

Thanks for raising this issue @7CHANHO. I've just merged Irfan's PR and you should now be able successfully push the app. If you have any more issues just let us know

@7CHANHO
Copy link
Author

7CHANHO commented Nov 29, 2017

Thank you! Now it works fine. @irfanhabib @richard-cox

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