If your server is in China, it’s most likely a network issue. Judging by your logs, it seems to be stuck while downloading the gem package. Don’t worry, I’m experiencing the same thing; I haven’t been able to refactor these past few days due to various network problems.
This might be because the national college entrance exams are taking place in China right now, leading to severe network restrictions. I suggest trying again after this period or using a proxy.