Bug #13415
closedRemote execution smart-proxy fails because of lacking dynflow sqlite directory
Description
Hello,
Recently I installed foreman 1.10.1. Whe I tried to run job I got below error.But is working well in foreman 1.9.3
Dynflow console Resume Cancel Id: 18a51f67-51b3-4bf7-b58e-31bad98d61e6 Label: Actions::RemoteExecution::RunHostJob Name: Run df -hp on ol07frm01.lax.com Owner: admin Execution type: Delayed Start at: 2016-01-27 19:01:34 UTC Start before: - Started at: 2016-01-27 19:01:34 UTC Ended at: 2016-01-27 19:01:36 UTC State: stopped Result: error Params: Parent task 100% Complete 100% Output: Failed to initialize command: Dynflow::ExecutionPlan::Steps::Error - Could not use any proxy. Consider configuring remote_execution_global_proxy or remote_execution_fallback_proxy in settings Errors: Could not use any proxy. Consider configuring remote_execution_global_proxy or remote_execution_fallback_proxy in settings
Files
Updated by Dominic Cleal almost 9 years ago
- Project changed from Foreman to Foreman Remote Execution
- Category deleted (
Smart Proxy)
Updated by Marek Hulán almost 9 years ago
- Description updated (diff)
- Status changed from New to Need more information
- Difficulty deleted (
trivial)
A remote execution plugin has been upgraded (0.0.10 -> 0.2.2) but the proxy selection logic hasn't changed between these versions. Do your target hosts have execution flag set on some of their interface? Is that interface assigned to a subnet that has remote execution proxy associated? What features do you see on your smart proxy in web UI (and after refresh)?
Updated by laxman veeturi almost 9 years ago
- File foreman_01.PNG foreman_01.PNG added
- File foreman_02.PNG foreman_02.PNG added
I added the files for remote_execution configuration and error
Please check and help me
[root@ol07frm01 ~]# cat /etc/foreman-proxy/settings.d/dynflow.yml
---
:enabled: true
[root@ol07frm01 ~]# cat /etc/foreman-proxy/settings.d/remote_execution_ssh.yml
---
:enabled: true
:ssh_identity_key_file: /usr/share/foreman-proxy/.ssh/id_rsa_foreman_proxy
:ssh_user: root
I got below error
Action:
Actions::RemoteExecution::RunHostJob
Input:
{"host"=>{"id"=>2, "name"=>"ol07frm01.lax.com"},
"job_category"=>"Commands",
"description"=>"Run df -hP"}
Output:
{}
Exception:
RuntimeError: Could not use any proxy. Consider configuring remote_execution_global_proxy or remote_execution_fallback_proxy in settings
Backtrace:
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.2.2/app/lib/actions/remote_execution/run_host_job.rb:31:in `plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:461:in `block (3 levels) in execute_plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:34:in `plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:460:in `block (2 levels) in execute_plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:277:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:364:in `concurrence'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:459:in `block in execute_plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `block in with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:458:in `execute_plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:260:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/plan_step.rb:54:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/plan_step.rb:53:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:187:in `block (2 levels) in plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:277:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:277:in `switch_flow'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:267:in `with_planning_scope'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:186:in `block in plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:42:in `plan_phase'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan.rb:185:in `plan'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/world.rb:170:in `block in plan_with_caller'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/world.rb:168:in `tap'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/world.rb:168:in `plan_with_caller'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/with_sub_plans.rb:64:in `block in trigger'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/world.rb:139:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/world.rb:139:in `trigger'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/with_sub_plans.rb:64:in `trigger'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.2.2/app/lib/actions/remote_execution/run_hosts_job.rb:33:in `block in create_sub_plans'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `map'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/associations/collection_proxy.rb:89:in `method_missing'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.2.2/app/lib/actions/remote_execution/run_hosts_job.rb:29:in `create_sub_plans'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/with_sub_plans.rb:29:in `initiate'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/with_sub_plans.rb:16:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in `block in assigns'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `tap'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `assigns'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in `match_value'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in `block in match?'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `match?'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in `match'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/with_sub_plans.rb:11:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.2.2/app/lib/actions/remote_execution/run_hosts_job.rb:42:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:30:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:30:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.11/app/lib/actions/middleware/keep_current_user.rb:30:in `block in run'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.11/app/lib/actions/middleware/keep_current_user.rb:53:in `restore_curent_user'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.11/app/lib/actions/middleware/keep_current_user.rb:30:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/progress.rb:30:in `with_progress_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action/progress.rb:16:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:17:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware.rb:30:in `run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/stack.rb:22:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/middleware/world.rb:30:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:505:in `block (2 levels) in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:504:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:504:in `block in execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `block in with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:419:in `with_error_handling'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:499:in `execute_run'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/action.rb:260:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:in `block (2 levels) in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract.rb:155:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract.rb:155:in `with_meta_calculation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in `block in execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:in `open_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in `execute'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/executors/parallel/worker.rb:15:in `block in on_message'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:74:in `block in assigns'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `tap'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matchers/abstract.rb:73:in `assigns'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:56:in `match_value'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:36:in `block in match?'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:35:in `match?'
/opt/theforeman/tfm/root/usr/share/gems/gems/algebrick-0.7.3/lib/algebrick/matching.rb:23:in `match'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/executors/parallel/worker.rb:12:in `on_message'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/context.rb:46:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/executes_context.rb:7:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.9/lib/dynflow/actor.rb:26:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/awaits.rb:15:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:38:in `process_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:31:in `process_envelopes?'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/buffer.rb:20:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/termination.rb:55:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/removes_child.rb:10:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/abstract.rb:25:in `pass'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/behaviour/sets_results.rb:14:in `on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:161:in `process_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:95:in `block in on_envelope'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:118:in `block (2 levels) in schedule_execution'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:62:in `block in synchronize'
/opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/synchronization/mri_lockable_object.rb:62:in `synchronize'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-edge-0.2.0/lib/concurrent/actor/core.rb:115:in `block in schedule_execution'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:18:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:96:in `work'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/serialized_execution.rb:77:in `block in call_job'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:333:in `run_task'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:322:in `block (3 levels) in create_worker'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `loop'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch'
/opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
Updated by Christian Ehart almost 9 years ago
- File production_log_13415 production_log_13415 added
- File proxy.log_13415 proxy.log_13415 added
Looks like I have the same issue, attached some logs...
short output:
2016-02-01 20:06:24 [app] [W] Could not fetch task counts from itsatltkatello.domain.com, skipped.
| RestClient::InternalServerError: 500 Internal Server Error
2016-02-01 20:06:24 [foreman-tasks/action] [E] Could not use any proxy. Consider configuring remote_execution_global_proxy or remote_execution_fallback_proxy in settings (RuntimeError)
2016-02-01 20:06:24 [foreman-tasks/action] [E] A sub task failed (RuntimeError)
[2016-02-01T20:06:24.170866 #23753] ERROR -- : SQLite3::CantOpenException: unable to open database file (Sequel::DatabaseConnectionError)
Updated by Christian Ehart almost 9 years ago
Dear all,
it looks like its related to Dynflow Package, please be so kind and check Root Cause...
---> Package rubygem-smart_proxy_dynflow.noarch 0:0.0.4-1.el7 = ok
---> Package rubygem-smart_proxy_dynflow.noarch 0:0.0.5-1.el7 = failed, with above error
Updated by laxman veeturi almost 9 years ago
- File foreman_03.PNG foreman_03.PNG added
- File foreman_04.PNG foreman_04.PNG added
- File Foreman_05.PNG Foreman_05.PNG added
- File Foreman_06.PNG Foreman_06.PNG added
Hello All,
Christian is right. Issue with rubygem-smart_proxy_dynflow-0.0.5-1.el7.noarch package. I removed rubygem-smart_proxy_dynflow-0.0.5-1.el7.noarch and rubygem-smart_proxy_remote_execution_ssh-0.0.12-1.el7.noarch. Installed the rubygem-smart_proxy_dynflow-0.0.4-1.el7.noarch.rpm and rubygem-smart_proxy_remote_execution_ssh-0.0.10-1.el7.noarch.rpm from Foreman-1.10.0 plugins. Now I can execute commands using remte_execution_ssh
Please take a look on below files
Updated by Marek Hulán almost 9 years ago
This is likely caused by the fact, that sqlite db can't be created. By default it tries to create it at /var/spool/foreman-proxy/dynflow/dynflow.sqlite (that is the change in 0.0.5). It seems we need to fix packaging to create this dir. As a workaround, try either mkdir -p it and set permissions so the user under which foreman-proxy runs can write to that location or change the smart proxy dynflow configuration and set :database to different file or keep 'sqlite:/' to use in-memory db only. Please let us know if it helps.
Updated by Stephen Benjamin almost 9 years ago
- Subject changed from Foreman 1.10.1 remote execution error to Remote execution smart-proxy fails on debian because of lacking dynflow sqlite directory
Updated by Stephen Benjamin almost 9 years ago
- Subject changed from Remote execution smart-proxy fails on debian because of lacking dynflow sqlite directory to Remote execution smart-proxy fails because of lacking dynflow sqlite directory
Updated by Marek Hulán almost 9 years ago
- Related to Bug #13560: Remote execution smart-proxy fails on debian because of lacking dynflow sqlite directory added
Updated by Stephen Benjamin almost 9 years ago
- Has duplicate Bug #13560: Remote execution smart-proxy fails on debian because of lacking dynflow sqlite directory added
Updated by Stephen Benjamin almost 9 years ago
- Related to deleted (Bug #13560: Remote execution smart-proxy fails on debian because of lacking dynflow sqlite directory)
Updated by Stephen Benjamin almost 9 years ago
- Assignee set to Stephen Benjamin
Updated by Stephen Benjamin almost 9 years ago
- Status changed from Need more information to Resolved
- Translation missing: en.field_release set to 126
- Pull request https://github.com/theforeman/foreman-packaging/pull/1008, https://github.com/theforeman/foreman-packaging/pull/1007 added
smart_proxy_dynflow 0.0.6 packages are released and in the repos, give them a try - it should resolve the problem by ensuring the directory is created.
Thanks!
Updated by laxman veeturi almost 9 years ago
Hello All,
I updated smart_proxy_dynflow to smart_proxy_dynflow 0.0.6. It is working now.Thanks for quick help.
Thanks
Laxman
Updated by laxman veeturi almost 9 years ago
Hello All,
Please close the ticket
Thanks
Laxman
Updated by Marek Hulán almost 9 years ago
Thanks for letting us know. Resolved is a closed state so no further action is requred.