diff --git a/doc/update/5.0-to-5.1.md b/doc/update/5.0-to-5.1.md
index 438bc25672c86495da8930fecdb00ae2343a1392..f9fbeaf787026e9e1f9c13b22147cc92c490d342 100644
--- a/doc/update/5.0-to-5.1.md
+++ b/doc/update/5.0-to-5.1.md
@@ -19,6 +19,7 @@ sudo -u git -H git checkout 5-1-stable
 ### 3. Install libs, migrations etc
 
 ```
+sudo rm tmp/sockets/gitlab.socket
 sudo -u git -H cp config/puma.rb.example config/puma.rb