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

    Issues Installing Snipe-IT on CentOS 7

    Scheduled Pinned Locked Moved IT Discussion
    centos 7snipe-itinstallationinstall
    100 Posts 7 Posters 14.5k Views
    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.
    • JaredBuschJ
      JaredBusch @black3dynamite
      last edited by

      @black3dynamite said in Issues Installting Snipe-IT on CentOS 7:

      @jaredbusch said in Issues Installting Snipe-IT on CentOS 7:

      @bnrstnr said in Issues Installting Snipe-IT on CentOS 7:

      @jaredbusch Well he's stating the script does it all for you but it doesn't work, yet I've done it manually twice now and it worked flawlessly both times.... apparently my iso of centos minimal is more awesomer than his idk

      And to verify, I just checked the script as it exists on github right now.

      It does not make the directories, so you are correct that @aaronstuder needs to do that first.

      It does install EPEL.

      It is also stupid that the CentOS7 section of the snipeit.sh script installs wget when the install.sh script uses it. so it would have had to be installed already.

      So the current correct instructions from a clean CentOS 7 install should be

      yum -y install wget
      mkdir -p /var/www/html; cd /var/www/html/
      firewall-cmd --zone=public --add-port=http/tcp --permanent
      firewall-cmd --reload
      wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh && chmod 744 install.sh && ./install.sh
      

      The script does create the directories. Take a look at installsnipeit () in snipeit.sh

      log "git clone https://github.com/snipe/snipe-it $webdir/$name"
      

      $webdir and $name is defined in the script.

      I would have to test again ( no able atm) but i do not believe that the git command will create more than the last directory.

      1 Reply Last reply Reply Quote 0
      • A
        Alex Sage @black3dynamite
        last edited by

        @black3dynamite root

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

          @aaronstuder said in Issues Installting Snipe-IT on CentOS 7:

          @jaredbusch

          -bash: git: command not found
          

          WTF?

          I added git to the CentOS 7 instructions months ago via pull request that was accepted. so the latest update must have removed it.

          Edit: Nope, still listed.

          PACKAGES="httpd mariadb-server git unzip php71u php71u-mysqlnd php71u-bcmath php71u-cli php71u-common php71u-embedded php71u-gd php71u-mbstring php71u-mcrypt php71u-ldap php71u-json php71u-simplexml"
          
          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch
            last edited by

            so look higher in the log for the yum install for git. is there an error?

            A 1 Reply Last reply Reply Quote 0
            • A
              Alex Sage @JaredBusch
              last edited by

              mariadb-server isn't installed.....

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

                All the package install are wrapped in a log command

                log "yum -y install $p"
                
                1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite
                  last edited by

                  @aaronstuder I'm looking over the script now. Which OS are currently using the script on? Ubuntu 17.04 or CentOS 7?

                  A JaredBuschJ 2 Replies Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch
                    last edited by

                    When you do the install the screen shows "installing $package" or "$package already installed"

                    You have to see one or the other, or have completely fucked something else up.

                            for p in $PACKAGES;do
                                if isinstalled "$p"; then
                                    echo "  * $p already installed"
                                else
                                    echo "  * Installing $p ... "
                                    log "yum -y install $p"
                                fi
                            done;
                    
                    1 Reply Last reply Reply Quote 0
                    • A
                      Alex Sage @black3dynamite
                      last edited by

                      @black3dynamite CentOS7

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

                        @black3dynamite said in Issues Installting Snipe-IT on CentOS 7:

                        @aaronstuder I'm looking over the script now. Which OS are currently using the script on? Ubuntu 17.04 or CentOS 7?

                        There is nothing wrong with the script.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          Alex Sage @JaredBusch
                          last edited by

                          I just ran the script back to back and both time it says it is installing all the packages.... it’s only shows as installed if I manually install them ahead of time....

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • A
                            Alex Sage
                            last edited by

                            Where is the log located? I am just posting the output of the script.

                            black3dynamiteB 1 Reply Last reply Reply Quote 0
                            • DustinB3403D
                              DustinB3403 @Alex Sage
                              last edited by

                              @aaronstuder said in Issues Installting Snipe-IT on CentOS 7:

                              I just ran the script back to back and both time it says it is installing all the packages.... it’s only shows as installed if I manually install them ahead of time....

                              Are you running the install script as a user with root access?

                              A 1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @Alex Sage
                                last edited by

                                @aaronstuder said in Issues Installting Snipe-IT on CentOS 7:

                                Where is the log located? I am just posting the output of the script.

                                /var/log/snipeit-install.log

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alex Sage @DustinB3403
                                  last edited by

                                  @dustinb3403 yes, running them as root.

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Alex Sage
                                    last edited by

                                    Lots and lots of connections errors like this.....

                                    http://pubmirrors.dal.corespace.com/centos/7.4.1708/os/x86_64/Packages/mariadb-5.5.56-2.el7.x86_64.rpm: [Errno 14] curl#7 - "Failed connect to pubmirrors.dal.corespace.com:80; Connection refused"
                                    
                                    black3dynamiteB 1 Reply Last reply Reply Quote 0
                                    • black3dynamiteB
                                      black3dynamite @Alex Sage
                                      last edited by

                                      @aaronstuder said in Issues Installting Snipe-IT on CentOS 7:

                                      http://pubmirrors.dal.corespace.com/centos/7.4.1708/os/x86_64/Packages/mariadb-5.5.56-2.el7.x86_64.rpm

                                      I was able to download it from Firefox. Your proxy server could be interfering with your downloads.

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

                                        @aaronstuder give us the output of ip addr

                                        Is the ip address, netmask and gateway all correct?

                                        A 1 Reply Last reply Reply Quote 0
                                        • A
                                          Alex Sage @black3dynamite
                                          last edited by

                                          Running

                                          yum -y install httpd mariadb-server git unzip php71u php71u-mysqlnd php71u-bcmath php71u-cli php71u-common php71u-embedded php71u-gd php71u-mbstring php71u-mcrypt php71u-ldap php71u-json php71u-simplexml
                                          

                                          Seems to be working....

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            Alex Sage @DustinB3403
                                            last edited by

                                            @dustinb3403 Yes.

                                            DustinB3403D 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post