Comments (9)
Hi @maccadia
Can you share the error you got ?
A screen shot would be very helpful and maybe even the ansible execution output of the relevant step.
Thank you
from ansible-playbooks.
Hello, I wasn't able to reproduce the error. I guess I was using a wrong password / db name somehow. Sorry...
from ansible-playbooks.
I run into the same issue today. Fresh install on Ubuntu VM.
I use :
- role: icinga2-ansible-web2-ui
icinga2_db: "icinga2"
icinga2_db_user: "icinga2"
icinga2_db_pass: "**********"
icinga2_web2_db: "icingaweb"
icinga2_web2_db_user: "icingaweb"
icinga2_web2_db_pass: "***********"
The playbook runs without errors. When I go to http://IP//icingaweb2/setup I get this first :
and then
On my server, I have :
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| icinga2 |
| icingaweb |
| mysql |
| performance_schema |
| sys |
+--------------------+
6 rows in set (0,00 sec)
mysql> select user,host from mysql.user;
+------------------+---------------------+
| user | host |
+------------------+---------------------+
| repl | % |
| root | 127.0.0.1 |
| root | ::1 |
| debian-sys-maint | localhost |
| icinga2 | localhost |
| icingaweb | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
| root | phi-monitoring-test |
+------------------+---------------------+
10 rows in set (0,00 sec)
mysql> show grants for 'icingaweb'@'localhost';
+---------------------------------------------------------------------------------------------------------------------------------------+
| Grants for icingaweb@localhost |
+---------------------------------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'icingaweb'@'localhost' |
| GRANT SELECT, INSERT, UPDATE, DELETE, DROP, INDEX, EXECUTE, CREATE VIEW ON `icingaweb`.* TO 'icingaweb'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set (0,00 sec)
Then, If I run GRANT ALL ON 'icingaweb'.* TO 'icingaweb'@'localhost'
and click Back
and Next
in IcingaWeb2 Setup. I get the expected :
from ansible-playbooks.
Hello @maccadia
The issue is fixed in #81
Thank you for your input
from ansible-playbooks.
Same here ..
Created database like this :
DROP DATABASE icinga_auth;
CREATE DATABASE icinga_auth;
GRANT ALL ON icinga_auth.* TO 'icinga_auth'@'localhost' IDENTIFIED BY '0zhzaoOmMs4PURZRYZnl';
FLUSH PRIVILEGES;
Then I click on "Validate configuration", the wizzard says that everything is OK, then I click next and :
It seems that either the database you defined earlier does not yet exist and cannot be created using the provided access credentials, the database does not have the required schema to be operated by Icinga Web 2 or the provided access credentials do not have the sufficient permissions to access the database. Please provide appropriate access credentials to solve this.
Do you have an idea?
from ansible-playbooks.
Same on my side:
The provided credentials cannot be used to grant all required privileges to the login "icinga".
from ansible-playbooks.
This issue has been fixed for me with #81. The only advice I can give is to double check your login/passwords.
from ansible-playbooks.
I imported the mysql schema manually into the database 'icinga2_web', assign ALL privileges to the database and user 'icinga' but the error existed. Then I changed the user name and password to root in the web configuration wizard and it worked. The root user has super privileges may be this is the point?
from ansible-playbooks.
Same problem here.GRANT ALL ON icingaweb.* TO icingaweb@localhost
or modifying the privileges in icinga2_web2_ui_Debian_install.yml solves the problem.
from ansible-playbooks.
Related Issues (20)
- "become: yes" is missing in various places
- [dev.icinga.com #6445] Icinga2 Cluster HOT 3
- [dev.icinga.com #6947] add license file HOT 2
- [dev.icinga.com #8831] TASK fails on /sbin/initctl status icinga2 HOT 2
- [dev.icinga.com #10267] Failed to import IDO schema on CentOS7 HOT 5
- mysql ondebian hosts HOT 1
- new install with classic ui - not showing data - SELinux issue HOT 1
- Icingaweb 2 not loaded after initial install with Ansible playbook HOT 2
- Provide support for other databases HOT 4
- Support other webservers besides Apache2
- Only restart Apache2 and Icinga2 when necessary HOT 1
- icinga2-ansible-web2-ui is incomplete and requires manual intervention HOT 6
- Deprecation warning with "include" HOT 3
- Missing PHP timezone for IcingaWeb2 HOT 2
- Failed to connect to debmon.org at port 443: [Errno 101] Network is unreachable HOT 1
- apt sources point to insecure server
- IPv6 HOT 1
- When running playbook to add hosts it doesn't work hostvar[item]['ansible_fqdn']
- add_hosts hardcodes icinga:icinga user/group but debian uses nagios:nagios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-playbooks.