1.9 KiB
1.9 KiB
lang, kind, section
| lang | kind | section |
|---|---|---|
| en | howto | dev |
Run
inotify instance limit reached
Problem
While starting the native server this error is thrown:
OSError: [Errno 24] inotify instance limit reached
Or this error:
inotify.calls.InotifyError: Call failed (should not be -1): (-1) ERRNO=(0)
Solution
Increase inotify watch limit.
sudo vi /etc/sysctl.conf
fs.inotify.max_user_watches=524288
fs.inotify.max_user_instances=256
sudo sysctl -p
ImportError libldap
Problem
Instance with auth_ldap does not start.
ImportError: libldap_r-2.4.so.2: cannot open shared object file: No such file or directory
Solution
Reinstall with pip flags.
pip install python-ldap --force-reinstall --no-binary python-ldap
psycopg2 symbol not found
Problem
init-db fails with psycopg2 errors on macOS / Darwin.
Solution
source task source
pip install psycopg2-binary --force
Distribution not found
Problem
After switching the Odoo version with task checkout the task command fail with this error:
pkg_resources.DistributionNotFound: The 'odoo==XX.0' distribution was not found and is required by the application
Solution
The local Odoo package needs to be updated:
source task source
pip install -e odoo
sqlite3 module not found
Problem
ModuleNotFoundError: No module named '_sqlite3'
Solution
Install library and reinstall python.
sudo apt install libsqlite3-dev
pyenv install 3.7.2
Permission denied - Docker daemon socket
Problem
After running:
task start db
You get the an error containing:
Permission denied while trying to connect to the Docker daemon socket
Solution
Add your user to the 'docker group' with: (Logout and login for this to have an effect)
sudo usermod -aG docker $USER