snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.39k stars 3.06k forks source link

Maximum execution time of 600 seconds exceeded php artisan serve command #14288

Open Govind-Patel opened 4 months ago

Govind-Patel commented 4 months ago

Debug mode

Describe the bug

Whoops\Exception\ErrorException

Maximum execution time of 600 seconds exceeded

at D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:59 55▕ : now()->addDays(30)->getTimestamp(); 56▕ 57▕ $process = $this->startProcess($hasEnvironment); 58▕ ➜ 59▕ while ($process->isRunning()) { 60▕ if ($hasEnvironment) { 61▕ clearstatcache(false, $environmentFile); 62▕ } 63▕

1 D:\xampp\htdocs\projects\hb_asset_managment\vendor\filp\whoops\src\Whoops\Run.php:514 Whoops\Run::handleError("Maximum execution time of 600 seconds exceeded", "D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php")

2 [internal]:0 Whoops\Run::handleShutdown()

Reproduction steps

Whoops\Exception\ErrorException

Maximum execution time of 600 seconds exceeded

at D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:59 55▕ : now()->addDays(30)->getTimestamp(); 56▕ 57▕ $process = $this->startProcess($hasEnvironment); 58▕ ➜ 59▕ while ($process->isRunning()) { 60▕ if ($hasEnvironment) { 61▕ clearstatcache(false, $environmentFile); 62▕ } 63▕

1 D:\xampp\htdocs\projects\hb_asset_managment\vendor\filp\whoops\src\Whoops\Run.php:514 Whoops\Run::handleError("Maximum execution time of 600 seconds exceeded", "D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php")

2 [internal]:0 Whoops\Run::handleShutdown()

Expected behavior

Whoops\Exception\ErrorException

Maximum execution time of 600 seconds exceeded

at D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:59 55▕ : now()->addDays(30)->getTimestamp(); 56▕ 57▕ $process = $this->startProcess($hasEnvironment); 58▕ ➜ 59▕ while ($process->isRunning()) { 60▕ if ($hasEnvironment) { 61▕ clearstatcache(false, $environmentFile); 62▕ } 63▕

1 D:\xampp\htdocs\projects\hb_asset_managment\vendor\filp\whoops\src\Whoops\Run.php:514 Whoops\Run::handleError("Maximum execution time of 600 seconds exceeded", "D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php")

2 [internal]:0 Whoops\Run::handleShutdown()

Screenshots

image

Snipe-IT Version

v6.3.1

Operating System

windows

Web Server

apache

PHP Version

8.0

Operating System

window 10

Browser

Google Crome

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

php artisan serve command in laravel isuue

welcome[bot] commented 4 months 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.

snipe commented 4 months ago

If you're using Apache, you don't need (or want) to use php artisan serve. Just use Apache

Govind-Patel commented 4 months ago

apache is not working image

use php artisan serve ****

[2024-02-16 17:43:00] local.ERROR: Symfony\Component\ErrorHandler\Error\FatalError: Maximum execution time of 600 seconds exceeded in D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:59 Stack trace:

0 {main}

[2024-02-16 17:43:00] local.ERROR: Maximum execution time of 600 seconds exceeded {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Maximum execution time of 600 seconds exceeded at D:\xampp\htdocs\projects\hb_asset_managment\vendor\laravel\framework\src\Illuminate\Foundation\Console\ServeCommand.php:59) [stacktrace]

0 {main}

"}

snipe commented 3 months ago

That looks like Apache is working tho. The sad panda message if from within Snipe-IT, which means Apache is doing it's job serving those files. My guess would be an httpd.conf misconfiguration. https://snipe-it.readme.io/docs/linuxosx#using-apache

Snipe-IT Documentation
Linux/OSX
Setting up a web server can sound daunting for folks who don't normally do that kind of thing. This guide will help you walk through the configuration for Apache or Nginx on Linux and OSX.Using ApacheThe most common setup for Snipe-IT on a linux server is to use Apache, so if you're not sure what to...