You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/04/20 07:38:17 UTC
[GitHub] [incubator-apisix] xuliangyong opened a new issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
xuliangyong opened a new issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479
### Issue description
config.yaml setting
**config_center: yaml**
error.log info :
2020/04/20 03:15:29 [warn] 26#26: *10929 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
2020/04/20 03:15:29 [warn] 26#26: *10930 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
2020/04/20 03:15:29 [warn] 16#16: *10946 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
2020/04/20 03:15:29 [warn] 16#16: *10947 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
2020/04/20 03:15:29 [warn] 16#16: *10948 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
2020/04/20 03:15:29 [warn] 16#16: *10949 [lua] config_yaml.lua:118: wait for more time, context: ngx.timer
### Environment
docker image: apache/apisix:1.1-alpine
* apisix version (cmd: `apisix version`):
* OS:
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] xuliangyong commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
xuliangyong commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616409464
> How to reproduce the problem?
1 docker run --rm -it apache/apisix:1.1-alpine /bin/bash
2 vi conf/config.yaml setting
enable_ipv6: false
config_center: yaml
3 vi conf/apisix.yaml
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
#END
4 apisix init
5 /usr/local/openresty/bin/openresty -p /usr/local/apisix
6 curl http://localhost:9080/hello
response:
> <html>
> <head><title>502 Bad Gateway</title></head>
> <body>
> <center><h1>502 Bad Gateway</h1></center>
> <hr><center>openresty</center>
> </body>
> </html>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] xuliangyong edited a comment on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
xuliangyong edited a comment on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616409464
> How to reproduce the problem?
1 docker run --rm -it apache/apisix:1.1-alpine /bin/bash
2 vi conf/config.yaml setting
enable_ipv6: false
config_center: yaml
3 vi conf/apisix.yaml
```
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
#END
```
4 apisix init
5 /usr/local/openresty/bin/openresty -p /usr/local/apisix
6 curl http://localhost:9080/hello
response:
```
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] membphis edited a comment on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-617255366
> 6 curl http://localhost:9080/hello
> response:
your response is correct because you do not start an upstream server which listens on the 1980 port.
you can make a try with this example.
and you make a test with `curl -i http://127.0.0.1:9080/` and `curl -i http://127.0.0.1:9080/js/fresh.js`. it works fine at my local machine.
```yaml
routes:
-
uri: /
plugins:
proxy-rewrite:
host: iresty.com
upstream:
nodes:
"iresty.com:80": 1
type: roundrobin
-
uri: /js/fresh.js
plugins:
proxy-rewrite:
host: iresty.com
upstream:
nodes:
"iresty.com:80": 1
type: roundrobin
#END
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] xuliangyong commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
xuliangyong commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616398289
> ```
> config.yaml setting
> config_center: yaml
> ```
>
> when you enable `yaml` as `config_center`, you need to set a valid `apisix.yaml` file.
>
> here is a valid `apisix.yaml` file example:
>
> ```yaml
> routes:
> -
> uri: /hello
> upstream:
> nodes:
> "127.0.0.1:1980": 1
> type: roundrobin
> #END
> ```
>
> if you still have a problem, please provide your `conf/apisix.yaml` file.
apisix.yaml
routes:
-
uri: /
plugins:
xxxx: {}
-
uri: /cas
upstream:
nodes:
"gateway-svc": 1
type: roundrobin
-
uri: /html/
upstream:
nodes:
"svc-proxy": 1
type: roundrobin
#END
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] moonming commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
moonming commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616382692
@xuliangyong How to reproduce the problem?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] membphis commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-617259860
> plugins:
> xxxx: {}
it seems like an invalid plugin name, please confirm it.
and your yaml contain bad indentation. I reformatted it.
```yaml
routes:
-
uri: /
plugins:
xxxx: {}
-
uri: /cas
upstream:
nodes:
"gateway-svc": 1
type: roundrobin
-
uri: /html/
upstream:
nodes:
"svc-proxy": 1
type: roundrobin
#END
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] xuliangyong edited a comment on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
xuliangyong edited a comment on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616409464
> How to reproduce the problem?
1 docker run --rm -it apache/apisix:1.1-alpine /bin/bash
2 vi conf/config.yaml setting
enable_ipv6: false
config_center: yaml
3 vi conf/apisix.yaml
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
#END
4 apisix init
5 /usr/local/openresty/bin/openresty -p /usr/local/apisix
6 curl http://localhost:9080/hello
response:
```
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>openresty</center>
</body>
</html>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] membphis commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-617256961
> plugins:
> xxxx: {}
it seems like an invalid plugin name, please confirm it.
and your yaml contain bad indentation. I reformatted it.
```yaml
routes:
-
uri: /
plugins:
xxxx: {}
-
uri: /cas
upstream:
nodes:
"gateway-svc": 1
type: roundrobin
-
uri: /html/
upstream:
nodes:
"svc-proxy": 1
type: roundrobin
#END
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] membphis commented on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616386283
```
config.yaml setting
config_center: yaml
```
when you enable `yaml` as `config_center`, you need to set a valid `apisix.yaml` file.
here is a valid `apisix.yaml` file example:
```yaml
routes:
-
uri: /hello
upstream:
nodes:
"127.0.0.1:1980": 1
type: roundrobin
#END
```
if you still have a problem, please provide your `conf/apisix.yaml` file.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-apisix] xuliangyong edited a comment on issue #1479: docker run apisix1.1, The error.log file keeps outputting warn logs
Posted by GitBox <gi...@apache.org>.
xuliangyong edited a comment on issue #1479:
URL: https://github.com/apache/incubator-apisix/issues/1479#issuecomment-616398289
> ```
> config.yaml setting
> config_center: yaml
> ```
>
> when you enable `yaml` as `config_center`, you need to set a valid `apisix.yaml` file.
>
> here is a valid `apisix.yaml` file example:
>
> ```yaml
> routes:
> -
> uri: /hello
> upstream:
> nodes:
> "127.0.0.1:1980": 1
> type: roundrobin
> #END
> ```
>
> if you still have a problem, please provide your `conf/apisix.yaml` file.
apisix.yaml
```
routes:
-
uri: /
plugins:
xxxx: {}
-
uri: /cas
upstream:
nodes:
"gateway-svc": 1
type: roundrobin
-
uri: /html/
upstream:
nodes:
"svc-proxy": 1
type: roundrobin
#END
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org