Code Monkey home page Code Monkey logo

install-odoo's People

Contributors

bassn avatar e-ho avatar kolushovalexandr avatar yelizariev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

install-odoo's Issues

ubuntu 16.04 odoo 8.0 systemctl enable odoo.service

  • systemctl enable odoo.service
    Failed to execute operation: Too many levels of symbolic links

systemctl enable creates this:

/etc/systemd/system/odoo.service -> /lib/systemd/system/odoo.service

But if it is already existed we have the Too many levels of symbolic links error

To resume installation I have to:

rm /etc/systemd/system/odoo.service


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

how to use this script to Install SaaS Tools

In the beginning I was fellow the instruction to change the ''install-odoo-saas.sh"files,as below
screenshot from 2018-12-21 18-35-28
after I finished this script, the odoo working properly,so i prepare to fellow the instruction to install odoo-saas, when i copy

INIT_SAAS_TOOLS_VALUE="
--portal-create
--server-create
--plan-create
--odoo-script=/usr/local/src/odoo-source/odoo-bin
--odoo-config=/etc/openerp-server.conf
--admin-password='${ODOO_MASTER_PASS}'
--portal-db-name=${ODOO_DOMAIN}
--server-db-name=server-1.${ODOO_DOMAIN}
--plan-template-db-name=template-1.${ODOO_DOMAIN}
--plan-clients=demo-%i.${ODOO_DOMAIN}
"
to the shell, and execute the command like

- "INIT_SAAS_TOOLS=$INIT_SAAS_TOOLS_VALUE bash -x install-odoo-saas.sh"

and this script running again like before i install odoo, and for some reason the script stopped because i already install the POSTGRESQL and make the user name "odoo"

after than i read the script and i try to enter on command in the shell as:

- sudo su --preserve-environment - odoo -s /bin/bash -c 'python /usr/local/src/odoo-extra-addons/it-projects-llc/odoo-saas-tools/saas.py'

some error appear:

-su: /root/.bash_profile: Permission denied
2018-12-21 18:24:56
saas.py >>> Waiting for port, 127.0.0.1, 8069
2018-12-21 18:24:59
saas.py >>> Spawn, ./odoo-server --xmlrpc-port=8069 --longpolling-port=8072 --database= --db-filter=%h --workers=3 --db_user=odoo --db_password=odoo --db_port=5432 --max-cron-threads=0
2018-12-21 18:24:59
saas.py >>> Spawn pid: 1579
2018-12-21 18:24:59
saas.py >>> Waiting for port, 127.0.0.1, 8069
Traceback (most recent call last):
  File "/usr/local/src/odoo-extra-addons/it-projects-llc/odoo-saas-tools/saas.py", line 662, in <module>
    main()
  File "/usr/local/src/odoo-extra-addons/it-projects-llc/odoo-saas-tools/saas.py", line 183, in main
    pid = spawn_cmd(cmd)
  File "/usr/local/src/odoo-extra-addons/it-projects-llc/odoo-saas-tools/saas.py", line 602, in spawn_cmd
    shell=shell)
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1334, in _execute_child
    os.close(errpipe_read)
OSError: [Errno 9] Bad file descriptor

2018-12-21 18:25:29
saas.py >>> KILL, 1579

So anyone can tell me how to install the saas-tool after install odoo?
Does my steps correct?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Configuration from Nginx not understand

Hi, congratulations for details in script, but I'dont have successfull in my instalation. My odoo worked with this script. But I don't understand how execute this script. Help me on simple step to step for me.

prepare nginx (apache will be removed if installed)

INIT_NGINX=yes
install-odoo-saas.sh

I worked only localhost:8069

TODO

  • replace gist references to github references
  • add usage instruction to README.md

No module named telebot.apihelper

Hi Ivan:

I'm running a VirtualBox Ubuntu 16.04.2 from osboxes.org. For Xenial I did a manual install of wkhtmltopdf' before running install-odoo-sass.sh (as root):

and the install went through fine. I did however move the curl fetch of pip to the correct location like you did in your fix.

OK, so the install seemed to go fine. Then I executed:

sudo su - odoo -s /bin/bash -c "/usr/local/src/odoo-source/odoo-bin -c /etc/openerp-server.conf

Where do go in my browser? - just http://localhost?

When I go to localhost it throws an Internal Server 500 error and the console says:

.....

ImportError: No module named telebot.apihelper

.....

I think the pyTelegramBotAPI didn't get installed - if I install it via apt-get, then the 'emoji' module can't be found, then orm etc.. Did I miss a step or did is something missing in the script?

BTW: When I do:'sudo -u odoo psql odoo.example.com' there is no database found as well.

Cheers,
Dave

ubuntu 17.04

I just tried to test the "install-odoo" project and here is some points that I encoutered, if it can help to improve, tested on a fresh and up to date Ubuntu 17.04 system and Odoo 10.

  • While installing wkhtmltopdf, the default url "download.gna.org" isn't responding. Maybe more usefull to link it to a more reliable repository like "https://downloads.wkhtmltopdf.org/0.12/..." or "http://ftp.debian.org/debian/pool/main/w/wkhtmltopdf/..." ?
  • package "python-pypdf" is no more available and seems to be replaced by the version 2 or 3
  • While running the line number 161 with "", there are many errors like "E: Unable to locate package python-suds / E: Unable to locate package python-tz" and the script stops. Maybe a good idea to add "apt-get update -y" so it's updated and the install can continue without problem?
  • Once installed, "odoo.service" doesn't start : at least double "//" in the logfile path and "EnvironmentFile=-/etc/odoo/odoo-server.conf" while this dir and file doen't exists

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

After create server database, unable to open the server site.

I used docker install the odoo11 saas,
after that i fellow this instruction "https://odoo-saas-tools.readthedocs.io/en/11.0/setup/install.html" manual setting.
I was created the main database name same with my domain(example.com)
after that i enter the example.com to the browser and enable open the odoo backend login page, and install the saas_portal.
After this step, i created s1.example.com database,and enter s1.example.com to browser, then can not open the website.
my /etc/nginx/conf.d/portal.conf setting like this:

server {
    listen 80;
    #rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only
    server_name example.com *.example.com;

    if ($host ~* ^([^\.]+)\.([^\.]+\.[^\.]+)$) {
         set $subdomain $1;
         set $domain $2;
     }

    #include odoo_params;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    location /longpolling {
        proxy_pass http://82.96.56.23:8072;
    }
   location / {
        proxy_pass http://82.96.56.23:8069;
    }

    location ~* /web/static/ {
        proxy_cache_valid 200 90m;
        proxy_buffering    on;
        expires 864000;
        proxy_pass http://82.96.56.23:8069;
    }

my odoo config like this:

[options]
addons_path = /mnt/odoo-source/odoo/addons,/mnt/odoo-source/addons,/mnt/addons/OCA/account-closing,/mnt/addons/OCA/account-financial-reporting,/mnt/addons/OCA/account-financial-tools,/mnt/addons/OCA/account-inv$
admin_passwd = pass123
data_dir=/mnt/data-dir

dbfilter = ^%h$

server_wide_modules = web,base_session_store_psql
workers = 0

limit_time_cpu = 600
limit_time_real = 1200

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

ubuntu 16.04 has no python-support package

in 8.0 and 9.0 branches of install-odoo-saas.sh there is the python-support package installation command.
ubuntu 16.04 has not such package and installation stops with an error on this step

In master branch there is no python-support package installation command. Do we need this package in other versions of ubuntu, i.e. 14.04? What for?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

No module named orm

Help me please!

I have other error after this command belong:

sudo su - odoo -s /bin/bash -c "/usr/local/src/odoo-source/odoo-bin -c /etc/openerp-server.conf"

2018-04-08 22:06:25,616 24084 INFO ? werkzeug: 201.25.98.156 - - [08/Apr/2018 22:06:25] "GET / HTTP/1.1" 500 -
2018-04-08 22:06:25,619 24084 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/usr/local/src/odoo-source/odoo/service/wsgi_server.py", line 186, in application
return application_unproxied(environ, start_response)
File "/usr/local/src/odoo-source/odoo/service/wsgi_server.py", line 172, in application_unproxied
result = handler(environ, start_response)
File "/usr/local/src/odoo-source/odoo/http.py", line 1322, in call
self.load_addons()
File "/usr/local/src/odoo-source/odoo/http.py", line 1343, in load_addons
m = import('odoo.addons.' + module)
File "/usr/local/src/odoo-source/odoo/modules/module.py", line 81, in load_module
execfile(modfile, new_mod.dict)
File "/usr/local/src/odoo-extra-addons/it-projects-llc/misc-addons/currency_rate_update/init.py", line 25, in
from . import company
File "/usr/local/src/odoo-extra-addons/it-projects-llc/misc-addons/currency_rate_update/company.py", line 22, in
from openerp import fields, orm
File "/usr/local/src/odoo-source/odoo/modules/module.py", line 109, in load_module
mod = importlib.import_module(canonical)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named orm


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

script install error

when I used this script to install saas, I got some errors like this below:

-su: /root/.bash_profile: Permission denied
Traceback (most recent call last):
File "/usr/local/src/odoo-extra-addons/it-projects-llc/saas-addons/saas.py", line 18, in
import psycopg2
ImportError: No module named 'psycopg2'

But when I try to install psycopg2, the common line shows me as below:

root@saas11:~/install-odoo# pip install psycopg2
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: psycopg2 in /usr/lib/python2.7/dist-packages (2.6.1)

So, everyone can help me solved these issues? Thanks a lot.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Install Failed

yaml
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python-dateutil
E: Unable to locate package python-decorator
E: Unable to locate package python-docutils
E: Unable to locate package python-feedparser
E: Unable to locate package python-imaging
E: Unable to locate package python-jinja2
E: Unable to locate package python-ldap
E: Unable to locate package python-libxslt1
E: Unable to locate package python-lxml
E: Unable to locate package python-mako
E: Unable to locate package python-mock
E: Unable to locate package python-openid
E: Unable to locate package python-passlib
E: Unable to locate package python-psutil
E: Unable to locate package python-psycopg2
E: Unable to locate package python-pybabel
E: Unable to locate package python-pychart
E: Unable to locate package python-pydot
E: Unable to locate package python-pyparsing
E: Unable to locate package python-pypdf
E: Unable to locate package python-reportlab
E: Unable to locate package python-suds
E: Unable to locate package python-tz
E: Unable to locate package python-vatnumber
E: Unable to locate package python-vobject
E: Unable to locate package python-werkzeug
E: Unable to locate package python-xlwt

Install Docker error

I have error about run exec
docker exec -i -u root -t odoo-portal /bin/bash -c "export INIT_SAAS_TOOLS='$INIT_SAAS_TOOLS_VALUE'; bash /install-odoo-saas.sh"
SYSTEM=supervisor
PLATFORM=unknown
OS_RELEASE=jessie
-su: /root/.bash_profile: Permission denied
python: can't open file '/mnt/addons/it-projects-llc/odoo-saas-tools/saas.py': [Errno 2] No such file or directory
Please check it

Set [INIT_SAAS_TOOLS=Yes], install failed.

I set export INIT_SAAS_TOOLS=${INIT_SAAS_TOOLS:-"yes"}
than i got error message like this:

  • [[ yes != \n\o ]]
  • su --preserve-environment - odoo -s /bin/bash -c '/usr/local/src/odoo-extra-addons/it-projects-llc/saas-addons/saas.py yes'
    -su: /root/.bash_profile: Permission denied
    -su: /usr/local/src/odoo-extra-addons/it-projects-llc/saas-addons/saas.py: No such file or directory
    after that this installation stop.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Failing for odoo 9.0

Hi,
Thank you for the script. I am running it on clean ubuntu 14.04.

I have run your script for version 9.0 or odoo and run into couple problems.
First compilation of the cryptography fails with error:
Failed building wheel for cffi
Running setup.py clean for cffi
Running setup.py bdist_wheel for pycparser: started
Running setup.py bdist_wheel for pycparser: finished with status 'done'
Stored in directory: /root/.cache/pip/wheels/9b/f4/2e/d03e949a551719a1ffcb659f2c63d8444f4df12e994ce52112
Successfully built pysftp pycparser
Failed to build cryptography cffi

Then following does not exist:
git clone -b 9.0 https://github.com/xpansa/hr.git xpansa/hr/

Any idea how to fix it?
btw: I am running this script as root
I can provide full log of the install.

fix ADD_AUTOINSTALL_MODULES

Currently it updates file $ODOO_SOURCE_DIR/odoo/service/db.py. But it only works when database is created via /web/database/manager/. while database can be created via -d param.

Possible place for the code: initialize method at odoo/modules/db.py or load_modules function at loading.py

docker install saas error

i used docker method to install odoo-saas, i got error as below:

2018-12-25 08:46:25
saas.py >>> RPC Execute, saas_portal.plan, create_template, [[1]], {}
Traceback (most recent call last):
  File "/mnt/addons/it-projects-llc/odoo-saas-tools/saas.py", line 203, in main
    plan_id = rpc_create_plan(args.get('portal_db_name'))
  File "/mnt/addons/it-projects-llc/odoo-saas-tools/saas.py", line 444, in rpc_create_plan
    rpc_execute_kw(auth, 'saas_portal.plan', 'create_template', [[plan_id]])
  File "/mnt/addons/it-projects-llc/odoo-saas-tools/saas.py", line 297, in rpc_execute_kw
    model, method, rpc_args, rpc_kwargs)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
    verbose=self.__verbose
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1150, in single_request
    return self.parse_response(resp)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1322, in parse_response
    return u.close()
  File "/usr/lib/python3.5/xmlrpc/client.py", line 655, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 1: 'Traceback (most recent call last):\n  File "/mnt/odoo-source/odoo/service/wsgi_server.py", line 124, in wsgi_xmlrpc\n    result = odoo.http.dispatch_rpc(service, method, params)\n  File "/mnt/odoo-source/odoo/http.py", line 118, in dispatch_rpc\n    result = dispatch(method, params)\n  File "/mnt/odoo-source/odoo/service/model.py", line 39, in dispatch\n    res = fn(db, uid, *params)\n  File "/mnt/odoo-source/odoo/service/model.py", line 153, in execute_kw\n    return execute(db, uid, obj, method, *args, **kw or {})\n  File "/mnt/odoo-source/odoo/service/model.py", line 97, in wrapper\n    return f(dbname, *args, **kwargs)\n  File "/mnt/odoo-source/odoo/service/model.py", line 160, in execute\n    res = execute_cr(cr, uid, obj, method, *args, **kw)\n  File "/mnt/odoo-source/odoo/service/model.py", line 149, in execute_cr\n    return odoo.api.call_kw(recs, method, args, kw)\n  File "/mnt/odoo-source/odoo/api.py", line 689, in call_kw\n    return call_kw_multi(method, model, args, kwargs)\n  File "/mnt/odoo-source/odoo/api.py", line 680, in call_kw_multi\n    result = method(recs, *args, **kwargs)\n  File "/mnt/addons/it-projects-llc/odoo-saas-tools/saas_portal/models/saas_portal.py", line 432, in create_template\n    (req.url, res.reason, res.content))\nWarning: Error on request: http://localhost:8069/saas_server/new_database\nReason: INTERNAL SERVER ERROR \n Message: b\'HTTP Error 404: NOT FOUND\'\n'>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

V12 install-odoo ERROR: relation "ir_module_module" does not exist

I am getting a string of errors running the docker installation for Odoo 12.0 : -

sudo docker run -p 8069:8069 -p 8072:8072 -e ODOO_MASTER_PASS=admin -e INSTALL_ODOO_DIR="/opt/odoodevl" -e ODOO_SOURCE_DIR="/opt/odoodevl/odoo-12.0/odoo/odoo" -e ADDONS_DIR="/opt/odoodevl/odoo-12.0/odoo/addons" -e ODOO_DATA_DIR="/opt/odoodevl/odoo-12.0/odoo/data/" -e BACKUPS_DIR="/opt/odoodevl/backups/" -e LOGS_DIR="/var/log/odoo/" --name odoox --link $DB_CONTAINER:db -t itprojectsllc/install-odoo:12.0

  • set -e
  • : 172.17.0.2
  • : 5432
  • : odoo
  • : odoo
  • DB_ARGS=("--db_user" $USER "--db_password" $PASSWORD "--db_host" $HOST "--db_port" $PORT)
  • : admin
  • sed -i -e 's/^admin_passwd.*/admin_passwd = admin/' /mnt/config/odoo-server.conf
  • [[ '' == \y\e\s ]]
  • case "$1" in
  • shift
  • exec /mnt/odoo-source/odoo-bin --db_user odoo --db_password odoo --db_host 172.17.0.2 --db_port 5432
    2018-11-21 08:23:00,726 1 INFO ? odoo: Odoo version 12.0
    2018-11-21 08:23:00,726 1 INFO ? odoo: Using configuration file at /mnt/config/odoo-server.conf
    2018-11-21 08:23:00,726 1 INFO ? odoo: addons paths: ['/mnt/data-dir/addons/12.0', '/mnt/odoo-source/odoo/addons', '/mnt/odoo-source/addons', '/mnt/addons/OCA/account-closing', '/mnt/addons/OCA/account-financial-reporting', '/mnt/addons/OCA/account-financial-tools', '/mnt/addons/OCA/account-invoicing', '/mnt/addons/OCA/bank-payment', '/mnt/addons/OCA/bank-statement-import', '/mnt/addons/OCA/bank-statement-reconcile', '/mnt/addons/OCA/commission', '/mnt/addons/OCA/contract', '/mnt/addons/OCA/event', '/mnt/addons/OCA/hr', '/mnt/addons/OCA/partner-contact', '/mnt/addons/OCA/pos', '/mnt/addons/OCA/product-attribute', '/mnt/addons/OCA/queue', '/mnt/addons/OCA/reporting-engine', '/mnt/addons/OCA/rma', '/mnt/addons/OCA/sale-workflow', '/mnt/addons/OCA/server-tools', '/mnt/addons/OCA/web', '/mnt/addons/OCA/website', '/mnt/addons/it-projects-llc/access-addons', '/mnt/addons/it-projects-llc/mail-addons', '/mnt/addons/it-projects-llc/misc-addons', '/mnt/addons/it-projects-llc/pos-addons', '/mnt/addons/it-projects-llc/saas-addons', '/mnt/addons/it-projects-llc/website-addons']
    2018-11-21 08:23:00,727 1 INFO ? odoo: database: [email protected]:5432
    2018-11-21 08:23:01,132 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
    2018-11-21 08:23:01,438 1 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
    2018-11-21 08:23:01,441 11 INFO ? odoo.service.server: Worker WorkerHTTP (11) alive
    2018-11-21 08:23:01,442 12 INFO ? odoo.service.server: Worker WorkerHTTP (12) alive
    2018-11-21 08:23:01,444 13 INFO ? odoo.service.server: Worker WorkerHTTP (13) alive
    2018-11-21 08:23:01,452 20 INFO ? odoo.service.server: Worker WorkerCron (20) alive
    2018-11-21 08:23:01,454 21 INFO ? odoo.service.server: Worker WorkerCron (21) alive
    2018-11-21 08:23:02,594 14 INFO ? odoo: Odoo version 12.0
    2018-11-21 08:23:02,594 14 INFO ? odoo: Using configuration file at /mnt/config/odoo-server.conf
    2018-11-21 08:23:02,595 14 INFO ? odoo: addons paths: ['/mnt/data-dir/addons/12.0', '/mnt/odoo-source/odoo/addons', '/mnt/odoo-source/addons', '/mnt/addons/OCA/account-closing', '/mnt/addons/OCA/account-financial-reporting', '/mnt/addons/OCA/account-financial-tools', '/mnt/addons/OCA/account-invoicing', '/mnt/addons/OCA/bank-payment', '/mnt/addons/OCA/bank-statement-import', '/mnt/addons/OCA/bank-statement-reconcile', '/mnt/addons/OCA/commission', '/mnt/addons/OCA/contract', '/mnt/addons/OCA/event', '/mnt/addons/OCA/hr', '/mnt/addons/OCA/partner-contact', '/mnt/addons/OCA/pos', '/mnt/addons/OCA/product-attribute', '/mnt/addons/OCA/queue', '/mnt/addons/OCA/reporting-engine', '/mnt/addons/OCA/rma', '/mnt/addons/OCA/sale-workflow', '/mnt/addons/OCA/server-tools', '/mnt/addons/OCA/web', '/mnt/addons/OCA/website', '/mnt/addons/it-projects-llc/access-addons', '/mnt/addons/it-projects-llc/mail-addons', '/mnt/addons/it-projects-llc/misc-addons', '/mnt/addons/it-projects-llc/pos-addons', '/mnt/addons/it-projects-llc/saas-addons', '/mnt/addons/it-projects-llc/website-addons']
    2018-11-21 08:23:02,595 14 INFO ? odoo: database: [email protected]:5432
    2018-11-21 08:23:03,226 14 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
    2018-11-21 08:23:03,898 14 INFO ? odoo.service.server: Evented Service (longpolling) running on 0.0.0.0:8072
    2018-11-21 08:24:01,525 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
    ERROR: relation "ir_module_module" does not exist
    LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
    ^

2018-11-21 08:24:01,526 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:24:02,575 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:24:02,576 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:25:01,634 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:25:01,634 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:25:03,685 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:25:03,685 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:26:01,710 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:26:01,710 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:26:04,793 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:26:04,793 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:27:01,802 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:27:01,802 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:27:05,900 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:27:05,901 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:28:01,818 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:28:01,818 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:28:07,008 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:28:07,009 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:29:01,834 20 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:29:01,834 20 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.
2018-11-21 08:29:08,116 21 ERROR odoo odoo.sql_db: bad query: b"SELECT latest_version FROM ir_module_module WHERE name='base'"
ERROR: relation "ir_module_module" does not exist
LINE 1: SELECT latest_version FROM ir_module_module WHERE name='base...
^

2018-11-21 08:29:08,117 21 WARNING ? odoo.addons.base.models.ir_cron: Tried to poll an undefined table on database odoo.

..
etc ..
..


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Error after installation script

I need your help, please:

Error After executed:

root@ip-xxxxxxx:/home/ubuntu/install-odoo# sudo su - odoo -s /bin/bash -c "/usr/local/src/odoo-source/odoo-bin -c /etc/openerp-server.conf"
Traceback (most recent call last):
File "/usr/local/src/odoo-source/odoo-bin", line 5, in
import('pkg_resources').declare_namespace('odoo.addons')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2081, in declare_namespace
declare_namespace(parent)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2097, in declare_namespace
_handle_ns(packageName, path_item)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2046, in _handle_ns
loader.load_module(packageName)
File "/usr/lib/python2.7/pkgutil.py", line 246, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File "/usr/local/src/odoo-source/odoo/init.py", line 81, in
import cli
File "/usr/local/src/odoo-source/odoo/cli/init.py", line 9, in
import deploy
File "/usr/local/src/odoo-source/odoo/cli/deploy.py", line 5, in
import requests
File "/usr/local/lib/python2.7/dist-packages/requests/init.py", line 84, in
from urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in
import OpenSSL.SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 118, in
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

Error with Docker installation

I get:

Control commands:
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 224

when finishing Docker installation and executing:

# add start scripts
INIT_START_SCRIPTS=docker-host \
install-odoo-saas.sh

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Fix github notifications

The patch below fix a bug with receivng notification from github.
The problem is that github send strange headers

To: odoo/odoo [email protected]
Cc: Subscribed [email protected]

and actual recepient (e.g. [email protected]) is available only in custom header X-GitHub-Recipient-Address)

index 8dcc391..6fbd8da 100644
--- a/addons/mail/mail_thread.py
+++ b/addons/mail/mail_thread.py
@@ -1054,6 +1054,7 @@ class mail_thread(osv.AbstractModel):
              ','.join([decode_header(message, 'Delivered-To'),
                        decode_header(message, 'To'),
                        decode_header(message, 'Cc'),
+                       decode_header(message, 'X-GitHub-Recipient-Address'),
                        decode_header(message, 'Resent-To'),
                        decode_header(message, 'Resent-Cc')])
         local_parts = [e.split('@')[0] for e in tools.email_split(rcpt_tos)]


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Running on MacOS

Hi,

I'm unsure how to get it to fully install on my mac. I adjusted the apt-get sections to brew within the .sh file, now I'm running an error with pidof "systemmd".

Should I have not adjusted the code to use with my bash? Trying to get into the hang of things, thanks!


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.