apisix-docker icon indicating copy to clipboard operation
apisix-docker copied to clipboard

nginx: [emerg] invalid number of arguments in "resolver_timeout" directive in /usr/local/apisix/conf/nginx.conf:54

Open to2false opened this issue 6 years ago • 6 comments

Step 1

docker pull apache/apisix:1.2-alpine

Step 2

docker run --name gateway \
 -v `pwd`/example/apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml \
 -v `pwd`/example/apisix_log:/usr/local/apisix/logs  \
 -v `pwd`/example/dashboard:/usr/local/apisix/dashboard \
 -p 9080:9080 \
 -p 9443:9443 \
 -d apache/apisix:1.2-centos

the container exits, check the log and get this

nginx: [emerg] invalid number of arguments in "resolver_timeout" directive in /usr/local/apisix/conf/nginx.conf:54

to2false avatar May 11 '20 10:05 to2false

I tried to compile manually and get look like a network error😂

+ luarocks install https://github.com/apache/incubator-apisix/raw/master/rockspec/apisix-1.2-0.rockspec '--tree=/usr/local/apisix/deps'


Error: Error fetching file: Failed downloading https://github.com/apache/incubator-apisix/raw/master/rockspec/apisix-1.2-0.rockspec - apisix-1.2-0.rockspec

to2false avatar May 11 '20 10:05 to2false

@to2false do you use the old version config.yaml of apisix?

moonming avatar May 12 '20 06:05 moonming

@moonming no, I cloned the latest repo

to2false avatar May 13 '20 02:05 to2false

the same error with @to2false , seems the config file is not correct

wayne00 avatar May 13 '20 10:05 wayne00

I build local manually, get same error again

to2false avatar May 13 '20 13:05 to2false

I replace apisix conf with https://github.com/apache/incubator-apisix/blob/master/conf/config.yaml, it works. the conf for this repo is old, and there is a PR to submit.

to2false avatar May 15 '20 04:05 to2false