Hi,
I am receiving this error, when I open my site.
This one is a docker production setup, where for SSL. I used TRAEFIK.
I don’t get what is the issue, container is running. the site also redirect to https
.
At first login page show without any issue. when clicking login redirect to this,
Even I see this screen my URL is redirect to https
Ref doc:
Summary
ERPNext is an open-source ERP system that helps businesses manage their operations efficiently. This guide will walk you through the process of installing ERPNext version 15 on your server using Docker.
[NewProject]
Prerequisites:
Before you begin, ensure you have the following prerequisites in place:
Operating System: Linux (Ubuntu 20+ recommended)
Python: Version 3.10.12+
Node.js: Version 18.x+
MariaDB: Version 10.6+
Redis: Latest version
Docker: Latest version
App Confi…
### Single Server Example
In this use case we have a single server with a static IP attached to it. It can be used in scenarios where one powerful VM has multiple benches and applications or one entry level VM with single site. For single bench, single site setup follow only up to the point where first bench and first site is added. If you choose this setup you can only scale vertically. If you need to scale horizontally you'll need to backup the sites and restore them on to cluster setup.
We will setup the following:
- Install docker and docker compose v2 on linux server.
- Install traefik service for internal load balancer and letsencrypt.
- Install MariaDB with containers.
- Setup project called `erpnext-one` and create sites `one.example.com` and `two.example.com` in the project.
- Setup project called `erpnext-two` and create sites `three.example.com` and `four.example.com` in the project.
Explanation:
Single instance of **Traefik** will be installed and act as internal loadbalancer for multiple benches and sites hosted on the server. It can also load balance other applications along with frappe benches, e.g. wordpress, metabase, etc. We only expose the ports `80` and `443` once with this instance of traefik. Traefik will also take care of letsencrypt automation for all sites installed on the server. _Why choose Traefik over Nginx Proxy Manager?_ Traefik doesn't need additional DB service and can store certificates in a json file in a volume.
Single instance of **MariaDB** will be installed and act as database service for all the benches/projects installed on the server.
Each instance of ERPNext project (bench) will have its own redis, socketio, gunicorn, nginx, workers and scheduler. It will connect to internal MariaDB by connecting to MariaDB network. It will expose sites to public through Traefik by connecting to Traefik network.
This file has been truncated. show original
Check the traefik container logs, it’ll have reason why it couldn’t generate letsencrypt certificate.
1 Like
Thank you @revant_one ,
I checked with the container logs,
I receive 499 ( client closed request ) status code, which is some time works.