View Issue Details

IDProjectCategoryView StatusLast Update
0005793SOGoWeb Generalpublic2024-02-28 15:44
Reporterswallowtail Assigned Toqhivert  
PrioritynormalSeveritymajorReproducibilitysometimes
Status acknowledgedResolutionopen 
PlatformMicrosoftOSWindowsOS Version11
Summary0005793: SOGo pages fail to load, generating 404 errors
Description

Regularly, SOGo pages fail to load, either resulting in:

  1. Blank page
  2. Blank page with just one word ("email" or "people") at top of page
  3. If logged out, a log in page with no style/css formatting

See attached images

Refreshing the page sometimes works, sometimes not. On one occasion when it was completely stuck, restarting sogod recovered the page.

Additional Information

Running on apache on RHEL8, behind a simple port-forward.

TagsNo tags attached.

Activities

swallowtail

swallowtail

2023-06-17 08:48

reporter  

image.png (185,008 bytes)   
image.png (185,008 bytes)   
image-2.png (82,386 bytes)   
image-2.png (82,386 bytes)   
swallowtail

swallowtail

2023-06-17 09:36

reporter   ~0017041

I ruled out cloudflare... by setting DNS to not be proxied and loading the screen. Still does it, local IP this time,

192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/css/theme-default.css?lm=1686648803 HTTP/1.1" 404 145 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/css/styles.css?lm=1686648803 HTTP/1.1" 404 138 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/lodash.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-aria.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-animate.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-ui-router.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/Common.js?lm=1686648803 HTTP/1.1" 404 135 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-material.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-cookies.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-sanitize.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-messages.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-animate.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-sanitize.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-aria.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-cookies.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-messages.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-material.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-ui-router.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/Common.js?lm=1686648803 HTTP/1.1" 404 135 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"
192.168.1.110 - - [17/Jun/2023:19:30:16 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/img/sogo.ico?lm=1686648803 HTTP/1.1" 404 136 "https://sogo.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0"

swallowtail

swallowtail

2023-06-17 13:20

reporter   ~0017042

Back through Cloudflare proxied DNS...

172.68.210.47 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo/so/simon/Mail HTTP/1.1" 302 - "https://webmail.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.47 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo/so/simon/Mail/view HTTP/1.1" 200 22045 "https://webmail.simonandkate.net/SOGo/so/simon/Contacts/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.39 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/css/theme-default.css?lm=1686648803 HTTP/1.1" 404 145 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.23 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/lodash.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.61 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/css/styles.css?lm=1686648803 HTTP/1.1" 404 138 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.58 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-sanitize.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.27 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.72 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-material.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.81 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-messages.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.20 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-cookies.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.8 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-animate.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.23 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/Common.js?lm=1686648803 HTTP/1.1" 404 135 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.83 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-aria.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"
172.68.210.81 - - [17/Jun/2023:23:05:42 +1000] "GET /SOGo?url=https://mail.woa/WebServerResources/js/vendor/angular-ui-router.min.js?lm=1686648803 HTTP/1.1" 404 132 "https://webmail.simonandkate.net/SOGo/so/simon/Mail/view" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"

swallowtail

swallowtail

2023-06-17 13:43

reporter   ~0017045

https://bugs.sogo.nu/view.php?id=5667
https://bugs.sogo.nu/view.php?id=5332
https://bugs.sogo.nu/view.php?id=5502

swallowtail

swallowtail

2023-06-17 14:27

reporter   ~0017046

I've added a rewriterule line to the /SOGo location in my apache config, I think it is working to remove any extraneous content inserted in the URI... but I'm not 100% sure as I had to learn rewrites as I did this!

<Location /SOGo>
    # Don't cache dynamic content
    Header set Cache-Control "max-age=0, no-cache, no-store"
    # Add rewrite to prevent errors and strange insertions
    RewriteRule ^.*.woa/WebServerResources/(.*)$ /SOGo.woa/WebServerResources/$1 [L]
</Location>
swallowtail

swallowtail

2023-06-18 07:08

reporter   ~0017047

I've migrated to a new RHEL9 server. The new server has apache running a range of virtualhosts, not just SOGo. This still happens on the new server.

My redirect is helping, as is placing a robots.txt file telling bots not to attempt to index the site with previously redirected URLs - if they are allowed to interrogate those old URLs it almost immediately results in the errors seen here reflected back as random inclusions in the SOGo.woa URI.

I'm happy to post detailed configs privately, but there is definitely something odd going on when the SOGo virtualhost gets asked for URLs it cannot understand.

swallowtail

swallowtail

2023-06-18 07:22

reporter   ~0017048

With the rewrite in place (edited to "RewriteRule ^..woa/WebServerResources/(.)$ /SOGo.woa/WebServerResources/$1 [R]") when there is an issue the page at least loads and then responds to a refresh. Sometimes fonts don't load correctly though, I've posted another image now of what happens when that happens.

I'm assuming that may be a side-effect of what is probably a clunky rewrite, as I am no expert there.

172.68.210.34 - - [18/Jun/2023:17:10:09 +1000] "GET /fonts/MaterialIcons-Regular.woff2 HTTP/2.0" 404 196 "https://webmail.simonandkate.net/SOGo?url=https%3A%2F%2Fmail.woa/WebServerResources/css/styles.css?lm=1687062161" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.51"

It's the referrer address which is strange. "https://webmail.simonandkate.net/SOGo?url=https%3A%2F%2Fmail.woa/WebServerResources/css/styles.css?lm=1687062161" includes "?url=https%3A%2F%2Fmail" from somewhere else.

image-3.png (32,310 bytes)   
image-3.png (32,310 bytes)   
sebastien

sebastien

2023-06-21 08:17

administrator   ~0017069

Dear @swallowtail,

As I understand you have http://xxxxxx/.woa/WebServerResources/js/... issues ?

Sebastien

qhivert

qhivert

2023-06-21 08:42

administrator   ~0017070

Hello,
I just encountered the same problem this morning, all my resources were fetching .woa/WebServerResources instead of SOGo.woa/WebServerResources and I found out why. It's because the resourceUrl has the wrong value:
var ResourcesURL = '<var:string value="applicationPath" />.woa/WebServerResources'
If I understand the code correctly, applicationPath is set once with the first request to the backend using the uri so if you first request comes from your frontend <your website>/SOGo/.... it's ok but if you requested directly the backend it won't be.

In my case I've firstly requested the backend directly without uri (http://localhost:20000) and it set applicationPath to a empty string. Then I get the wrong url .woa/WebServeResources. I restart the service sogod and use the frontend first and applicationPath was set to SOGo...

As I don't know why it was coded like that I need to investigate a bit more

swallowtail

swallowtail

2023-06-21 08:48

reporter   ~0017071

Randomly URLs fail, as described here and in the other referenced bugs, and as described in emails to the user mailing list.

When they fail, the log shows incorrect URLs being called. In some instances these are in the form https://website/SOGoXXXXX.woa/WebServerResources, where XXXX is a string apparently taken from other requests sent to the host, or from incorrect requests sent to SOGo.

For example, see this note where I reproduced the issue: https://bugs.sogo.nu/view.php?id=5502#c17044

I have inserted a rewrite rule in my apache configuration to remove anything ever sent between SOGo and ".woa", and it has worked around the issue - an ugly hack though.

swallowtail

swallowtail

2023-06-21 08:51

reporter   ~0017072

June 2021 this was reported the first time...

I sincerely hope this can be prioritised for urgent fix.

sebastien

sebastien

2024-02-28 15:44

administrator   ~0017605

I have made a fix to use got appName when there is a ? in the uri : https://github.com/Alinto/sope/commit/b8aa1d9fc0bbbb73bec2a138f5a0f0242fcce098
This may fix the issue.

However :
I did not found a way to reproduce the issue.
I suspect an invalid header sent in the request making a wrong _uri (maybe in _sanitize).

If you can reproduce the issue (without forcing ? in the url) it may be useful to share the request headers of the request.

Sebastien

Issue History

Date Modified Username Field Change
2023-06-17 08:48 swallowtail New Issue
2023-06-17 08:48 swallowtail File Added: image.png
2023-06-17 08:48 swallowtail File Added: image-2.png
2023-06-17 09:36 swallowtail Note Added: 0017041
2023-06-17 13:20 swallowtail Note Added: 0017042
2023-06-17 13:43 swallowtail Note Added: 0017045
2023-06-17 14:27 swallowtail Note Added: 0017046
2023-06-18 07:08 swallowtail Note Added: 0017047
2023-06-18 07:22 swallowtail Note Added: 0017048
2023-06-18 07:22 swallowtail File Added: image-3.png
2023-06-21 08:17 sebastien Note Added: 0017069
2023-06-21 08:42 qhivert Note Added: 0017070
2023-06-21 08:42 qhivert Assigned To => qhivert
2023-06-21 08:42 qhivert Status new => acknowledged
2023-06-21 08:48 swallowtail Note Added: 0017071
2023-06-21 08:51 swallowtail Note Added: 0017072
2024-02-28 15:44 sebastien Note Added: 0017605