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

Fatal error after reup container #175

Open
DeAlexPesh opened this issue May 7, 2024 · 1 comment
Open

Fatal error after reup container #175

DeAlexPesh opened this issue May 7, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@DeAlexPesh
Copy link

Summary

Warning: Trying to access array offset on value of type null in /www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 159

Fatal error: Uncaught ReflectionException: Class "config" does not exist in /www/html/overrides/laravel/framework/src/Illuminate/Container/Container.php:752 Stack trace: #0 /www/html/overrides/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('config') #1 /www/html/overrides/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('config') #2 /www/html/overrides/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('config', Array) #3 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(732): Illuminate\Container\Container->make('config', Array) #4 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(110): Illuminate\Foundation\Application->make('config', Array) #5 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(272): app('config') #6 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(284): config('app.debug') #7 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(187): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(Dotenv\Exception\InvalidFileException)) #8 /www/html/app/Exceptions/Handler.php(53): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Dotenv\Exception\InvalidFileException)) #9 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(326): App\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Dotenv\Exception\InvalidFileException)) #10 /www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(120): Illuminate\Foundation\Http\Kernel->renderException(Object(Illuminate\Http\Request), Object(Dotenv\Exception\InvalidFileException)) #11 /www/html/public/index.php(82): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #12 {main} thrown in /www/html/overrides/laravel/framework/src/Illuminate/Container/Container.php on line 752

Steps to reproduce

  1. run container
  2. auth
  3. reup container
  4. error

What is the expected correct behavior?

not fatal error

Environment

  • Image version / tag: latest
  • Host OS: Ubunru server 22
logs
,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
'--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
   |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
   |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
   `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
                                                                       '--'
Image:  tiredofit/freescout | Version  1.17.69 Type 'image_changelog' for details
Repository/Documentation: https://github.com/tiredofit/docker-freescout/
If this image provides you value  - Consider sponsoring my work for continued 
development, timely updates, and feature requests. Commercial support available.
                    More Info:  https://www.tiredofit.ca
2024-05-07.11:53:41 [NOTICE] ** [timezone] Timezone: Setting to 'Asia/Yekaterinburg' from 'Etc/GMT'
2024-05-07.16:53:42 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
2024-05-07.16:53:42 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
2024-05-07.16:53:42 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'postfix-relay'
2024-05-07.16:53:43 [NOTICE] ** [php-fpm] Creating sample index.php
2024-05-07.16:53:44 [WARN] ** [freescout] Potential New Installation / Standalone Installation Detected - Copying Freescout Sourcecode
2024-05-07.16:53:44 [WARN] ** [freescout] Detected /data directory. Persistently saving settings/sessions/cache/uploads/modules
2024-05-07.16:53:45 [INFO] ** [freescout] Auto Configuring based on Environment Variables
2024-05-07.16:53:45 [WARN] ** [freescout] Installing Modules into container
2024-05-07.16:53:45 [WARN] ** [freescout] Running any Database Migrations
2024-05-07.16:53:45 [INFO] ** [freescout] Initialization Complete. Please visit https://helpdesk.domain.com and login with your credentials..
2024-05-07.16:53:45 [STARTING] ** [nginx] [1] Starting nginx 1.25.5
2024-05-07.16:53:45 [STARTING] ** [php-fpm] [1] Starting php-fpm 8.2.18
2024-05-07.16:53:45 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.13
2024-05-07.16:53:45 [STARTING] ** [scheduling] [1] Starting cron
docker-compose.yml
version: "3"
name: freescout

x-freescout-depend: &freescout-depend
 networks:
  - freescout
 logging:
  driver: "json-file"
  options:
   max-size: "200k"
   max-file: "5"
 restart: always

services:
 freescout:
  image: tiredofit/freescout:latest
  container_name: "freescout"
  ports:
   - "0.0.0.0:1400:80"
  volumes:
   - /app_base/freescout/data/:/data/
   - /app_base/freescout/logs/:/www/logs/
   - /app_base/freescout/custom/:/assets/custom/
   - /app_base/freescout/custom-scripts/:/assets/custom-scripts/
  environment:
   - TIMEZONE=\${TZ}
   - SITE_URL=\${SITE_URL}
   - APPLICATION_NAME=Helpdesk
   - DB_TYPE=pgsql
   - DB_PGSQL_SSL_MODE=prefer
   - DB_HOST=db
   - DB_PORT=5432
   - DB_NAME=\${DB_BASE}
   - DB_USER=\${DB_USER}
   - DB_PASS=\${DB_PASSWORD}
   - ADMIN_EMAIL=\${ADMIN_EMAIL}
   - ADMIN_FIRST_NAME=\${ADMIN_FIRST_NAME}
   - ADMIN_LAST_NAME=\${ADMIN_LAST_NAME}
   - ADMIN_PASS=\${ADMIN_PASS}
#  - APP_PROXY=false
#  - APP_TRUSTED_PROXIES=0.0.0.0
   - APP_NEW_FETCHING_LIBRARY=false
   - APP_X_FRAME_OPTIONS=\${APP_X_FRAME_OPTIONS}
   - DISPLAY_ERRORS=false
   - ENABLE_AUTO_UPDATE=false
   - ENABLE_SSL_PROXY=false
   - SETUP_TYPE=AUTO
  depends_on:
   freescout-db:
    condition: service_healthy
  links:
   - freescout-db:db
  <<: [ *freescout-depend ]

 freescout-db:
  image: postgres:16-alpine
  container_name: "freescout-db"
# ports:
#  - "0.0.0.0:5432:5432"
  environment:
   - POSTGRES_USER=\${DB_USER}
   - POSTGRES_PASSWORD=\${DB_PASSWORD}
   - POSTGRES_DB=\${DB_BASE}
   - TZ=\${TZ}
   - PGTZ=\${TZ}
  volumes: 
   - "/app_base/freescout/db:/var/lib/postgresql/data"
  healthcheck:
   test: [ "CMD-SHELL", "pg_isready -d \$\${POSTGRES_DB} -U \$\${POSTGRES_USER} --quiet" ]
   start_period: 20s
   interval: 2s
   timeout: 20s
   retries: 10
  shm_size: 1g
  <<: [ *freescout-depend ]

networks:
 freescout:
  driver: bridge
  name: freescout
@DeAlexPesh DeAlexPesh added the bug Something isn't working label May 7, 2024
@DeAlexPesh
Copy link
Author

Is there any way to solve the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant