Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger - Update Api #1152

Open
xstable opened this issue Apr 9, 2018 · 0 comments
Open

Swagger - Update Api #1152

xstable opened this issue Apr 9, 2018 · 0 comments

Comments

@xstable
Copy link

xstable commented Apr 9, 2018

I got this message in the Backend if I wan't to open the API-Docs:

You are looking at an outdated version of the api documentation. Please run the rake task `redmine:plugins:hourglass:api_docs` to update or ask an admin to run it for you.

If I go to /plugins at server, and execute: bundle exec rake redmine:plugins:hourglass:api_docs, I got:

 bundle exec rake redmine:plugins:hourglass:api_docs
(in /home/meMyselfAndI/redmine)
/package/host/localhost/ruby-2.3.7/bin/ruby -I/home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib:/home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-support-3.6.0/lib /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/exe/rspec --pattern /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/integration/\*\*/\*_spec.rb -I/home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec --format Rswag::Specs::SwaggerFormatter --order defined
/home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:248:in `resolve_symbol_connection': 'test' database is not configured. Available: ["production"] (ActiveRecord::AdapterNotSpecified)
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:211:in `resolve_connection'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:139:in `resolve'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/connection_adapters/connection_specification.rb:169:in `spec'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/activerecord-4.2.8/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `call'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
        from /package/host/localhost/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
        from /home/meMyselfAndI/redmine/config/environment.rb:14:in `<top (required)>'
        from /home/meMyselfAndI/redmine/test/test_helper.rb:28:in `require'
        from /home/meMyselfAndI/redmine/test/test_helper.rb:28:in `<top (required)>'
        from /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/spec_helper.rb:7:in `require'
        from /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/spec_helper.rb:7:in `<top (required)>'
        from /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/swagger_helper.rb:1:in `require_relative'
        from /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/swagger_helper.rb:1:in `<top (required)>'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rswag-specs-1.5.2/lib/rswag/specs/swagger_formatter.rb:2:in `require'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rswag-specs-1.5.2/lib/rswag/specs/swagger_formatter.rb:2:in `<top (required)>'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters.rb:227:in `require'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters.rb:227:in `rescue in custom_formatter'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters.rb:224:in `custom_formatter'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters.rb:177:in `find_formatter'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/formatters.rb:146:in `add'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:876:in `add_formatter'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:117:in `block in load_formatters_into'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:117:in `each'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:117:in `load_formatters_into'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:23:in `configure'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:99:in `setup'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:86:in `run'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:71:in `run'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:45:in `invoke'
        from /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/exe/rspec:4:in `<main>'
/package/host/localhost/ruby-2.3.7/bin/ruby -I/home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/lib:/home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-support-3.6.0/lib /home/meMyselfAndI/redmine/vendor/bundle/gems/rspec-core-3.6.0/exe/rspec --pattern /home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec/integration/\*\*/\*_spec.rb -I/home/meMyselfAndI/redmine/plugins/redmine_hourglass/spec --format Rswag::Specs::SwaggerFormatter --order defined failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant