Author Topic: Roundcube login Connection Error (Failed to reach the server)!  (Read 7208 times)

Offline skid812

  • Newbie
  • *
  • Posts: 3
Roundcube login Connection Error (Failed to reach the server)!
« on: October 08, 2020, 09:45:11 AM »
I have upgraded to Roundcube 1.4.9 on debian 10 buster Postfix/Dovecot . Now when I login into Roundcube i get Connection Error (Failed to reach the server)! .
Dovecot error log shows
Oct  8 08:10:26 server dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=127.0.0.1, lip=127.0.1.1, mpid=20542, TLS, session=<l1c8jiixMqd/AAAB>
Oct  8 08:10:26 server dovecot: imap(user)<20542><l1c8jiixMqd/AAAB>: Logged out in=29 out=517 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct  8 08:10:26 server dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=127.0.0.1, lip=127.0.1.1, mpid=20543, TLS, session=<cZ1AjiixNKd/AAAB>
Oct  8 08:10:27 server dovecot: imap(user)<20543><cZ1AjiixNKd/AAAB>: Logged out in=44 out=5776 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0

trying to find out if roundcube is logging itself off or if its another issue.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Roundcube login Connection Error (Failed to reach the server)!
« Reply #1 on: October 09, 2020, 03:23:49 AM »
that does not look unusual check the roundcube error log and may be enable imap_debug in your roundcube config and check that log.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline skid812

  • Newbie
  • *
  • Posts: 3
Re: Roundcube login Connection Error (Failed to reach the server)!
« Reply #2 on: October 09, 2020, 09:23:43 AM »
OK here is the log file when i try to login to roundcube after i login i get a little redish colored box in the lower right corner of my screen that says  Connection Error (Failed to reach the server)! and every time i click on a folder I get the same message other than that there are no emails displayed and i know the Inbox has emails in it because when i open Thunderbird they are there. any help would be appreciated


Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: client in: AUTH#01124#011PLAIN#011service=imap#011secured=tls#011session=5LOgvTyxsNp/AAAB#011lip=127.0.1.1#011rip=127.0.0.1#011lport=993#011rport=55984#011local_name=skwls.com#011ssl_cipher=TLS_AES_256_GCM_SHA384#011ssl_cipher_bits=256#011ssl_pfs=KxANY#011ssl_protocol=TLSv1.3#011resp=AHNraWQ4MTIAUyRGMWF6NjczMSth (previous base64 data may contain sensitive data)
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: client passdb out: OK#01124#011user=skid812
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: master in: REQUEST#0111839464449#01112743#01124#011a2e810b81c96f45d561bd37b80cda4cc#011session_pid=13333#011request_auth_token
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: ldap(skid812,127.0.0.1,<5LOgvTyxsNp/AAAB>): user search: base=ou=People,dc=skwls,dc=com scope=subtree filter=(&(objectClass=posixAccount)(uid=skid812)) fields=homeDirectory,uidNumber,gidNumber
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: ldap(skid812,127.0.0.1,<5LOgvTyxsNp/AAAB>): result: gidNumber=60001 homeDirectory=/home/skid812 uidNumber=1003; homeDirectory,uidNumber,gidNumber unused
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: master userdb out: USER#0111839464449#011skid812#011home=/home/skid812#011uid=1003#011gid=60001#011auth_token=ecea465385f75a48dcb93e5f9e0c0c5735c15842
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Login: user=<skid812>, method=PLAIN, rip=127.0.0.1, lip=127.0.1.1, mpid=13333, TLS, session=<5LOgvTyxsNp/AAAB>
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13333><5LOgvTyxsNp/AAAB>: Debug: Effective uid=1003, gid=60001, home=/home/skid812
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13333><5LOgvTyxsNp/AAAB>: Debug: fs: root=/home/skid812/mail, index=, indexpvt=, control=, inbox=/home/skid812/mail/skid812, alt=
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13333><5LOgvTyxsNp/AAAB>: Logged out in=29 out=517 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL alert: close notify
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x10, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: before SSL initialization
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read client hello
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write server hello
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write change cipher spec
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write encrypted extensions
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write certificate
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 write server certificate verify
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write finished
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=-1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: TLSv1.3 early data
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS read finished
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x20, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2001, ret=1: SSLv3/TLS write session ticket
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL: where=0x2002, ret=1: SSL negotiation finished successfully
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: client in: AUTH#01125#011PLAIN#011service=imap#011secured=tls#011session=Oj2kvTyxstp/AAAB#011lip=127.0.1.1#011rip=127.0.0.1#011lport=993#011rport=55986#011local_name=skwls.com#011ssl_cipher=TLS_AES_256_GCM_SHA384#011ssl_cipher_bits=256#011ssl_pfs=KxANY#011ssl_protocol=TLSv1.3#011resp=AHNraWQ4MTIAUyRGMWF6NjczMSth (previous base64 data may contain sensitive data)
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: client passdb out: OK#01125#011user=skid812
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: master in: REQUEST#0111531969537#01112743#01125#011a2e810b81c96f45d561bd37b80cda4cc#011session_pid=13334#011request_auth_token
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: ldap(skid812,127.0.0.1,<Oj2kvTyxstp/AAAB>): user search: base=ou=People,dc=skwls,dc=com scope=subtree filter=(&(objectClass=posixAccount)(uid=skid812)) fields=homeDirectory,uidNumber,gidNumber
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: ldap(skid812,127.0.0.1,<Oj2kvTyxstp/AAAB>): result: gidNumber=60001 homeDirectory=/home/skid812 uidNumber=1003; homeDirectory,uidNumber,gidNumber unused
Oct  9 08:15:21 skwlsrv0 dovecot: auth: Debug: master userdb out: USER#0111531969537#011skid812#011home=/home/skid812#011uid=1003#011gid=60001#011auth_token=d3240bdd8765db2887015c35bdce135f0772a84d
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Login: user=<skid812>, method=PLAIN, rip=127.0.0.1, lip=127.0.1.1, mpid=13334, TLS, session=<Oj2kvTyxstp/AAAB>
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13334><Oj2kvTyxstp/AAAB>: Debug: Effective uid=1003, gid=60001, home=/home/skid812
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13334><Oj2kvTyxstp/AAAB>: Debug: fs: root=/home/skid812/mail, index=, indexpvt=, control=, inbox=/home/skid812/mail/skid812, alt=
Oct  9 08:15:21 skwlsrv0 dovecot: imap(skid812)<13334><Oj2kvTyxstp/AAAB>: Logged out in=44 out=5788 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Oct  9 08:15:21 skwlsrv0 dovecot: imap-login: Debug: SSL alert: close notify



Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Roundcube login Connection Error (Failed to reach the server)!
« Reply #3 on: October 09, 2020, 11:58:22 AM »
wait. so you can login to roundcube just fine, after you login you see your inbox but then you get the error?

check for JS errors in your browser console or connection errors in the network tab. I think the "Failed to reach the server" message might actually be about an AJAX request failing to your HTTP server not about connection to your IMAP server.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline skid812

  • Newbie
  • *
  • Posts: 3
Re: Roundcube login Connection Error (Failed to reach the server)!
« Reply #4 on: October 09, 2020, 02:19:11 PM »
Thank  you for your help. It pointed me in the right direction and now it is fixed.
It was Content Security Policy directive typo