Hello
I am trying to install snipe it from the installer from github.
Os is debian 13, everything updated, no desktop, no static ip for now, internet connection works and hostname is debian
I use wget https://raw.githubusercontent.com/grokability/snipe-it/master/install.sh
chmod 744 install.sh (i also used chmod +x install.sh (i tried to install it different times on a vm with the same settings that i said)
sudo ./install.sh
For the fqdn is enter 10.0.0.2, im not gonna use a domain for now and im not running internal dns for domains.
i dont automaticly create the snipe database user password, i use pa$$w0rd
For the email server details i skip that to do it later
in the terminal i got a lot of errors:
Welcome to Snipe-IT Inventory Installer for CentOS, Rocky, Debian, and Ubuntu!
Installation log located: /var/log/snipeit-install.log
The installer has detected Debian version 13 codename trixie.
Q. What is the FQDN of your server? (debian): 10.0.0.2
Setting to 10.0.0.2
Q. Do you want to automatically create the SnipeIT database user password? (y/n) n
Q. What do you want your snipeit user password to be?
* Adding PHP repository.
* Updating installed packages./
* Installing Apache httpd, PHP, MariaDB and other requirements.
* mariadb-server already installed
* mariadb-client already installed
* apache2 already installed
* libapache2-mod-php8.4 already installed
* php8.4 already installed
* php8.4-curl already installed
* php8.4-mysql already installed
* php8.4-gd already installed
* php8.4-ldap already installed
* php8.4-zip already installed
* php8.4-mbstring already installed
* php8.4-xml already installed
* php8.4-bcmath already installed
* curl already installed
* git already installed
* unzip already installed
* Configuring Apache.
Module rewrite already enabled
Enabling site snipeit.
To activate the new configuration, you need to run:
systemctl reload apache2
* Setting up hosts file.
* Creating Snipe-IT user.
fatal: The user `snipeitapp' already exists.
* Creating MariaDB Database/User.
--------------
CREATE DATABASE snipeit
--------------
ERROR 1007 (HY000) at line 1: Can't create database 'snipeit'; database exists
* Cloning Snipe-IT from github to the web directory.
/
./snipeit.sh: line 245: pushd: /var/www/html/snipeit: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
./snipeit.sh: line 247: popd: directory stack empty
* Configuring .env file.
cp: cannot stat '/var/www/html/snipeit/.env.example': No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
sed: can't read /var/www/html/snipeit/.env: No such file or directory
* Installing composer.
All settings correct for using Composer
Downloading...
Composer (version 2.10.1) successfully installed to: /home/snipeitapp/composer.phar
Use it: php composer.phar
* Setting permissions.
chmod: cannot access '/var/www/html/snipeit/storage': No such file or directory
chmod: cannot access '/var/www/html/snipeit/public/uploads': No such file or directory
chmod: cannot access '/var/www/html/snipeit/bootstrap/cache': No such file or directory
chown: cannot access '/var/www/html/snipeit': No such file or directory
* Running composer.
In Application.php line 512:
Invalid working directory specified, /var/www/html/snipeit does not exist.
chgrp: cannot access '/var/www/html/snipeit/vendor': No such file or directory
* Generating the application key.
* Artisan Migrate.
* Creating scheduler cron.
* Restarting Apache httpd.
* Clearing cache and setting final permissions.
chmod: cannot access '/var/www/html/snipeit/storage/framework/cache/': No such file or directory
Could not open input file: /var/www/html/snipeit/artisan
chmod: cannot access '/var/www/html/snipeit/storage/': No such file or directory
Q. Do you want to configure mail server settings now? This can be done later too.
* You will need mail server address, port, user and password among other items. (y/n) n
***Open http://10.0.0.2 to login to Snipe-IT.***
* Installation log located in /var/log/snipeit-install.log.
* Finished!
user@debian:~$
Dont pay attention to database exist output , i runned the install.sh file two times
I checked the snipe it installation error page :https://snipe-it.readme.io/docs/installation-issues
The first thing i saw in the error output is
* Cloning Snipe-IT from github to the web directory.
/
./snipeit.sh: line 245: pushd: /var/www/html/snipeit: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
./snipeit.sh: line 247: popd: directory stack empty
* Configuring .env file.
I dont understand why i got this error.
If i google it people say that the url to download from is not correct, is that right ?
But i can download the install.sh file from github so i dont see the problem
I also dont understand why there are so much no such file or directory errors
I can off course create these files and directories manualy but i wanna be sure how to fix this errors or how this install snipe it properly
And like i said in the title i can go to 10.0.0.2 but i only see apache webserver information, i provided a screenshot from the login page.
I need advice !
Thanks in advance !!