These are chat archives for locomotivecms/v3

21st
Jan 2016
Demitry Toumilovich
@DemitryT
Jan 21 2016 17:29

hey @did thanks for the help so far. I upgraded to wagon 2 and can't authenticate with "wagon auth". My deploy.yml file is up to date, but not sure what it's trying to request and why it's failing here:

"/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:36:in `do_request': error (Locomotive::Coal::UnknownResourceError)"

Any ideas?

Didier Lafforgue
@did
Jan 21 2016 17:29
you’re welcome @DemitryT
what are your server logs?
Demitry Toumilovich
@DemitryT
Jan 21 2016 17:31
Locomotive Sign in/up

/Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:36:in `do_request': error (Locomotive::Coal::UnknownResourceError)
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:11:in `post'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/token.rb:9:in `get'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/client.rb:17:in `token'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/client.rb:88:in `block in connection'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:92:in `call'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:92:in `_token'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:51:in `_do_request'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:24:in `do_request'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/concerns/request.rb:7:in `get'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/locomotivecms_coal-1.0.0/lib/locomotive/coal/resources/my_account.rb:9:in `get'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon/commands/authenticate_command.rb:58:in `my_account'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon/commands/authenticate_command.rb:26:in `fetch_api_key'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon/commands/authenticate_command.rb:16:in `authenticate'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon/commands/authenticate_command.rb:12:in `authenticate'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon.rb:18:in `authenticate'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/lib/locomotive/wagon/cli.rb:191:in `auth'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bundler/gems/wagon-3e7a89cd2275/bin/wagon:12:in `<top (required)>'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bin/wagon:23:in `load'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bin/wagon:23:in `<main>'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bin/ruby_executable_hooks:15:in `eval'
    from /Users/demitryt/.rvm/gems/ruby-2.2.3@savedo-cms-wagon/bin/ruby_executable_hooks:15:in `<main>'
Didier Lafforgue
@did
Jan 21 2016 17:32
thanks but what do you have on the server side (Engine)?
Demitry Toumilovich
@DemitryT
Jan 21 2016 17:33
ah 1 sec
Started POST "/locomotive/api/v3/tokens.json" for ::1 at 2016-01-21 18:38:16 +0100
[LocomotiveCMS] [fetch site] host = localhost / site_handle = nil
MONGODB | localhost:27017 | savedo_cms_development.find | STARTED | {"find"=>"locomotive_sites", "filter"=>{"domains"=>{"$in"=>["localhost"]}}, "singleBatch"=>true}
MONGODB | localhost:27017 | savedo_cms_development.find | SUCCEEDED | 0.001023s
MONGODB | Adding localhost:27017 to the cluster.
MONGODB | localhost:27017 | savedo_cms_development.find | STARTED | {"find"=>"locomotive_pages", "filter"=>{"site_id"=>BSON::ObjectId('5514661e05054a8362000001'), "fullpath.de"=>{"$in"=>["locomotive/api/v3/tokens", "locomotive/api/v3/content_type_template", "locomotive/api/content_type_template/tokens", "locomotive/co...
MONGODB | localhost:27017 | savedo_cms_development.find | SUCCEEDED | 0.000853s
MONGODB | localhost:27017 | savedo_cms_development.find | STARTED | {"find"=>"locomotive_pages", "filter"=>{"site_id"=>BSON::ObjectId('5514661e05054a8362000001'), "fullpath.de"=>"404"}}
MONGODB | localhost:27017 | savedo_cms_development.find | SUCCEEDED | 0.000972s
MONGODB | localhost:27017 | savedo_cms_development.find | STARTED | {"find"=>"locomotive_snippets", "filter"=>{"site_id"=>BSON::ObjectId('5514661e05054a8362000001'), "slug"=>"page_error"}}
Didier Lafforgue
@did
Jan 21 2016 17:37
you’ve got a problem in your Rails routes
the API doesn’t seem to be plugged in
Demitry Toumilovich
@DemitryT
Jan 21 2016 17:38
ahh I see
Yup, that was it. had to update my api route to the right namespace, accidentally renamed "locomotive" to the same custom route we used for the cms
thanks!
Didier Lafforgue
@did
Jan 21 2016 17:43
you’re welcome!