This repository was archived by the owner on May 6, 2025. It is now read-only.
Description Is there an existing issue for this?
Current Behavior
Crash on fresh install and WebUI gives "500 Server Error"
ErrorException
Attempt to read property "alerts_enabled" on null
Expected Behavior
Initializes WebUI and doesn't crash immediately
Steps To Reproduce
Image "lscr.io/linuxserver/snipe-it:latest" (73a804d8ef83c125ac7cefee25386a016b1af60feb9807f3b72e1b3ebcd7b0d6)
Fill out all environment variables
Run and it gives an instant error
Environment
OS: Unraid 6.11.5
How docker service was installed: Unraid Community Apps Store
CPU architecture
x86-64
Docker creation
docker run
-d
--name=' snipe-it'
--net=' XXXX'
-e TZ=" America/XXXX"
-e HOST_OS=" Unraid"
-e HOST_HOSTNAME=" XXXX"
-e HOST_CONTAINERNAME=" snipe-it"
-e ' APP_KEY' =' XXXXXXXXX='
-e ' APP_URL' =' http://192.168.1.XX:8012'
-e ' MYSQL_PORT_3306_TCP_ADDR' =' mysql'
-e ' MYSQL_PORT_3306_TCP_PORT' =' 3306'
-e ' MYSQL_DATABASE' =' snipe_it'
-e ' MYSQL_USER' =' snipe'
-e ' MYSQL_PASSWORD' =' XXXXX'
-e ' APP_DEBUG' =' false'
-e ' APP_ENV' =' production'
-e ' APP_FORCE_TLS' =' false'
-e ' APP_LOCALE' =' '
-e ' MAIL_PORT_587_TCP_ADDR' =' smtp.gmail.com'
-e ' MAIL_PORT_587_TCP_PORT' =' 587'
-e ' MAIL_ENV_FROM_ADDR' =' XXXXX@gmail.com'
-e ' MAIL_ENV_FROM_NAME' =' XXXXXX'
-e ' MAIL_ENV_ENCRYPTION' =' tls'
-e ' MAIL_ENV_USERNAME' =' XXXXX'
-e ' MAIL_ENV_PASSWORD' =' XXXXXX'
-e ' APP_TIMEZONE' =' America/XXX'
-e ' PUID' =' 99'
-e ' PGID' =' 100'
-e ' UMASK' =' 022'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui=' http://[IP]:[PORT:80]/setup'
-l net.unraid.docker.icon=' https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/snipe-it-logo.png'
-p ' 8012:80/tcp'
-v ' /mnt/user/appdata/snipe-it' :' /config' :' rw' ' lscr.io/linuxserver/snipe-it:latest'
73a804d8ef83c125ac7cefee25386a016b1af60feb9807f3b72e1b3ebcd7b0d6
Container logs
Initial error on a fresh install.
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Snipe-IT: https://snipeitapp.com/donate
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 99
User GID: 100
───────────────────────────────────────
Linuxserver.io version: v8.0.4-ls320
Build-date: 2025-03-05T17:53:41+00:00
───────────────────────────────────────
using keys found in /config/keys
[custom-init] No custom files found, skipping...
[ls.io-init] done.
ErrorException
Attempt to read property " alerts_enabled" on null
at /app/www/app/Console/Kernel.php:22
18▕ * @return void
19▕ * /
20▕ protected function schedule(Schedule $schedule )
21▕ {
➜ 22▕ if(Setting::getSettings ()-> alerts_enabled === 1) {
23▕ $schedule->command('snipeit:inventory-alerts')->daily ();
24▕ $schedule->command('snipeit:expiring-alerts')->daily ();
25▕ $schedule->command('snipeit:expected-checkin')->daily ();
26▕ $schedule->command('snipeit:upcoming-audits')->daily ();
1 /app/www/app/Console/Kernel.php:22
Illuminate\F oundation\B ootstrap\H andleExceptions::Illuminate\F oundation\B ootstrap\{ closure}()
+23 vendor frames
25 /app/www/artisan:33
Illuminate\F oundation\C onsole\K ernel::handle() Reactions are currently unavailable
Is there an existing issue for this?
Current Behavior
Crash on fresh install and WebUI gives "500 Server Error"
Expected Behavior
Initializes WebUI and doesn't crash immediately
Steps To Reproduce
Environment
CPU architecture
x86-64
Docker creation
Container logs
Initial error on a fresh install.