Experiencing a syntax error after running the 'vagrant up' command from the vdd directory:

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

/home/nick/Hosts/vdd/Vagrantfile:12: syntax error, unexpected ':', expecting kEND
  config.vm.network :private_network, ip: vdd_config["ip"]
                                         ^
/home/nick/Hosts/vdd/Vagrantfile:27: syntax error, unexpected ':', expecting kEND
...], folder["guest_path"], type: "nfs"
                              ^

Not sure if this is an operator error, or a conflict in the script.

Comments

ericrdb’s picture

Hi nhepner1,

Could you try with a clean clone of vdd? I'm not getting that error.

Alternatively, you might check the config.json. Perhaps missing a closing quote on the IP declaration on line 2?

danylevskyi’s picture

Definitely it's JSON syntax error. You can use http://jsonlint.com/ to check your JSON syntax.

danylevskyi’s picture

Status: Active » Closed (cannot reproduce)
kadimi’s picture

The possible reason is using an unsupported version of Vagrant

Avoid
~$ sudo apt-get install vagrant

Instead, doawnload from https://www.vagrantup.com/downloads and run:
~$ sudo dpkg -i vagrant_blah-_blah.deb