Not the answer you need?
Register and ask your own question!

Percona-qan-api not starting in docker container

I followed the guide for setting up a docker container here: https://www.percona.com/doc/percona-server/LATEST/installation/docker.html

After setting up, I proceeded to set up clients and the metrics monitor is working fine. However, the query monitor is not. The output of
pmm-admin check-network
shows that the Query Analytics API is down.
* System Time
PMM Server                          | 2018-02-06 16:25:34 +0000 GMT
PMM Client                          | 2018-02-06 16:25:39 +0000 GMT
PMM Client to PMM Server Time Drift | OK

* Connection: Client --> Server
-------------------- -------
SERVER SERVICE       STATUS
-------------------- -------
Consul API           OK
Prometheus API       OK
Query Analytics API  DOWN

Connection duration | 249.326µs
Request duration    | 565.454µs
Full round trip     | 814.78µs


* Connection: Client <-- Server
-------------- ----- ----------------- ------- ---------- ---------
SERVICE TYPE   NAME  REMOTE ENDPOINT   STATUS  HTTPS/TLS  PASSWORD
-------------- ----- ----------------- ------- ---------- ---------
mysql:metrics  test  10.22.3.20:42003  OK      YES        -

After delving into the docker container itself, and trying to start
/usr/share/percona-qan-api
manually, I get the following output. I found the below command by running ps ax.
[root&#64;42d4d3569b29 bin]# /usr/sbin/percona-qan-api -srcPath /usr/share/percona-qan-api/src -importPath github.com/percona/qan-api -runMode prod
ERROR: logging before flag.Parse: I0206 16:19:13.471093    8014 logutil.go:31] log: Config dev.conf not found in paths:
panic: Config dev.conf not found in paths:

goroutine 1 [running]:
log.Panic(0xc420173ea8, 0x1, 0x1)
        /usr/lib/golang/src/log/log.go:326 +0xc0
github.com/percona/qan-api/config.init.0()
        /builddir/build/BUILD/qan-api-1.7.0/src/github.com/percona/qan-api/config/config.go:50 +0xd2
github.com/percona/qan-api/config.init()
        <autogenerated>:1 +0xdd
github.com/percona/qan-api/app/db/mysql.init()
        <autogenerated>:1 +0x62
github.com/percona/qan-api/app/db.init()
        <autogenerated>:1 +0x49
github.com/percona/qan-api/app/agent.init()
        <autogenerated>:1 +0x7f
github.com/percona/qan-api/app.init()
        <autogenerated>:1 +0x75
main.init()
        <autogenerated>:1 +0x5a

I'm not sure what to do from this point, as I don't seem to be able to start the qan api in the docker container. The container has more than enough space, and this is a very recent clean install.

Comments

Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.