Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.86 KB | None | 0 0
  1. # Cheffile
  2. site "http://community.opscode.com/api/v1"
  3.  
  4. cookbook 'apt'
  5. cookbook 'build-essential'
  6. cookbook 'mysql', '5.5.3'
  7. cookbook 'ruby_build'
  8. cookbook 'nodejs'
  9. cookbook 'rbenv', git: 'https://github.com/aminin/chef-rbenv'
  10. cookbook 'vim'
  11.  
  12. # Vagrantfile
  13. # -*- mode: ruby -*-
  14. # vi: set ft=ruby :
  15.  
  16. VAGRANTFILE_API_VERSION = "2"
  17.  
  18. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  19. # Use Ubuntu 14.04 Trusty Tahr 64-bit as our operating system
  20. config.vm.box = "ubuntu/trusty64"
  21.  
  22. # Configurate the virtual machine to use 2GB of RAM
  23. config.vm.provider :virtualbox do |vb|
  24. vb.customize ["modifyvm", :id, "--memory", "2048"]
  25. end
  26.  
  27. # Forward the Rails server default port to the host
  28. config.vm.network :forwarded_port, guest: 3000, host: 3000
  29.  
  30. # Use Chef Solo to provision our virtual machine
  31. config.vm.provision :chef_solo do |chef|
  32. chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
  33.  
  34. chef.add_recipe "apt"
  35. chef.add_recipe "nodejs"
  36. chef.add_recipe "ruby_build"
  37. chef.add_recipe "rbenv::user"
  38. chef.add_recipe "rbenv::vagrant"
  39. chef.add_recipe "vim"
  40. chef.add_recipe "mysql::server"
  41. chef.add_recipe "mysql::client"
  42.  
  43. # Install Ruby 2.2.1 and Bundler
  44. # Set an empty root password for MySQL to make things simple
  45. chef.json = {
  46. rbenv: {
  47. user_installs: [{
  48. user: 'vagrant',
  49. rubies: ["2.2.1"],
  50. global: "2.2.1",
  51. gems: {
  52. "2.2.1" => [
  53. { name: "bundler" }
  54. ]
  55. }
  56. }]
  57. },
  58. mysql: {
  59. server_root_password: ''
  60. }
  61. }
  62. end
  63. end
  64.  
  65. j@DESKTOP-J5TQ03P MINGW64 ~
  66. $ vagrant plugin list
  67. vagrant-bindfs (0.3.2)
  68. - Version Constraint: 0.3.2
  69. vagrant-librarian-chef-nochef (0.2.0)
  70. vagrant-share (1.1.5, system)
  71. vagrant-vbguest (0.11.0)
  72.  
  73. j@DESKTOP-J5TQ03P MINGW64 ~/dev/ruby/test
  74. $ vagrant up
  75. Bringing machine 'default' up with 'virtualbox' provider...
  76. ==> default: Importing base box 'ubuntu/trusty64'...
  77. ==> default: Matching MAC address for NAT networking...
  78. ==> default: Checking if box 'ubuntu/trusty64' is up to date...
  79. ==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
  80. ==> default: have version '20160519.0.2'. The latest is version '20160601.0.0'. Run
  81. ==> default: `vagrant box update` to update.
  82. ==> default: Setting the name of the VM: test_default_1464890607987_76530
  83. ==> default: Clearing any previously set forwarded ports...
  84. ==> default: Installing Chef cookbooks with Librarian-Chef...
  85. ==> default: Auto-generating node name for Chef...
  86. ==> default: The cookbook path 'C:/Users/j/dev/ruby/test/site-cookbooks' doesn't exist. Ignoring...
  87. ==> default: Clearing any previously set network interfaces...
  88. ==> default: Preparing network interfaces based on configuration...
  89. default: Adapter 1: nat
  90. ==> default: Forwarding ports...
  91. default: 3000 (guest) => 3000 (host) (adapter 1)
  92. default: 22 (guest) => 2222 (host) (adapter 1)
  93. ==> default: Running 'pre-boot' VM customizations...
  94. ==> default: Booting VM...
  95. ==> default: Waiting for machine to boot. This may take a few minutes...
  96. default: SSH address: 127.0.0.1:2222
  97. default: SSH username: vagrant
  98. default: SSH auth method: private key
  99. default: Warning: Remote connection disconnect. Retrying...
  100. default:
  101. default: Vagrant insecure key detected. Vagrant will automatically replace
  102. default: this with a newly generated keypair for better security.
  103. default:
  104. default: Inserting generated public key within guest...
  105. default: Removing insecure key from the guest if it's present...
  106. default: Key inserted! Disconnecting and reconnecting using new SSH key...
  107. ==> default: Machine booted and ready!
  108. GuestAdditions versions on your host (5.0.20) and guest (4.3.36) do not match.
  109. stdin: is not a tty
  110. * Stopping VirtualBox Additions
  111. ...done.
  112. stdin: is not a tty
  113. Reading package lists...
  114. Building dependency tree...
  115. Reading state information...
  116. The following packages were automatically installed and are no longer required:
  117. acl at-spi2-core colord dconf-gsettings-backend dconf-service dkms fakeroot
  118. fontconfig fontconfig-config fonts-dejavu-core gcc gcc-4.8
  119. hicolor-icon-theme libasan0 libasound2 libasound2-data libatk-bridge2.0-0
  120. libatk1.0-0 libatk1.0-data libatomic1 libatspi2.0-0 libavahi-client3
  121. libavahi-common-data libavahi-common3 libc-dev-bin libc6-dev
  122. libcairo-gobject2 libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module
  123. libcanberra0 libcolord1 libcolorhug1 libcups2 libdatrie1 libdconf1
  124. libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libexif12 libfakeroot
  125. libfontconfig1 libfontenc1 libgcc-4.8-dev libgd3 libgdk-pixbuf2.0-0
  126. libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
  127. libgomp1 libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3
  128. libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
  129. libharfbuzz0b libice6 libieee1284-3 libitm1 libjasper1 libjbig0
  130. libjpeg-turbo8 libjpeg8 liblcms2-2 libllvm3.4 libltdl7 libnotify-bin
  131. libnotify4 libogg0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
  132. libpciaccess0 libpixman-1-0 libquadmath0 libsane libsane-common libsm6
  133. libtdb1 libthai-data libthai0 libtiff5 libtsan0 libtxc-dxtn-s2tc0 libv4l-0
  134. libv4lconvert0 libvorbis0a libvorbisfile3 libvpx1 libwayland-client0
  135. libwayland-cursor0 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0
  136. libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1
  137. libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxfont1 libxi6
  138. libxinerama1 libxkbcommon0 libxkbfile1 libxmu6 libxpm4 libxrandr2
  139. libxrender1 libxshmfence1 libxt6 libxtst6 libxxf86vm1 linux-libc-dev
  140. manpages-dev notification-daemon sound-theme-freedesktop x11-common
  141. x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
  142. xserver-xorg-core
  143. Use 'apt-get autoremove' to remove them.
  144. The following packages will be REMOVED:
  145. virtualbox-guest-dkms* virtualbox-guest-utils* virtualbox-guest-x11*
  146. 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
  147. After this operation, 12.1 MB disk space will be freed.
  148. (Reading database ... 62991 files and directories currently installed.)
  149. Removing virtualbox-guest-dkms (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  150.  
  151. -------- Uninstall Beginning --------
  152. Module: virtualbox-guest
  153. Version: 4.3.36
  154. Kernel: 3.13.0-86-generic (x86_64)
  155. -------------------------------------
  156.  
  157. Status: Before uninstall, this module version was ACTIVE on this kernel.
  158.  
  159. vboxguest.ko:
  160. - Uninstallation
  161. - Deleting from: /lib/modules/3.13.0-86-generic/updates/dkms/
  162. - Original module
  163. - No original module was found for this module on this kernel.
  164. - Use the dkms install command to reinstall any previous module version.
  165.  
  166.  
  167. vboxsf.ko:
  168. - Uninstallation
  169. - Deleting from: /lib/modules/3.13.0-86-generic/updates/dkms/
  170. - Original module
  171. - No original module was found for this module on this kernel.
  172. - Use the dkms install command to reinstall any previous module version.
  173.  
  174.  
  175. vboxvideo.ko:
  176. - Uninstallation
  177. - Deleting from: /lib/modules/3.13.0-86-generic/updates/dkms/
  178. - Original module
  179. - No original module was found for this module on this kernel.
  180. - Use the dkms install command to reinstall any previous module version.
  181.  
  182. depmod....
  183.  
  184. DKMS: uninstall completed.
  185.  
  186. ------------------------------
  187. Deleting module version: 4.3.36
  188. completely from the DKMS tree.
  189. ------------------------------
  190. Done.
  191. Removing virtualbox-guest-x11 (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  192. Purging configuration files for virtualbox-guest-x11 (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  193. Removing virtualbox-guest-utils (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  194. Purging configuration files for virtualbox-guest-utils (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1) ...
  195. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  196. Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
  197. stdin: is not a tty
  198. Reading package lists...
  199. Building dependency tree...
  200. Reading state information...
  201. dkms is already the newest version.
  202. dkms set to manually installed.
  203. linux-headers-3.13.0-86-generic is already the newest version.
  204. linux-headers-3.13.0-86-generic set to manually installed.
  205. The following packages were automatically installed and are no longer required:
  206. acl at-spi2-core colord dconf-gsettings-backend dconf-service fontconfig
  207. fontconfig-config fonts-dejavu-core hicolor-icon-theme libasound2
  208. libasound2-data libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0
  209. libavahi-client3 libavahi-common-data libavahi-common3 libcairo-gobject2
  210. libcairo2 libcanberra-gtk3-0 libcanberra-gtk3-module libcanberra0 libcolord1
  211. libcolorhug1 libcups2 libdatrie1 libdconf1 libdrm-intel1 libdrm-nouveau2
  212. libdrm-radeon1 libexif12 libfontconfig1 libfontenc1 libgd3
  213. libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx
  214. libglapi-mesa libgphoto2-6 libgphoto2-l10n libgphoto2-port10 libgraphite2-3
  215. libgtk-3-0 libgtk-3-bin libgtk-3-common libgudev-1.0-0 libgusb2
  216. libharfbuzz0b libice6 libieee1284-3 libjasper1 libjbig0 libjpeg-turbo8
  217. libjpeg8 liblcms2-2 libllvm3.4 libltdl7 libnotify-bin libnotify4 libogg0
  218. libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0
  219. libpixman-1-0 libsane libsane-common libsm6 libtdb1 libthai-data libthai0
  220. libtiff5 libtxc-dxtn-s2tc0 libv4l-0 libv4lconvert0 libvorbis0a
  221. libvorbisfile3 libvpx1 libwayland-client0 libwayland-cursor0 libx11-xcb1
  222. libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  223. libxcb-render0 libxcb-shm0 libxcb-sync1 libxcomposite1 libxcursor1
  224. libxdamage1 libxfixes3 libxfont1 libxi6 libxinerama1 libxkbcommon0
  225. libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6
  226. libxtst6 libxxf86vm1 notification-daemon sound-theme-freedesktop x11-common
  227. x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xserver-common
  228. xserver-xorg-core
  229. Use 'apt-get autoremove' to remove them.
  230. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  231. Copy iso file C:Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
  232. stdin: is not a tty
  233. mount: block device /tmp/VBoxGuestAdditions.iso is write-protected, mounting read-only
  234. Installing Virtualbox Guest Additions 5.0.20 - guest version is 4.3.36
  235. stdin: is not a tty
  236. Verifying archive integrity... All good.
  237. Uncompressing VirtualBox 5.0.20 Guest Additions for Linux............
  238. VirtualBox Guest Additions installer
  239. Copying additional installer modules ...
  240. Installing additional modules ...
  241. Removing existing VirtualBox DKMS kernel modules ...done.
  242. Removing existing VirtualBox non-DKMS kernel modules ...done.
  243. Building the VirtualBox Guest Additions kernel modules ...done.
  244. Doing non-kernel setup of the Guest Additions ...done.
  245. Starting the VirtualBox Guest AdditionsInstalling the Window System drivers
  246. Could not find the X.Org or XFree86 Window System, skipping.
  247. ...done.
  248. stdin: is not a tty
  249. ==> default: Checking for guest additions in VM...
  250. ==> default: Mounting shared folders...
  251. default: /vagrant => C:/Users/j/dev/ruby/test
  252. default: /tmp/vagrant-chef/c27f755861b699cfdd06b09fc9106dd7/cookbooks => C:/Users/j/dev/ruby/test/cookbooks
  253. ==> default: Running provisioner: chef_solo...
  254. default: Installing Chef (latest)...
  255. ==> default: Generating chef JSON and uploading...
  256. ==> default: Running chef-solo...
  257. ==> default: stdin: is not a tty
  258. ==> default: [2016-06-02T18:05:53+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/vagrant-chef/c27f755861b699cfdd06b09fc9106dd7
  259. ==> default: One version per cookbook
  260. ==> default: [2016-06-02T18:05:53+00:00] INFO: Forking chef instance to converge...
  261. ==> default: Starting Chef Client, version 12.11.17
  262. ==> default: [2016-06-02T18:05:53+00:00] INFO: *** Chef 12.11.17 ***
  263. ==> default: [2016-06-02T18:05:53+00:00] INFO: Platform: x86_64-linux
  264. ==> default: [2016-06-02T18:05:53+00:00] INFO: Chef-client pid: 6071
  265. ==> default: [2016-06-02T18:05:54+00:00] INFO: GET /organizations/chef/nodes/vagrant-f3082290
  266. ==> default: [2016-06-02T18:05:54+00:00] INFO: #<ChefZero::RestErrorResponse: 404: Object not found: chefzero://localhost:8889/nodes/vagrant-f3082290>
  267. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:91:in `rescue in get_data'
  268. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:83:in `get_data'
  269. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/endpoints/rest_object_endpoint.rb:18:in `get'
  270. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:62:in `call'
  271. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_router.rb:24:in `call'
  272. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:664:in `block in app'
  273. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:336:in `call'
  274. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:336:in `handle_socketless_request'
  275. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/socketless_server_map.rb:87:in `request'
  276. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/socketless_server_map.rb:33:in `request'
  277. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http/socketless_chef_zero_client.rb:154:in `request'
  278. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:305:in `block in send_http_request'
  279. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:336:in `block in retrying_http_errors'
  280. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:334:in `loop'
  281. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:334:in `retrying_http_errors'
  282. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:299:in `send_http_request'
  283. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:144:in `request'
  284. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:111:in `get'
  285. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:604:in `load'
  286. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:588:in `find_or_create'
  287. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/policy_builder/dynamic.rb:72:in `load_node'
  288. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:465:in `load_node'
  289. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:267:in `run'
  290. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:286:in `block in fork_chef_client'
  291. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork'
  292. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork_chef_client'
  293. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:239:in `block in run_chef_client'
  294. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  295. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:227:in `run_chef_client'
  296. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:456:in `sleep_then_run_chef_client'
  297. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:443:in `block in interval_run_chef_client'
  298. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `loop'
  299. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `interval_run_chef_client'
  300. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:426:in `run_application'
  301. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:59:in `run'
  302. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/solo.rb:217:in `run'
  303. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/bin/chef-solo:25:in `<top (required)>'
  304. ==> default: /usr/bin/chef-solo:52:in `load'
  305. ==> default: /usr/bin/chef-solo:52:in `<main>'
  306. ==> default: [2016-06-02T18:05:54+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/vagrant-f3082290
  307. ==> default: [2016-06-02T18:05:54+00:00] INFO: POST /organizations/chef/nodes
  308. ==> default: --- POST BODY ---
  309. ==> default: {"name":"vagrant-f3082290","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":[]}
  310. ==> default: --- END POST BODY ---
  311. ==> default: [2016-06-02T18:05:54+00:00] INFO: #<ChefZero::RestErrorResponse: 404: Parent not found: chefzero://localhost:8889/nodes>
  312. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:187:in `rescue in create_data'
  313. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:181:in `create_data'
  314. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/endpoints/rest_list_endpoint.rb:31:in `post'
  315. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/endpoints/nodes_endpoint.rb:24:in `post'
  316. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_base.rb:62:in `call'
  317. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/rest_router.rb:24:in `call'
  318. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:664:in `block in app'
  319. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:336:in `call'
  320. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/server.rb:336:in `handle_socketless_request'
  321. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/socketless_server_map.rb:87:in `request'
  322. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.6.2/lib/chef_zero/socketless_server_map.rb:33:in `request'
  323. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http/socketless_chef_zero_client.rb:154:in `request'
  324. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:305:in `block in send_http_request'
  325. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:336:in `block in retrying_http_errors'
  326. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:334:in `loop'
  327. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:334:in `retrying_http_errors'
  328. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:299:in `send_http_request'
  329. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:144:in `request'
  330. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:127:in `post'
  331. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:639:in `create'
  332. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:592:in `rescue in find_or_create'
  333. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:588:in `find_or_create'
  334. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/policy_builder/dynamic.rb:72:in `load_node'
  335. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:465:in `load_node'
  336. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:267:in `run'
  337. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:286:in `block in fork_chef_client'
  338. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork'
  339. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork_chef_client'
  340. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:239:in `block in run_chef_client'
  341. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  342. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:227:in `run_chef_client'
  343. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:456:in `sleep_then_run_chef_client'
  344. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:443:in `block in interval_run_chef_client'
  345. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `loop'
  346. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `interval_run_chef_client'
  347. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:426:in `run_application'
  348. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:59:in `run'
  349. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/solo.rb:217:in `run'
  350. ==> default: /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/bin/chef-solo:25:in `<top (required)>'
  351. ==> default: /usr/bin/chef-solo:52:in `load'
  352. ==> default: /usr/bin/chef-solo:52:in `<main>'
  353. ==> default: [2016-06-02T18:05:54+00:00] INFO: HTTP Request Returned 404 Not Found: Parent not found: chefzero://localhost:8889/nodes
  354. ==> default: ================================================================================
  355. ==> default: Chef encountered an error attempting to load the node data for "vagrant-f3082290"
  356. ==> default: ================================================================================
  357. ==> default: Resource Not Found:
  358. ==> default: -------------------
  359. ==> default: The server returned a HTTP 404. This usually indicates that your chef_server_url is incorrect.
  360. ==> default: Relevant Config Settings:
  361. ==> default: -------------------------
  362. ==> default: chef_server_url "chefzero://localhost:8889"
  363. ==> default: Platform:
  364. ==> default: ---------
  365. ==> default: x86_64-linux
  366. ==> default: Running handlers:
  367. ==> default: [2016-06-02T18:05:54+00:00] ERROR: Running exception handlers
  368. ==> default: Running handlers complete
  369. ==> default: [2016-06-02T18:05:54+00:00] ERROR: Exception handlers complete
  370. ==> default: Chef Client failed. 0 resources updated in 01 seconds
  371. ==> default: [2016-06-02T18:05:54+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
  372. ==> default: [2016-06-02T18:05:54+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
  373. ==> default: [2016-06-02T18:05:54+00:00] ERROR: 404 "Not Found"
  374. ==> default: [2016-06-02T18:05:55+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
  375. Chef never successfully completed! Any errors should be visible in the
  376. output above. Please fix your recipes so that they properly complete.
  377.  
  378. vagrant@vagrant-ubuntu-trusty-64:~$ sudo cat /var/chef/cache/chef-stacktrace.out
  379. Generated at 2016-06-02 18:05:54 +0000
  380. Net::HTTPServerException: 404 "Not Found"
  381. /opt/chef/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in `error!'
  382. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:146:in `request'
  383. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/http.rb:127:in `post'
  384. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:639:in `create'
  385. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:592:in `rescue in find_or_create'
  386. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/node.rb:588:in `find_or_create'
  387. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/policy_builder/dynamic.rb:72:in `load_node'
  388. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:465:in `load_node'
  389. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/client.rb:267:in `run'
  390. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:286:in `block in fork_chef_client'
  391. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork'
  392. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:274:in `fork_chef_client'
  393. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:239:in `block in run_chef_client'
  394. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  395. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:227:in `run_chef_client'
  396. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:456:in `sleep_then_run_chef_client'
  397. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:443:in `block in interval_run_chef_client'
  398. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `loop'
  399. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:442:in `interval_run_chef_client'
  400. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/client.rb:426:in `run_application'
  401. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application.rb:59:in `run'
  402. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/lib/chef/application/solo.rb:217:in `run'
  403. /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.11.17/bin/chef-solo:25:in `<top (required)>'
  404. /usr/bin/chef-solo:52:in `load'
  405. /usr/bin/chef-solo:52:in `<main>'vagrant@vagrant-ubuntu-trusty-64:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement