504 Gateway Timeout login Roundcube

504 Gateway Timeout

My users are getting Nginx error ‘504 Gateway Time-out’ when trying to log in to Roundcube.

Analyzing the syslog log at the moment of connection I observe the error ‘[UFW BLOCK] IN=eth0 OUT= MAC=96:00:02:b0:71:b0:d2:74:7f:2e:37:e3:07:00 SRC= DST= LEN=44 TOS=0x00 PREC=0x00 TTL=57 ID=5903 PROTO=TCP SPT=50308 DPT=2484 WINDOW=1024 RES=0x00 SYN URGP=0’

How to fix the problem?

The solution was to disable the ‘carddav’ plugin, as described in this topic