Freescout - "Too Many Redirects" when opening any conversation

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 11.2.30.2
What app is this about: Freescout

Describe your issue

When attempting to open a conversation in freescout, the page (be it in the browser or on the app) fails with “ERR_TOO_MANY_REDIRECTS” and no errors in the nginx log. I tried in an incognito window as well, and attempted restarting the nginx service.

Share relevant logs or error messages

There are no errors in the console when I get the err_too_many_redirects error. However, when loading any freescout page (before clicking on a conversation) I get the following:

GET https://mydomain.com/ynh_portal.js net::ERR_ABORTED 404 (Not Found)Understand this error
15:1 Refused to execute script from 'https://mydomain.com/ynh_portal.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error
15:1 Refused to apply style from 'https://mydomain.com/ynh_overlay.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.Understand this error
15:27 
        
        
       GET https://mydomain.com/ynhtheme/custom_portal.js net::ERR_ABORTED 404 (Not Found)Understand this error
15:1 Refused to execute script from 'https://mydomain.com/ynhtheme/custom_portal.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error
15:1 Refused to apply style from 'https://mydomain.com/ynhtheme/custom_overlay.css' because its MIME type ('text/html') is n

Also, in nginx, when loading any page I get:

ACCESS LOG:

192.168.1.10 - - [02/Oct/2024:18:28:20 -0400] "POST /polycast/receive HTTP/1.1" 200 74 "https://mydomain.com/mailbox/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:25 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "POST /polycast/receive HTTP/1.1" 200 74 "https://mydomain.com/mailbox/1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"
192.168.1.10 - - [02/Oct/2024:18:28:26 -0400] "GET /conversation/3?folder_id=9 HTTP/1.1" 302 752 "https://mydomain.com/mailbox/2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36"

ERROR LOG:

2024/10/02 18:18:01 [error] 974531#974531: *5151 open() "/var/www/freescout/public/ynh_portal.js" failed (2: No such file or directory), client: 192.168.1.10, server: mydomain.com, request: "GET /ynh_portal.js HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/mailbox/2/15"
2024/10/02 18:18:01 [error] 974531#974531: *5153 open() "/var/www/freescout/public/ynh_overlay.css" failed (2: No such file or directory), client: 192.168.1.10, server: mydomain.com, request: "GET /ynh_overlay.css HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/mailbox/2/15"
2024/10/02 18:18:01 [error] 974531#974531: *5154 open() "/var/www/freescout/public/ynhtheme/custom_portal.js" failed (2: No such file or directory), client: 192.168.1.10, server: mydomain.com, request: "GET /ynhtheme/custom_portal.js HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/mailbox/2/15"
2024/10/02 18:18:01 [error] 974531#974531: *5155 open() "/var/www/freescout/public/ynhtheme/custom_overlay.css" failed (2: No such file or directory), client: 192.168.1.10, server: mydomain.com, request: "GET /ynhtheme/custom_overlay.css HTTP/1.1", host: "mydomain.com", referrer: "https://mydomain.com/mailbox/2/15"

I should note, it is also running behind a reverse proxy (192.168.1.10) passing the domain to the yunohost box. It is set up to throw everything at that domain to the box.

I push some fixes on the testing branch. As I am not using the app, feedback are welcome.

sudo yunohost app install https://github.com/YunoHost-Apps/freescout_ynh/tree/testing --debug
or
sudo yunohost app upgrade freescout -u https://github.com/YunoHost-Apps/freescout_ynh/tree/testing --debug

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.