My saas module was working perfectly fine on before one week but I don't kniw if someone has made any changes in nginx. I am facing this issue when I try to sync server
_```
raise Warning('Reason: %s \n Message: %s' % (res.reason, res.content))
Warning: Reason: NOT FOUND
Message: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n
404 Not Found\n
Not Found
I have almost tried everything:
1) I have restarted nginx server
2)My DB filter is = dbfilter = ^%h$
3)My main db config file:
_[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = False
db_port = False
db_user = odoo12
db_password = odoo
xmlrpc_port = 8016
logfile = /var/log/odoo/odoo12e_robin_saas.log
addons_path=/opt/odoo-12.0.post20181119/odoo/addons,/opt/odoo12enterprise/enterprise,/opt/odoo-12.0.post20181119/odoo/robin/RobinEnterpriseSaas
longpolling_port = 8072
dbfilter = ^%h$
limit_time_cpu = 6000
limit_time_real = 12000_
4) My /etc/nginx/sites-available/default details:
_server {
listen 80 ;
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_read_timeout 300000;
location /longpolling {
proxy_pass http://127.0.0.1:8072;
}
#location /front_office_management {
# Backend server to forward requests to/from
# proxy_pass http://127.0.0.1:8060/web/?db=front_office_management;
# proxy_http_version 1.1;
# adds gzip
# gzip_static on;
# }
location / {
proxy_pass http://127.0.0.1:8011;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php-fpm (or other unix sockets):
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
# With php-cgi (or other tcp sockets):
#fastcgi_pass 127.0.0.1:9000;
}
root /var/www/vmi222655.contaboserver.net;
server_name *.planet-odoo.in planet-odoo.in; # managed by Certbot
listen 443 ssl; # managed by Certbot
# ssl_certificate /etc/letsencrypt/live/vmi222655.contaboserver.net/fullchain.pem; # managed by Certbot
# ssl_certificate_key /etc/letsencrypt/live/vmi222655.contaboserver.net/privkey.pem; # managed by Certbot
ssl_certificate /etc/nginx/ssl/server.bundle;
ssl_certificate_key /etc/nginx/ssl/server.key;
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}_
5) My main /etc/nginx/nginx.conf is:
_user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
# multi_accept on;
}
http {
##
# Basic Settings
##
client_max_body_size 20M;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log ;
##
# Gzip Settings
##
gzip on;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}_
<bountysource-plugin>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/90869416-my-saas-module-was-working-fine-but-i-don-t-know-if-someone-has-made-any-chages-in-server-configuration-i-am-facing-an-this-issue?utm_campaign=plugin&utm_content=tracker%2F109082179&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F109082179&utm_medium=issues&utm_source=github).
</bountysource-plugin>
My saas module was working perfectly fine on before one week but I don't kniw if someone has made any changes in nginx. I am facing this issue when I try to sync server _``` raise Warning('Reason: %s \n Message: %s' % (res.reason, res.content)) Warning: Reason: NOT FOUND Message: b'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">\n
Not Found