Open tsprich opened 1 year ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Yep, same issue here on the freshly created docker install You need to execute
docker exec -it snipeit chown docker:root /var/www/html/storage/logs/laravel.log
@tsprich Did you ever try with php8? How about that?
Debug mode
Describe the bug
Debian 11 minmal VM with docker
.myenv MYSQL_PORT_3306_TCP_ADDR=snipe-mysql MYSQL_PORT_3306_TCP_PORT=3306 MYSQL_ROOT_PASSWORD=
MYSQL_DATABASE=snipeit
MYSQL_USER=snipeit
MYSQL_PASSWORD=snipeit
Email Parameters
- the hostname/IP address of your mailserver
MAIL_PORT_587_TCP_ADDR=localhost
the port for the mailserver (probably 587, could be another)
MAIL_PORT_587_TCP_PORT=587
the default from address, and from name for emails
MAIL_ENV_FROM_ADDR=noreply@neusta.de MAIL_ENV_FROM_NAME=Snipe-IT
- pick 'tls' for SMTP-over-SSL, 'tcp' for unencrypted
MAIL_ENV_ENCRYPTION=tcp
SMTP username and password
MAIL_ENV_USERNAME=your_username
MAIL_ENV_PASSWORD=your_email_pw
Snipe-IT Settings
APP_ENV=local APP_DEBUG=true APP_KEY=base64:
APP_URL=https://snipe-it.internal.domain.local
APP_TIMEZONE=Europe/Berlin # you should change this to your timezone
APP_LOCALE=de # you should change this for the desired language
APP_TRUSTED_PROXIES= # reverse proxy on localhost
SECURE_COOKIES=true
docker-compose.yml version: '3' services: snipe-mysql: container_name: snipe-mysql image: mariadb:10.5 env_file:
laravel log cannot be written. permission denied. This happens either started with an local user or root.
Reproduction steps
Run container with the posted docker-compose on deb 11.
Expected behavior
no errors. It should just start up and run out of the box. If this is an user ID thing (I presume) it should be clearly stated in the docs for Docker how to set this up. https://snipe-it.readme.io/docs/docker
and when I do a chmod -R 777 on /var/www/html/storage in the container for fun the error vanishes .. but I get a new one:
Class 'Laravel\Dusk\DuskServiceProvider' not found...
Screenshots
No response
Snipe-IT Version
latest as of today
Operating System
Debian 11
Web Server
docker exec -ti docker-snipe-it-1 a2query -v 2.4.41
PHP Version
docker exec -ti docker-snipe-it-1 php -v PHP 7.4.3-4ubuntu2.18 (cli) (built: Feb 23 2023 12:43:23) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3-4ubuntu2.18, Copyright (c), by Zend Technologies
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
Additional context
No response