You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "WVenus (via GitHub)" <gi...@apache.org> on 2023/01/30 10:34:11 UTC
[GitHub] [apisix-docker] WVenus opened a new issue, #416: 根据apisix-docker/example安装失败
WVenus opened a new issue, #416:
URL: https://github.com/apache/apisix-docker/issues/416
背景:
根据Installing APISIX 文章中,使用dockers部署apisix,启动失败。
报错信息:

git分支信息:

--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] WVenus commented on issue #416: 根据apisix-docker/example安装失败
Posted by "WVenus (via GitHub)" <gi...@apache.org>.
WVenus commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1427231344
> > > APISIX 镜像版是什么?
> >
> >
> > 不好意思,上周比较忙,没有及时看资料。我的图像 ID 是 f42b705fe47e (apache/apisix:latest)。替换成apache/apisix: 3.1.0-debian 可以正常启动。
> > [root@3b14621d5918 apisix]# openresty -version nginx 版本:openresty/1.19.9.1
> > [root@3b14621d5918 apisix]# apisix 版本 /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua 版本 2.11.0
> > `/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused all etcd nodes are unavailable Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=1 Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=2`
>
> 请仔细看我的评论。你解决了这个问题吗?
I changed the image of apisix and successfully solved this 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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #416: 根据apisix-docker/example安装失败
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1418742237
Oops, are you using the master branch? The `apisix_conf.yaml` was updated so that it can work with APISIX 3.x (https://github.com/apache/apisix-docker/blob/master/example/apisix_conf/config.yaml#L41).
While it's different from APISIX 2.x. As per your image version, try https://github.com/apache/apisix-docker/tree/release/apisix-2.15.0.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] WVenus closed issue #416: 根据apisix-docker/example安装失败
Posted by "WVenus (via GitHub)" <gi...@apache.org>.
WVenus closed issue #416: 根据apisix-docker/example安装失败
URL: https://github.com/apache/apisix-docker/issues/416
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] developerworks commented on issue #416: 根据apisix-docker/example安装失败
Posted by "developerworks (via GitHub)" <gi...@apache.org>.
developerworks commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1415928294
Same error on Ubuntu
```
root@de:/opt/apisix-docker/example# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
```
```
version: "3"
services:
apisix-dashboard:
image: apache/apisix-dashboard:2.15.0-alpine
restart: always
volumes:
- ./dashboard_conf/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml
ports:
- "9000:9000"
networks:
apisix:
apisix:
image: apache/apisix:latest
restart: always
volumes:
- ./apisix_log:/usr/local/apisix/logs
- ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
depends_on:
- etcd
##network_mode: host
ports:
- "9180:9180/tcp"
- "9080:9080/tcp"
- "9091:9091/tcp"
- "9443:9443/tcp"
- "9092:9092/tcp"
networks:
apisix:
etcd:
image: bitnami/etcd:3.4.15
restart: always
volumes:
- etcd_data:/bitnami/etcd
environment:
ETCD_ENABLE_V2: "true"
ALLOW_NONE_AUTHENTICATION: "yes"
ETCD_ADVERTISE_CLIENT_URLS: "http://etcd:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ports:
- "2379:2379/tcp"
networks:
apisix:
web1:
image: nginx:1.19.0-alpine
restart: always
volumes:
- ./upstream/web1.conf:/etc/nginx/nginx.conf
ports:
- "9081:80/tcp"
environment:
- NGINX_PORT=80
networks:
apisix:
web2:
image: nginx:1.19.0-alpine
restart: always
volumes:
- ./upstream/web2.conf:/etc/nginx/nginx.conf
ports:
- "9082:80/tcp"
environment:
- NGINX_PORT=80
networks:
apisix:
prometheus:
image: prom/prometheus:v2.25.0
restart: always
volumes:
- ./prometheus_conf/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
apisix:
grafana:
image: grafana/grafana:7.3.7
restart: always
ports:
- "3000:3000"
volumes:
- "./grafana_conf/provisioning:/etc/grafana/provisioning"
- "./grafana_conf/dashboards:/var/lib/grafana/dashboards"
- "./grafana_conf/config/grafana.ini:/etc/grafana/grafana.ini"
networks:
apisix:
networks:
apisix:
driver: bridge
volumes:
etcd_data:
driver: local
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #416: 根据apisix-docker/example安装失败
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1420453202
> > APISIX 镜像版本是什么?
>
> Sorry, I was busy last week, so I didn't read the information in time. My image ID is f42b705fe47e (apache/apisix:latest). Replace with apache/apisix: 3.1.0-debian can start normally.
>
> [root@3b14621d5918 apisix]# openresty -version nginx version: openresty/1.19.9.1
>
> [root@3b14621d5918 apisix]# apisix version /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version 2.11.0
>
> `/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init /usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused all etcd nodes are unavailable Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=1 Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=2`
Please see my comments carefully. Did you solve this issue?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] developerworks commented on issue #416: 根据apisix-docker/example安装失败
Posted by "developerworks (via GitHub)" <gi...@apache.org>.
developerworks commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1415939033
apisix and apisix-dashboard infinite restart
```
root@de:/opt/apisix-docker/example# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6f086f59a90c apache/apisix:latest "/docker-entrypoint.…" 19 seconds ago Restarting (1) 1 second ago example-apisix-1
19680ab9e879 nginx:1.19.0-alpine "/docker-entrypoint.…" 19 seconds ago Up 18 seconds 0.0.0.0:9081->80/tcp, :::9081->80/tcp example-web1-1
27c8185b3b9a nginx:1.19.0-alpine "/docker-entrypoint.…" 19 seconds ago Up 18 seconds 0.0.0.0:9082->80/tcp, :::9082->80/tcp example-web2-1
7bc6b990e4bc grafana/grafana:7.3.7 "/run.sh" 19 seconds ago Up 17 seconds 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp example-grafana-1
af4640f97422 prom/prometheus:v2.25.0 "/bin/prometheus --c…" 19 seconds ago Up 17 seconds 0.0.0.0:9090->9090/tcp, :::9090->9090/tcp example-prometheus-1
eae45617ae25 bitnami/etcd:3.4.15 "/opt/bitnami/script…" 19 seconds ago Up 17 seconds 0.0.0.0:2379->2379/tcp, :::2379->2379/tcp, 2380/tcp example-etcd-1
f79d45d68525 apache/apisix-dashboard:2.15.0-alpine "/usr/local/apisix-d…" 19 seconds ago Restarting (0) Less than a second ago
```
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] bobbyz007 commented on issue #416: 根据apisix-docker/example安装失败
Posted by "bobbyz007 (via GitHub)" <gi...@apache.org>.
bobbyz007 commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1418446184
一直重启给apisix_log 设置权限试试
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #416: 根据apisix-docker/example安装失败
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1409623107
What's the APISIX image version?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] WVenus commented on issue #416: 根据apisix-docker/example安装失败
Posted by "WVenus (via GitHub)" <gi...@apache.org>.
WVenus commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1420229623
> APISIX 镜像版本是什么?
Sorry, I was busy last week, so I didn't read the information in time.
My image ID is f42b705fe47e (apache/apisix:latest). Replace with apache/apisix: 3.1.0-debian can start normally.
`
[root@3b14621d5918 apisix]# openresty -version
nginx version: openresty/1.19.9.1
[root@3b14621d5918 apisix]# apisix version
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua version
2.11.0
`
`
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init
/usr/local/openresty/luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused
all etcd nodes are unavailable
Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=1
Warning! Request etcd endpoint 'http://127.0.0.1:2379/version' error, connection refused, retry time=2
`
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #416: 根据apisix-docker/example安装失败
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1418740067
@developerworks Can you print the `/usr/local/apisix/conf/config.yaml`? Maybe there is an indent error so the ETCD address was reset to `127.0.0.1`.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] tokers commented on issue #416: 根据apisix-docker/example安装失败
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #416:
URL: https://github.com/apache/apisix-docker/issues/416#issuecomment-1418743505
It's easy to make this mistake, I think it's worthy mentioning this error to docs.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org