[solved] Webinstaller - librenms installation problem mysql empty table

Ubuntu 18.04 LTS on VMware ESXI.

I’ve followed the installation guide to the best of my ability (kind of new to Linux, so might’ve missed something which would be obvious to more seasoned users). Anyway, the problem I’m currently stuck at is the webinstaller (had a few hiccups along the way, but solved those I believe), at step 4/6 the user I create wont get added to the database.

This is the error in the /opt/librenms/logs/librenms.log file:
2018-07-30 15:41:44 MySQL Error: Table ‘librenms.users’ doesn’t exist (SELECT COUNT() FROM users WHERE username = ‘USER’)
2018-07-30 15:41:44 MySQL Error: Table ‘librenms.users’ doesn’t exist (SELECT COUNT(
) FROM users WHERE username = ‘USER’)
2018-07-30 15:41:44 MySQL Error: Table ‘librenms.users’ doesn’t exist (INSERT INTO users (username,password,level,email,realname,can_modify_passwd,descr) VALUES (‘USER’,‘HASH’,‘10’,‘MAIL’,’’,‘1’,’’))

Heres verifying the user in mysql which Im specifying in step 1 of the web installer (the input I’m using for this step is shown further down):

MariaDB [(none)]> show grants for ‘librenms’@‘localhost’
-> ;
±----------------------------------------------------------------------------------------------------------------+
| Grants for librenms@localhost |
±----------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON . TO ‘librenms’@‘localhost’ IDENTIFIED BY PASSWORD ‘PASSWORD’ |
| GRANT ALL PRIVILEGES ON librenms.* TO ‘librenms’@‘localhost’ |
±----------------------------------------------------------------------------------------------------------------+

MariaDB [mysql]> show databases
-> ;
±-------------------+
| Database |
±-------------------+
| information_schema |
| librenms |
| mysql |
| performance_schema |
±-------------------+
4 rows in set (0.00 sec)

MariaDB [mysql]> use librenms
Database changed
MariaDB [librenms]> show tables;
Empty set (0.01 sec)

WEBINSTALLER STEP 1 INPUT:
DB Host: localhost
DB Port: 3306
DB Unix-Socket: Leave empty if using Host
DB User: librenms
DB Pass: PASSWORD
DB Name: librenms

Now I’m not sure (since I’m new to mysql aswell…) but should the database table be empty? I’ve also tried to create a new DB, but that one also have empty tables.

Here is a abbreviated output from validate.php:

====================================

Component Version
LibreNMS 1.41-68-gcde15ce75
DB Schema ?
PHP 7.0.30-1+ubuntu18.04.1+deb.sury.org+1
MySQL ?
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

[FAIL] config.php does not exist, please copy config.php.default to config.php

I believe that the config.php will be fixed in a later step of the web installer?
There are many snmp errors aswell in the output which I’ve excluded for brevity which I’m unsure why they are there, I don’t think they cause the web installer to fail however.

Any and all help is appreciated.

I managed to fix the issue, I think it had to do with permissions, but I’m not entierly sure (some snmp config was also edited). Below are the history of the commands I used after I posted the original post:

The actual problem lies in the character sets used by the DB encoding, using nordic letters in the password of the DB user causes the webinstall to fail, see: [Solved] Installation problem - webinstall mysql access denied

250 ls -ld /opt/librenms/
251 less /opt/librenms/snmpd.conf.example
252 less /etc/snmp/snmpd.conf
253 sudo less /etc/snmp/snmpd.conf
254 sudo cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf
255 less /etc/snmp/snmp.conf
256 less /etc/snmp/snmpd.conf
257 sudo vi /etc/snmp/snmpd.conf
258 sudo vi /etc/snmp/snmp.conf
259 sudo apt remove snmp
260 sudo apt install snmp
261 sudo vi /etc/snmp/snmp.conf
262 sudo rm /etc/snmp/snmp.conf
263 sudo vi /etc/snmp/snmp.conf
264 sudo apt remove snmp
265 sudo apt install snmp
266 sudo vi /etc/snmp/snmp.conf
267 sudo vi /etc/snmp/snmpd.conf
268 sudo curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
269 sudo systemctl restart snmpd
270 sudo systemctl status snmpd
271 cd /opt/librenms/
272 ./validate.php
273 sudo reboot
274 cd /opt/librenms/
275 ./validate.php
276 sudo vi /etc/snmp/snmpd.conf
277 sudo systemctl restart snmpd
278 ./validate.php
279 sudo vi /etc/snmp/snmpd.conf
280 sudo chown -R librenms:librenms /opt/librenms
281 sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
282 sudo setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
283 sudo chown -R librenms:librenms /opt/librenms
284 sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
285 sudo setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
286 snmpstatus -v2c -c MyROGroup 127.0.0.1 sysStatus
287 sudo vi /etc/snmp/snmpd.conf
288 git tag
289 git checkout 201602
290 sudo git checkout 201602
291 ls -ld ./
292 ls -ld /opt/librenms/
293 ls -ld /opt/librenms/logs/
294 cd /opt/librenms/
295 cd rrd
296 sudo apt install php-pear
297 sudo reboot
298 cd /opt/librenms/
299 ls -l
300 sudo vi config.php
301 ls -l
302 history