the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
1.01k stars 121 forks source link

Cant login to admin panel #1202

Closed m1ke-m1ke closed 1 year ago

m1ke-m1ke commented 1 year ago

Describe the bug Hi, I did a clean installation of snappymail on our server. I used rainloop before, without any issues. After installing, password file was generated. I used the password from the file with admin as login and Im getting request failed error. I did try to regenerate a new password - also no luck.

To Reproduce

Expected behavior Login to admin panel

Screenshots https://pasteboard.co/4UExxzCEJln5.png

Please complete the following information:

Debug/logging information http://email.X.eu/?/AppData/0/29501800097559816/] [2023-07-04 21:36:26.135][e9c53887] COOKIE[DEBUG]: set smtoken [2023-07-04 21:36:26.151][e9c53887] APPDATA[INFO]: {"Auth":false,"title":"SnappyMail Webmail","loadingDescription":"SnappyMail","Plugins":[],"System":{"version":"2.28.3","token":"9d798216c7b5d73da97326d4dbfc8d4d7376eb93","languages":["ar-SA","bg-BG","cs-CZ","da-DK","de-DE","el-GR","en","en-GB","eo","es-ES","et-EE","eu","fa-IR","fi-FI","fr-FR","hu-HU","id-ID","is-IS","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","nb-NO","nl-NL","pl-PL","pt","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","tr-TR","uk-UA","vi-VN","zh-CN","zh-TW"],"webPath":"\/","webVersionPath":"\/snappymail\/v\/2.28.3\/"},"allowLanguagesOnLogin":true,"DevEmail":"","DevPassword":"","signMe":"DefaultOff","Theme":"Default","language":"en","userLanguage":"en","PluginsLink":"","StaticLibsJs":"\/snappymail\/v\/2.28.3\/static\/js\/libs.js"} [2023-07-04 21:36:26.152][e9c53887] [INFO]: Memory peak usage: 10MB [2023-07-04 21:36:26.152][e9c53887] [INFO]: Time delta: 0.0274829864502 [2023-07-04 21:36:32.551][96f852d1] [INFO]: [SM:2.28.3][IP:][PID:2273737][Apache][apache2handler][Streams:tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][GET http://email.X.eu/?admin] [2023-07-04 21:36:32.553][96f852d1] [INFO]: [SM:2.28.3][IP:][PID:2273737][Apache][apache2handler][Streams:tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][GET http://email.X.eu/?admin] [2023-07-04 21:36:32.595][96f852d1] [INFO]: Memory peak usage: 10MB [2023-07-04 21:36:32.595][96f852d1] [INFO]: Time delta: 0.0615768432617 [2023-07-04 21:36:33.072][1b22fb81] [INFO]: [SM:2.28.3][IP:][PID:2273529][Apache][apache2handler][Streams:tcp,udp,unix,udg,ssl,tls,tlsv1.0,tlsv1.1,tlsv1.2,tlsv1.3][GET http://email.X.eu/?/AdminAppData/0/7654047546557687/] [2023-07-04 21:36:33.139][1b22fb81] APPDATA[INFO]: {"Auth":false,"title":"SnappyMail Webmail","loadingDescription":"SnappyMail","Plugins":[],"System":{"version":"2.28.3","token":"9d798216c7b5d73da97326d4dbfc8d4d7376eb93","languages":["ar-SA","bg-BG","cs-CZ","da-DK","de-DE","el-GR","en","en-GB","eo","es-ES","et-EE","eu","fa-IR","fi-FI","fr-FR","hu-HU","id-ID","is-IS","it-IT","ja-JP","ko-KR","lt-LT","lv-LV","nb-NO","nl-NL","pl-PL","pt","pt-BR","pt-PT","ro-RO","ru-RU","sk-SK","sl-SI","sv-SE","tr-TR","uk-UA","vi-VN","zh-CN","zh-TW"],"webPath":"\/","webVersionPath":"\/snappymail\/v\/2.28.3\/","adminHost":false,"adminPath":"admin","adminAllowed":true},"allowLanguagesOnLogin":true,"Theme":"Default","language":"en","userLanguage":"en","PluginsLink":"","StaticLibsJs":"\/snappymail\/v\/2.28.3\/static\/js\/libs.js"} [2023-07-04 21:36:33.142][1b22fb81] [INFO]: Memory peak usage: 24MB [2023-07-04 21:36:33.142][1b22fb81] [INFO]: Time delta: 0.0906059741974

Additional context

the-djmaze commented 1 year ago

Please enable logging https://github.com/the-djmaze/snappymail/wiki/FAQ#how-do-i-enable-logging Then also use your browser debug console network requests.

It should tell you why the login fails.

m1ke-m1ke commented 1 year ago

Hi, Is there a higher level of logging I should enable?

Here is the error from the browser: https://paste.pics/d49cd6e6a89cf9d8dfe05aa1a3182fb6

the-djmaze commented 1 year ago

The 509 HTTP status code means "bandwidth limit exceeded" It indicates that if a system administrator has set a bandwidth limit, this error message will appear. Only by waiting until the limit is reset in the subsequent cycle, this problem can be resolved. With this in mind SnappyMail would hardly be usable on your server/website unless the system administrator removes the bandwidth limit.

m1ke-m1ke commented 1 year ago

Hi, Thanks for the response. Im currently abroad and it was caused by my hosting IP GEO blocking.

Thanks for help. It works now :)

the-djmaze commented 1 year ago

You're welcome