# Impossibile concedere i diritti di amministratore a causa di un errore

**URL:** <https://meta.discourse.org/t/unable-to-grant-admin-rights-due-to-error/358170>\
**Category:** Bug\
**Created:** [20 Marzo 2025, 3:34pm UTC](https://meta.discourse.org/t/unable-to-grant-admin-rights-due-to-error/358170 "2025-03-20T15:34:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hannes\_e](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hannes_e/32/495007_2.png) [@hannes\_e](https://meta.discourse.org/u/hannes_e)\
**Post date:** [20 Marzo 2025, 3:34pm UTC](https://meta.discourse.org/t/unable-to-grant-admin-rights-due-to-error/358170/1 "2025-03-20T15:34:28Z")

</div>

Ciao!

Quando tento di concedere i diritti di amministratore a un utente (in realtà a qualsiasi utente) ricevo solo il seguente messaggio di errore (dopo aver cliccato sul link di conferma):

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/1/a/e1a637a00c9ca6eefef1f82813c1b0bea777157c.png)

Ho controllato i log e ho trovato i seguenti messaggi:

`ActiveRecord::RecordInvalid (Validation failed: Name has already been taken) app/models/group.rb:607:in 'refresh_automatic_group!' app/models/group.rb:666:in 'block in refresh_automatic_groups!' app/m`

`Failed to handle exception in exception app middleware : ActiveRecord::RecordInvalid : Validation failed: Name has already been taken`

Circa nello stesso periodo ricevo anche un messaggio sul malfunzionamento di MaxMind, non sono sicuro se questo abbia a che fare con il problema (non ho trovato impostazioni correlate nell’interfaccia di amministrazione):

`MaxMindDB (/var/www/discourse/vendor/data/GeoLite2-City.mmdb) could not be found: No such file or directory @ rb_sysopen - /var/www/discourse/vendor/data/GeoLite2-City.mmdb`

Come posso eseguire ulteriori debug?

Grazie,  
Hannes

---

_[View the full topic](https://meta.discourse.org/t/unable-to-grant-admin-rights-due-to-error/358170)._
