vv icon indicating copy to clipboard operation
vv copied to clipboard

Error When Attempting a Deployment

Open leogopal opened this issue 11 years ago • 13 comments

I run vv deployment-create

I follow all the prompts. Run the command to deploy, then the following error graces my terminal.

Leos-MacBook-Pro:vagrant-local leogopal$ vv -v push gfntv-staging
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:

/Users/leogopal/vagrant-local/Vagrantfile:221: syntax error, unexpected keyword_end, expecting end-of-input
;

leogopal avatar Jan 14 '15 13:01 leogopal

I'm getting the same error trying to set up my deployments. Any idea what I'm doing wrong in my configuration?

clreed87 avatar Jan 27 '15 05:01 clreed87

What version are you running? @leogopal @clreed87

This was an issue that was fixed in the most recent versions.

bradp avatar Jan 27 '15 06:01 bradp

1.5.0

leogopal avatar Jan 27 '15 06:01 leogopal

Same here: 1.5.0

vv version 1.5.0

clreed87 avatar Jan 27 '15 13:01 clreed87

Can you send me your Vagrantfile? (with any FTP passwords or hosts edited out)

Thanks.

bradp avatar Jan 27 '15 13:01 bradp

Here you go: Vagrantfile

leogopal avatar Jan 27 '15 13:01 leogopal

@leogopal I dont see an Line 221 in your Vagrantfile, or any deployment setup.

bradp avatar Jan 27 '15 14:01 bradp

Sure you can take a look at mine: Vagrantfile

clreed87 avatar Jan 27 '15 15:01 clreed87

Looks like something is getting caught up.

I'm not seeing "# end-vv-$site-$deployment_name" at the end of the deployment, which should be printed out. It may be conflicting with vagrant-triggers, which I haven't tested much with.

I'll do some testing and trying to figure it out. Thanks for your help.

bradp avatar Jan 27 '15 15:01 bradp

No problem. Thats for taking a look. Let me know if there is any additional testing I can do or anything else I can do to help.

My VVV setup is pretty much straight out of the box, so nothing should be too weird. Just installed VVV and Variable VV, used vv create to create the sites within my www directory, and then used vv deployment-create to test out the deployment feature.

clreed87 avatar Jan 27 '15 16:01 clreed87

I'm getting a similar error:

There is a syntax error in the following Vagrantfile. The syntax error message is reproduced below for convenience:

/Users/evelynrios/Developer/vagrant-local/Vagrantfile:248: syntax error, unexpected keyword_end, expecting end-of-input

I dug into the Vagrant file, and it looks like VV is putting the push config "after" the end of the main script. I deleted the extra end command and the error went away.

evelynriossf avatar Jan 28 '15 20:01 evelynriossf

Yeah, it should be replacing the last "end" in the config, rather than appending to it.

bradp avatar Jan 28 '15 20:01 bradp

Fixed in e570e12b71347118e849a6d4996a09fc6702728f. Will be in the next version deployed later this week.

bradp avatar Jan 29 '15 03:01 bradp