[GH-ISSUE #422] modoboa-admin must permit to use empty host with PostgreSQL #406

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

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/422

Originally assigned to: @tonioo on GitHub.

Originally created by Christophe CHAUVET on 2013-07-02T07:48:38Z

Hi

I try to use modoboa-admin with a modoboa system user, and use ident auth in PostgreSQL, but modoboa-admin for localhost as default host for the database

See the output


(modoboa)modoboa@puma:/srv/django/modoboa$ modoboa-admin.py deploy modoboa_kryskool --syncdb --collectstatic
Configuring database connection: default
Database type (mysql or postgres): postgres
Database host (default: localhost):  
Database name: modoboa
Username: modoboa
Password: 
Under which domain do you want to deploy modoboa? kryskool.org
OperationalError: could not translate host name " " to address: Name or service not known
Syncing...

python manage.py syncdb --migrate --noinput failed, check your configuration
OperationalError: could not translate host name " " to address: Name or service not known

python manage.py loaddata initial_users.json failed, check your configuration
(modoboa)modoboa@puma:/srv/django/modoboa$ psql modoboa
psql (9.2.4)
Saisissez « help » pour l'aide.

modoboa=> \d
Aucune relation trouvée.
modoboa=>

With PostgreSQL the database must be empty in the settings.py file, to use ident (without password)

Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/422 Originally assigned to: @tonioo on GitHub. **Originally created by Christophe CHAUVET on 2013-07-02T07:48:38Z** Hi I try to use modoboa-admin with a modoboa system user, and use ident auth in PostgreSQL, but modoboa-admin for localhost as default host for the database See the output <pre> (modoboa)modoboa@puma:/srv/django/modoboa$ modoboa-admin.py deploy modoboa_kryskool --syncdb --collectstatic Configuring database connection: default Database type (mysql or postgres): postgres Database host (default: localhost): Database name: modoboa Username: modoboa Password: Under which domain do you want to deploy modoboa? kryskool.org OperationalError: could not translate host name " " to address: Name or service not known Syncing... python manage.py syncdb --migrate --noinput failed, check your configuration OperationalError: could not translate host name " " to address: Name or service not known python manage.py loaddata initial_users.json failed, check your configuration (modoboa)modoboa@puma:/srv/django/modoboa$ psql modoboa psql (9.2.4) Saisissez « help » pour l'aide. modoboa=> \d Aucune relation trouvée. modoboa=> </pre> With PostgreSQL the database must be empty in the settings.py file, to use ident (without password)
kerem 2026-02-27 11:11:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Anonymous on 2013-07-27T07:11:17Z

Applied in changeset commit:ddda7af1635693f21b9993eb551a1e9784dd5cc7.

<!-- gh-comment-id:29816376 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Anonymous on 2013-07-27T07:11:17Z** Applied in changeset commit:ddda7af1635693f21b9993eb551a1e9784dd5cc7.
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#406
No description provided.