What user are you running them as? Vagrant is not a tty, which could affect those scripts, but I don't think that's the problem. Can you share your complete vagrantfile please? Can you set the chef log-level to debug and see if there's anything interesting in that output?
Best, Seth > On Jan 6, 2015, at 5:23 AM, Mihael Keehl <[email protected]> wrote: > > I'm having problems running 2 lines on my script file via vagrant. > > These commands are: > chef-server-ctl user-create and chef-server-ctl org-create. I tried manually > executing the commands on the terminal and they work. However, when I run it > as a provision to a vagrant box, I get the error message: > > ==> chef: the ffi-yajl and yajl-ruby gems have incompatible C libyajl libs > and should not be loaded in the same Ruby VM > ==> chef: falling back to ffi which might work (or might not, no promises) > ==> chef: ffi-yajl/json_gem is deprecated, these monkeypatches will be > dropped shortly > ==> chef: Response: <html> > ==> chef: <head><title>502 Bad Gateway</title></head> > ==> chef: <body bgcolor="white"> > ==> chef: <center><h1>502 Bad Gateway</h1></center> > ==> chef: <hr><center>ngx_openresty/1.4.3.6</center> > ==> chef: </body> > ==> chef: </html> > ==> chef: ERROR: bad gateway > > Does anybody know how I can get through this? > > > Thanks, > Mihael > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME cryptographic signature
