Okay, I found out even more detail. I checked the permissions in filezilla. Every file has this attributes: adfrw(0644) But the twig files getting generated as this: adfr(0644) And after that, when I'm trying to clear the cache I'm getting 502 bad gateway message. Twig, which generating the cache, m...