Content
cronjob not running after upgrade on Ubuntu 16.04 package install
Added by Eirik S about 6 years ago
Hi there.
I have an issue after upgrading from CentOS with bitnami to ubuntu 16.04 (mysql, new server.) package install, I can run the ; openproject run bundle exec rake jobs:workoff manually but cant't find how to set the cronjob correctly. It was not installed, so I need to figure out how to set it manually.
There is also an issue when I run reconfigure: see error from the log , I can login and work as normal in OP, but I suspect this affects the cron?
Any suggestions?
.......
rake aborted!
ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action_controller/metal/strong_parameters.rb:265:in to_h' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/actionpack-5.1.6/lib/action\_controller/metal/strong\_parameters.rb:282:in
to_hash'
/opt/openproject/vendored-plugins/openproject-backlogs/app/seeders/setting_seeder.rb:49:in Hash' /opt/openproject/vendored-plugins/openproject-backlogs/app/seeders/setting\_seeder.rb:49:in
backlogs_configured?'
/opt/openproject/vendored-plugins/openproject-backlogs/app/seeders/setting_seeder.rb:38:in applicable?' /opt/openproject/app/seeders/seeder.rb:32:in
seed!'
/opt/openproject/app/seeders/composite_seeder.rb:41:in block (2 levels) in seed\_data!' /opt/openproject/app/seeders/composite_seeder.rb:39:in
each'
/opt/openproject/app/seeders/composite_seeder.rb:39:in block in seed\_data!' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active\_record/connection\_adapters/abstract/database_statements.rb:233: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/seeders/composite_seeder.rb:30:in seed\_data!' /opt/openproject/app/seeders/seeder.rb:33:in
seed!'
/opt/openproject/app/seeders/root_seeder.rb:56:in block in do\_seed!' /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/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/seeders/root\_seeder.rb:53:in
do_seed!'
/opt/openproject/app/seeders/root_seeder.rb:49:in seed\_data!' /opt/openproject/app/seeders/seeder.rb:33:in
seed!'
/opt/openproject/db/seeds.rb:30:in <top (required)>' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in
load'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in block in load' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active\_support/dependencies.rb:258:in
load_dependency'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in load' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/railties-5.1.6/lib/rails/engine.rb:549:in
load_seed'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:270:in load_seed' /opt/openproject/vendor/bundle/ruby/2.5.0/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:184:in
block (2 levels) in <top (required)>'
/opt/openproject/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27: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
'
Tasks: TOP => db:seed
Replies (1)
Found the issue.
For anyone interested in the answer:
The DATABASE_URL was not set apparently