Git Product home page Git Product logo

titan-cookbook's Issues

Remove temp files from supermarket.chef.io

I tried to run this cookbook with Vagrant and got following error:

==> webapp: ================================================================================
==> webapp:   Error Syncing Cookbooks:
==> webapp:   ================================================================================
==> webapp:
==> webapp:   Unexpected Error:
==> webapp:   -----------------
==> webapp:
==> webapp: URI::InvalidURIError: bad URI(is not URI?): chefzero://localhost:8889/file_store/repo/cookbooks/titan/templates/default/#cassandra.yaml.erb#

My Vagrantfile had chef.add_role "titan_role" and titan_role.json was like this:

{
  "name":"w_titan_role",
  "description":"Titan Graph Database",
  "json_class": "Chef::Role",
  "chef_type": "role",
  "default_attributes": {

  },
  "run_list": [
    "recipe[titan]"
  ]
}

Then I run berks show titan and inspected file contents which was downloaded from supermarket.chef.io

C:\Users\Joel\.berkshelf\cookbooks\titan-1.2.6>ls -al templates\default
total 148
-rw-r--r-- 1 Joel Administrators     2 Oct 20 06:28 #cassandra.yaml#
-rw-r--r-- 1 Joel Administrators 31133 Oct 20 06:28 #cassandra.yaml.erb#
drwxr-xr-x 2 Joel Administrators  4096 Oct 20 06:28 .
drwxr-xr-x 3 Joel Administrators     0 Oct 20 06:28 ..
-rw-r--r-- 1 Joel Administrators 32386 Oct 20 06:28 cassandra.yaml.erb
-rw-r--r-- 1 Joel Administrators 32388 Oct 20 06:28 cassandra.yaml.erb~
-rw-r--r-- 1 Joel Administrators 32145 Oct 20 06:28 cassandra.yaml~
-rw-r--r-- 1 Joel Administrators  6433 Oct 20 06:28 rexster-cassandra-es.xml.erb
-rw-r--r-- 1 Joel Administrators  6371 Oct 20 06:28 rexster-cassandra-es.xml.erb~
-rw-r--r-- 1 Joel Administrators   734 Oct 20 06:28 titan-server-cassandra-es.properties.erb
-rw-r--r-- 1 Joel Administrators   482 Oct 20 06:28 titan.upstart.conf.erb

When this cookbook uploaded to supermarket, temp files like #cassandra.yaml# ,it seems , was uploaded together.

For those who got same error, the work around for this is configure your Berksfile to download from github not from supermarket

cookbook 'titan', git: 'https://github.com/bcajes/titan-cookbook.git'

`initialize': undefined method `scope'

⚡ vagrant up --provision
Bringing machine 'titan' up with 'virtualbox' provider...
/Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/env.rb:18:in `initialize': undefined method `scope' for #<Vagrant::UI::Colored:0x00000100b23d78> (NoMethodError)
    from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `new'
    from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:54:in `block in setup'
    from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `tap'
    from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/action.rb:53:in `setup'
    from /Users/c/.vagrant.d/gems/gems/vagrant-berkshelf-1.3.7/lib/berkshelf/vagrant/plugin.rb:15:in `provision'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:42:in `block (2 levels) in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `tap'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:41:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `map'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/runner.rb:40:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:196:in `action_raw'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:173:in `block in action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/environment.rb:434:in `lock'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/machine.rb:161:in `action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'
    from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
    from /Applications/Vagrant/embedded/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.