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

Error when trying to activate Calendar API #46

Open
GildedHonour opened this issue Jun 26, 2018 · 0 comments
Open

Error when trying to activate Calendar API #46

GildedHonour opened this issue Jun 26, 2018 · 0 comments

Comments

@GildedHonour
Copy link

I'm running the ST and Harmony locally.

"docker-compose up db" is working fine, api isn't:

  $ docker-compose up api
  Starting harmony_api_1 ... done
  Attaching to harmony_api_1
  api_1  | Waiting for MySQL connection...
  api_1  | wait-for-it.sh: waiting 30 seconds for db:3306
  api_1  | wait-for-it.sh: db:3306 is available after 0 seconds
  api_1  | Launching harmony-api via harmony.main.harmony-api
  api_1  | 01:01:06.416 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Started.
  api_1  | 01:01:06.719 [main] INFO  com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Close initiated...
  api_1  | 01:01:06.720 [main] INFO  com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Closed.
  api_1  | 01:01:06.727 [main] ERROR harmony.errors - {"component":"error-reporter","event":"uncaught-exception","data":{"msg":"Failed to encode log event data as JSON!"}}
  api_1  | clojure.lang.ExceptionInfo: Error in component :db-conn-pool in system com.stuartsierra.component.SystemMap calling #'com.stuartsierra.component/start
  api_1  |        at clojure.core$ex_info.invokeStatic(core.clj:4617)
  api_1  |        at clojure.core$ex_info.invoke(core.clj:4617)
  api_1  |        at com.stuartsierra.component$try_action.invokeStatic(component.cljc:119)
  api_1  |        at com.stuartsierra.component$try_action.invoke(component.cljc:116)
  api_1  |        at com.stuartsierra.component$update_system$fn__1063.invoke(component.cljc:139)
  api_1  |        at clojure.lang.ArraySeq.reduce(ArraySeq.java:109)
  api_1  |        at clojure.core$reduce.invokeStatic(core.clj:6544)
  api_1  |        at clojure.core$reduce.invoke(core.clj:6527)
  api_1  |        at com.stuartsierra.component$update_system.invokeStatic(component.cljc:135)
  api_1  |        at com.stuartsierra.component$update_system.doInvoke(component.cljc:129)
  api_1  |        at clojure.lang.RestFn.invoke(RestFn.java:445)
  api_1  |        at com.stuartsierra.component$start_system.invokeStatic(component.cljc:163)
  api_1  |        at com.stuartsierra.component$start_system.invoke(component.cljc:155)
  api_1  |        at com.stuartsierra.component$start_system.invokeStatic(component.cljc:161)
  api_1  |        at com.stuartsierra.component$start_system.invoke(component.cljc:155)
  api_1  |        at harmony.main.harmony_api$_main.invokeStatic(harmony_api.clj:24)
  api_1  |        at harmony.main.harmony_api$_main.invoke(harmony_api.clj:21)
  api_1  |        at clojure.lang.Var.invoke(Var.java:375)
  api_1  |        at clojure.lang.AFn.applyToHelper(AFn.java:152)
  api_1  |        at clojure.lang.Var.applyTo(Var.java:700)
  api_1  |        at clojure.core$apply.invokeStatic(core.clj:646)
  api_1  |        at clojure.main$main_opt.invokeStatic(main.clj:314)
  api_1  |        at clojure.main$main_opt.invoke(main.clj:310)
  api_1  |        at clojure.main$main.invokeStatic(main.clj:421)
  api_1  |        at clojure.main$main.doInvoke(main.clj:384)
  api_1  |        at clojure.lang.RestFn.invoke(RestFn.java:421)
  api_1  |        at clojure.lang.Var.invoke(Var.java:383)
  api_1  |        at clojure.lang.AFn.applyToHelper(AFn.java:156)
  api_1  |        at clojure.lang.Var.applyTo(Var.java:700)
  api_1  |        at clojure.main.main(main.java:37)
  api_1  | Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: 
      Access denied for user 'alex'@'172.18.0.3' (using password: YES)
  

  api_1  |        at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:516)
  api_1  |        at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:118)
  api_1  |        at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:71)
  api_1  |        at hikari_cp.core$make_datasource.invokeStatic(core.clj:199)
  api_1  |        at hikari_cp.core$make_datasource.invoke(core.clj:196)
  api_1  |        at harmony.service.conn_pool.ConnPool.start(conn_pool.clj:19)
  api_1  |        at com.stuartsierra.component$fn__1012$G__1006__1014.invoke(component.cljc:5)
  api_1  |        at com.stuartsierra.component$fn__1012$G__1005__1017.invoke(component.cljc:5)
  api_1  |        at clojure.lang.Var.invoke(Var.java:379)
  api_1  |        at clojure.lang.AFn.applyToHelper(AFn.java:154)
  api_1  |        at clojure.lang.Var.applyTo(Var.java:700)
  api_1  |        at clojure.core$apply.invokeStatic(core.clj:648)
  api_1  |        at clojure.core$apply.invoke(core.clj:641)
  api_1  |        at com.stuartsierra.component$try_action.invokeStatic(component.cljc:117)
  api_1  |        ... 27 common frames omitted
  api_1  | Caused by: java.sql.SQLException: Access denied for user 'alex'@'172.18.0.3' (using password: YES)
  api_1  |        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:963)
  api_1  |        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3966)
  api_1  |        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3902)
  api_1  |        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:875)
  api_1  |        at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1712)
  api_1  |        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1228)
  api_1  |        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2253)
  api_1  |        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)
  api_1  |        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)
  api_1  |        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)
  api_1  |        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
  api_1  |        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  api_1  |        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  api_1  |        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  api_1  |        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  api_1  |        at com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
  api_1  |        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)
  api_1  |        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)
  api_1  |        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:422)
  api_1  |        at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:134)
  api_1  |        at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:316)
  api_1  |        at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:506)
  api_1  |        ... 40 common frames omitted
  harmony_api_1 exited with code 1

I can't find anywhere in Harmony '172.18.0.3'

env | grep DB_ ---> empty

How to fix that?

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