shlinkio / shlink-web-client

A React-based client application for Shlink
https://app.shlink.io
MIT License
299 stars 81 forks source link

Cannot start container, stuck with worker processes #1186

Closed nothing2obvi closed 6 months ago

nothing2obvi commented 6 months ago

shlink-web-client version

4.1.2

How do you use shlink-web-client

Docker image

Current behavior

I actually had it running then deleted a short URL and suddenly the screen went blank. Restarted the web client and this is all I get in the logs. My actual shlink instance and DB are running fine.

I even tried removing the container, deleting the image from Docker, and spinning up the docker-compose.yml file again, but this is all I get.

05/11/2024
12:59:07 PM
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
05/11/2024
12:59:07 PM
10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-shlink-servers-json.sh
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
05/11/2024
12:59:07 PM
/docker-entrypoint.sh: Configuration complete; ready for start up
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: using the "epoll" event method
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: nginx/1.25.4
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10) 
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: OS: Linux 6.6.26-linuxkit
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker processes
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 23
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 24
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 25
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 26
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 27
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 28
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 29
05/11/2024
12:59:08 PM
2024/05/11 19:59:08 [notice] 1#1: start worker process 30

My docker-compose.yml file:

services:
  shlink-web-client:
   container_name: shlink
   ports:
     - 8343:8080
   image: shlinkio/shlink-web-client
   volumes:
     - /Users/username/Docker/shlink/config/servers.json:/usr/share/nginx/html/servers.json
   labels:
      - "com.centurylinklabs.watchtower.enable=true"

My servers.json file:

[
  {
    "name": "shlink-instance",
    "url": "https://shlink-instance.mydomain.com",
    "apiKey": "api-key-here"
  }
]

Any help would be appreciated. Thank you!

Expected behavior

The Shlink web client should run.

Minimum steps to reproduce

  1. Spin up Shlink instance with DB
  2. Check base URL and logs to see that it is running
  3. Spin up Shlink web client
  4. Get the above logs