ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Error while installing Snipe IT

    IT Discussion
    snipe-it
    6
    21
    5.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      @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:39

      Could be caused by an error in your .env file. Can we see that?

      H 1 Reply Last reply Reply Quote 0
      • H
        harshmehta @scottalanmiller
        last edited by scottalanmiller

        @scottalanmiller

        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
        
        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          I don't see anything that looks wrong 😞

          H 1 Reply Last reply Reply Quote 0
          • H
            harshmehta @scottalanmiller
            last edited by

            @scottalanmiller

            😞

            1 Reply Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              Snipe-IT has a lot of fragility around their install scripts, and not a huge user base so issues are difficult to track down.

              H JaredBuschJ T 3 Replies Last reply Reply Quote 0
              • H
                harshmehta @scottalanmiller
                last edited by

                @scottalanmiller

                Read this issue under their Common issues documentation .env looks all good and I did a manual installation did not run the install script

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @harshmehta
                  last edited by

                  @harshmehta said in Error while installing Snipe IT:

                  @scottalanmiller

                  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.

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    harshmehta @scottalanmiller
                    last edited by

                    @scottalanmiller

                    Yes giving a couple of more tries
                    lets see

                    1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @scottalanmiller
                      last edited by

                      @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.

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        harshmehta @JaredBusch
                        last edited by

                        @jaredbusch

                        Hi just in case will it be possible for you to share you .env file I can try that

                        JaredBuschJ 1 Reply Last reply Reply Quote 0
                        • JaredBuschJ
                          JaredBusch @harshmehta
                          last edited by

                          @harshmehta said in Error while installing Snipe IT:

                          @jaredbusch

                          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.

                          1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403
                            last edited by

                            I'm testing an install now with the installer script and will update in a minute or two.

                            1 Reply Last reply Reply Quote 0
                            • black3dynamiteB
                              black3dynamite
                              last edited by

                              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

                              1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch
                                last edited by

                                Just cloned the repo and recreated my prior updates for Fedora

                                Installing now.
                                0_1508966792297_98ab4d8b-23eb-4404-b25f-8908bdff7064-image.png

                                1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch
                                  last edited by

                                  0_1508967448352_a52a0106-a889-4541-8ada-61e5d5f45d17-image.png

                                  1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch
                                    last edited by

                                    Works perfectly.
                                    0_1508968059770_c64b04e3-c1c4-4d25-9cb3-5b91de172b27-image.png

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      harshmehta @JaredBusch
                                      last edited by

                                      @jaredbusch

                                      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

                                      JaredBuschJ 1 Reply Last reply Reply Quote 1
                                      • JaredBuschJ
                                        JaredBusch @harshmehta
                                        last edited by

                                        @harshmehta said in Error while installing Snipe IT:

                                        @jaredbusch

                                        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

                                        There 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
                                        
                                        1 Reply Last reply Reply Quote 4
                                        • T
                                          tiagom @scottalanmiller
                                          last edited by

                                          @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.

                                          JaredBuschJ 1 Reply Last reply Reply Quote 2
                                          • JaredBuschJ
                                            JaredBusch @tiagom
                                            last edited by

                                            @tiagom said in Error while installing Snipe IT:

                                            @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.

                                            And on Fedora with my pull request ( that I have to clean up and resubmit).

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post