Recent Posts

Pages: 1 ... 8 9 [10]
91
Roundcube Discussion / Intermittent DB connection issues
« Last post by reibuehl on March 13, 2024, 07:54:11 AM »
Hi all,

since upgrading my Roundcube Container install to 1.6.6 I get intermittent DB connection errors.

In the logs I see errors like these:

roundcube  | errors: <2673cee4> DB Error: SQLSTATE[HY000] [2002] Connection timed out in /var/www/html/program/lib/Roundcube/rcube_db.php on line 201
...
roundcube  | errors: <2673cee4> DB Error: SQLSTATE[HY000] [2002] No route to host in /var/www/html/program/lib/Roundcube/rcube_db.php on line 201

These result in messages not being shown in the UI or session expired messages. As these errors are only intermittent and after a refresh of the web page everything seems again working correct for some minutes, I am lost.

The DB is a MariaDB 10.6 container.
92
General Discussion / Calendar: Failed to import the event
« Last post by rcubeuser on March 13, 2024, 06:19:36 AM »
Hi, installed and configured calendar with these steps:

https://github.com/kolab-roundcube-plugins-mirror/calendar

Then I had this error:
https://www.roundcubeforum.net/index.php?topic=24600.0

And I fixed with @tcd steps.

Now there is a problem with some actions from events invitations (.ics invitations emails), actions like: Accept, Maybe, Decline,  Update the participant status, it throws Failed to import the event

And in my logs I have:

Quote
Faild to import the event

[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442
[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  strtoupper(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/webmail/vendor/sabre/vobject/lib/Parser/MimeDir.php on line 442

[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  Return type of Sabre\VObject\ElementList::offsetSet($offset, $value) should either be compatible with ArrayIterator::offsetSet(mixed $key, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webmail/vendor/sabre/vobject/lib/ElementList.php on line 28

[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Deprecated:  Return type of Sabre\VObject\ElementList::offsetUnset($offset) should either be compatible with ArrayIterator::offsetUnset(mixed $key): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/webmail/vendor/sabre/vobject/lib/ElementList.php on line 40

[13-Mar-2024 11:31:00 Europe/Helsinki] PHP Warning:  Trying to access array offset on value of type null in /var/www/webmail/plugins/calendar/calendar.php on line 3648



P.S.  I'm using php 8.1 fastCGI

93
General Discussion / Re: How to remove option to select all mail in inbox
« Last post by JohnDoh on March 12, 2024, 04:26:15 PM »
I'm going to assume you are using the Elastic skin, this is the one I have tested in. You could add `mail.select-all` to disable actions in the mail task only or `select-all` to disable actions in all tasks to the `disabled_actions` actions array in your config but this will disable all of the "automatic" selection actions because they work across pages and leave the user with the choice of manual selection only.
94
Pending Issues / Re: mails from Linux cron or other system generated messages.
« Last post by wintpe on March 12, 2024, 12:29:34 PM »
ok digging around in /var/log with a find . -type f -exec grep -i roundcube {} \; -print
I found that /var/log/php-fpm/www-error.log
has the following errors every single time the error of somethings went wrong hows.

[12-Mar-2024 16:28:16 UTC] PHP Fatal error:  Uncaught Error: Class 'DKIM_Verify' not found in /var/www/html/webmail/plugins/authres_status/authres_status.php:436
Stack trace:
#0 /var/www/html/webmail/plugins/authres_status/authres_status.php(242): authres_status->get_authentication_status()
#1 /var/www/html/webmail/plugins/authres_status/authres_status.php(247): authres_status->populate_message_headers()
#2 /var/www/html/webmail/program/lib/Roundcube/rcube_plugin_api.php(520): authres_status->message_headers()
#3 /var/www/html/webmail/program/actions/mail/show.php(537): rcube_plugin_api->exec_hook()
#4 /var/www/html/webmail/program/include/rcmail_output_html.php(1484): rcmail_action_mail_show::message_headers()
#5 [internal function]: rcmail_output_html->xml_command()
#6 /var/www/html/webmail/program/include/rcmail_output_html.php(1322): preg_replace_callback()
#7 /var/www/html/webmail/program/include/rcmail_output_html.php(825): rcmail_output_html->parse_xml()
#8 /var/www/html/webmail/program/include/rcmail_output_html.php(654): rcmail_output_html->par in /var/www/html/webmail/plugins/authres_status/authres_status.php on line 436

seems im not the first.......    https://github.com/pimlie/authres_status/issues/49  and this is the latest roundcube version.

removing authres_status plugin fixes the problem.
regards peter

regards peter
95
Pending Issues / Re: mails from Linux cron or other system generated messages.
« Last post by wintpe on March 12, 2024, 12:21:16 PM »
OK well as you can see from the output bellow

[root@host logs]# ls -al
total 44400
drwxr-xr-x  2 apache apache     4096 Mar 28  2022 .
drwxr-xr-x 12 apache apache     4096 Mar 11 17:38 ..
-rw-r--r--  1 apache apache        1 Mar  9 09:38 errors.log
-rw-r--r--  1 apache apache      164 Oct 17  2021 .htaccess
-rw-r--r--  1 apache apache 39538157 Mar 12 16:17 imap.log
-rw-r--r--  1 apache apache   206658 Mar 12 16:17 ldap.log
-rw-r--r--  1 apache apache     3318 Mar 11 14:07 sendmail.log
-rw-r--r--  1 apache apache    97772 Mar 11 14:07 smtp.log
-rw-r--r--  1 apache apache  5579817 Mar 12 16:17 sql.log
[root@host logs]# cat ../config/config.inc.php|grep file
$config['log_driver'] = 'file';
[root@host logs]# systemctl restart httpd
[root@host logs]# ls -al
total 44548
drwxr-xr-x  2 apache apache     4096 Mar 28  2022 .
drwxr-xr-x 12 apache apache     4096 Mar 11 17:38 ..
-rw-r--r--  1 apache apache        1 Mar  9 09:38 errors.log
-rw-r--r--  1 apache apache      164 Oct 17  2021 .htaccess
-rw-r--r--  1 apache apache 39669723 Mar 12 16:18 imap.log
-rw-r--r--  1 apache apache   206658 Mar 12 16:17 ldap.log
-rw-r--r--  1 apache apache     3318 Mar 11 14:07 sendmail.log
-rw-r--r--  1 apache apache    97772 Mar 11 14:07 smtp.log
-rw-r--r--  1 apache apache  5600263 Mar 12 16:18 sql.log
[root@host logs]#


I forced the error in the web interface 10 times, and nothing....


regards peter
96
Pending Issues / Re: mails from Linux cron or other system generated messages.
« Last post by SKaero on March 12, 2024, 09:21:46 AM »
Right now errors would be in the system log so you could check there or change the "log_driver" config option to "file" and then the error should be posted to the <RC root>/logs/errors.log file.
97
Pending Issues / Re: mails from Linux cron or other system generated messages.
« Last post by wintpe on March 12, 2024, 06:10:42 AM »
Hi Skaero
Thank you for replying.
the reason i did not post anything from the errors.log was.

cd /var/www/html/webmail/logs/
[root@host logs]# cat errors.log

[root@host logs]# ls -al
total 44248
drwxr-xr-x  2 apache apache     4096 Mar 28  2022 .
drwxr-xr-x 12 apache apache     4096 Mar 11 17:38 ..
-rw-r--r--  1 apache apache        1 Mar  9 09:38 errors.log
-rw-r--r--  1 apache apache      164 Oct 17  2021 .htaccess
-rw-r--r--  1 apache apache 39425705 Mar 11 17:49 imap.log
-rw-r--r--  1 apache apache   205024 Mar 11 17:25 ldap.log
-rw-r--r--  1 apache apache     3318 Mar 11 14:07 sendmail.log
-rw-r--r--  1 apache apache    97772 Mar 11 14:07 smtp.log
-rw-r--r--  1 apache apache  5534301 Mar 11 17:49 sql.log

in addition to your question, ill assume you might want my log settings.

from /var/www/html/webmail/config/config.inc.php

$config['debug_level'] = 10;

// Log SQL queries
$config['sql_debug'] = true;

// Log IMAP conversation
$config['imap_debug'] = true;

// Log LDAP conversation
$config['ldap_debug'] = true;

// Log SMTP conversation
$config['smtp_debug'] = true;
$config['log_driver'] = 'syslog';
$config['syslog_facility'] = LOG_MAIL;

and from php.ini

error_reporting
   Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
   Development Value: E_ALL
   Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT

 log_errors
   Default Value: on
   Development Value: On
   Production Value: On

the logs i gave in my first post come from maillog, but they are pretty much the same as what goes into imap.log.

the apache logs may be off assistance to you, but i cant fathom out where they are comming from, in the maillog there is a line as follows.

Mar 12 10:19:51 host roundcube[108700]: <l9ik2lel> [7B74] C: A0002 ID ("name" "Roundcube" "version" "1.6.6" "php" "7.4.33" "os" "Linux" "command" "/webmail/?_task=mail&_caps=pdf%3D1%2Cflash%3D0%2Ctiff%3D0%2Cwebp%3D1%2Cpgpmime%3D0&_uid=6137&_mbox=INBOX&_framed=1&_action=preview")

and that lines up with the 500 error from httpd as follows.

ipaddress - - [12/Mar/2024:10:19:51 +0000] "GET /webmail/?_task=mail&_caps=pdf%3D1%2Cflash%3D0%2Ctiff%3D0%2Cwebp%3D1%2Cpgpmime%3D0&_uid=6137&_mbox=INBOX&_framed=1&_action=preview HTTP/1.1" 500 634 "http://host:/webmail/?_task=mail&_mbox=INBOX" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"

the apache error log has no error log matching the event, the last log to it was yesterday when i restarted httpd, so not relevant to today's replay of the error


regards peter
98
General Discussion / How to remove option to select all mail in inbox
« Last post by bartoszx on March 12, 2024, 05:01:10 AM »
Hi
I have an unusual problem and I'm seeking a solution. A user often selects the option to "Select All Messages" thinking it only selects the visible portion, but in reality, it selects everything. After deletion, they end up removing all their messages. How can I prevent this? Is there a way to remove such a possibility?
99
Pending Issues / Re: mails from Linux cron or other system generated messages.
« Last post by SKaero on March 11, 2024, 05:50:15 PM »
Whats in the Roundcube error log located at <RC root>/logs/errors.log
100
General Discussion / Forword all emails without keeping any copy in original account
« Last post by dpoole on March 11, 2024, 03:26:55 PM »
Hi,
I am trying to migrate all my account to new domain and there is only one step left is how to forword all emails without keeping any copy in original account
i search in email filter but the is no way to make that happend.

thanks in advanced
Pages: 1 ... 8 9 [10]