[GH-ISSUE #865] deploy (and run) error: reverse accessor clashes #768

Closed
opened 2026-02-27 11:13:27 +03:00 by kerem · 1 comment
Owner

Originally created by @jficz on GitHub (Apr 25, 2016).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/865

Hi,

after following the docs to the letter, I get this (snip):

ERRORS:
admin.Mailbox.user: (fields.E304) Reverse accessor for 'Mailbox.user' clashes with reverse accessor for 'Mailbox.user'.
HINT: Add or change a related_name argument to the definition for 'Mailbox.user' or 'Mailbox.user'.
admin.Mailbox.user: (fields.E305) Reverse query name for 'Mailbox.user' clashes with reverse query name for 'Mailbox.user'.

(full output after deployment here: http://pastebin.com/6tLWR9WC and after trying to run standalone server here: http://pastebin.com/dz9Ay7ku)

Up-to-date Debian Jessie 8.3 with Percona (MySQL) 5.7, virtualenv.

Steps to repoduce:

virtualenv env
. ./env/bin/activate
pip install modoboa
pip install mysql-python
./env/bin/modoboa-admin.py deploy server --collectstatic --domain mail.example.com --dburl default:mysql://modoboa:password@localhost:3306/modoboa --extensions modoboa-sievefilters modoboa-amavis modoboa-stats modoboa-postfix-autoreply modoboa-admin

Note that I intend to install Modoboa via Ansible in production environment, that's why all the configuration options are on the command line.

Originally created by @jficz on GitHub (Apr 25, 2016). Original GitHub issue: https://github.com/modoboa/modoboa/issues/865 Hi, after following the docs to the letter, I get this (snip): > ERRORS: > admin.Mailbox.user: (fields.E304) Reverse accessor for 'Mailbox.user' clashes with reverse accessor for 'Mailbox.user'. > HINT: Add or change a related_name argument to the definition for 'Mailbox.user' or 'Mailbox.user'. > admin.Mailbox.user: (fields.E305) Reverse query name for 'Mailbox.user' clashes with reverse query name for 'Mailbox.user'. (full output after deployment here: http://pastebin.com/6tLWR9WC and after trying to run standalone server here: http://pastebin.com/dz9Ay7ku) Up-to-date Debian Jessie 8.3 with Percona (MySQL) 5.7, **virtualenv**. Steps to repoduce: ``` virtualenv env . ./env/bin/activate pip install modoboa pip install mysql-python ./env/bin/modoboa-admin.py deploy server --collectstatic --domain mail.example.com --dburl default:mysql://modoboa:password@localhost:3306/modoboa --extensions modoboa-sievefilters modoboa-amavis modoboa-stats modoboa-postfix-autoreply modoboa-admin ``` Note that I intend to install Modoboa via Ansible in production environment, that's why all the configuration options are on the command line.
kerem closed this issue 2026-02-27 11:13:27 +03:00
Author
Owner

@jficz commented on GitHub (Apr 25, 2016):

Never mind. The problem is that previously I had issues with multiple database entries which the script was unable to parse properly for some reason and I was hoping that amavis extension would be able to coexist in modoboa's database OR I'd be able to setup the database for amavis in the next step.

I was since unable to repliace the multiple dburl issue and now it works. I'll check back if I encounter this again. Meanwhile, this can be marked as invalid if desired.

Perhaps it could be mentioned in the docs.

<!-- gh-comment-id:214555284 --> @jficz commented on GitHub (Apr 25, 2016): Never mind. The problem is that previously I had issues with multiple database entries which the script was unable to parse properly for some reason and I was hoping that amavis extension would be able to coexist in modoboa's database OR I'd be able to setup the database for amavis in the next step. I was since unable to repliace the multiple dburl issue and now it works. I'll check back if I encounter this again. Meanwhile, this can be marked as invalid if desired. Perhaps it could be mentioned in the docs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#768
No description provided.