Opened 5 years ago
Closed 4 years ago
#1484853 closed Bugs (fixed)
RC hangs when used with SSL while opening various messages
| Reported by: | asg | Owned by: | till |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | IMAP connection | Version: | 0.2.2 |
| Severity: | major | Keywords: | |
| Cc: |
Description
I use RC on an SSL enabled apache2. Many messages do not open. RC hangs while "loading" the message until the php timeout kills the process:
"[05-Mar-2008 12:08:09] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/htdocs/webmail/program/lib/imap.inc on line 168"
I tested the same messages with an unsecured session and everything works fine.
I first thought it would be the problem in #1483910 but the fix does not help here.
While debugging the imap server I found out that the message fetch succeded without any problem.
I can provide more information if needed.
Thanks for looking on this issue.
Change History (8)
comment:1 Changed 5 years ago by till
- Owner set to till
- Status changed from new to assigned
comment:2 Changed 5 years ago by asg
I think the problem is not the commication between rc and the imap server, althoug I use ssl there too. Because changing to an unsecured imap connection does not change a thing.
The only thing that fixes the problem is swapping to http on the apache.
Anyway my configuration is:
ssl://localhost:993
Installed versions:
courier-imap: 4.1.1.20060828-5
apache2: 2.2.3-4+etch4
php5: 5.2.0-8+etch10
mysql: 5.0.32-7etch5
roundcube: 0.1-stable
Plain debian etch packages. The SSL Cert is selfsigned, but besides valid.
If you like I can give an temporary email account on the system by private mail.
comment:3 Changed 5 years ago by patrick
I have three RoundCube 0.1-stable installations (on three vservers) that work flawlessly in this aspect. They are being accessed through https mostly (but also http). Setup is Gentoo Linux, apache-2.2.8, php-5.2.5, mysql-5.0.54. One of the mentioned apaches uses a self-signed (but valid) cert, two use free StartCom? signed certs.
asg, do you see any special CPU/disk/net load during those 30 seconds on the server? Did you try to increase logging? Do you have other web applications running on this apache instance, and are they giving you any trouble? I think we can rule out the imapd here. More likely something wrong with RoundCube/PHP/Apache or something they use.
comment:4 Changed 5 years ago by till
- Resolution set to worksforme
- Status changed from assigned to closed
Seems to work, no feedback.
comment:5 Changed 4 years ago by marrs
- Resolution worksforme deleted
- Status changed from closed to reopened
- Version changed from 0.1-stable to 0.2.2
I setup RC 0.2.2 using IMAP and SSL. After going through the web based installer, I get a timeout when trying to log into the system. After visiting the #roundcube IRC channel where drowe suggested to connect without SSL it worked.
My server is running ubuntu, imap served by dovecot. The dovecot.conf is (edited the user= line):
protocols = imap imaps
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_extra_groups = mail
protocol imap {
}
protocol pop3 {
}
auth default {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = xxxx
}
plugin {
}
The log errors I got in RC are:
[21-May-2009 15:46:06] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/mail/program/lib/imap.inc on line 370 [21-May-2009 16:07:21] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/mail/program/lib/imap.inc on line 236 [21-May-2009 16:14:55] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/mail/program/lib/imap.inc on line 247 [21-May-2009 16:17:57] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /var/www/mail/program/lib/imap.inc on line 247
comment:6 Changed 4 years ago by alec
- Milestone changed from 0.2-alpha to 0.3-stable
Works for me with dovecot and ssl. Create test account for me, write to alec/at/alec.pl, i'll check your server.
comment:7 Changed 4 years ago by marrs
I did solve the issue after more help on IRC. It seems I forgot to prepend ssl:// to the hostname. Now it works just fine. Thanks for the support!
comment:8 Changed 4 years ago by alec
- Resolution set to fixed
- Status changed from reopened to closed
To prevent infinite loops in that case i've added some checks in [aa320ede].

Can you let us know how you configured your imap server.
E.g., is it sslv2:// or sslv3://, or plain "autodetect" ssl://?
And what do you run on your server, etc.? Can you try to switch it to that version? Is your certificate valid and so on?
Most of those imap "hangs" due to a broken handshake. Nothing we can do to fix it, I am thinking this is more a PHP or distribution problem.