-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Get Error 500 Server Error when fresh install via Docker install. #14962
Comments
👋 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. |
@Winniepoom Did you include the
|
@Winniepoom any updates on this? |
Sorry for not update you guys. Turn out it work after I put a 'base64' in my container and restart it Thank you guys. |
Debug mode
Describe the bug
I just flesh install it via Docker follow this document https://snipe-it.readme.io/docs/docker
everything is normal nothing throw an error during install phase but when I lunch it in the first time it gave me 500 Internal Error.
Reproduction steps
1.Pull docker image from snipe/snipe-it.
2.create my_env_file and change my .
3.change 'APP_URL=' to be localhost:8000.
4.run mySQL5.6.
5.get APP_KEY and put it in my_env_file.
6.run docker container with SSL disable.
...
Expected behavior
Expect it to working
Screenshots
Snipe-IT Version
Docker Image latest
Operating System
Ubuntu
Web Server
Docker
PHP Version
Docker
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
Logs form Laravel.log
[2024-06-25 03:14:24] production.ERROR: Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm. {"exception":"[object] (RuntimeException(code: 0): Unsupported cipher or incorrect key length. Supported ciphers are: aes-128-cbc, aes-256-cbc, aes-128-gcm, aes-256-gcm. at /var/www/html/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:55)
[stacktrace]
#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(32): Illuminate\Encryption\Encrypter->__construct()
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(908): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}()
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(1066): Illuminate\Foundation\Application->make()
#7 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(982): Illuminate\Container\Container->resolveClass()
#8 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(943): Illuminate\Container\Container->resolveDependencies()
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#10 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(961): Illuminate\Container\Container->resolve()
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(946): Illuminate\Container\Container->make()
#13 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(255): Illuminate\Foundation\Application->make()
#14 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(213): Illuminate\Foundation\Http\Kernel->terminateMiddleware()
#15 /var/www/html/public/index.php(55): Illuminate\Foundation\Http\Kernel->terminate()
#16 {main}
"}
This is a App container logs
2024-06-25 09:45:21,185 WARN received SIGTERM indicating exit request
2024-06-25 09:45:21,185 INFO waiting for exit_on_any_fatal, apache, run_schedule to die
2024-06-25 09:45:22,187 INFO stopped: run_schedule (terminated by SIGTERM)
2024-06-25 09:45:22,187 INFO stopped: apache (terminated by SIGTERM)
2024-06-25 09:45:22,195 INFO stopped: exit_on_any_fatal (terminated by SIGTERM)
Module ssl already disabled
Changing upload limit to 100
INFO Nothing to migrate.
INFO Configuration cache cleared successfully.
INFO Configuration cached successfully.
2024-06-25 09:45:23,301 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-06-25 09:45:23,302 INFO supervisord started with pid 1
2024-06-25 09:45:24,305 INFO spawned: 'exit_on_any_fatal' with pid 27
2024-06-25 09:45:24,306 INFO spawned: 'apache' with pid 28
2024-06-25 09:45:24,307 INFO spawned: 'run_schedule' with pid 29
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
2024-06-25 02:45:24 Running ['artisan' auth:clear-resets] ....... 219ms DONE
⇂ '/usr/bin/php8.1' 'artisan' auth:clear-resets > '/dev/null' 2>&1
2024-06-25 09:45:25,710 INFO success: exit_on_any_fatal entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:45:25,710 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:45:25,710 INFO success: run_schedule entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
2024-06-25 09:47:49,161 WARN received SIGTERM indicating exit request
2024-06-25 09:47:49,162 INFO waiting for exit_on_any_fatal, apache, run_schedule to die
2024-06-25 09:47:50,163 INFO stopped: run_schedule (terminated by SIGTERM)
2024-06-25 09:47:50,164 INFO stopped: apache (terminated by SIGTERM)
2024-06-25 09:47:50,170 INFO stopped: exit_on_any_fatal (terminated by SIGTERM)
Module ssl already disabled
Changing upload limit to 100
INFO Nothing to migrate.
INFO Configuration cache cleared successfully.
INFO Configuration cached successfully.
2024-06-25 09:47:51,440 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-06-25 09:47:51,441 INFO supervisord started with pid 1
2024-06-25 09:47:52,444 INFO spawned: 'exit_on_any_fatal' with pid 27
2024-06-25 09:47:52,445 INFO spawned: 'apache' with pid 28
2024-06-25 09:47:52,446 INFO spawned: 'run_schedule' with pid 29
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
INFO No scheduled commands are ready to run.
2024-06-25 09:47:53,655 INFO success: exit_on_any_fatal entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:47:53,655 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:47:53,655 INFO success: run_schedule entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
2024-06-25 09:50:49,168 WARN received SIGTERM indicating exit request
2024-06-25 09:50:49,169 INFO waiting for exit_on_any_fatal, apache, run_schedule to die
2024-06-25 09:50:50,170 INFO stopped: run_schedule (terminated by SIGTERM)
2024-06-25 09:50:50,182 INFO stopped: apache (terminated by SIGTERM)
2024-06-25 09:50:50,184 INFO stopped: exit_on_any_fatal (terminated by SIGTERM)
Module ssl already disabled
Changing upload limit to 100
INFO Nothing to migrate.
INFO Configuration cache cleared successfully.
INFO Configuration cached successfully.
2024-06-25 09:50:51,340 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-06-25 09:50:51,341 INFO supervisord started with pid 1
2024-06-25 09:50:52,343 INFO spawned: 'exit_on_any_fatal' with pid 27
2024-06-25 09:50:52,344 INFO spawned: 'apache' with pid 28
2024-06-25 09:50:52,345 INFO spawned: 'run_schedule' with pid 29
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
INFO No scheduled commands are ready to run.
2024-06-25 09:50:53,536 INFO success: exit_on_any_fatal entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:50:53,536 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:50:53,536 INFO success: run_schedule entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
2024-06-25 09:58:24,931 INFO exited: apache (terminated by SIGTERM; not expected)
2024-06-25 09:58:24,932 INFO spawned: 'apache' with pid 119
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-DFOREGROUND' failed.
The Apache error log may have more information.
2024-06-25 09:58:24,957 INFO exited: apache (exit status 1; not expected)
2024-06-25 09:58:25,961 INFO spawned: 'apache' with pid 124
2024-06-25 09:58:25,961 INFO reaped unknown pid 31 (exit status 0)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
2024-06-25 09:58:26,976 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:58:33,203 INFO exited: apache (terminated by SIGTERM; not expected)
2024-06-25 09:58:33,210 INFO spawned: 'apache' with pid 164
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-DFOREGROUND' failed.
The Apache error log may have more information.
2024-06-25 09:58:33,234 INFO reaped unknown pid 126 (exit status 0)
2024-06-25 09:58:33,235 INFO exited: apache (exit status 1; not expected)
2024-06-25 09:58:34,238 INFO spawned: 'apache' with pid 168
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
2024-06-25 09:58:35,252 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:58:37,296 INFO exited: apache (terminated by SIGTERM; not expected)
2024-06-25 09:58:37,298 INFO spawned: 'apache' with pid 204
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-DFOREGROUND' failed.
2024-06-25 09:58:37,323 INFO reaped unknown pid 170 (exit status 0)
The Apache error log may have more information.
2024-06-25 09:58:38,324 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:58:38,325 INFO exited: apache (exit status 1; not expected)
2024-06-25 09:58:39,327 INFO spawned: 'apache' with pid 226
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
httpd (pid 218) already running
2024-06-25 09:58:39,353 INFO exited: apache (exit status 0; not expected)
2024-06-25 09:58:40,355 INFO spawned: 'apache' with pid 232
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
httpd (pid 218) already running
2024-06-25 09:58:41,382 INFO success: apache entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-06-25 09:58:41,382 INFO exited: apache (exit status 0; expected)
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
2024-06-25 03:00:54 Running ['artisan' auth:clear-resets] ....... 205ms DONE
⇂ '/usr/bin/php8.1' 'artisan' auth:clear-resets > '/dev/null' 2>&1
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
INFO No scheduled commands are ready to run.
This is a DB container logs
2024-06-25 09:51:01 1 [Note] Giving 0 client threads a chance to die gracefully
2024-06-25 09:51:01 1 [Note] Event Scheduler: Purging the queue. 0 events
2024-06-25 09:51:01 1 [Note] Shutting down slave threads
2024-06-25 09:51:01 1 [Note] Forcefully disconnecting 0 remaining clients
2024-06-25 09:51:01 1 [Note] Binlog end
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'partition'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_METRICS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMPMEM'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_CMP'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_LOCKS'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'INNODB_TRX'
2024-06-25 09:51:01 1 [Note] Shutting down plugin 'InnoDB'
2024-06-25 09:51:01 1 [Note] InnoDB: FTS optimize thread exiting.
2024-06-25 09:51:01 1 [Note] InnoDB: Starting shutdown...
2024-06-25 09:51:02 1 [Note] InnoDB: Shutdown completed; log sequence number 8050623
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'BLACKHOLE'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'ARCHIVE'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'MRG_MYISAM'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'MyISAM'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'MEMORY'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'CSV'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'sha256_password'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'mysql_old_password'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'mysql_native_password'
2024-06-25 09:51:02 1 [Note] Shutting down plugin 'binlog'
2024-06-25 09:51:02 1 [Note] mysqld: Shutdown complete
2024-06-25 09:51:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-06-25 09:51:03+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-06-25 09:51:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.6.51-1debian9 started.
2024-06-25 09:51:03 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2024-06-25 09:51:03 0 [Note] mysqld (mysqld 5.6.51) starting as process 1 ...
2024-06-25 09:51:03 1 [Note] Plugin 'FEDERATED' is disabled.
2024-06-25 09:51:03 1 [Note] InnoDB: Using atomics to ref count buffer pool pages
2024-06-25 09:51:03 1 [Note] InnoDB: The InnoDB memory heap is disabled
2024-06-25 09:51:03 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2024-06-25 09:51:03 1 [Note] InnoDB: Memory barrier is not used
2024-06-25 09:51:03 1 [Note] InnoDB: Compressed tables use zlib 1.2.11
2024-06-25 09:51:03 1 [Note] InnoDB: Using Linux native AIO
2024-06-25 09:51:03 1 [Note] InnoDB: Not using CPU crc32 instructions
2024-06-25 09:51:03 1 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2024-06-25 09:51:03 1 [Note] InnoDB: Completed initialization of buffer pool
2024-06-25 09:51:03 1 [Note] InnoDB: Highest supported file format is Barracuda.
2024-06-25 09:51:03 1 [Note] InnoDB: 128 rollback segment(s) are active.
2024-06-25 09:51:03 1 [Note] InnoDB: Waiting for purge to start
2024-06-25 09:51:04 1 [Note] InnoDB: 5.6.51 started; log sequence number 8050623
2024-06-25 09:51:04 1 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2024-06-25 09:51:04 1 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2024-06-25 09:51:04 1 [Note] Server hostname (bind-address): '*'; port: 3306
2024-06-25 09:51:04 1 [Note] IPv6 is available.
2024-06-25 09:51:04 1 [Note] - '::' resolves to '::';
2024-06-25 09:51:04 1 [Note] Server socket created on IP: '::'.
2024-06-25 09:51:04 1 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2024-06-25 09:51:04 1 [Warning] 'proxies_priv' entry '@ root@4c08b38a35d4' ignored in --skip-name-resolve mode.
2024-06-25 09:51:04 1 [Note] Event Scheduler: Loaded 0 events
2024-06-25 09:51:04 1 [Note] mysqld: ready for connections.
Version: '5.6.51' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
The text was updated successfully, but these errors were encountered: