-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Failure #1659
Comments
Hello, are you running sysPass instance along with the database?. Could you provide some log messages? (within Regards |
Hello @nuxsmin tail -f syspass.log
|
This is after a clean install. Below is the steps done via CLI:
|
I ran into the same problem repeatedly... I don't know what is causing it, but as a work around I was able to manually create the syspass database from the mysql cli (CREATE DATABASE 'syspass';) and the check the host mode check box and everything worked. This assumes you have all the correct permissions and everything. |
It seems you've created a DB user for syspass:
So you need to use such user to setup sysPass. Regards |
Hello, I already did that in the installation page, but for some reason, it shows an error with the username I provided in the error log |
Hello @sikas89 , in order to use a self provided user, you need to go through hosting mode: https://syspass-doc.readthedocs.io/en/3.1/installing/hostingmode.html Regards |
sysPass Version
Can be found on
Config -> Information
tabLatest
Describe the question
A clear and concise description.
Trying to build from scratch on a VM. Getting the error:
SQLSTATE[HY000]: General error: 1396 Operation DROP USER failed for 'sp_60323d16b9f7d'@'%'
Screenshots
If applicable, add screenshots to help explain your problem.
Platform (please complete the following information):
Additional context
Add any other context about the problem here.
Steps taken to deploy:
sudo apt upgrade
sudo apt update
sudo apt install libapache2-mod-php7.4 php7.4 php7.4-cgi php7.4-cli php7.4-common php7.4-curl php7.4-dev php7.4-gd php7.4-gmp php7.4-json php7.4-ldap php7.4-mysql php7.4-odbc php7.4-opcache php7.4-pgsql php7.4-pspell php7.4-readline php7.4-snmp php7.4-sqlite3 php7.4-tidy php7.4-xml php7.4-xmlrpc zip unzip mariadb-server php7.4-mbstring
sudo service apache2 restart
sudo mysql_secure_installation
sudo mkdir /var/www/html/syspass
cd /var/www/html/syspass
sudo git clone https://github.com/nuxsmin/sysPass.git /var/www/html/syspass
sudo chown syspass -R /var/www/html/syspass
sudo chmod 750 /var/www/html/syspass/app/config /var/www/html/syspass/app/backup
vi install_composer.sh
#!/bin/sh
EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]
then
>&2 echo 'ERROR: Invalid installer signature'
rm composer-setup.php
exit 1
fi
php composer-setup.php --quiet
RESULT=$?
rm composer-setup.php
exit $RESULT
chmod +x install_composer.sh
./install_composer.sh
php composer.phar install --no-dev
sudo chown www-data -R /var/www/html/syspass
sudo mariadb
CREATE USER syspassdb@localhost IDENTIFIED BY 'syspassdb';
GRANT ALL PRIVILEGES ON . TO syspassdb@localhost IDENTIFIED BY 'syspassdb';
FLUSH PRIVILEGES;
The text was updated successfully, but these errors were encountered: