Error while installing Snipe IT
- 
 artisan key generate gives error [root@localhost snipe-it]# cat /etc/redhat-release 
 CentOS Linux release 7.4.1708 (Core)
 [root@localhost snipe-it]#[root@localhost snipe-it]# uname -a 
 Linux localhost.localdomain 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux[root@localhost snipe-it]# php -v 
 PHP 7.0.24 (cli) (built: Sep 30 2017 10:10:28) ( NTS )
 Copyright (c) 1997-2017 The PHP Group
 Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
 with Zend OPcache v7.0.24, Copyright (c) 1999-2017, by Zend Technologies
 [root@localhost snipe-it]#Please find below the error [root@localhost snipe-it]# php artisan key:generate 
 PHP Fatal error: Uncaught Error: Class 'Log' not found in /var/www/new/snipe-it/app/Exceptions/Handler.php:39
 Stack trace:
 #0 /var/www/new/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(320): App\Exceptions\Handler->report(Object(Symfony\Component\Debug\Exception\FatalThrowableError))
 #1 /var/www/new/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(132): Illuminate\Foundation\Console\Kernel->reportException(Object(Symfony\Component\Debug\Exception\FatalThrowableError))
 #2 /var/www/new/snipe-it/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
 #3 {main}
 thrown in /var/www/new/snipe-it/app/Exceptions/Handler.php on line 39
 [root@localhost snipe-it]#Please help 
- 
 @harshmehta said in Error while installing Snipe IT: php artisan key:generate 
 PHP Fatal error: Uncaught Error: Class 'Log' not found in /var/www/new/snipe-it/app/Exceptions/Handler.php:39Could be caused by an error in your .env file. Can we see that? 
- 
 Checked my .env file all looks good 
 Still have a look might have missed out on something######################################## # -------------------------------------------- # REQUIRED: BASIC APP SETTINGS # -------------------------------------------- APP_ENV=production APP_DEBUG=false APP_KEY=ChangeMe APP_URL=http://192.168.1.101 APP_TIMEZONE='Asia/Kolkata' APP_LOCALE=en # -------------------------------------------- # REQUIRED: DATABASE SETTINGS # -------------------------------------------- DB_CONNECTION=mysql DB_HOST=localhost DB_DATABASE=snipeit_db DB_USERNAME=snipeit_user DB_PASSWORD=admin123 DB_PREFIX=null DB_DUMP_PATH='/usr/bin' DB_CHARSET=utf8mb4 DB_COLLATION=utf8mb4_unicode_ci # -------------------------------------------- # OPTIONAL: SSL DATABASE SETTINGS # -------------------------------------------- DB_SSL=false DB_SSL_KEY_PATH=null DB_SSL_CERT_PATH=null DB_SSL_CA_PATH=null DB_SSL_CIPHER=null # -------------------------------------------- # REQUIRED: OUTGOING MAIL SERVER SETTINGS # -------------------------------------------- MAIL_DRIVER=smtp MAIL_HOST=email-smtp.us-west-2.amazonaws.com MAIL_PORT=587 MAIL_USERNAME=YOURUSERNAME MAIL_PASSWORD=YOURPASSWORD MAIL_ENCRYPTION=null [email protected] MAIL_FROM_NAME='Snipe-IT' [email protected] MAIL_REPLYTO_NAME='Snipe-IT' # -------------------------------------------- # REQUIRED: IMAGE LIBRARY # This should be gd or imagick # -------------------------------------------- IMAGE_LIB=gd # -------------------------------------------- # OPTIONAL: SESSION SETTINGS # -------------------------------------------- SESSION_LIFETIME=12000 EXPIRE_ON_CLOSE=false ENCRYPT=false COOKIE_NAME=snipeit_session COOKIE_DOMAIN=null SECURE_COOKIES=false # -------------------------------------------- # OPTIONAL: SECURITY HEADER SETTINGS # -------------------------------------------- REFERRER_POLICY=same-origin ENABLE_CSP=false # -------------------------------------------- # OPTIONAL: CACHE SETTINGS # -------------------------------------------- CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync # -------------------------------------------- # OPTIONAL: REDIS SETTINGS # -------------------------------------------- REDIS_HOST=null REDIS_PASSWORD=null REDIS_PORT-null # -------------------------------------------- # OPTIONAL: AWS S3 SETTINGS # -------------------------------------------- AWS_SECRET=null AWS_KEY=null AWS_REGION=null AWS_BUCKET=null # -------------------------------------------- # OPTIONAL: LOGIN THROTTLING # -------------------------------------------- LOGIN_MAX_ATTEMPTS=5 LOGIN_LOCKOUT_DURATION=60 # -------------------------------------------- # OPTIONAL: MISC # -------------------------------------------- APP_LOG=daily APP_LOG_MAX_FILES=10 APP_LOCKED=false FILESYSTEM_DISK=local APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1 ALLOW_IFRAMING=false APP_CIPHER=AES-256-CBC
- 
 I don't see anything that looks wrong  
- 
 
- 
 Snipe-IT has a lot of fragility around their install scripts, and not a huge user base so issues are difficult to track down. 
- 
 Read this issue under their Common issues documentation .env looks all good and I did a manual installation did not run the install script 
- 
 @harshmehta said in Error while installing Snipe IT: Read this issue under their Common issues documentation .env looks all good and I did a manual installation did not run the install script Yeah, saw that. 
- 
 Yes giving a couple of more tries 
 lets see
- 
 @scottalanmiller said in Error while installing Snipe IT: Snipe-IT has a lot of fragility around their install scripts, and not a huge user base so issues are difficult to track down. I disagree with this. Their install script has worked everytime I have ever used it. 
- 
 Hi just in case will it be possible for you to share you .env file I can try that 
- 
 @harshmehta said in Error while installing Snipe IT: Hi just in case will it be possible for you to share you .env file I can try that I have not ran a new install since 4.0 came out. 
 I have one planned for a client sometime int he next couple days though.
- 
 I'm testing an install now with the installer script and will update in a minute or two. 
- 
 If you were installing Snipe-IT manually, did you install the dependencies before generating the app key? 
 https://snipe-it.readme.io/docs/install-dependencies
- 
 Just cloned the repo and recreated my prior updates for Fedora Installing now. 
  
- 
  
- 
 Works perfectly. 
  
- 
 That's great can you please just list me the steps 
 I will try on a fresh Centos 7 and also please help me with the Php version we should be using
- 
 @harshmehta said in Error while installing Snipe IT: That's great can you please just list me the steps 
 I will try on a fresh Centos 7 and also please help me with the Php version we should be usingThere i s nothing to do but follow the instructions. From a CentOS 7 minimal install, you need to install wget and open the firewall, then run the script as instructed in the SnipeIT documentation. # Pre install setup yum -y install wget firewall-cmd --zone=public --add-port=http/tcp --permanent firewall-cmd --reload # Official Snipe instructions downlaoding option 3 # https://snipe-it.readme.io/docs/downloading wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh chmod 744 install.sh ./install.sh
- 
 @scottalanmiller said in Error while installing Snipe IT: Snipe-IT has a lot of fragility around their install scripts, and not a huge user base so issues are difficult to track down. I can personally promise that v4 installs under Debian 8 & 9.1, Ubuntu 14.04.5 & 16.04.3 & 17.04 and CentOS 6 & 7. If it doesn't ping me. 



