Getting the dreaded "Stage not set, ..." error, can't get around it.

Skip to first unread message

Faddah Steve Yuetsu Wolf

Oct 5, 2016, 2:02:04 AM10/5/16
to Capistrano
  • Ruby v2.3.1
  • Capistrano v3.6.1
  • Rake / Rails / etc - Rake v.11.3.0
  • Working on Mac OS X 10.12 (Sierra)
  • Deploying to Arch Linux server
  • Please past logs (as completely as possible to a 3rd party pasting service such as

hi all, 

i'm looking for some help. 

i’m trying to deploy to a Wordpress site using Kronda Adair's (of very good instruction & video here —, using the ruby gem Capistrano & wp-cli to deploy a site i have done to the customer’s site.

Kronda’s instruction in the video is really very good, but i think the problem is that when she made the video, it was Capistrano v2.x, and now it is v3.6.1 and a lot has changed with it. With Capistrano v3.6.1 (Rake v11.3.0) while trying to get a simple script to deploy, it keeps giving me the following error, each time: 

"Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined." ... error. and yes, i've all ready gone into the Capfile and at the end put:  Rake::Task[:production].invoke - i still get the same stage setting error.

Any help on how to get this working with wp-cli & Capistrano v3.6.1, please, would be much appreciated.


—  faddah

Lee Hambley

Oct 5, 2016, 2:06:59 AM10/5/16
to Capistrano

Hi Faddah,

You might be better served by whixh is an ansible2 based WordPress+wp-cli deployment tool which formerly used Capistrano and sounds a lot like what you're doing.

(Sent from my Nexus 6, please forgive typos!)

You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web, visit
For more options, visit

Faddah Steve Yuetsu Wolf

Oct 18, 2016, 4:40:22 AM10/18/16
to Capistrano

hi Lee, 

thank you for the response.

so is Capistrano + wp-cli not being really supported any more as a solution for migrating/transferring WordPress sites & their MySQL database?

i'll look at, but i'm hoping it's as simple an (alleged) set-up for migrating/transferring as Capistrano + wp-cli was supposed to be. i say "alleged" because of all the issues i've been having in just trying to make this work. and can anyone still please tell me why i am getting this
Stage not set, please call something such as `cap production deploy`, where production is a stage you have defined.


—  faddah
Reply all
Reply to author
0 new messages