Search code examples
odooubuntu-18.04digital-oceanodoo-12

Unable to load Odoo 12 in browser 0.0.0.0:8069 after insllation via sh script


Hi I install odoo 12 in cloud-server in Ubuntu 18.04.3 (LTS) x64 using below script command

  1. Download my installation script from Github and copy it locally:

sudo wget https://raw.githubusercontent.com/Yenthe666/InstallScript/12.0/odoo_install.sh

  1. Edit the file and modify the parameters that you'd like to change:

sudo nano odoo_install.sh

Tip: If you'd like the enterprise version you should set IS_ENTERPRISE to True instead of false. 3. Make the file executable:

sudo chmod +x odoo_install.sh

  1. Execute the script and wait a few minutes for Odoo to install:

./odoo_install.sh

After installation i run command sudo service odoo-server start. I check the status server is running and active. But when i try to access in browser 0.0.0.0:8069 Unable to connect

Firefox can’t establish a connection to the server at 206.189.197.248:8069.


Solution

  • the standard binding of odoo is:

    bind = '127.0.0.1:8069'
    

    you might change this to 0.0.0.0:8069, but i do not recommend such alike. You will want to have e.g. nginx to upstream 127.0.0.1:8069 to a real webserver e.g. nginx:

    upstream odoo {
        socket
        server  127.0.0.1:8069; # for a web port socket (we'll use this first)
    }
    upstream odoo-chat {
     server 127.0.0.1:8072;
    }