Forum archive
Turnkey Odoo appliance update
First of all, I apologise in advance for any misinformation or nonsense I may write here, as I consider myself a "conoisseur" of linux in general, but I am deffinetly not an expert so, if by mistake I write some kind of nonesense or error, I kindly ask you to correct me, I'm always willing to learn!
Being so, I decided to try out Odoo appliance. I already have a multimedia server with turnkey linux to which I added multiple apliances/apps (emby, pydio among others), so I was kinda familiar to it.
I decided to install it to a spare server I had laying around. About installation, so far so good, everything went smooth. Created a test database and tried it out a bit. After that I decided to update all the system. First of all updated Debian from Jessie to Stretch and after that from Stretch to Buster. Installed Python3 latest version and after all those upgrades, I decided to Install Odoo v13, as my goal was to add some 3rd party addons. Note that I didn't uninstall the previous v11 version that came with Turnkey linux. Tried to import a database I had previously created while messing around with odoo v11 but with no luck so I created a new one on v13.
That's when problems arouse. Everytime I boot the server, when I try to access odoo webpage I get a "server connection error" (Error 503). I believe is probably a databse (postgresql) related problem but couldn't figure out where it was. So I stopped the odoo instance.
service odoo stop
However if I start the following instance:
odoo -d MyDatabase
I can access to the odoo v13 panel and all services. This comes with another difficulty. In order to install 3rd Party addons, I added the addons path to odoo.conf. With the command above, when updating apps list using developer mode, nothing happens which lead me to believe that the config file was not being loaded. So I tried to run the following command:
odoo -d MyDatabase -c /etc/odoo/odoo.conf
But got the following result:
Traceback (most recent call last):
File "/usr/bin/odoo", line 8, in <module>
odoo.cli.main()
File "/usr/lib/python3/dist-packages/odoo/cli/command.py", line 60, in main
o.run(args)
File "/usr/lib/python3/dist-packages/odoo/cli/server.py", line 178, in run
main(args)
File "/usr/lib/python3/dist-packages/odoo/cli/server.py", line 142, in main
odoo.service.db._create_empty_database(db_name)
File "/usr/lib/python3/dist-packages/odoo/service/db.py", line 98, in _create_empty_database
with closing(db.cursor()) as cr:
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 649, in cursor
return Cursor(self.__pool, self.dbname, self.dsn, serialized=serialized)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 186, in __init__
self._cnx = pool.borrow(dsn)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 532, in _locked
return fun(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 600, in borrow
**connection_info)
File "/usr/lib/python3/dist-packages/psycopg2/__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not translate host name "True" to address: Name or service not knownAll of the above was made on root account.
So my questions are:
- How can I run successfully and smoothly odoo from boot as it does out of the box on turnkey linux?
- Is there any other odoo.conf file I should change (did a find and /etc/odoo/odoo.conf was the only result)?
- Is there any other "trick" for installing 3rd party addons I should be aware of?
Thank you!
Just a small addition to this case, when I run the following code:
I get the following result:
One of the things that imediately pops the eye is the "Active: Failed" status.