Content
You are here:
[Bug] OP8: "An internal error has occured." if i change date.
Added by Gustav Gans about 6 years ago
Hello,
a few days ago i update from 7.4.7 to 8.0. i try to change a date in a project -> task and get a red error: An internal error has occured. In a new project, i can set the start- and endtime. Any ideas?
Its running on Debian 9.5 with MariaDB.
Edit: i think i have a idea: Since the due date was in the past, I could not make any adjustments. I have now bypassed this by setting the due date into the future. So I was able to set the start and end. Nevertheless, this error would not be displayed correctly, a hint as error message would be more than desirable
The log say:
E, [2018-09-24T07:55:28.142896 #5533] ERROR -- : Grape rescuing from error: API::Errors::InternalError
Original error: #<TypeError: expected numeric>
Stacktrace:
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/core_ext/date/calculations.rb:102:in `-'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/core_ext/date/calculations.rb:102:in `minus_with_duration'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:152:in `reschedule_by_delta'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:130:in `reschedule_by_follows'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:96:in `reschedule'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:81:in `block in schedule_following'
/opt/openproject/app/services/work_packages/schedule_dependency.rb:49:in `block in each'
/opt/openproject/app/services/work_packages/schedule_dependency.rb:45:in `each'
/opt/openproject/app/services/work_packages/schedule_dependency.rb:45:in `each'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:80:in `schedule_following'
/opt/openproject/app/services/work_packages/set_schedule_service.rb:47:in `call'
/opt/openproject/app/services/work_packages/update_service.rb:168:in `reschedule'
/opt/openproject/app/services/work_packages/update_service.rb:153:in `reschedule_related'
/opt/openproject/app/services/work_packages/update_service.rb:86:in `update_dependent'
/opt/openproject/app/services/work_packages/update_service.rb:58:in `update'
/opt/openproject/app/services/work_packages/update_service.rb:47:in `block in call'
/opt/openproject/app/services/shared/service_context.rb:39:in `block (3 levels) in in_context'
/opt/openproject/app/models/journal_manager.rb:333:in `with_send_notifications'
/opt/openproject/app/services/shared/service_context.rb:38:in `block (2 levels) in in_context'
/opt/openproject/app/models/user.rb:641:in `execute_as'
/opt/openproject/app/services/shared/service_context.rb:37:in `block in in_context'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
/opt/openproject/vendor/ruby-2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/transactions.rb:210:in `transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/transactional_lock-6948b1d446db/lib/transactional_lock/active_record_patches.rb:12:in `block in transaction'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/transactional_lock-6948b1d446db/lib/transactional_lock/transaction_wrapper.rb:21:in `wrap'
/opt/openproject/vendor/bundle/ruby/2.5.0/bundler/gems/transactional_lock-6948b1d446db/lib/transactional_lock/active_record_patches.rb:11:in `transaction'
/opt/openproject/app/services/shared/service_context.rb:36:in `in_context'
/opt/openproject/app/services/work_packages/update_service.rb:46:in `call'
/opt/openproject/lib/api/v3/work_packages/work_packages_api.rb:98:in `block (3 levels) in <class:WorkPackagesAPI>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:57:in `call'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:57:in `block (2 levels) in generate_api_method'
/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/endpoint.rb:56:in `block in generate_api_method'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:262:in `block in run'
/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/endpoint.rb:243:in `run'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/grape-1.1.0/lib/grape/endpoint.rb:313:in `block in build_stack'
/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/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/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/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:38: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:563:in `maintain_worker_count'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:293:in `join'
/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>'