snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

snipeit.sh script stucked | New installation v4.1.2 | Ubuntu 14.04 Server

Open itims opened this issue 9 years ago • 6 comments

I'm trying to install new version (v4.1.2) of snipe-it in Ubuntu 14.04 server by using script snipeit.sh. But unfortunately script got stuck at the installation state. I have no idea what to do on this situation. image

I have installed the following packages before I start run snipeit.sh sudo apt-get update sudo apt-get install apache2 sudo apt-get update sudo apt-get install python-software-properties sudo apt-get update sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install php7.0-common sudo apt-get install php7.0-cli sudo apt-get install libapache2-mod-php7.0 sudo apt-get install php7.0-mbstring sudo apt-get install php7.0-curl sudo apt-get install php7.0-mysql sudo apt-get install php7.0-ldap sudo apt-get install php7.0-zip sudo apt-get install mysql-server-5.5 sudo a2dismod php7.0 sudo service apache2 restart sudo apt-get install git

And I used git for downloading Snipe-IT.

Could you please help me?

Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

  • Is this a fresh install or an upgrade? Fresh Install
  • Version of Snipe-IT you're running - v4.1.2
  • Version of PHP you're running - 7.0
  • Version of MySQL/MariaDB you're running - MySql 5.5
  • What OS and web server you're running Snipe-IT on - Ubuntu 14.04 server & Apache2
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc) - snipeit.sh
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproduceable on the demo: https://snipeitapp.com/demo.
  • Include any additional information you can find in app/storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.

https://snipe-it.readme.io/docs/getting-help

itims avatar Nov 03 '17 11:11 itims

snipeit.sh handles dependencies for you. It will install apache, php 7.1 and mariadb 10.1. I'm confident you are running into package conflicts.

Can you provide the contents of /var/log/snipeit-install.log. I will see if i can patch it so it doesn't just silently fail.

tiagom62 avatar Nov 05 '17 18:11 tiagom62

Hi, Thank you for your response :-) Below the content of snipeit-install.log

Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: python3-software-properties The following packages will be upgraded: python3-software-properties software-properties-common 2 upgraded, 0 newly installed, 0 to remove and 212 not upgraded. Need to get 28.6 kB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main software-properties-common all 0.92.37.8 [9,384 B] Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main python3-software-properties all 0.92.37.8 [19.2 kB] Fetched 28.6 kB in 0s (54.9 kB/s)

itims avatar Nov 06 '17 06:11 itims

Earlier I had configured snipeit v3 using script snipeit.sh without much complication. At that time I have installed the following packages before I start to run the script snipeit.sh . And installation completed successfully without errors. sudo apt-get install php5-common sudo apt-get install libapache2-mod-php5 sudo apt-get install php5-cli sudo apt-get install php5-mysql sudo apt-get install php5-curl sudo apt-get install mysql-server-5.5 sudo a2enmod rewrite sudo service apache2 restart sudo apt-get install git

Could you please guide me how to configure (step by step commands need to be run for the installation) snipeit version 4 in ubuntu server 14.04?

itims avatar Nov 07 '17 11:11 itims

The snipeit.sh script is great at spinning up a complete and up-to-date Snipe-IT instance in a vacuum, or on say, a VMWARE Centos 6 VM, or a brand new digital ocean droplet. The script doesn't handle interruptions and re-runs that well, and really requires you to have prepared answers for the specific questions it will ask you along the way.

@itims I highly recommend installing the server by following the installation documentation: https://snipe-it.readme.io/docs/installation

The above documentation has the answers to all your current and potential questions. I highly recommend following it step-by-step (vs running the snipe-it.sh installer) as the experience gain will level up all the abilities required to troubleshoot each moving part (mysql, php, nginx, etc.) should anything go wrong.

Upgrading an existing installation? https://snipe-it.readme.io/docs/upgrading

or just run php upgrade.php from the application root directory following a git pull.

Closing the issue: I successfully spun up a local Snipe-IT environment on a clean Vagrant Ubuntu/Trusty(14.04) box just now.

wget https://raw.githubusercontent.com/snipe/snipe-it/master/install.sh
./install.sh

Provided you have a name service (eg a local /etc/hosts in a local/test environment) sending traffic to that server's FQDN and IP, will get you up and running on a clean ubuntu server 14.04 on master (currently v4.1.3.)

HinchK avatar Nov 09 '17 06:11 HinchK

I'm following the installation documentation (https://snipe-it.readme.io/docs/installation), I got an error at Step 5 Generate Your App Key while running php artisan key:generate image Could you please help me to resolve this issue?

itims avatar Nov 21 '17 12:11 itims

https://snipe-it.readme.io/docs/common-issues#section-php-parse-error-syntax-error-unexpected-expecting-or-variable-t_variable

snipe avatar Nov 21 '17 20:11 snipe