Skip to content

Docker unable to start - sed: can't create temp file #137

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

Open
tilllt opened this issue May 5, 2025 · 5 comments
Open

Docker unable to start - sed: can't create temp file #137

tilllt opened this issue May 5, 2025 · 5 comments
Assignees
Labels
docker help wanted Extra attention is needed more details needed question Further information is requested

Comments

@tilllt
Copy link

tilllt commented May 5, 2025

Following the install instructions for docker-compose, the container cannot be started, the error message is:

linkstack-1  | + ------------------------------------------------------------------ +
linkstack-1  | |                      LINKSTACK v4.2.3                      |
linkstack-1  | + ------------------------------------------------------------------ +
linkstack-1  | | Updating Configuration: Apache Base (/etc/apache2/httpd.conf)      |
linkstack-1  | sed: can't create temp file '/etc/apache2/httpd.confXXXXXX': Permission denied
@lastsamurai26
Copy link
Member

can you share your docker compose file ?

@lastsamurai26 lastsamurai26 self-assigned this May 5, 2025
@lastsamurai26 lastsamurai26 added help wanted Extra attention is needed question Further information is requested docker more details needed labels May 5, 2025
@tilllt
Copy link
Author

tilllt commented May 5, 2025

Cut & paste on my phone destroyed the indentation but the content is there.

services:
linkstack:
hostname: 'linkstack'
container_name: linkstack
image: 'linkstackorg/linkstack:latest'
environment:
TZ: 'Europe/Berlin'
SERVER_ADMIN: '[email protected]'
HTTP_SERVER_NAME: 'link.example.org'
HTTPS_SERVER_NAME: 'link.example.org'
LOG_LEVEL: 'info'
PHP_MEMORY_LIMIT: '256M'
UPLOAD_MAX_FILESIZE: '8M'
volumes:
- linkstack_data:/htdocs'
# ports:
# - '8080:80'
# - '8081:443'
restart: unless-stopped
user: apache:apache
# read_only: true
depends_on:
- mysql
links:
- mysql
labels:
- "traefik.enable=true"
# Define the router
- "traefik.http.routers.link.rule=Host(link.example.org)"
- "traefik.http.routers.link.entrypoints=websecure"
- "traefik.http.routers.link.tls.certresolver=myresolver"

  # Define the service
  - "traefik.http.services.link.loadbalancer.server.port=80

"
# HTTP to HTTPS redirect
- "traefik.http.middlewares.link-redirect.redirectscheme.
scheme=https"
- "traefik.http.routers.link-insecure.middlewares=link-re
direct"
- "traefik.http.routers.link-insecure.rule=Host(link.example.org)"
- "traefik.http.routers.link-insecure.entrypoints=web"
- "traefik.docker.network=traefik-proxy"
networks:
- traefik-proxy
- default

mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: xxxyyyy
ports:
- 3306:3306
networks:
- default
restart: unless-stopped

networks:
traefik-proxy:
external: true

volumes:
linkstack_data:
driver: local
driver_opts:
o: bind
type: none
device: /opt/container/linkstack-docker/DATA/

@lastsamurai26
Copy link
Member

thx the problem is the detail :-)

you are using docker path instead of docker volume
device: /opt/container/linkstack-docker/DATA/ <--

download the latest archiv of Linkstack and put it into the folder

chown -R 100:101 /opt/container/linkstack-docker/DATA/

@tilllt
Copy link
Author

tilllt commented May 5, 2025

download the latest archiv of Linkstack and put it into the folder\n\nchown -R 100:101 /opt/container/linkstack-docker/DATA/

Why do I have to download Linkstack, if I already pulled the container? Why is your Dockerfile not copying the files it needs to the persistent volumes?

@lastsamurai26
Copy link
Member

The problem is that we are currently working on a different solution.
Docker volumes work without problems, but with a relative path it does not work.

Unfortunately, we have not been able to find a Docker expert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker help wanted Extra attention is needed more details needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants