Score:0

drush cr behavior

jp flag

Is it normal for the site to become unreachable while running drush cr or this is something need to be fixed?

I have a site running drupal 9 that is becoming unavailable while running drush cr and the nginx webserver throwing 504 timeout error at the same time. if this something wrong I need to troubleshoot, what could cause this while cache rebuild?

cn flag
Welcome to Drupal Answers :) No, that isn't normal. As for what could be wrong, there are dozens if not hundreds of possible causes, you'll need to debug/profile the site in situ. Personally I'd want to fix it, but whether or not _you_ need it to be fixed, depends on whether it's causing you any problems beyond the 504
Eng7 avatar
jp flag
Thanks for the comment, the weird thing is no error logs during this happening, the only thing I can see is the 504 errors, does `drush cr` lock the DB? and this could be the issue
4uk4 avatar
cn flag
A 504 is not so bad when you clear the cache. You can crash a production server if it is under heavy load.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.