Hi,
I am using Debian 13, Icingaweb2 2.12.4, and a postgres database. Here is what happened:
Icingaweb shows two pending database migrations.
I have created a postgres user icingaadmin with a password and have granted it a lot of privileges including being postgres superuser.
When I enter “icingaadmin” and the password here and click on “migrate”, I get:
SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied for table icingaweb_schema
\dp icingaweb_schema says:
`Access privileges `
Schema | Name | Type | Access privileges | Column priv
ileges | Policies
--------+------------------+-------+-------------------------------+------------
-------+----------
public | icingaweb_schema | table | postgres=arwdDxtm/postgres +|
|
| | | icingaadmin=arwdDxtm/postgres |
|
(1 row)
I manually applied the migrations to my database, icingaweb_schema now contains:
icingaweb2=# select * from icingaweb_schema;
id | version | timestamp | success | reason
----+---------+---------------+---------+--------
1 | 6 | 1769439690000 | y |
2 | 2.12.0 | 1769439693519 | y |
3 | 2.11.0 | 1769439693519 | y |
4 | 7 | 1769439693519 | y |
(4 rows)
(the rows for 2.11.0 and 7 I applied manually in hope that this helps). It doesn’t.
Then I changed my resources.ini for icingaweb to use the icingaadmin user (who is a superuser). With this user, everything is fine:
Changing back the user in resources.ini to the normal database uses brings the two pending migrations back.
What is the problem here?
Greetings, Marc

