Score
0
Watch 58 Star 326 Fork 92

apioak / apioakLuaApache-2.0

docker run 报错

Open
湖畔  Opened this issue
Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111),
Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111),
2020/05/11 14:30:27 [error] 24#24: *3 connect() failed (111: Connection refused), context: ngx.timer,
2020/05/11 14:30:27 [error] 24#24: *3 lua entry thread aborted: runtime error: /usr/local/apioak//apioak/pdk/database.lua:52: attempt to index local 'my_cli' (a nil value),
stack traceback:,
coroutine 0:,
	/usr/local/apioak//apioak/pdk/database.lua: in function 'execute',
	/usr/local/apioak//apioak/db/router.lua:354: in function 'query_last_updated_hid',
	/usr/local/apioak//apioak/sys/router.lua:95: in function </usr/local/apioak//apioak/sys/router.lua:86>, context: ngx.timer,
2020/05/11 14:30:27 [error] 24#24: *5 connect() failed (111: Connection refused), context: ngx.timer,
2020/05/11 14:30:27 [error] 24#24: *5 lua entry thread aborted: runtime error: /usr/local/apioak//apioak/pdk/database.lua:52: attempt to index local 'my_cli' (a nil value),
stack traceback:,
coroutine 0:,
	/usr/local/apioak//apioak/pdk/database.lua: in function 'execute',
	/usr/local/apioak//apioak/db/upstream.lua:110: in function 'query_last_updated_hid',
	/usr/local/apioak//apioak/sys/balancer.lua:30: in function </usr/local/apioak//apioak/sys/balancer.lua:21>, context: ngx.timer,
total 2 participants

Comments (1)

帅进超 2020-05-12 10:04 owner

你好,日志中提示数据库拒接连接,请检查一下数据库是否正确配置。

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority