1

Topic: Roundcube Password Plugin Error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi

After upgrading Roundcube to 1.5.2 version i have got some error logs. Users can't change their passwords from roundcube.

PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /mail/)
Feb  3 12:38:39 mail roundcube: <c51trf7a> PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (POST /mail/?_task=login&_action=login)
Feb  3 12:38:40 mail roundcube: <3s09ichm> PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /mail/?_task=mail&_token=8khhOAGcaqDgTHdhK0uvyR5rfK7PXYET)
Feb  3 12:38:43 mail roundcube: <3s09ichm> PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /mail/?_task=settings)
Feb  3 12:38:45 mail roundcube: <3s09ichm> PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /mail/?_task=settings&_action=plugin.password)

Best regards.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Roundcube Password Plugin Error

hainan wrote:

Feb  3 12:38:45 mail roundcube: <3s09ichm> PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /mail/?_task=settings&_action=plugin.password)

You may have syntax error in /opt/www/roundcubemail/plugins/password/config.inc.php.

3

Re: Roundcube Password Plugin Error

Hi

Problem caused by wrong owner of the file.Which one is right user and group owner of the all roundcube files? www-data or something else?

Thanks.

4

Re: Roundcube Password Plugin Error

FYI:

https://github.com/iredmail/iRedMail/bl … sh#L23-L25
https://github.com/iredmail/iRedMail/bl … sh#L29-L31

5 (edited by cvcvelo 2022-09-10 05:27:18)

Re: Roundcube Password Plugin Error

I am getting the same errors as the OP. My config.inc.php file is owned by root:root.

I don't understand the comments about syntax error (what error?) or these github files, which AFAIK are not installed with roundcubemail.

What, specifically, can I do to correct these errors? Thanks.

6 (edited by cvcvelo 2022-09-22 02:38:21)

Re: Roundcube Password Plugin Error

Asking again about this. The mail.log file is still full of errors like these. This is on a current version of iRedMail (1.6.1) and iRedAdmin-Pro (5.2 on MariaDB) running on Debian 11.

PHP Error: Failed to load config from /opt/www/roundcubemail/plugins/password/config.inc.php in /opt/www/roundcubemail-1.5.2/program/lib/Roundcube/rcube_plugin.php on line 166 (GET /)

Thanks in advance for guidance on correcting this error.

7

Re: Roundcube Password Plugin Error

did you check for this file? does it even exist?

8

Re: Roundcube Password Plugin Error

Cthulhu wrote:

did you check for this file? does it even exist?

Yes, and yes.

# ls -l /opt/www/roundcubemail/plugins/password/config.inc.php
-r-------- 1 root root 19383 Dec 27  2021 /opt/www/roundcubemail/plugins/password/config.inc.php
# ls -l  /opt/www/roundcubemail-1.5.2/program/lib/Roundcube/rcube_plugin.php
-rw-r--r-- 1 501 80 13592 Jun 26 13:26 /opt/www/roundcubemail-1.5.2/program/lib/Roundcube/rcube_plugin.php

9

Re: Roundcube Password Plugin Error

-r-------- 1 root root 19383 Dec 27  2021

so, if ONLY root has ONLY read access, then the file just can't be included

did you even read this thread? just fix the file permissions

10

Re: Roundcube Password Plugin Error

cvcvelo wrote:

/opt/www/roundcubemail/plugins/password/config.inc.php

This file must be owned by web server daemon user ("nginx" on CentOS or "www-data" on Debian/Ubuntu).

11

Re: Roundcube Password Plugin Error

ZhangHuangbin wrote:
cvcvelo wrote:

/opt/www/roundcubemail/plugins/password/config.inc.php

This file must be owned by web server daemon user ("nginx" on CentOS or "www-data" on Debian/Ubuntu).

Thanks, this was the issue. This system was ported from FreeBSD, where the correct ownership was something else. Permissions should stay at 0400 since this file contains a plaintext password.