Content
[solved] no "Default Views" under Work Packages
Added by Gustav Gans about 6 years ago
Hello,
one user from our up to date OP 8 (on Debian 9.6) installation have no "Default Views" under Work Packages. If she klick "Save as..", enter a name and klick "Save", she get "An internal error has occured". This last problem have every user. The production.log say:
E, [2018-11-19T11:34:19.940612 #1141] ERROR -- : Grape rescuing from error: API::Errors::InternalError
Original error: #<NoMethodError: undefined method `highlighted_attributes=' for #<Query:0x00005564a7a2cea0>
Did you mean? highlighted_attributes>
Stacktrace:
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activemodel-5.1.6/lib/active_model/attribute_methods.rb:432:in `method_missing'
/opt/openproject/app/models/query/highlighting.rb:55:in `valid_highlighting_subset!'
/opt/openproject/app/models/query/highlighting.rb:36:in `valid_subset!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/relation/delegation.rb:39:in `each'
/opt/openproject/lib/api/v3/queries/query_collection_representer.rb:45:in `block in <class:QueryCollectionRepresenter>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/declarative-option-0.1.0/lib/declarative/option.rb:24:in `instance_exec'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/declarative-option-0.1.0/lib/declarative/option.rb:24:in `block in lambda_for_proc'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/binding.rb:46:in `evaluate_option'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/serializer.rb:3:in `block in <module:Representable>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/pipeline.rb:18:in `evaluate'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/pipeline.rb:10:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/pipeline.rb:9:in `each'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/pipeline.rb:9:in `inject'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/pipeline.rb:9:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/binding.rb:32:in `compile_fragment'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable.rb:53:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable.rb:51:in `each'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable.rb:51:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable.rb:70:in `representable_map!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable.rb:45:in `create_representation_with'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/hash.rb:34:in `to_hash'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/roar-1.1.0/lib/roar/json/hal.rb:58:in `to_hash'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/representable-3.0.4/lib/representable/json.rb:44:in `to_json'
/opt/openproject/lib/api/root.rb:46:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/formatter.rb:45:in `block (2 levels) in build_formatted_response'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/formatter.rb:45:in `collect'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/formatter.rb:45:in `block in build_formatted_response'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/formatter.rb:44:in `build_formatted_response'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/formatter.rb:28:in `after'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/base.rb:34:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/base.rb:31:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/error.rb:38:in `block in call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/error.rb:37:in `catch'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/error.rb:37:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/middleware/base.rb:24:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:227:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:221:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router/route.rb:72:in `exec'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:121:in `process_route'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:74:in `block in identity'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:93:in `transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:72:in `identity'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:57:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:137:in `with_optimization'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/router.rb:56:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/api.rb:119:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/api.rb:45:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/api.rb:40:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/mapper.rb:46:in `serve'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:50:in `block in serve'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:in `each'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/journey/router.rb:33:in `serve'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/routing/route_set.rb:844:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/strategy.rb:189:in `call!'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/strategy.rb:167:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/omniauth-40c6f5f751d2/lib/omniauth/builder.rb:63:in `call'
/opt/openproject/app/middleware/reset_current_user.rb:47:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/tempfile_reaper.rb:15:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-attack-5.2.0/lib/rack/attack.rb:172:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/etag.rb:25:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/deflater.rb:34:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/conditional_get.rb:25:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/head.rb:12:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:232:in `context'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/session/abstract/id.rb:226:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/cookies.rb:613:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:97:in `run_callbacks'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/callbacks.rb:24:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:36:in `call_app'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:69:in `block in tagged'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:26:in `tagged'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/tagged_logging.rb:69:in `tagged'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/rack/logger.rb:24:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/request_id.rb:25:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/method_override.rb:22:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/runtime.rb:22:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/executor.rb:12:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/static.rb:125:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/sendfile.rb:111:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_dispatch/middleware/ssl.rb:68:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/secure_headers-5.0.5/lib/secure_headers/middleware.rb:13:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/engine.rb:522:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `public_send'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/railtie.rb:185:in `method_missing'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-protection-2.0.1/lib/rack/protection/frame_options.rb:31:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-protection-2.0.1/lib/rack/protection/json_csrf.rb:26:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:68:in `block in call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `each'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rack-2.0.5/lib/rack/urlmap.rb:53:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:606:in `process_client'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer.rb:92:in `process_client'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer.rb:52:in `process_client'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:701:in `worker_loop'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:549:in `spawn_missing_workers'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:142:in `start'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.5.0/bin/unicorn:23:in `load'
/opt/openproject/vendor/bundle/ruby/2.5.0/bin/unicorn:23:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `load'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli/exec.rb:27:in `run'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli.rb:360:in `exec'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli.rb:20:in `dispatch'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/cli.rb:10:in `start'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/exe/bundle:30:in `block in <top (required)>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/bundler-1.15.2/exe/bundle:22:in `<top (required)>'
/opt/openproject/bin/bundle:3:in `load'
/opt/openproject/bin/bundle:3:in `<main>'
Any ideas? Bug? I have not update the machine and the last OP upgrade was few weeks back. Just reboot the server last saturday.
Replies (1)
Ah, a openproject configure solve this problem.