Roundcube Community Forum

 

Recent posts

#81
Pending Issues / DB Error: SQLSTATE[HY000] [200...
Last post by JacobC1921 - October 28, 2025, 08:03:30 PM
Hi all!

Made an account just to get some help with this. I've had no issues with Roundcube at all until now. I am also self-hosting via Yunohost on Debian GNU/Linux 12.

I am receiving this screen when going to the Roundcube address:

-------------------------

Oops... something went wrong!
An internal error has occurred. Your request cannot be processed at this time.

For administrators: Please check the application and/or server error logs for more information.

-------------------------

And after checking the error log in /var/www/roundcube/logs/errors.log, everytime i refresh the page, it puts into the error log: [28-Oct-2025 23:50:04 +0000]: <206ndaep> DB Error: SQLSTATE[HY000] [2002] No such file or directory in /var/www/roundcube/program/lib/Roundcube/rcube_db.php on line 201 (GET /)
This file definitely exists, as I can cat /var/www/roundcube/program/lib/Roundcube/rcube_db.php it with no issues, so I'm guessing it may be some sort of permission issue.

Any clue where to go from here?
Thank you!
#82
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 28, 2025, 01:52:21 PM
now I test config like this:

    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        if (!-f $document_root$fastcgi_script_name) {
                return 404;
        }

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        include fastcgi_params;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
        fastcgi_intercept_errors on;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_read_timeout 180s;
    }

replace TRY_FILES with IF
#83
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 28, 2025, 01:25:27 PM
I use this
<?php
echo '-';
echo 
$_SERVER['PATH_INFO'];
echo 
'-';
echo 
$_SERVER['SCRIPT_FILENAME'];
echo 
'';

https://10.1.1.1/tets.php/123

QuotePATH_INFO /123
SCRIPT_FILENAME /var/www/html/webmail/public_html/tets.php

if I use try_files then:
the same URL https://10.1.1.1/tets.php/123 give me
Quote404 Not Found

and https://10.1.1.1/tets.php give me
QuotePATH_INFO empty
SCRIPT_FILENAME /var/www/html/webmail/public_html/tets.php
#84
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 28, 2025, 11:52:50 AM
looks like you have the same problem.
Try comment or remove 'try-files'

 
Quote# try_files $uri =404;
#85
General Discussion / Re: Im confused from updating ...
Last post by dea75 - October 28, 2025, 06:31:04 AM
I've the same problem... now share my nginx conf (works fine on 1.6.x):

Any idea ?

*************************
        root /var/www/html/public_html;
        index index.php;

        location / {
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }

        location ~ ^/(README.md|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
                deny all;
        }

        location ~ ^/(config|temp|logs|SQL|bin)/ {
                deny all;
        }

        location ~ /\. {
                deny all;
                access_log off;
                log_not_found off;
        }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_param PATH_INFO $fastcgi_path_info;
                include fastcgi_params;
        }
*************************
#86
Release Discussion / SMTP Error (550) suspended
Last post by Gede Adi - October 28, 2025, 03:25:18 AM
hello , good afternoon how to fixed this ? ( SMTP Error (550): Failed to add recipient " admit.com " (Outgoing mail from "myemail.com" has been suspended.). please let me know , thank you .
#87
Issues & Bugs / e mail time out
Last post by dixoneec - October 27, 2025, 02:07:53 PM
I time out of my emails and have to sign back in after 5 miutes. is there a way to change this?
#88
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 27, 2025, 12:57:35 PM
But it was not the end ))))

Still have problem with "try_files" and now its problem with new mail composer - can't  switch to HTML editor and with one of calendar plugins:
Quote2025/10/27 23:47:54 [error] 230452#230452: *240 open() "/var/www/html/webmail/public_html404" failed (2: No such file or directory), client: 192.168.6.210, server: mail, request: "GET /static.php/program/js/publickey.js?s=1761116479 HTTP/2.0", host: "10.1.1.1", referrer: "https://10.1.1.1/?_task=mail&_action=compose&_id=6815834868ffa239d049f"

I remove "try_files" from config and all working fine. So i will search solution to check user request with try_files and not broke my RC publication.


Im back later with solution
#89
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 27, 2025, 12:39:27 PM
Im come back. I find that :

QuoteThe try_files directive changes URI of a request to the one matched on the file system, and subsequent attempt to split the URI into $fastcgi_script_name and $fastcgi_path_info results in empty path info - as there is no path info in the URI after try_files.

So the my solution was backup $fastcgi_path_info and restore after try_files.

    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
       
        set $backup  $fastcgi_path_info;
        try_files $uri = 404;
        fastcgi_param PATH_INFO $backup;


THANK YOU!!!
#90
General Discussion / Re: Im confused from updating ...
Last post by Dmitry42 - October 27, 2025, 11:55:46 AM
Quote from: SKaero on October 26, 2025, 09:45:53 PMI wonder if your $_SERVER['PATH_INFO'] value is invalid or empty. If you create a php file with the following what does it output?
<?php
echo $_SERVER['PATH_INFO'];

I think you are right. Your php script output plank page - nothing. So I will search and read about setup this variable. Thank you!

I'l back later with any news.