Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
8841 Zobrazení

I have created 3 databases, but when I run ./odoo-bin only one db is shown (the database name is ben like  the OS user).

I searched the forums and I get that it should be related to the owner of the database in postgresql, but the 3 databases have the same owner (ben).

The odoo.conf has these lines:

db_host = False
db_maxconn = 64
db_name =
db_password = False
db_port = False
db_sslmode = prefer
db_template = template0
db_user = False
dbfilter = .*


but dbfilter there does not seem to work.

The only way to make them show is if I run it as: ./odoo-bin --db-filter '.*'

Can anyone point where the problem is?

 

Avatar
Zrušit

@Ben Quan, have you got a solution? i am facing the same issue.

Nejlepší odpověď

Hi,

If you specify db_filter or db_name in the odoo configuration file, then you will get only filtered databases.

Suppose if you set a db filter, then db's matching given filter will be listed and if you specify db_name in conf file, only that database will be shown.

Also if you are running via service file or command line, make sure you didn't pass db name in -d 


Thanks

Avatar
Zrušit
Nejlepší odpověď

You only need this min configuration to run ODOO.

db_host = localhost
db_port = 5432
db_password = postgres
db_user = odoo
xmlrpc_port = 8013
debug_mode = False
;data_dir=/home/dell/.local/share/Odoo/filestore
addons_path = /opt/odoo/addons

make sure you needed db_template, db_name, db_filter.
You don't need to specify db_filter if you need full list of dbs

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 23
6130
1
lis 22
2116
1
lis 23
59363
2
říj 16
8567
2
říj 23
583