Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing #838

Open
haninada opened this issue Jul 1, 2019 · 5 comments
Open

Error while installing #838

haninada opened this issue Jul 1, 2019 · 5 comments

Comments

@haninada
Copy link

haninada commented Jul 1, 2019

Hello,

While installing through docker I got the following error

docker run \

-d
-e POSTGRES_USER=odoo
-e POSTGRES_PASSWORD=odoo
--network=odoo-saas
--name db-saas
postgres:9.5
Unable to find image 'postgres:9.5' locally
9.5: Pulling from library/postgres
fc7181108d40: Pull complete
81cfa12d39e9: Pull complete
793d305ca761: Pull complete
41e3ced3a2aa: Pull complete
a300bc9d5405: Pull complete
3c6a5c3830ed: Pull complete
fb8c79b24338: Pull complete
fcda1144379f: Pull complete
d0f772c5c8a7: Pull complete
8d4162a09bcc: Pull complete
39cc4cdad0d7: Pull complete
7bf8dbd510e6: Pull complete
d69763ee4e98: Pull complete
c9abe4ffafa8: Pull complete
Digest: sha256:414f6ffe5792bff97f66cdda32a99bdc6c8877ba1b042066791374cba6309e9e
Status: Downloaded newer image for postgres:9.5
9ec7c5cf5b434c2c9c1ce71f70119023d23caaed3babc87f6dc05b0f2563b332
docker: Error response from daemon: network odoo-saas not found.

Please advise
Regards


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

@ilmir-k
Copy link
Member

ilmir-k commented Jul 2, 2019

@haninada you need to create docker network first:
docker network create odoo-saas

@haninada
Copy link
Author

haninada commented Jul 2, 2019

thank you for reply

another issue if you can help, do you have a sample of odoo-derver.conf and Nginx conf files to guide me in installation

Best regards

@ilmir-k
Copy link
Member

ilmir-k commented Jul 2, 2019

Please check the following links for the instructions and examples:
https://it-projects-llc.github.io/odoo-saas-tools/
https://it-projects-llc.github.io/odoo-saas-tools/getting-started/

The example of odoo-nginx.conf:

       listen 80 default_server;
       server_name .example.com;

       proxy_buffers 16 64k;
       proxy_buffer_size 128k;
       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;
#        proxy_redirect http:// https://;
       proxy_read_timeout 600s;
       client_max_body_size 100m;

       location /longpolling {
           proxy_pass http://127.0.0.1:8072;
       }

       location / {
           proxy_pass http://127.0.0.1:8069;
       }
}


server {
       listen 443 ssl;
       listen [::]:443 ssl;
       server_name .example.com;

       ## ssl certificate files
        ssl on;
        ssl_certificate        /home/ec2-user/example.com.crt;
        ssl_certificate_key    /home/ec2-user/example.com.key;

       proxy_buffers 16 64k;
       proxy_buffer_size 128k;
       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;
#        proxy_redirect http:// https://;
       proxy_read_timeout 600s;
       client_max_body_size 100m;
       proxy_headers_hash_bucket_size 128;
       proxy_set_header X-Forwarded-Proto https;

       location /longpolling {
           proxy_pass http://127.0.0.1:8072;
       }

       location / {
           proxy_pass http://127.0.0.1:8069;
       }

}

@haninada
Copy link
Author

haninada commented Jul 2, 2019

Many thanks for your kindness

@haninada
Copy link
Author

haninada commented Jul 3, 2019

Hello everyone,

First please excuse me as I came from SAP so I have a lack in some areas

what I did as the following
1- installed NGNIX, setup domain with SSL, after testing the domain working fine and secure
2- installed odoo SaaS using docker, I followed the explanation in the following link, https://it-projects-llc.github.io/odoo-saas-tools/getting-started/
3- after finish installation while restart NGINX it came with error " Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe " for details" and of course the site becomes unreachable.

The following the original NGINX conf file after install SSL
server {
listen 80;
server_name www.example.com example.com;

include snippets/letsencrypt.conf;
return 301 https://$host$request_uri;

}

server {
listen 443 ssl http2;
server_name www.example.com;

ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;
include snippets/ssl.conf;
include snippets/letsencrypt.conf;

return 301 https://example.com$request_uri;

}

server {
listen 443 ssl http2;
server_name example.com;

ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;
include snippets/ssl.conf;
include snippets/letsencrypt.conf;

# . . . other code

}

As I mentioned domain work fine

after install odoo SaaS I used the conf file above after modify X-Real-IP to the server public address to be as the following

server {
listen 80;
server_name .example.com www.example.com example.com;

include snippets/letsencrypt.conf;
return 301 https://$host$request_uri;

proxy_buffers 16 64k;
   proxy_buffer_size 128k;
   proxy_set_header Host $host;
   proxy_set_header (serverIP) $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
   proxy_set_header X-Forwarded-Proto $scheme;

proxy_redirect http:// https://;

   proxy_read_timeout 600s;
   client_max_body_size 100m;

   location /longpolling {
       proxy_pass http://127.0.0.1:8072;
   }

    location / {
       proxy_pass http://127.0.0.1:8069;
   }

}

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name .example.com;

ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;
include snippets/ssl.conf;
include snippets/letsencrypt.conf;

proxy_buffers 16 64k;
   proxy_buffer_size 128k;
   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;

proxy_redirect http:// https://;

   proxy_read_timeout 600s;
   client_max_body_size 100m;
   proxy_headers_hash_bucket_size 128;
   proxy_set_header X-Forwarded-Proto https;

   location /longpolling {
       proxy_pass http://127.0.0.1:8072;
   }

   location / {
       proxy_pass http://127.0.0.1:8069;
   }

}

return 301 https://lancercity.com$request_uri;

}

Could anyone help in this issue

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants