Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entrypoint.sh is trying to update config.yaml in read only file system #557

Closed
TheShubhendra opened this issue Jul 22, 2024 · 5 comments
Closed
Labels

Comments

@TheShubhendra
Copy link
Contributor

I am encountering an issue with Apache APISIX in standalone mode where the container fails to start due to repeated sed: cannot rename /usr/local/apisix/conf/sedXXXXXX: Device or resource busy errors. This occurs when trying to use docker-compose to deploy APISIX with configuration files mounted as volumes.

docker-compose.yaml

version: "3"

services:
  apisix:
    image: apache/apisix:${APISIX_IMAGE_TAG:-3.6.0-debian}
    restart: always
    volumes:
      - ./config.yaml:/usr/local/apisix/conf/config.yaml:ro
      - ./apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro
    environment:
      - APISIX_STAND_ALONE=true
    ports:
      - "9180:9180/tcp"
      - "9080:9080/tcp"
      - "9091:9091/tcp"
      - "9443:9443/tcp"
      - "9092:9092/tcp"
    networks:
      apisix:

networks:
  apisix:
    driver: bridge

config.yaml

apisix:
  node_listen: 9080              # APISIX listening port
  enable_ipv6: false

deployment:
  role: data_plane
  role_data_plane:
    config_provider: yaml

plugins:
  - opentelemetry
  - proxy-rewrite
  - proxy-cache
  - real-ip
  - serverless-post-function
  - jwt-auth


plugin_attr:
  opentelemetry:
    resource:
      service.name: apisix
      service.namespace: learning-app
      deployment.environment: production
    collector:
      address: http://127.0.0.1:4318
      request_timeout: 3
@TheShubhendra
Copy link
Contributor Author

As I saw this issue was fixed as mentioned in #541 . I have updated docker image to apache/apisix:3.9.1-debian. Now I am getting error apisix_1 | /docker-entrypoint.sh: line 35: /usr/local/apisix/conf/config.yaml: Read-only file system.

ubuntu@mobile-app:~/services/apisix$ sudo docker-compose up
Creating network "apisix_apisix" with driver "bridge"
Pulling apisix (apache/apisix:3.9.1-debian)...
3.9.1-debian: Pulling from apache/apisix
6177a7f9989f: Pull complete
ab6bf8e3e50d: Pull complete
dbfe238d4233: Pull complete
da9efcf6471a: Pull complete
7132356fe872: Pull complete
4f4fb700ef54: Pull complete
843c9bc3359a: Pull complete
26f5d3eb7ea1: Pull complete
d8cb87459269: Pull complete
Digest: sha256:48ce16399e68a5f31c8b49d802f1e71ec93aea44d8c8ae311dc170e8564d5c4e
Status: Downloaded newer image for apache/apisix:3.9.1-debian
Creating apisix_apisix_1 ... done
Attaching to apisix_apisix_1
apisix_1  | /docker-entrypoint.sh: line 35: /usr/local/apisix/conf/config.yaml: Read-only file system
apisix_apisix_1 exited with code 1

@TheShubhendra
Copy link
Contributor Author

TheShubhendra commented Jul 22, 2024

Related to #547

@TheShubhendra TheShubhendra changed the title Error: sed: cannot rename /usr/local/apisix/conf/sedXXXXXX: Device or resource busy entrypoint.sh is trying to update config.yaml in read only file system Jul 22, 2024
Copy link

This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 21, 2024
Copy link

github-actions bot commented Sep 4, 2024

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

@github-actions github-actions bot closed this as completed Sep 4, 2024
@moonming
Copy link
Member

closed by #558

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants