ever-co / ever-traduora

Ever® Traduora™ - Open Translation Management Platform - https://traduora.co
https://traduora.co
GNU Affero General Public License v3.0
1.97k stars 197 forks source link

500 Request error after Installation #412

Closed akama-aka closed 1 month ago

akama-aka commented 1 month ago

Describe the bug Hello, we've newly installed traduora and changed some Env's in the docker-compose.demo.yml and docker-compose.yml file.

To Reproduce Steps to reproduce the behavior:

  1. Normally install traduora from the git
  2. nano into the docker-compose.yml file and insert / change the following lines:
    # ENVIRONMENTS
      TR_DB_TYPE: mysql
      TR_DB_USER: tr
      TR_DB_PASSWORD: ********
      TR_DB_DATABASE: tr_dev
      TR_DB_HOST: mysqldb
      TR_DB_PORT: 3306
      TR_VIRTUAL_HOST: translate.*********.**
      TR_SECRET: *************
    # PORT CHANGES
    8002:8080
  3. Close the file and now run the docker-compose.yaml with docker compose -f docker-compose.yaml up
  4. Create a new NGINX configuration with the following index:
    server {
    listen 80;
    listen [::]:80;
    server_name translate.***********.**;
    access_log /var/log/nginx/translate.app-access.log;
    error_log  /var/log/nginx/translate.app-error.log error;
    # allow larger file uploads and longer script runtimes
    client_max_body_size 100m;
    client_body_timeout 120s;
    location / {
        proxy_pass http://127.0.0.1:8002/;
        try_files $uri $uri/ /index.php?$query_string;
    }
    }
  5. Reload NGINX
  6. Open the website

Expected behavior It should show the main page normally

Screenshots image image

Environment (please complete the following information):

Additional context Cloudflare is used too

NGINX Error Logs:

2024/06/01 21:40:14 [error] 163668#163668: *1010 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.220.94, server: translate.**********, request: "GET /runtime-es2015.c5e0a6d190406ca6e718.js HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********/"
2024/06/01 21:40:14 [error] 163668#163668: *1011 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.221.75, server: translate..**********, request: "GET /polyfills-es2015.75c88a06b6b33a0cb9f9.js HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********/"
2024/06/01 21:40:14 [error] 163668#163668: *1012 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.220.95, server: translate..**********, request: "GET /runtime-es2015.c5e0a6d190406ca6e718.js HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********"
2024/06/01 21:40:14 [error] 163668#163668: *1013 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.221.79, server: translate..**********, request: "GET /favicon.ico HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********/"
2024/06/01 21:40:14 [error] 163669#163669: *1014 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.221.75, server: translate..**********, request: "GET /polyfills-es2015.75c88a06b6b33a0cb9f9.js HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********/"
2024/06/01 21:40:14 [error] 163669#163669: *1015 rewrite or internal redirection cycle while internally redirecting to "/index.php", client: 108.162.221.159, server: translate..**********, request: "GET /main-es2015.e9c875b98e730b60db1c.js HTTP/1.1", host: "translate..**********", referrer: "https://translate..**********/"