# \[problem\] install insights fail

**URL:** <https://discuss.openedx.org/t/problem-install-insights-fail/879>\
**Category:** Site Operations Help\
**Created:** [November 20, 2019, 6:13am UTC](https://discuss.openedx.org/t/problem-install-insights-fail/879 "2019-11-20T06:13:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [November 20, 2019, 6:13am UTC](https://discuss.openedx.org/t/problem-install-insights-fail/879/1 "2019-11-20T06:13:56Z")

</div>

[I use the script to install Insights.](https://drive.google.com/file/d/18diJFjxOyPzmIidLazyTZfggSWADSZEj/view?usp=sharing)

But[I meet a problem as the log](https://drive.google.com/file/d/1SAy312qv5OVGgdEL2Cf7AZT3c9qtbuXM/view?usp=sharing) .  
Could you have a advice for me?  
--------------------------below is the log-------------------------------------

```auto
Run the pipeline
Parsed arguments = Namespace(branch='release', extra_repo=None, host='localhost', job_flow_id=None, job_flow_name=None, launch_task_arguments=['TotalEventsDailyTask', '--interval', '2016', '--output-root', 'hdfs://localhost:9000/output/', '--local-scheduler'], log_path=None, override_config='/edx/app/edxapp/edx-analytics-pipeline/config/devstack.cfg', package=None, private_key=None, python_version=None, remote_name='analyticstack', repo='https://github.com/edx/edx-analytics-pipeline', secure_config=None, secure_config_branch=None, secure_config_repo=None, shell=None, skip_setup=False, sudo_user='hadoop', user='ubuntu', vagrant_path=None, verbose=False, virtualenv_extra_args=None, wait=True, wheel_url='http://edx-wheelhouse.s3-website-us-east-1.amazonaws.com/Ubuntu/precise', workflow_profiler=None)
Running commands from path = /edx/app/edxapp/pipeline/share/edx.analytics.tasks
Remote name = analyticstack
WARNING: wheel_url argument is no longer supported: ignoring http://edx-wheelhouse.s3-website-us-east-1.amazonaws.com/Ubuntu/precise
Running command = ['/edx/app/edxapp/pipeline/bin/ansible-playbook', '-i', 'localhost,', 'task.yml', '-e', '{"pipeline_repo_dir_name": "repo", "name": "all", "repos": [{"url": "https://github.com/edx/edx-analytics-pipeline", "dir_name": "repo", "branch": "release"}], "write_luigi_config": false, "root_log_dir": "/var/log/analytics-tasks", "root_data_dir": "/var/lib/analytics-tasks", "override_config": "/edx/app/edxapp/edx-analytics-pipeline/config/devstack.cfg", "uuid": "analyticstack"}', '-u', 'ubuntu']

PLAY [Configure luigi] ******************************************************** 

GATHERING FACTS *************************************************************** 
fatal: [localhost] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [luigi | configuration directory created] ******************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/edx/app/edxapp/task.retry

localhost : ok=0 changed=0 unreachable=1 failed=0   

ANSIBLE RUN RETURNED NON-ZERO EXIT STATUS: 3
RETRYING
Running command = ['/edx/app/edxapp/pipeline/bin/ansible-playbook', '-i', 'localhost,', 'task.yml', '-e', '{"pipeline_repo_dir_name": "repo", "name": "all", "repos": [{"url": "https://github.com/edx/edx-analytics-pipeline", "dir_name": "repo", "branch": "release"}], "write_luigi_config": false, "root_log_dir": "/var/log/analytics-tasks", "root_data_dir": "/var/lib/analytics-tasks", "override_config": "/edx/app/edxapp/edx-analytics-pipeline/config/devstack.cfg", "uuid": "analyticstack"}', '-u', 'ubuntu']

PLAY [Configure luigi] ******************************************************** 

GATHERING FACTS *************************************************************** 
fatal: [localhost] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [luigi | configuration directory created] ******************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/edx/app/edxapp/task.retry

localhost : ok=0 changed=0 unreachable=1 failed=0   

ANSIBLE RUN RETURNED NON-ZERO EXIT STATUS: 3
RETRYING
Running command = ['/edx/app/edxapp/pipeline/bin/ansible-playbook', '-i', 'localhost,', 'task.yml', '-e', '{"pipeline_repo_dir_name": "repo", "name": "all", "repos": [{"url": "https://github.com/edx/edx-analytics-pipeline", "dir_name": "repo", "branch": "release"}], "write_luigi_config": false, "root_log_dir": "/var/log/analytics-tasks", "root_data_dir": "/var/lib/analytics-tasks", "override_config": "/edx/app/edxapp/edx-analytics-pipeline/config/devstack.cfg", "uuid": "analyticstack"}', '-u', 'ubuntu']

PLAY [Configure luigi] ******************************************************** 

GATHERING FACTS *************************************************************** 
fatal: [localhost] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [luigi | configuration directory created] ******************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/edx/app/edxapp/task.retry

localhost : ok=0 changed=0 unreachable=1 failed=0   

ANSIBLE RUN RETURNED NON-ZERO EXIT STATUS: 3
RETRYING
Running command = ['/edx/app/edxapp/pipeline/bin/ansible-playbook', '-i', 'localhost,', 'task.yml', '-e', '{"pipeline_repo_dir_name": "repo", "name": "all", "repos": [{"url": "https://github.com/edx/edx-analytics-pipeline", "dir_name": "repo", "branch": "release"}], "write_luigi_config": false, "root_log_dir": "/var/log/analytics-tasks", "root_data_dir": "/var/lib/analytics-tasks", "override_config": "/edx/app/edxapp/edx-analytics-pipeline/config/devstack.cfg", "uuid": "analyticstack"}', '-u', 'ubuntu']

PLAY [Configure luigi] ******************************************************** 

GATHERING FACTS *************************************************************** 
fatal: [localhost] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [luigi | configuration directory created] ******************************* 
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/edx/app/edxapp/task.retry

localhost : ok=0 changed=0 unreachable=1 failed=0   

ANSIBLE RUN FAILED AFTER 3 RETRIES
Exiting with status = 3
If you got this far without error, you should try running the real pipeline tasks listed/linked below

```

---

<div class="post-metadata">

**Author:** ![chintan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/chintan/32/52_2.png) [@chintan](https://discuss.openedx.org/u/chintan)\
**Post date:** [November 20, 2019, 8:02am UTC](https://discuss.openedx.org/t/problem-install-insights-fail/879/2 "2019-11-20T08:02:01Z")

</div>

> GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [localhost] =\> SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

This here seems to be the issue.

You are not able to do SSH from the machine in which you are running the script to the host.

I am assuming that both should be the same machine. i.e. the machine in which you want to install insights and machine in which you are running the script.  
If that is the case, see if you can do `ssh localhost`

Once `ssh localhost` is successful you should be able to proceed.

---

<div class="post-metadata">

**Author:** ![guangyaw](https://avatars.discourse-cdn.com/v4/letter/g/b38774/32.png) [@guangyaw](https://discuss.openedx.org/u/guangyaw)\
**Post date:** [November 20, 2019, 8:18am UTC](https://discuss.openedx.org/t/problem-install-insights-fail/879/3 "2019-11-20T08:18:55Z")

</div>

![2019-11-20%2016-13-56%20%E7%9A%84%E8%9E%A2%E5%B9%95%E6%93%B7%E5%9C%96](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/451b49d8aac61f3197ab434fd5b589a65d373f36.png)

As the picture , Does that means the 'ssh localhost ’ work ?
