There is a problem with my espocrm installation I have been running for many years without problems: recently I cannot login to my website.
I enter the correct credentials, then I get a 401 unauthorized (F12 developer options).
The errormessage on the webpage is: Invalid username/password.
There is NO errormessage about this in data/logs.
The apache access log says:
This is strange because I haven't changed my password at all so there is no reason for it to become invalid.
When I try to request a new password via the login page > reset password link, I enter username + emailaddress and then I get a 403 error when calling passwordChangeRequest.
data/logs says:
apache access log:
I'm pretty sure the error is incorrect, because my user 1 is active: I queried the database with phpmyadmin and my user column is_active = 1.
Nevertheless, I tried to reset my password via CLI:
-> Resetting the password this way works, when I query the user table in the database, I see that the password hash has changed.
However, when I login with these new credentials, login fails identically.
Apart from that, I also get the following errors in data/log:
Also: strange: I have never disabled these accounts. Again, I assume these errors are false positives and some code is failing to run and throwing these errors as a result.
Additionally: when I try to fsockopen() via a PHP script and run this via commandline, I can successfully connect to the mail server.
System details:
Arch linux: Linux 5.17.5-arch1-1 EspoCRM Forum SMP PREEMPT Wed, 27 Apr 2022 20:56:11 +0000 x86_64 GNU/Linux
MariaDB 10.7.3 database server
Apache/2.4.53 (Unix) - Mar 15 2022 01:43:41
PHP 8.1.5 (cli) (built: Apr 14 2022 18:36:20) (NTS) / Zend Engine v4.1.5, Copyright (c) Zend Technologies
I enter the correct credentials, then I get a 401 unauthorized (F12 developer options).
The errormessage on the webpage is: Invalid username/password.
There is NO errormessage about this in data/logs.
The apache access log says:
Code:
x.x.x.x (ip) username 10/May/2022:20:52:55 +0200] "GET /api/v1/App/user HTTP/1.1" 401 -
When I try to request a new password via the login page > reset password link, I enter username + emailaddress and then I get a 403 error when calling passwordChangeRequest.
data/logs says:
Code:
[2022-05-10 18:57:39] WARNING: Password recovery: User 1 is not active. [] [] [2022-05-10 18:57:39] ERROR: (403) POST /User/passwordChangeRequest; line: 304, file: /path/to/espocrm/application/Espo/Core/Password/Recovery.php [] []
Code:
[10/May/2022:20:57:39 +0200] "POST /api/v1/User/passwordChangeRequest HTTP/1.1" 403 -
Nevertheless, I tried to reset my password via CLI:
Code:
php command.php SetPassword USERNAME
However, when I login with these new credentials, login fails identically.
Apart from that, I also get the following errors in data/log:
Code:
[2022-05-10 19:05:06] ERROR: CronManager: Failed job running, job [627ab6527b42d4787]. Error Details: Job CheckInboundEmails 601fe82127875b14c: [500] Group Email Account 601fe82127875b14c is not active. at /path/to/espocrm/application/Espo/Modules/Crm/Jobs/CheckInboundEmails.php:74 [] [] [2022-05-10 19:05:06] ERROR: CronManager: Failed job running, job [627ab6527c605eaa7]. Error Details: Job CheckEmailAccounts 5820d52924531fb03: [500] Email Account 5820d52924531fb03 is not active. at /path/to/espocrm/application/Espo/Modules/Crm/Jobs/CheckEmailAccounts.php:74 [] []
Additionally: when I try to fsockopen() via a PHP script and run this via commandline, I can successfully connect to the mail server.
System details:
Arch linux: Linux 5.17.5-arch1-1 EspoCRM Forum SMP PREEMPT Wed, 27 Apr 2022 20:56:11 +0000 x86_64 GNU/Linux
MariaDB 10.7.3 database server
Apache/2.4.53 (Unix) - Mar 15 2022 01:43:41
PHP 8.1.5 (cli) (built: Apr 14 2022 18:36:20) (NTS) / Zend Engine v4.1.5, Copyright (c) Zend Technologies
Comment