From e2e30ce0df747eb01be2f7d2a728652439ab505c Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Mon, 18 Jul 2022 12:39:06 +0000 Subject: [PATCH] [IMP] install: troubleshoot typical problems for Mac users As mentioned in [1], because of [2], some python implementation for Mac fail on startup with default parameters. Also, when installing requirements, the psycopg requirement can fail because the $PATH does not contain the postgresql tools installed with the .app. This commit provides instructions to avoid those issues. [1]: https://github.com/odoo/odoo/issues/79112 [2]: https://bugs.python.org/issue40518 task-2922249 closes odoo/documentation#2505 X-original-commit: c40cf830735b29d17140607c3acbf0f8f0ef3ddc Signed-off-by: Antoine Vandevenne (anv) --- content/administration/install/install.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/administration/install/install.rst b/content/administration/install/install.rst index f5bf2588a..dc35d26f8 100644 --- a/content/administration/install/install.rst +++ b/content/administration/install/install.rst @@ -478,6 +478,11 @@ PostgreSQL `_ to download and install PostgreSQL (supported version: 10.0 and later). + .. tip:: + To make the command line tools bundled with `postgres.app` available, make sure to setup your + `$PATH` variable by following the `Postgres.app CLI Tools Instructions + `_. + By default, the only user is `postgres` but Odoo forbids connecting as `postgres`, so you need to create a new PostgreSQL user: @@ -695,6 +700,11 @@ A typical way to run the server would be: Where `CommunityPath` is the path of the Odoo Community installation and `mydb` is the default database to serve on `localhost:8069`. + .. warning:: + Some versions of python on Mac might lead to the following error message: `current limit + exceeds maximum limit`. In that case, add the following parameter `--limit-memory-hard 0` + to avoid the problem. + .. seealso:: - :doc:`The exhaustive list of arguments for odoo-bin `.