You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "sosop (via GitHub)" <gi...@apache.org> on 2024/12/16 07:35:28 UTC
[I] bug: docker compose 启动报错 [apisix]
sosop opened a new issue, #11834:
URL: https://github.com/apache/apisix/issues/11834
### Current Behavior
version: "3.8"
services:
apisix:
image: "apache/apisix:3.11.0-debian"
restart: always
volumes:
- ./conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
depends_on:
- etcd
ports:
- "9443:443/tcp"
#network_mode: "host"
networks:
- apisix
etcd:
image: bitnami/etcd:3.5.17
user: root
restart: always
volumes:
- ./data/etcd_data:/bitnami/etcd/data
environment:
ETCD_DATA_DIR: /etcd_data
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"
#network_mode: "host"
networks:
- apisix
dashboard:
image: "apache/apisix-dashboard:3.0.1-alpine"
restart: always
volumes:
- ./conf/dashboard/conf.yaml:/usr/local/apisix-dashboard/conf/conf.yaml:ro
depends_on:
- etcd
ports:
- "9000:9000/tcp"
#network_mode: "host"
networks:
- apisix
networks:
apisix:
driver: bridge
### Expected Behavior
_No response_
### Error Logs
apisix-1 | /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
apisix-1 | /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init_etcd
apisix-1 | 2024/12/16 07:32:08 [error] 1#1: [lua] id.lua:130: init(): failed to write updated local configuration: failed to open file[/usr/local/apisix/conf/config.yaml] for writing
apisix-1 | nginx: [error] [lua] id.lua:130: init(): failed to write updated local configuration: failed to open file[/usr/local/apisix/conf/config.yaml] for writing
apisix-1 | 2024/12/16 07:32:08 [error] 1#1: init_by_lua error: /usr/local/openresty/lualib/resty/core/exit.lua:49: no request found
apisix-1 | stack traceback:
apisix-1 | [C]: in function 'error'
apisix-1 | /usr/local/openresty/lualib/resty/core/exit.lua:49: in function 'ngx_exit'
apisix-1 | /usr/local/apisix/apisix/core/id.lua:131: in function 'init'
apisix-1 | /usr/local/apisix/apisix/init.lua:86: in function 'http_init'
apisix-1 | init_by_lua:9: in main chunk
apisix-1 | nginx: [error] init_by_lua error: /usr/local/openresty/lualib/resty/core/exit.lua:49: no request found
apisix-1 | stack traceback:
apisix-1 | [C]: in function 'error'
apisix-1 | /usr/local/openresty/lualib/resty/core/exit.lua:49: in function 'ngx_exit'
apisix-1 | /usr/local/apisix/apisix/core/id.lua:131: in function 'init'
apisix-1 | /usr/local/apisix/apisix/init.lua:86: in function 'http_init'
apisix-1 | init_by_lua:9: in main chunk
apisix-1 exited with code 1
### Steps to Reproduce
1、run apisix via docker compose
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup commented on issue #11834:
URL: https://github.com/apache/apisix/issues/11834#issuecomment-2782701140
@sosop Either manually add a key in admin_key[0].key like here https://github.com/apache/apisix/issues/11834#issuecomment-2664595860
or start the docker compose with rw permission please
--
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
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "Revolyssup (via GitHub)" <gi...@apache.org>.
Revolyssup closed issue #11834: bug: docker compose 启动报错
URL: https://github.com/apache/apisix/issues/11834
--
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
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "hubtech-loilv (via GitHub)" <gi...@apache.org>.
hubtech-loilv commented on issue #11834:
URL: https://github.com/apache/apisix/issues/11834#issuecomment-2568577473
Same issue here. It looks like the docker image was built with a different user:group and thus has different permission with host's user:group. Any ideas?
--
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
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #11834:
URL: https://github.com/apache/apisix/issues/11834#issuecomment-2709349945
@sosop any updates?
--
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
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "hanqingwu (via GitHub)" <gi...@apache.org>.
hanqingwu commented on issue #11834:
URL: https://github.com/apache/apisix/issues/11834#issuecomment-2550063481
`volumes:
- ./conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro`
why set `ro` ? can you try setting `rw`
--
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
Re: [I] bug: docker compose 启动报错 [apisix]
Posted by "dragonflylee (via GitHub)" <gi...@apache.org>.
dragonflylee commented on issue #11834:
URL: https://github.com/apache/apisix/issues/11834#issuecomment-2664595860
introduced by https://github.com/apache/apisix/pull/11080
--
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