@areyus after yesterday changes I have big problems with foreman:
I get this error in journalctl do you have any idea please ? Failed to start Foreman jobs daemon - worker-1 on sidekiq.
I think its related to the changes which I/(we) make yesterday, do you have any idea how I can solve this @areyus thank you again:
f9293ee9 | /usr/share/foreman/vendor/ruby/2.7.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2023-09-06T11:09:27 [E|app|9e8c232b] Fact aio_agent_version could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [I|app|f9293ee9] Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 0.4ms | Allocations: 97)
2023-09-06T11:09:27 [I|app|f9293ee9] Rendered layout api/v2/layouts/error_layout.json.erb (Duration: 2.0ms | Allocations: 562)
2023-09-06T11:09:27 [I|app|f9293ee9] Completed 500 Internal Server Error in 105ms (Views: 3.7ms | ActiveRecord: 60.6ms | Allocations: 29682)
2023-09-06T11:09:27 [E|app|9e8c232b] Fact facterversion could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact identity::user could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact identity::privileged could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact id could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact processor0 could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact processor1 could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact interfaces could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact fips_enabled could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact ipaddress_Ethernet could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact is_virtual could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact kernelmajversion could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact kernelrelease could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact kernelversion could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact macaddress_Ethernet could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact timezone could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact system_uptime::days could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact system_uptime::hours could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
9e8c232b |
2023-09-06T11:09:27 [E|app|9e8c232b] Fact system_uptime::seconds could not be imported because of PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
I can only guess at this point, but it looks like your DB is in some broken state, probably because you are somehow running on the postgresql 12 database that you tried to import the dump with the problematic indexes to.
What is the output of
systemctl status postgresql@10-main.service
systemctl status postgresql@12-main.service
According to the systemctl man page, enabled-runtime means it is enabled via some sort of dependency.
Glad to hear it somehow works not, although Iām not sure why this chain of actions lead to the desired outcomeā¦
You might want to check a little more on where that dependency for the postgres 10 service comes from and sort that out. Once you are sure you donāt need to postgres 10 anymore and everything works on postgres 12, I suggest getting rid of the postgres 10 installation.
thank you so much for your help I really appreciate it @areyus
it was my mistake I stopped the version 12 after restart the server and I started the 10 manually ( panic ) so I stop version 10 and start version 12 again and then I dont see any errors.
You are absolutely right, so I can easily remove it right ? it doesnt effect version 12 right ?
As mentioned, I donāt know ubuntu very well, but I would assume that should be the case. But I guess that should be easy to google
Those sound more like problems with your hosts. Looks like some hosts are trying to request new certificates despite them already existing. You might want to check that, but this is definetly not related.
Iām pretty sure thatās not even an error. This looks to be a regular step in host creation. I donāt know what it does, but we have that one in our logs, too
2023-09-06T15:42:42 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:42:42 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:42:43 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:42:43 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:42:44 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:42:44 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:42:50 [I|app|] Rails cache backend: File
2023-09-06T15:42:51 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:42:52 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:42:52 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:42:56 [I|app|] Rails cache backend: File
2023-09-06T15:42:57 [I|app|] Rails cache backend: File
2023-09-06T15:42:57 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:42:57 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:42:58 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:42:58 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:42:58 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:42:59 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:43:05 [I|app|] Rails cache backend: File
2023-09-06T15:43:06 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2023-09-06T15:43:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2023-09-06T15:43:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2023-09-06T15:43:11 [I|app|] Rails cache backend: File
2023-09-06T15:43:12 [I|app|] Rails cache backend: File
puppetserver.log
2023-09-06T15:44:30.338+02:00 INFO [qtp2121333850-27055] [puppetserver] Puppet Compiled catalog for test.local in environment production in 0.15 seconds
2023-09-06T15:44:30.349+02:00 WARN [qtp2121333850-27055] [o.e.j.s.HttpChannel] handleException /puppet/v3/catalog/test.local java.io.IOException: Broken pipe
2023-09-06T15:45:27.314+02:00 WARN [qtp2121333850-46406] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: /etc/puppetlabs/puppet/node.rb:447: warning: constant ::TimeoutError is deprecated
Serving cached ENC: execution expired
2023-09-06T15:45:27.470+02:00 INFO [qtp2121333850-46406] [puppetserver] Puppet Compiled catalog for test.internal in environment production in 0.15 seconds
2023-09-06T15:45:28.134+02:00 WARN [qtp2121333850-32377] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: /etc/puppetlabs/puppet/node.rb:447: warning: constant ::TimeoutError is deprecated
Serving cached ENC: execution expired
I dont change anything! maybe you have an ideaā¦ @areyus
when I want restart foreman:
ep 06 15:48:22 test systemd[1]: foreman.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit foreman.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Sep 06 15:48:22 test systemd[1]: foreman.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit foreman.service has entered the 'failed' state with result 'exit-code'.
Sep 06 15:48:22 test systemd[1]: Failed to start Foreman.
-- Subject: A start job for unit foreman.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit foreman.service has finished with a failure.
--
-- The job identifier is 334665 and the job result is failed.
Sep 06 15:48:22 test audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=foreman comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Sep 06 15:48:22 test systemd[1]: Starting Foreman...
-- Subject: A start job for unit foreman.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit foreman.service has begun execution.
--
-- The job identifier is 334932.
Sep 06 15:48:24 test qemu-ga[879]: info: guest-ping called
Sep 06 15:48:27 test foreman[261700]: => Booting Puma
Sep 06 15:48:27 test foreman[261700]: => Rails 6.1.7.4 application starting in production
Sep 06 15:48:27 test foreman[261700]: => Run `bin/rails server --help` for more startup options
I decide yesterday to upgrade from 3.6 to 3.7 because I had the problem again, through the upgrade process I get below error, do you have any idea how can I solve it:
~# foreman-rake db:seed --trace
** Invoke db:seed (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
ActiveRecord::UnknownPrimaryKey: Unknown primary key for table permissions in model Permission.
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:307:in `primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:719:in `association_primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:724:in `join_primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:872:in `join_primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:872:in `join_primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/reflection.rb:1050:in `join_primary_key'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:79:in `next_chain_scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:121:in `block in add_constraints'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:120:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:120:in `each_cons'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:120:in `add_constraints'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:29:in `scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association_scope.rb:7:in `scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association.rb:244:in `association_scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/association.rb:103:in `scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/collection_association.rb:298:in `scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/collection_proxy.rb:930:in `scope'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/associations/collection_proxy.rb:1109:in `where'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:100:in `block (2 levels) in include_permissions_for_role'
/usr/share/foreman/vendor/ruby/2.7.0/gems/audited-5.3.3/lib/audited/auditor.rb:448:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:99:in `block in include_permissions_for_role'
/usr/share/foreman/app/models/role.rb:239:in `ignore_locking'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:98:in `include_permissions_for_role'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:112:in `add_all_permissions_to_role'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:11:in `block in add_all_permissions_to_default_roles'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `block in transaction'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/connection_adapters/abstract/transaction.rb:319:in `block in within_new_transaction'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:26:in `block (2 levels) in synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/connection_adapters/abstract/transaction.rb:317:in `within_new_transaction'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/connection_adapters/abstract/database_statements.rb:320:in `transaction'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activerecord-6.1.7.4/lib/active_record/transactions.rb:209:in `transaction'
/usr/share/foreman/app/registries/foreman/plugin/rbac_support.rb:10:in `add_all_permissions_to_default_roles'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:73:in `block (2 levels) in setup_roles!'
/usr/share/foreman/vendor/ruby/2.7.0/gems/audited-5.3.3/lib/audited/auditor.rb:448:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:59:in `block in setup_roles!'
/usr/share/foreman/vendor/ruby/2.7.0/gems/audited-5.3.3/lib/audited/auditor.rb:448:in `without_auditing'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:58:in `setup_roles!'
/usr/share/foreman/app/registries/foreman/plugin/rbac_registry.rb:46:in `setup!'
/usr/share/foreman/app/registries/foreman/plugin.rb:309:in `finalize_setup!'
/usr/share/foreman/config/initializers/foreman.rb:28:in `block (2 levels) in <top (required)>'
/usr/share/foreman/config/initializers/foreman.rb:27:in `each'
/usr/share/foreman/config/initializers/foreman.rb:27:in `block in <top (required)>'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:51:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/application/finisher.rb:140:in `block in <module:Finisher>'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:32:in `instance_exec'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:32:in `run'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark'
/usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
/usr/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/usr/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
/usr/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/lib/ruby/2.7.0/tsort.rb:347:in `each'
/usr/lib/ruby/2.7.0/tsort.rb:347:in `call'
/usr/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
/usr/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
/usr/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/initializable.rb:60:in `run_initializers'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/application.rb:391:in `initialize!'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/railtie.rb:207:in `public_send'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/railtie.rb:207:in `method_missing'
/usr/share/foreman/config/environment.rb:5:in `<top (required)>'
/usr/share/foreman/vendor/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/usr/share/foreman/vendor/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:332:in `block in require'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/share/foreman/vendor/ruby/2.7.0/gems/activesupport-6.1.7.4/lib/active_support/dependencies.rb:332:in `require'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/application.rb:367:in `require_environment!'
/usr/share/foreman/vendor/ruby/2.7.0/gems/railties-6.1.7.4/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/share/foreman/vendor/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/bin/rake:23:in `load'
/usr/bin/rake:23:in `<main>'
Tasks: TOP => db:seed => db:load_config => environment
General rule of thumb: When your application suddenly stops working, especially when itās probably related to DB problems, upgrading is usually a bad idea. Do you have a backup from before you tried upgrading yesterday?
If so, I would highly recommend restoring that backup and we try to figure out why it stopped working in the first place. If not, this might get ugly.
its not so easy to get that back! I know you are right but I cant go to backup because more than 10 new hosts are connected since yesterday! as I guess its working again
should I restore that or create the permissions_pkey indexā¦ does this table contain also data ?
should I delete the duplicate entries ( primary-key 1,2,3 etc. ) ?