Project

General

Profile

Actions

Bug #12464

open

784: unexpected token in url http://127.0.0.1/foreman_tasks/tasks

Added by Tung Dang Quoc over 8 years ago. Updated over 6 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

784: unexpected token at '{"class":"Actions::ForemanSalt::ReportImport","execution_plan_id":"6dcc853a-9d4d-47b7-ad8f-5ea9b4fd06d4","id":1,"plan_step_id":1,"run_step_id":2,"finalize_step_id":null,"caller_execution_plan_id":null,"caller_action_id":null,"input":{"job_id":"20151112110110487828","report":{"node01.vcdn.vn":{"file_|-/etc/sudoers.d_|-/etc/sudoers.d_|-directory":{"comment":"Files cleaned from directory /etc/sudoers.d","name":"/etc/sudoers.d","start_time":"11:01:41.205589","result":true,"duration":1.494,"__run_num__":2,"changes":{"removed":["/etc/sudoers.d/tungdq2","/etc/sudoers.d/nhanns"]}},"file_|-/etc/rc.local_|-/etc/rc.local_|-append":{"comment":"File /etc/rc.local is in correct state","name":"/etc/rc.local","start_time":"11:02:11.558642","result":true,"duration":6.578,"__run_num__":35,"changes":{}},"file_|-/opt/cdn-nodecacher_|-/opt/cdn-nodecacher_|-recurse":{"comment":"Recursively updated /opt/cdn-nodecacher","name":"/opt/cdn-nodecacher","start_time":"11:01:42.062723","result":true,"duration":268.001,"__run_num__":27,"changes":{"/opt/cdn-nodecacher/setup.sh":{"diff":"New file","mode":"0644"},"/opt/cdn-nodecacher/stop.sh":{"diff":"New file","mode":"0644"},"/opt/cdn-nodecacher/restart.sh":{"diff":"New file","mode":"0644"},"/opt/cdn-nodecacher/start.sh":{"diff":"New file","mode":"0644"}}},"ssh_auth_|-ssh_auth_tungdq2_0_|-ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZITdtV+PB3LabjL5NRWPiJG1njoEk+/lCGBnBvpkk9yuNHPJHRgjySTkU71jYqwfbb9sST08vJSrFZv9qvwWinj+FAwX0+nK+N7AHpQThGuRGusgCwX7CYHhvtV7mfeFryaNtSJUpfzVBoYAbmhFqSemzMjzAY0juco9uPWUo042A3cz/dmdwhjckSVXcvqv2rK4FHlKdfab6DDzefxwBV0hMhVIE3p5u5hELR/XOUxa+42IvehV6IjcqPLUgtlsKH8JNsSAsbkuSF06wRhQp8cHnKuhl+vvkTgnLV1N2sjPX1W2feFjkcCf7y3G/mDH1aJbYcRKj/YXG6IANnmN7 tungdq2@vng.com.vn_|-present":{"comment":"The authorized host key AAAAB3NzaC1yc2EAAAADAQABAAABAQDZITdtV+PB3LabjL5NRWPiJG1njoEk+/lCGBnBvpkk9yuNHPJHRgjySTkU71jYqwfbb9sST08vJSrFZv9qvwWinj+FAwX0+nK+N7AHpQThGuRGusgCwX7CYHhvtV7mfeFryaNtSJUpfzVBoYAbmhFqSemzMjzAY0juco9uPWUo042A3cz/dmdwhjckSVXcvqv2rK4FHlKdfab6DDzefxwBV0hMhVIE3p5u5hELR/XOUxa+42IvehV6IjcqPLUgtlsKH8JNsSAsbkuSF06wRhQp8cHnKuhl+vvkTgnLV1N2sjPX1W2feFjkcCf7y3G/mDH1aJbYcRKj/YXG6IANnmN7 is already present for user tungdq2","name":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZITdtV+PB3LabjL5NRWPiJG1njoEk+/lCGBnBvpkk9yuNHPJHRgjySTkU71jYqwfbb9sST08vJSrFZv9qvwWinj+FAwX0+nK+N7AHpQThGuRGusgCwX7CYHhvtV7mfeFryaNtSJUpfzVBoYAbmhFqSemzMjzAY0juco9uPWUo042A3cz/dmdwhjckSVXcvqv2rK4FHlKdfab6DDzefxwBV0hMhVIE3p5u5hELR/XOUxa+42IvehV6IjcqPLUgtlsKH8JNsSAsbkuSF06wRhQp8cHnKuhl+vvkTgnLV1N2sjPX1W2feFjkcCf7y3G/mDH1aJbYcRKj/YXG6IANnmN7 tungdq2@vng.com.vn","start_time":"11:01:41.304836","result":true,"duration":2.136,"__run_num__":17,"changes":{}},"file_|-/etc/sudoers.d/nhanns_|-/etc/sudoers.d/nhanns_|-managed":{"comment":"File /etc/sudoers.d/nhanns updated","name":"/etc/sudoers.d/nhanns","start_time":"11:01:41.277104","result":true,"duration":16.286,"__run_num__":12,"changes":{"diff":"--- \n+++ \n@@ -0,0 +1 @@\n+nhanns ALL=(ALL) NOPASSWD:ALL\n"}},"service_|-nginx_|-nginx_|-running":{"comment":"The service nginx is already running","name":"nginx","start_time":"11:01:53.688221","result":true,"duration":358.544,"__run_num__":32,"changes":{}},"cmd_|-rsync_nodecacher_|-salt://cdn/files/nodecacher.sh_|-script":{"comment":"Command 'salt://cdn/files/nodecacher.sh' run","name":"salt://cdn/files/nodecacher.sh","start_time":"11:01:51.650776","result":true,"duration":1663.909,"__run_num__":29,"changes":{"pid":25467,"retcode":0,"stderr":"ln: failed to create symbolic link '/lib64/libpcre.so.0': File exists\nError: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 2096; nested exception is: \n\tjava.net.BindException: Address already in use","stdout":"receiving incremental file list\n./\nBuild-Production-20150807-14.18\ndefault-conf/\ndefault-conf/blh.mapping.xml\ndefault-conf/cdn-datasync.properties\ndefault-conf/cdn-nodecacher-staging.properties\ndefault-conf/cdn-nodecacher.properties\ndefault-conf/log4j.properties\ndefault-conf/quartz.properties\nkeystores/\nkeystores/keystore.jks\nkeystores/truststore.jks\nlib/\nlib/apache-log4j-extras-1.1.jar\nlib/cdn-nodecacher.jar\nlib/commons-beanutils-1.8.0.jar\nlib/commons-configuration-1.10.jar\nlib/commons-io-2.0.1.jar\nlib/commons-lang-2.6.jar\nlib/commons-logging-1.1.1.jar\nlib/commons-net-3.0.1.jar\nlib/commons-validator-1.4.0.jar\nlib/gelf4j-0.9-all.jar\nlib/gson-2.2.4.jar\nlib/hazelcast-3.1.5.jar\nlib/hazelcast-client-3.1.5.jar\nlib/httpclient-4.2.2.jar\nlib/httpcore-4.2.2.jar\nlib/jpcap.jar\nlib/libthrift-0.8.0.jar\nlib/log4j-1.2.16.jar\nlib/mysql-connector-java-5.1.18-bin.jar\nlib/quartz-all-2.1.6.jar\nlib/slf4j-log4j12-1.0.jar\n\nsent 648 bytes received 8.52M bytes 5.68M bytes/sec\ntotal size is 9.40M speedup is 1.10"}},"file_|-sudoer-tungdq2_|-/etc/sudoers.d/tungdq2_|-managed":{"comment":"Empty file","name":"/etc/sudoers.d/tungdq2","start_time":"11:01:41.307305","result":true,"duration":1.847,"__run_num__":18,"changes":{"new":"file /etc/sudoers.d/tungdq2 created","mode":"0440"}},"group_|-sudo_|-sudo_|-present":{"comment":"Group sudo is present and up to date","name":"sudo","start_time":"11:01:41.199635","result":true,"duration":1.097,"__run_num__":1,"changes":{}},"user_|-tungdq2_user_|-tungdq2_|-present":{"comment":"User tungdq2 is present and up to date","name":"tungdq2","start_time":"11:01:41.297684","result":true,"duration":2.223,"__run_num__":14,"changes":{}},"cmd_|-nginx_configtest_|-service nginx configtest_|-wait":{"comment":"","name":"service nginx configtest","start_time":"11:01:53.685352","result":true,"duration":2.062,"__run_num__":31,"changes":{}},"file_|-user_keydir_nhanns_|-/home/nhanns/.ssh_|-directory":{"comment":"Directory /home/nhanns/.ssh is in the correct state","name":"/home/nhanns/.ssh","start_time":"11:01:41.228988","result":true,"duration":1.266,"__run_num__":8,"changes":{}},"cmd_|-epel.repo_|-salt://cdn/files/epel.sh_|-script":{"comment":"Command 'salt://cdn/files/epel.sh' run","name":"salt://cdn/files/epel.sh","start_time":"11:01:54.048844","result":true,"duration":46.077,"__run_num__":33,"changes":{"pid":25506,"retcode":0,"stderr":"","stdout":""}},"file_|-/etc/ssh/sshd_config_|-/etc/ssh/sshd_config_|-replace":{"comment":"No changes needed to be made","name":"/etc/ssh/sshd_config","start_time":"11:01:41.660222","result":true,"duration":5.236,"__run_num__":23,"changes":{}},"file_|-sudoer-defaults_|-/etc/sudoers_|-managed":{"comment":"File /etc/sudoers is in the correct state","name":"/etc/sudoers","start_time":"11:01:41.208930","result":true,"duration":9.059,"__run_num__":4,"changes":{}},"pkg_|-GeoIP-devel_|-GeoIP-devel_|-latest":{"comment":"Package GeoIP-devel is already up-to-date","name":"GeoIP-devel","start_time":"11:01:53.350514","result":true,"duration":333.278,"__run_num__":30,"changes":{}},"file_|-sudoer-nhanns_|-/etc/sudoers.d/nhanns_|-managed":{"comment":"Empty file","name":"/etc/sudoers.d/nhanns","start_time":"11:01:41.237158","result":true,"duration":3.148,"__run_num__":10,"changes":{"new":"file /etc/sudoers.d/nhanns created","mode":"0440"}},"pkg_|-minimum-packages_|-minimum-packages_|-latest":{"comment":"All 14 packages are up-to-date.","name":"minimum-packages","start_time":"11:01:25.942199","result":true,"duration":15255.809,"__run_num__":0,"changes":{}},"user_|-www_|-www_|-present":{"comment":"User www is present and up to date","name":"www","start_time":"11:01:41.356528","result":true,"duration":1.7,"__run_num__":21,"changes":{}},"group_|-nhanns_user_|-nhanns_|-present":{"comment":"Group nhanns is present and up to date","name":"nhanns","start_time":"11:01:41.221479","result":true,"duration":1.044,"__run_num__":5,"changes":{}},"file_|-nhanns_user_|-/home/nhanns_|-directory":{"comment":"Directory /home/nhanns is in the correct state","name":"/home/nhanns","start_time":"11:01:41.226616","result":true,"duration":1.638,"__run_num__":7,"changes":{}},"ssh_auth_|-ssh_auth_nhanns_0_|-ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiiW/n13UfSLVhjXsK0Ul0ZqTQGFx5inolG1UVykgv0yGsC35sYif7hiJCppzigpq4hbwjTEigsdKn1S4o19HHDKnZuecUiUL2mMzV1MoADtbc6TCMIoF02RE9uyYtx1XsMExYayZ37HBGkKMjH/CLo37V/cu6FboHA6YNL7u1pc= nhanns_|-present":{"comment":"The authorized host key AAAAB3NzaC1yc2EAAAABJQAAAIEAiiW/n13UfSLVhjXsK0Ul0ZqTQGFx5inolG1UVykgv0yGsC35sYif7hiJCppzigpq4hbwjTEigsdKn1S4o19HHDKnZuecUiUL2mMzV1MoADtbc6TCMIoF02RE9uyYtx1XsMExYayZ37HBGkKMjH/CLo37V/cu6FboHA6YNL7u1pc= is already present for user nhanns","name":"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiiW/n13UfSLVhjXsK0Ul0ZqTQGFx5inolG1UVykgv0yGsC35sYif7hiJCppzigpq4hbwjTEigsdKn1S4o19HHDKnZuecUiUL2mMzV1MoADtbc6TCMIoF02RE9uyYtx1XsMExYayZ37HBGkKMjH/CLo37V/cu6FboHA6YNL7u1pc= nhanns","start_time":"11:01:41.231861","result":true,"duration":4.878,"__run_num__":9,"changes":{}},"group_|-tungdq2_user_|-tungdq2_|-present":{"comment":"Group tungdq2 is present and up to date","name":"tungdq2","start_time":"11:01:41.295940","result":true,"duration":1.146,"__run_num__":13,"changes":{}},"pkg_|-sudo_|-sudo_|-installed":{"comment":"Package sudo is already installed","name":"sudo","start_time":"11:01:41.207635","result":true,"duration":0.881,"__run_num__":3,"changes":{}},"pkg_|-openssh-server_|-openssh-server_|-latest":{"comment":"Package openssh-server is already up-to-date","name":"openssh-server","start_time":"11:01:41.358536","result":true,"duration":294.047,"__run_num__":22,"changes":{}},"cmd_|-run_autostart_|-salt://cdn/files/autostart.sh_|-script":{"comment":"Command 'salt://cdn/files/autostart.sh' 

Related issues 1 (1 open0 closed)

Related to Foreman Remote Execution - Bug #15076: remote execution always failNew05/18/2016Actions
Actions #1

Updated by Dominic Cleal over 8 years ago

  • Project changed from Foreman to foreman-tasks
  • Description updated (diff)
Actions #2

Updated by Tung Dang Quoc over 8 years ago

This is log from /var/log/foreman/production.log:
http://pastebin.com/GFQ4M76v

Actions #3

Updated by Marek Hulán almost 8 years ago

does this instance use MySQL as backend?

Actions #4

Updated by Marek Hulán almost 8 years ago

  • Status changed from New to Need more information
Actions #5

Updated by Tobias Michelis almost 8 years ago

Hi,

I have the same issue. I'm using postgres as a backend. The issue appeared, when I had a typo in a repo definition that I wanted to sync. Now I can't run any tasks any longer. There is a lock on he sync and I get a 'Oops...' page when I try to have a look at the tasks and resolve the issue. With hammer task list I get a 500 internal server error. Do you need more information and/or logfiles?

Cheers
Tobias

Actions #6

Updated by Tobias Michelis almost 8 years ago

edit: Below is the error message:

Warning!
387: unexpected token at '{"exception":null,"task_type":"pulp.server.managers.repo.sync.sync","_href":"/pulp/api/v2/tasks/ffe24016-5eb5-471b-a7f0-123137168418/","task_id":"ffe24016-5eb5-471b-a7f0-123137168418","tags":["pulp:repository:Payback_OIT-elastic_search-elastic_search","pulp:action:sync"],"finish_time":"2016-05-17T08:20:46Z","_ns":"task_status","start_time":"2016-05-17T08:20:45Z","traceback":"Traceback (most recent call last):\\n File \\"/usr/lib/python2.6/site-packages/celery/app/trace.py\\", line 240, in trace_task\\n R = retval = fun(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py\\", line 328, in __call__\\n return super(Task, self).__call__(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/celery/app/trace.py\\", line 437, in __protected_call__\\n return self.run(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py\\", line 114, in sync\\n raise PulpExecutionException(_('Importer indicated a failed response'))\\nPulpExecutionException: Importer indicated a failed response\\n","spawned_tasks":[],"progress_report":{"yum_importer":{"content":{"size_total":0,"items_left":0,"items_total":0,"state":"NOT_STARTED","size_left":0,"details":{"rpm_total":0,"rpm_done":0,"drpm_total":0,"drpm_done":0},"error_details":[]},"comps":{"state":"NOT_STARTED"},"distribution":{"items_total":0,"state":"NOT_STARTED","error_details":[],"items_left":0},"errata":{"state":"NOT_STARTED"},"metadata":{"state":"FAILED","error":"('Connection aborted.', gaierror(-2, 'Name or service not known'))"}}},"queue":"reserved_resource_worker-3@muc-kat-01.lx.loyaltypartner.com.dq","state":"error","worker_name":"reserved_resource_worker-3@muc-kat-01.lx.loyaltypartner.com","result":null,"error":{"code":"PLP0000","data":{},"description":"Importer indicated a failed response","sub_errors":[]},"_id":{"$oid":"573ad45d6c083768d7932507"},"id":"573ad45daf3b830cbf679a7e"}],"poll_attempts":{"total":2,"failed":1}},"user_id":5,"current_user_id":5,"locale":"en"},"output":{"sync_result":{"pulp_tasks":[{"exception":null,"task_type":"pulp.server.managers.repo.sync.sync","_href":"/pulp/api/v2/tasks/ffe24016-5eb5-471b-a7f0-123137168418/","task_id":"ffe24016-5eb5-471b-a7f0-123137168418","tags":["pulp:repository:Payback_OIT-elastic_search-elastic_search","pulp:action:sync"],"finish_time":"2016-05-17T08:20:46Z","_ns":"task_status","start_time":"2016-05-17T08:20:45Z","traceback":"Traceback (most recent call last):\\n File \\"/usr/lib/python2.6/site-packages/celery/app/trace.py\\", line 240, in trace_task\\n R = retval = fun(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/pulp/server/async/tasks.py\\", line 328, in __call__\\n return super(Task, self).__call__(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/celery/app/trace.py\\", line 437, in __protected_call__\\n return self.run(*args, **kwargs)\\n File \\"/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py\\", line 114, in sync\\n raise PulpExecutionException(_('Importer indicated a failed response'))\\nPulpExecutionException: Importer indicated a failed response\\n","spawned_tasks":[],"progress_report":{"yum_importer":{"content":{"size_total":0,"items_left":0,"items_total":0,"state":"NOT_STARTED","size_left":0,"details":{"rpm_total":0,"rpm_done":0,"drpm_total":0,"drpm_done":0},"error_details":[]},"comps":{"state":"NOT_STARTED"},"distribution":{"items_total":0,"state":"NOT_STARTED","error_details":[],"items_left":0},"errata":{"state":"NOT_STARTED"},"metadata":{"state":"FAILED","error":"('Connection aborted.', gaierror(-2, 'Name or service not known'))"}}},"queue":"reserved_resource_worker-3@muc-kat-01.lx.loyaltypartner.com.dq","state":"error","worker_name":"reserved_resource_worker-3@muc-kat-01.lx.loyaltypartner.com","result":null,"error":{"code":"PLP0000","data":{},"description":"Importer indicated a failed response","sub_errors":[]},"_id":{"$oid":"573ad45d6c083768d7932507"},"id":"573ad45daf3b830cbf679a7e"}],"poll_attempts":{"total":2,"failed":1}}}}'

IF I try to access the task via API I get a 'not found' back

Actions #7

Updated by Ivan Necas almost 8 years ago

  • Related to Bug #15076: remote execution always fail added
Actions #8

Updated by Ivan Necas almost 8 years ago

Seems similar to #15076, would you mind following instructions in http://projects.theforeman.org/issues/15076#note-1
and sharing to find the the specific problem with the JSON parsing

Actions #9

Updated by Tobias Michelis almost 8 years ago

Hi,

When I try to run foreman-tasks (I assume it's needed to run the commands in a console?). I get the following error

/usr/share/foreman/lib/foreman/logging.rb:75:in `load_config': Logging configuration 'config/logging.yaml' not present (RuntimeError)
        from /usr/share/foreman/lib/foreman/logging.rb:17:in `configure'
        from /usr/share/foreman/config/application.rb:168:in `<class:Application>'
        from /usr/share/foreman/config/application.rb:84:in `<module:Foreman>'
        from /usr/share/foreman/config/application.rb:83:in `<top (required)>'
        from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
        from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
        from /usr/bin/foreman-tasks:4:in `<main>'

config/logging.yaml
is definetly there. It is a link to
/etc/foreman/logging.yaml
.
Here is the output of 'ls -l'
ls /usr/share/foreman/config/logging.yaml  -l
lrwxrwxrwx. 1 root root 25 Nov  3  2015 /usr/share/foreman/config/logging.yaml -> /etc/foreman/logging.yaml
(screen) [root@muc-kat-01 foreman]# ls /usr/share/foreman/config/logging.yaml
(screen) [root@muc-kat-01 foreman]# ls -l /etc/foreman/logging.yaml 
-rw-r--r--. 1 root root 2065 Nov  3  2015 /etc/foreman/logging.yaml

What can I do?
My next answer might be delayed, as I'm on holiday till Thursday 26.

Cheers
Tobias

Actions #10

Updated by Ivan Necas almost 8 years ago

Just to clarify, the code suggested in http://projects.theforeman.org/issues/15076#note-1 needs to be run via `foreman-rake console`

Actions #11

Updated by Tobias Michelis almost 8 years ago

Hi,

sorry for coming back so late. The problem was solved by waiting :). Everything works fine now. I will have a look in the logfiles and come back if I find anything useful that hints what resolved the issue.

Cheers
Tobias

Actions #12

Updated by Marek Hulán almost 8 years ago

  • Status changed from Need more information to Resolved

Thanks for letting us know. I'm closing this, feel free to reopen if you encounter this again.

Actions #13

Updated by Alex Fisher over 6 years ago

I'm hitting this too in 1.15.2 (although I think I initially created and ran the task when running 1.14.x)

MultiJson::ParseError
795: unexpected token at '{"class":"Actions::RemoteExecution::RunHostsJob","execution_plan_id":"856627a9-75d0-4df4-ab91-05a4c9286cc9","id":1,"plan_step_id":1,"run_step_id":2,"finalize_step_id":null,"caller_execution_plan_id":null,"caller_action_id":null,"input":{"job_invocation":{"id":47,"name":"Commands","description":"Run useradd afishertemp; echo \\"password\\" | chpasswd afishertemp"},"job_category":"Commands","job_invocation_id":47,"current_user_id":11},"output":{"planned_count":1,"total_count":1,"failed_count":0,"pending_count":1,"success_count":0}}'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/json-1.8.1/lib/json/common.rb:155:in `parse'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/json-1.8.1/lib/json/common.rb:155:in `parse'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/multi_json-1.10.1/lib/multi_json/adapters/json_common.rb:16:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/multi_json-1.10.1/lib/multi_json/adapter.rb:20:in `load'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/multi_json-1.10.1/lib/multi_json.rb:119:in `load'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.24/lib/dynflow/persistence_adapters/sequel.rb:270:in `load_data'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.24/lib/dynflow/persistence_adapters/sequel.rb:255:in `load_record'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.24/lib/dynflow/persistence_adapters/sequel.rb:125:in `load_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.24/lib/dynflow/persistence.rb:25:in `load_action_for_presentation'
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.24/lib/dynflow/execution_plan/steps/abstract.rb:116:in `action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/try.rb:77:in `public_send'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/try.rb:77:in `try!'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/object/try.rb:63:in `try'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.4/app/models/foreman_tasks/task/dynflow_task.rb:96:in `main_action'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.4/app/models/foreman_tasks/task/dynflow_task.rb:106:in `get_humanized'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.4/app/helpers/foreman_tasks/tasks_helper.rb:6:in `format_task_input'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.4/app/views/foreman_tasks/tasks/index.html.erb:30:in `block in _65e533614905753d3c88c7f76c9cf430'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/relation/delegation.rb:46:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/relation/delegation.rb:46:in `each'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.9.4/app/views/foreman_tasks/tasks/index.html.erb:27:in `_65e533614905753d3c88c7f76c9cf430'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:145:in `block in render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:166:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:333:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/template.rb:143:in `render'
/opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.2.0/lib/deface/action_view_extensions.rb:41:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/template_renderer.rb:14:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:46:in `render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/renderer/renderer.rb:27:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:100:in `_render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/streaming.rb:217:in `_render_template'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:83:in `render_to_body'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/rendering.rb:25:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:16:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/opt/rh/rh-ruby22/root/usr/share/ruby/benchmark.rb:303:in `realtime'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:43:in `render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/opt/theforeman/tfm/root/usr/share/gems/gems/audited-4.4.1/lib/audited/sweeper.rb:14:in `around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `public_send'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:455:in `block in make_lambda'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:312:in `block in halting'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:497:in `block in around'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `block in instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:in `instrument'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:in `process'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in `process'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:in `dispatch'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:in `block in action'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in `serve'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in `serve'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/static_dispatcher.rb:65:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/extractor/recorder.rb:132:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.4.0/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/etag.rb:24:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/conditionalget.rb:25:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/head.rb:13:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:225:in `context'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:220:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in `call_app'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:22:in `call'
/usr/share/foreman/lib/middleware/tagged_logging.rb:18:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/methodoverride.rb:22:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/runtime.rb:18:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/sendfile.rb:113:in `call'
/opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-3.4.1/lib/secure_headers/middleware.rb:12:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:518:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:165:in `call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `public_send'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in `method_missing'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:66:in `block in call'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `each'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in `call'
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in `process_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in `accept_and_process_next_request'
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in `main_loop'
/usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads'
/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'

I added a bit of whitespace to the string it's trying to parse...

{
  "class":"Actions::RemoteExecution::RunHostsJob",
  "execution_plan_id":"856627a9-75d0-4df4-ab91-05a4c9286cc9",
  "id":1,
  "plan_step_id":1,
  "run_step_id":2,
  "finalize_step_id":null,
  "caller_execution_plan_id":null,
  "caller_action_id":null,
  "input":{
    "job_invocation":{
      "id":47,
      "name":"Commands",
      "description":"Run useradd afishertemp; echo \\"password\\" | chpasswd afishertemp" 
    },
    "job_category":"Commands",
    "job_invocation_id":47,
    "current_user_id":11
  },
  "output":{
    "planned_count":1,
    "total_count":1,
    "failed_count":0,
    "pending_count":1,
    "success_count":0
  }
}

...and tried parsing it using python on my workstation.

alex@alex-VirtualBox:~$ cat json | python -m json.tool
Expecting , delimiter: line 14 column 55 (char 382)

Line 14 is

"description":"Run useradd afishertemp; echo \\"password\\" | chpasswd afishertemp" 

The escaping around 'password' is wrong?

I guess there's a bug somewhere that needs fixing, but I could also do with knowing how to fix this in my installation so I can continue to use the feature.
Not sure it's relevant, but whilst I'm running Foreman on CentOS7, its postgres database is on another host still running CentOS 6.

Actions #14

Updated by Greg Sutcliffe over 6 years ago

  • Status changed from Resolved to New

Re-opening at user request

Actions

Also available in: Atom PDF