budget: New install throws 500 Errorcode

Expected behavior

The application is installed via Docker (and a modified docker-compose.yml) on a local machine. It should display the budget site.

Current behavior

Error Log:

2023-04-09 20:59:04,545 CRIT uncaptured python exception, closing channel <POutputDispatcher at 140268320438880 for <Subprocess at 140268320437728 with name php-fpm in state STARTING> (stderr)> (<class 'OSError'>:[Errno 29] Illegal seek [/usr/lib/python3/dist-packages/supervisor/supervisord.py|runforever|218] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|handle_read_event|281] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|record_output|215] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|_log|184] [/usr/lib/python3/dist-packages/supervisor/loggers.py|info|327] [/usr/lib/python3/dist-packages/supervisor/loggers.py|log|345] [/usr/lib/python3/dist-packages/supervisor/loggers.py|emit|227] [/usr/lib/python3/dist-packages/supervisor/loggers.py|doRollover|264])

[09-Apr-2023 20:59:04] NOTICE: ready to handle connections

2023-04-09 20:59:04,546 CRIT uncaptured python exception, closing channel <POutputDispatcher at 140268320438880 for <Subprocess at 140268320437728 with name php-fpm in state STARTING> (stderr)> (<class 'OSError'>:[Errno 29] Illegal seek [/usr/lib/python3/dist-packages/supervisor/supervisord.py|runforever|218] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|handle_read_event|281] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|record_output|215] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|_log|184] [/usr/lib/python3/dist-packages/supervisor/loggers.py|info|327] [/usr/lib/python3/dist-packages/supervisor/loggers.py|log|345] [/usr/lib/python3/dist-packages/supervisor/loggers.py|emit|227] [/usr/lib/python3/dist-packages/supervisor/loggers.py|doRollover|264])

...

127.0.0.1 -  09/Apr/2023:21:00:18 +0000 "GET /index.php" 500

2023-04-09 21:00:18,407 CRIT uncaptured python exception, closing channel <POutputDispatcher at 140268320438880 for <Subprocess at 140268320437728 with name php-fpm in state RUNNING> (stderr)> (<class 'OSError'>:[Errno 29] Illegal seek [/usr/lib/python3/dist-packages/supervisor/supervisord.py|runforever|218] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|handle_read_event|281] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|record_output|215] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|_log|184] [/usr/lib/python3/dist-packages/supervisor/loggers.py|info|327] [/usr/lib/python3/dist-packages/supervisor/loggers.py|log|345] [/usr/lib/python3/dist-packages/supervisor/loggers.py|emit|227] [/usr/lib/python3/dist-packages/supervisor/loggers.py|doRollover|264])

127.0.0.1 -  09/Apr/2023:21:02:10 +0000 "GET /index.php" 500

2023-04-09 21:02:10,853 CRIT uncaptured python exception, closing channel <POutputDispatcher at 140268320438880 for <Subprocess at 140268320437728 with name php-fpm in state RUNNING> (stderr)> (<class 'OSError'>:[Errno 29] Illegal seek [/usr/lib/python3/dist-packages/supervisor/supervisord.py|runforever|218] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|handle_read_event|281] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|record_output|215] [/usr/lib/python3/dist-packages/supervisor/dispatchers.py|_log|184] [/usr/lib/python3/dist-packages/supervisor/loggers.py|info|327] [/usr/lib/python3/dist-packages/supervisor/loggers.py|log|345] [/usr/lib/python3/dist-packages/supervisor/loggers.py|emit|227] [/usr/lib/python3/dist-packages/supervisor/loggers.py|doRollover|264])

The site throws with an 500 Error code

Steps to reproduce

I modified the docker-compose so it looks like this:

version: '3'

volumes:
  database2: {}

services:
  database:
    container_name: budget-db
    networks:
      - budget-default
    image: mysql:5.7
    environment:
      MYSQL_DATABASE: 'budget'
      MYSQL_USER: 'budget'
      MYSQL_PASSWORD: 'test'
      MYSQL_RANDOM_ROOT_PASSWORD: 1
    restart: unless-stopped
    command: --default-authentication-plugin=mysql_native_password

  app:
    build: ./
    container_name: budget-web
    networks:
      - budget-default
      - web
    environment:
      - BUDGET_SETUP=1
    volumes:
      - .:/var/www
    ports:
      - 7070:80
    command: ./docker_boot.sh
    restart: unless-stopped
    depends_on:
      - database
    labels:
      - traefik.enable=true
      - traefik.http.routers.budget.rule=Host("domain.local")
      - "traefik.docker.network=web"

networks:
  web:
    name: web
    external: true
  budget-default:

The primary change was to include traefik and remove the port for mysql, as it conflicts with other containers. I created it with docker-compose up -d and it build / started without a breaking error.

If applicable, screenshots can be added here Screenshot

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

That’s not cool. I’ll look into this over the weekend.

Got it, it’s clear to me now. I’ll be sure to fix this either tonight or tomorrow. Keep you posted.