Author Topic: 504 Gateway Time-out  (Read 1367 times)

Offline James1985

  • Newbie
  • *
  • Posts: 3
504 Gateway Time-out
« on: March 11, 2023, 05:27:47 AM »
I recently upgraded Roundcube and now I get a 504 Gateway Time-out message when I try to login to Roundcube Webmail.

These are the only settings I changed in the Roundcube config.inc.php file:

Code: [Select]
$config['imap_host'] = '127.0.0.1:993';
Code: [Select]
// Required if you're running PHP 5.6 or later
$config['imap_conn_options'] = array (
  'ssl' => array (
    'verify_peer' => true,
        'verify_depth' => 3,
        'catfile' => '/etc/ssl/certs/ca-certificates.crt',
  ),
);

I have no idea how to fix this, so any help would be greatly appreciated.

Thanks

Offline Dmitry42

  • Full Member
  • ***
  • Posts: 232
Re: 504 Gateway Time-out
« Reply #1 on: March 11, 2023, 09:27:51 AM »
May be need: ssl://localhost:993 ?? with prefix SSL

default.conf.inc.php -  full config with examples

Offline James1985

  • Newbie
  • *
  • Posts: 3
Re: 504 Gateway Time-out
« Reply #2 on: March 11, 2023, 01:16:53 PM »
May be need: ssl://localhost:993 ?? with prefix SSL

default.conf.inc.php -  full config with examples

Thanks for taking the time to reply to my post.

So I changed the line of code and it now looks like this:

Code: [Select]
$config['imap_host'] = 'ssl://localhost:993';

Unfortunately, its now saying "Connection to storage server failed".

Do you know what additional problems could be causing this?

Offline James1985

  • Newbie
  • *
  • Posts: 3
Re: 504 Gateway Time-out
« Reply #3 on: March 11, 2023, 05:02:05 PM »
I got it working with the following settings:

Code: [Select]
$config['imap_host'] = 'ssl://127.0.0.1:993';

Code: [Select]
// Required if you're running PHP 5.6 or later
$config['imap_conn_options'] = array (
  'ssl' => array (
    'verify_peer' => true,
        'verify_peer_name' => false,
        'verify_depth' => 3,
        'catfile' => '/etc/letsencrypt/live/mail.myserver.com/cert.pem',
  ),
);

I'm not sure if this is the correct way to do it, but it's working...