uri = postgresql:/// depreciated?

43 views
Skip to first unread message

Axel Braun

unread,
Jun 20, 2017, 1:12:13 AM6/20/17
to tryton-dev
Morning,
the above connection string was always working fine - now I have some trouble in initializing a database using this string - trytond-admin always looks for test42.sqlite instead of the test42-db on postgres. Trytond is 4.2.4
Thanks
Axel

Sergi Almacellas Abellana

unread,
Jun 21, 2017, 3:11:39 AM6/21/17
to tryto...@googlegroups.com
El 20/06/17 a les 07:12, Axel Braun ha escrit:
If it's looking for sqlite instead of postgres the problem is that the
default config is used. Make sure that:

- You reference the correct configuration file
- The user running trytond is allowed to read the config file. trytond
will sillently discard the files that is not allowed to read.
- There is no other trytond config file that overrides this setting, in
case that you are using multiple files.

Hope it helps.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Axel Braun

unread,
Jun 25, 2017, 4:50:25 AM6/25/17
to tryton-dev

Hi Sergi,

thanks for your input!
I changed connection to TCP and used uri = postgresql://uswer:passwd@localhost:5432
No idea why the former method is not working anymore


Cheers
Axel

Sergi Almacellas Abellana

unread,
Jun 26, 2017, 3:30:41 AM6/26/17
to tryto...@googlegroups.com
El 25/06/17 a les 10:50, Axel Braun ha escrit:
> Hi Sergi,
>
> thanks for your input!
> I changed connection to TCP and used uri =
> postgresql://uswer:passwd@localhost:5432
> No idea why the former method is not working anymore
I give a quick test and posgresql:/// is working correctly for me.
Reply all
Reply to author
Forward
0 new messages