HI there, get following error:
SQLSTATE[42000]: Syntax error or access violation: 1142 DELETE command denied to user 'icinga_user'@'localhost' for table 'icingaweb_rememberme'
i createt the schema with this:
the user has “full access”… but the table stay’s empty after i use the switch “remember me”. after reopen the Browser the following error apears:
SQLSTATE[42000]: Syntax error or access violation: 1142 DELETE command denied to user 'icinga_user'@'localhost' for table 'icingaweb_rememberme'
#0 /usr/share/icinga-php/ipl/vendor/ipl/sql/src/Connection.php(401): PDO->prepare(String)
#1 /usr/share/icinga-php/ipl/vendor/ipl/sql/src/Connection.php(489): ipl\Sql\Connection->prepexec(String)
#2 /usr/share/php/Icinga/Web/RememberMe.php(293): ipl\Sql\Connection->delete(String, Array)
#3 /usr/share/php/Icinga/Web/RememberMe.php(84): Icinga\Web\RememberMe->remove(String)
#4 /usr/share/icingaweb2/application/controllers/AuthenticationController.php(63): Icinga\Web\RememberMe::forget()
#5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Controllers\AuthenticationController->loginAction()
#6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String)
#7 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#8 /usr/share/php/Icinga/Application/Web.php(304): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#9 /usr/share/php/Icinga/Application/webrouter.php(107): Icinga\Application\Web->dispatch()
#10 /usr/share/icingaweb2/public/index.php(4): require_once(String)
#11 {main}
some Infos:
root@icinga:/home/dani# icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf graphite icingadb influxdb2 livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker command ido-mysql influxdb mainlog notification
Web browser used -> all
root@icinga:/home/dani# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
r
oot@icinga:/home/dani# php --version
PHP 7.3.29-1~deb10u1 (cli) (built: Jul 2 2021 04:04:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.29-1~deb10u1, Copyright (c) 1999-2018, by Zend Technologies
icingaweb2/icinga-buster,now 2.9.3-1.buster
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.1-1)
Can you help me?
edit:
Database changed
MariaDB [icinga_users]> show tables;
+----------------------------+
| Tables_in_icinga_users |
+----------------------------+
| icingaweb_group |
| icingaweb_group_membership |
| icingaweb_rememberme |
| icingaweb_user |
| icingaweb_user_preference |
+----------------------------+
5 rows in set (0.000 sec)
MariaDB [icinga_users]> SHOW GRANTS FOR icinga_user;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `icinga_users`.* TO `icinga_user`@`localhost`