Page MenuHomePhabricator

Grants for my Tools-db missing to insert new lines
Closed, ResolvedPublic

Description

In my project Templatetiger I had in the past rights to change to db. These seems missing now:

 MariaDB [s51071__templatetiger_p]> SHOW GRANTS FOR CURRENT_USER;
+-----------------------------------------------------------------------------------------------------------+
| Grants for s51071@%                                                                                       |
+-----------------------------------------------------------------------------------------------------------+
| GRANT SHOW VIEW ON *.* TO 's51071'@'%' IDENTIFIED BY PASSWORD '*8B9D50D7AC8B053001A2050BB391233F5B8FD3B6' |
| GRANT ALL PRIVILEGES ON `s51071__%`.* TO 's51071'@'%' WITH GRANT OPTION                                   |
| GRANT SELECT, SHOW VIEW ON `%_p`.* TO 's51071'@'%'                                                        |

If I try to insert data, nothing happen. I can drop a table but this still exist:

MariaDB [s51071__templatetiger_p]> DROP TABLE `alswiki_neu`;
Query OK, 0 rows affected (0.00 sec)

MariaDB [s51071__templatetiger_p]> show tables like 'als%';
+------------------------------------------+
| Tables_in_s51071__templatetiger_p (als%) |
+------------------------------------------+
| alswiki_neu                              |
+------------------------------------------+
1 row in set (0.00 sec)

It's a miracle for me.

Event Timeline

Kolossos raised the priority of this task from to High.
Kolossos updated the task description. (Show Details)
Kolossos added a project: Toolforge.
Kolossos subscribed.

Afaik labs grants are set by @coren's maintain-replicas.pl, or perhaps @yuvipanda was rebuilding it? You'll need to ask them if anything has changed.

Springle set Security to None.

@Springle: The rights are correct, and indeed even dbmanager that has grant all privileges is unable to drop the table(s). The DROP statement just fails quietly but the table remains.

(That is, the issue isn't that Kolossos doesn't have the rights to drop the table, but that the table quietly remains when one drops them).

Ping? The problem still exist.

@jcrespo, could you please take a look at this?

I repaired the table, made a backup on my home dir and dropped the table. The table may have originally corruption, as it had some strange behaviour. I can reimport the table if needed.

The grants are not a problem here, assuming the right user is being used. Does this solve your issues, @Kolossos ?

Kolossos claimed this task.

Thanks, it seems to work.