Primero production setup issue

Thanks for the reply @irlawrence.
When I change my revision to ‘maint_1.6’ and when I again try to deploy then it asks for a password during [ruby-bundle-install] this is how I get
‘Enter your password to install the bundled RubyGems to your system’
Although when I specify the password of the server machine then the installation stalls and after some time I get an error saying ‘Mixlib::ShellOut::CommandTimeOut’.
Please refer the attached screenshot.


Please provide me with some pointers to move ahead.
Also do I need to install anything else except for the ones specified in the following links
(How can I quickly set up Primero) or (primero/cookbook at maint_1.6 · primeroIMS/primero · GitHub)