# Installing insights

**URL:** <https://discuss.openedx.org/t/installing-insights/1329>\
**Category:** Site Operations Help\
**Tags:** analytics\
**Created:** [February 3, 2020, 10:51am UTC](https://discuss.openedx.org/t/installing-insights/1329 "2020-02-03T10:51:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 3, 2020, 10:51am UTC](https://discuss.openedx.org/t/installing-insights/1329/1 "2020-02-03T10:51:41Z")

</div>

Hello there,  
As i can see on the docs, the analytics is installed by default with open edx starting from the ironwood release, but well after i install open edx, the analytics is not working on the port 18110 so i used the docs and i tried to install it, but it looks like the docs are only to install it on an aws instance? but i want to install it on my vps directly.  
I tried with this script:  
[https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/43385371/edX+Analytics+Installation](https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/43385371/edX+Analytics+Installation)

i updated the required values, but i am receiving an error:

> TASK [aws : Gather ec2 facts for use in other roles] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [localhost]: FAILED! =\> {“censored”: “the output has been hidden due to the fact that ‘no\_log: true’ was specified for this result”, “changed”: false}  
> to retry, use: --limit @/root/configuration/playbooks/analytics\_single.retry
> 
> PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> localhost : ok=34 changed=7 unreachable=0 failed=1

After i receive another error:

> GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> previous known host file not found  
> 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 @/root/task.retry
> 
> localhost : ok=0 changed=0 unreachable=1 failed=0

My configs are:

#!/bin/bash

> LMS\_HOSTNAME=“[http://xxx.xxx.xxx.243](http://xxx.xxx.xxx.243)”  
> INSIGHTS\_HOSTNAME=“[http://xxx.xxx.xxx.243:8110/](http://xxx.xxx.xxx.243:8110/)” # Change this to the externally visible domain and scheme for your Insights install, ideally HTTPS  
> DB\_USERNAME=“xxxxxx”  
> DB\_HOST=“localhost”  
> DB\_PASSWORD=“xxxxxxxxx”  
> DB\_PORT=“3306”

Anyone could help?

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 11, 2020, 9:09am UTC](https://discuss.openedx.org/t/installing-insights/1329/2 "2020-02-11T09:09:47Z")

</div>

Hi @ettayeb_mohamed ! Thanks for posting your question, since installing analytics is a source of frustration for a lot of people.

> [@ettayeb\_mohamed](#):
>
> As i can see on the docs, the analytics is installed by default with open edx starting from the ironwood release

Not sure where you saw this, but analytics isn’t installed by default with Open edX? edX have made a lot of improvements with the devstack since it moved to Docker, and so doing [development with the analytics pipeline is now supported by default on the docker devstack](https://github.com/edx/devstack/blob/master/README.rst#getting-started-on-analytics), but AFAIK, the production deployment still requires separate deployment steps.

> [@ettayeb\_mohamed](#):
>
> but it looks like the docs are only to install it on an aws instance? but i want to install it on my vps directly.  
> …
> 
> ```auto
> TASK [aws : Gather ec2 facts for use in other roles] **************************************************************************************************
> fatal: [localhost]: FAILED!
> 
> ```

Yep, currently AWS is the only officially supported environment for analytics deployments, because of all the pieces required to run the analytics pipeline, which feeds data into Insights (see [architecture diagram](https://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/insights/install_insights.html)). We at OpenCraft set up analytics on AWS a lot for clients, so we’ve assembled some documentation for how to do this, be beware that it’s not straightforward: [openedx-deployment.doc.opencraft.com](https://openedx-deployment.doc.opencraft.com/en/latest/), under Analytics.

However, AWS is cost-prohibitive for a lot of deployments, and also, people with small- and medium-sized LMS user bases doesn’t really need the massively-scaled infrastructure that Open edX’s AWS analytics deployment provides. There’s a couple of options.

**Figures**  
@john and Appsembler built [Figures](https://github.com/appsembler/figures), which provides some of the data reporting available in Open edX Insights/analytics.

Since it runs in the same python environment as the LMS, it’s much easier to install, use, and contribute to.

Depending on which version of Open edX you’re running, I’d totally recommend trying it out to see if it meets your needs. They’re happy to accept pull requests too, if you find bugs or have features you want to add!

**OpenStack Analytics**

OpenCraft are working enhancing our [Open edX deployment service (Ocim)](https://github.com/open-craft/opencraft) to make it possible to run Insights and the Analytics Pipeline on a single OpenStack (OVH) instance.

The timeline for completing this isn’t yet known, so nothing has been upstreamed or properly documented yet. But I can share what we’ve done so far, and you’re welcome to use what you like. Again beware: it’s not a simple process.

Also note: we use S3 buckets for cost and authentication reasons, but you can use any hdfs-friendly locations.

- Based my configuration branch on our ironwood.2 release branch, cf [changes made](https://github.com/open-craft/configuration/compare/opencraft-release/ironwood.2...open-craft:jill/analytics-single)

- Deployed using this [modified playbook](https://github.com/open-craft/configuration/blob/jill/analytics-single/playbooks/openedx_native_analytics.yml) and these ansible variables:

- Made some minor mods to the analytics pipeline, cf [diff](https://github.com/edx/edx-analytics-pipeline/compare/master...open-craft:jill/analytics-single-SE-1539), and used that branch to run the pipeline.

- Used this configuration for the pipeline:

- Then, the analytics tasks can be run on the local machine using this script. Schedule it to run daily via cron to keep your data updated.

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 11, 2020, 9:24am UTC](https://discuss.openedx.org/t/installing-insights/1329/3 "2020-02-11T09:24:47Z")

</div>

Hello @jill ! Thank you for replying, actually i am not able to use AWS sadly but i got some help on Slack from @sambapete ( big thanks for him ) so i disabled the AWS related tasks this way:

> AWS\_GATHER\_FACTS: false

Then i solved another problem about the database migration and finally i am stuck on the following task:

> Task analytics\_pipeline : enable Hadoop services  
> Placement: configuration/playbooks/roles/analytics\_pipeline/tasks/main.yml:136  
> Error message: Could not find the requested service [‘hdfs-namenode’, ‘hdfs-datanode’, ‘yarn-resourcemanager’, ‘yarn-nodemanager’, ‘yarn-proxyserver’, 'mapreduce-historyserver

The hadoop user is there and everything seems good… i am trying to solve this for now.

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 14, 2020, 5:11am UTC](https://discuss.openedx.org/t/installing-insights/1329/4 "2020-02-14T05:11:15Z")

</div>

Glad you’re making progress here @ettayeb_mohamed!

> [@ettayeb\_mohamed](#):
>
> Task analytics\_pipeline : enable Hadoop services  
> Placement: configuration/playbooks/roles/analytics\_pipeline/tasks/main.yml:136  
> Error message: Could not find the requested service [‘hdfs-namenode’, ‘hdfs-datanode’, ‘yarn-resourcemanager’, ‘yarn-nodemanager’, ‘yarn-proxyserver’, 'mapreduce-historyserver

A quick google search for that error suggests that there’s an issue with the `ansible service` module on some systems. If you add `daemon_reload: yes` to [that task](https://github.com/edx/configuration/blob/ada15bec6e0269042380e340e65675640983e6ba/playbooks/roles/analytics_pipeline/tasks/main.yml#L136-L142) as [suggested here](https://github.com/ansible/ansible/issues/36585#issuecomment-392394188), does it help?

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 14, 2020, 9:26am UTC](https://discuss.openedx.org/t/installing-insights/1329/5 "2020-02-14T09:26:06Z")

</div>

Hi @jill ! Actually i just enabled those services manually and commented the check there cause even after adding daemon\_reload: yes and trying a lot of things it’s not working… So i just bypassed those steps and fixed some other things and finally it seems like everything goes well and the installation is done 😁 😁 Now i am having problems with setting the authentication ☹ it redirecting me to 127.0.0.1:8000 even after updating the insights.yml and the lms.env.json with the public ip address… I added the trusted client on my admin dashboard etc too… this is weired…  
Is there any updated or more clear steps to fix this cause i believe that i did what is there on the docs?

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 14, 2020, 9:54am UTC](https://discuss.openedx.org/t/installing-insights/1329/6 "2020-02-14T09:54:56Z")

</div>

> [@ettayeb\_mohamed](#):
>
> Now i am having problems with setting the authentication

Do any of these tips help?

[https://openedx-deployment.doc.opencraft.com/en/latest/analytics/insights/#oauth2](https://openedx-deployment.doc.opencraft.com/en/latest/analytics/insights/#oauth2)

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 14, 2020, 2:12pm UTC](https://discuss.openedx.org/t/installing-insights/1329/7 "2020-02-14T14:12:11Z")

</div>

Most of the steps there are already done… the problem is with this redirect to 127.0.0.1:8000 i cannot find where is should update it to make the redirection goes to the public ip and not 127.0.0.1.

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 16, 2020, 11:35pm UTC](https://discuss.openedx.org/t/installing-insights/1329/8 "2020-02-16T23:35:52Z")

</div>

> [@ettayeb\_mohamed](#):
>
> the problem is with this redirect to 127.0.0.1:8000 i cannot find where is should update it to make the redirection goes to the public ip and not 127.0.0.1.

There’s a couple of places where redirect URLs are specified during authentication:

- `/edx/etc/insights.yml` – the `SOCIAL_AUTH_EDX_OIDC_*` variables.
- The LMS Django Admin, URL ending in `/admin/oauth2/client/`: the redirect URI

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 17, 2020, 1:59pm UTC](https://discuss.openedx.org/t/installing-insights/1329/9 "2020-02-17T13:59:01Z")

</div>

I really appreciate your reply!  
I solved that issue sadly by updating directly on `/edx/app/insights/edx_analytics_dashboard/analytics_dashboard/settings/base.py` It looks like restarting the insights will not load any changes… (very weird… anyway).  
Right now i am having another issue which is:  
`invalid_request The requested redirect didn't match the client settings.`  
I tried with the troubleshoting section here: [https://openedx-deployment.doc.opencraft.com/en/latest/analytics/insights/#oauth2](https://openedx-deployment.doc.opencraft.com/en/latest/analytics/insights/#oauth2)  
The links are all good… But still getting that error… ☹

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 17, 2020, 9:58pm UTC](https://discuss.openedx.org/t/installing-insights/1329/10 "2020-02-17T21:58:12Z")

</div>

Yep, OAuth is tricky. Note that it’s not Open edX making this hard, the django social authentication settings have to be exactly right.

I need more information about your config to debug this… can you post your `/edx/etc/insights.yml`, your full LMS URL, the `LMS_BASE_SCHEME` from `/edx/etc/lms.yml`, and the values in the `/admin/oauth2/client/` created for Insights? (with keys and secrets redacted of course) There’s a mismatch in there somewhere.

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 18, 2020, 4:18pm UTC](https://discuss.openedx.org/t/installing-insights/1329/11 "2020-02-18T16:18:24Z")

</div>

Hello @jill, here are my files and everything… i am totally tired of this… :  
My client config with everything clear ( i dont care anymore about keys and secrets… i will remove this after…) :

 ![Screenshot from 2020-02-18 17-13-34](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/e04abfa9bf6d6a1cc8447f67a484631b455431b6.png)

Here is the important part of the insights.yml:

> ```
> SOCIAL_AUTH_EDX_OIDC_ID_TOKEN_DECRYPTION_KEY: 92fb605d041bfaa8e8f69ccb4abfb620e3f7c35a
> SOCIAL_AUTH_EDX_OIDC_ISSUER: http://51.91.253.243/oauth2
> SOCIAL_AUTH_EDX_OIDC_KEY: 3d7050fb2085a2c2a325
> SOCIAL_AUTH_EDX_OIDC_LOGOUT_URL: http://51.91.253.243/logout
> SOCIAL_AUTH_EDX_OIDC_SECRET: 92fb605d041bfaa8e8f69ccb4abfb620e3f7c35a
> SOCIAL_AUTH_EDX_OIDC_URL_ROOT: http://51.91.253.243/oauth2
> SOCIAL_AUTH_REDIRECT_IS_HTTPS: false
> 
> ```

Here is the important part from my lms.env.json:

> ```
> "JWT_EXPIRATION": 30, 
> "JWT_ISSUER": "http://51.91.253.243/oauth2", 
> "JWT_PRIVATE_SIGNING_KEY": null, 
> "LANGUAGE_CODE": "en", 
> "LANGUAGE_COOKIE": "openedx-language-preference", 
> "LMS_BASE": "51.91.253.243", 
> "LMS_INTERNAL_ROOT_URL": "http://51.91.253.243", 
> "LMS_ROOT_URL": "http://51.91.253.243", 
> 
> ```
> 
> …  
> …  
> “OAUTH\_DELETE\_EXPIRED”: true,  
> “OAUTH\_ENFORCE\_SECURE”: false,  
> “OAUTH\_EXPIRE\_CONFIDENTIAL\_CLIENT\_DAYS”: 365,  
> “OAUTH\_EXPIRE\_PUBLIC\_CLIENT\_DAYS”: 30,  
> “OAUTH\_OIDC\_ISSUER”: “[http://51.91.253.243/oauth2](http://51.91.253.243/oauth2)”,

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 20, 2020, 12:21am UTC](https://discuss.openedx.org/t/installing-insights/1329/12 "2020-02-20T00:21:54Z")

</div>

@ettayeb_mohamed Hey, looks like you sorted it out? What was the fix?

I was able to register a new account on your LMS, and was able to authenticate. Getting a 403 on the Insights home page, but that’s usual (unfortunately) if the pipeline tasks haven’t run yet.

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 20, 2020, 2:12pm UTC](https://discuss.openedx.org/t/installing-insights/1329/13 "2020-02-20T14:12:19Z")

</div>

Hello @jill,  
I think that the problem was with the insights version… it’s something like that the lms working with oidc and the insights with oauth2 ( /complete/edx-oidc VS /complete/edx-oauth2/ )  
The solution was to add some variable to the ansible-playbook command this way:  
`ansible-playbook -i localhost, -c local analytics_single.yml --extra-vars "INSIGHTS_LMS_BASE=<LMS DOMAIN> INSIGHTS_VERSION=open-release/ironwood.master ANALYTICS_API_VERSION=open-release/ironwood.master"`  
I think that it was installing another version of the insights that’s it…  
Right now all is good, i even solved all the hadoop problems etc… but i cannot run the pipeline tasks i don’t know why ☹

> (pipeline) root@vps759767:~/edx-analytics-pipeline# remote-task --host localhost --user root --remote-name analyticstack --skip-setup --wait ImportEnrollmentsIntoMysql --interval 2016 --local-scheduler  
> Parsed arguments = Namespace(branch=‘release’, extra\_repo=None, host=‘localhost’, job\_flow\_id=None, job\_flow\_name=None, launch\_task\_arguments=[‘ImportEnrollmentsIntoMysql’, ‘–interval’, ‘2016’, ‘–local-scheduler’], log\_path=None, override\_config=None, package=None, private\_key=None, python\_version=None, remote\_name=‘analyticstack’, repo=None, secure\_config=None, secure\_config\_branch=None, secure\_config\_repo=None, shell=None, skip\_setup=True, sudo\_user=‘hadoop’, user=‘root’, vagrant\_path=None, verbose=False, virtualenv\_extra\_args=None, wait=True, wheel\_url=None, workflow\_profiler=None)  
> Running commands from path = /root/pipeline/share/edx.analytics.tasks  
> Remote name = analyticstack  
> Running command = [‘ssh’, ‘-tt’, ‘-o’, ‘ForwardAgent=yes’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-o’, ‘UserKnownHostsFile=/dev/null’, ‘-o’, ‘KbdInteractiveAuthentication=no’, ‘-o’, ‘PasswordAuthentication=no’, ‘-o’, ‘User=root’, ‘-o’, ‘ConnectTimeout=10’, ‘localhost’, “sudo -Hu hadoop /bin/bash -c ‘cd /var/lib/analytics-tasks/analyticstack/repo && . $HOME/.bashrc && . /var/lib/analytics-tasks/analyticstack/venv/bin/activate && launch-task ImportEnrollmentsIntoMysql --interval 2016 --local-scheduler’”]  
> Warning: Permanently added ‘localhost’ (ECDSA) to the list of known hosts.  
> /bin/bash: line 0: cd: /var/lib/analytics-tasks/analyticstack/repo: No such file or directory  
> Connection to localhost closed.  
> Exiting with status = 1

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 24, 2020, 3:41pm UTC](https://discuss.openedx.org/t/installing-insights/1329/14 "2020-02-24T15:41:55Z")

</div>

I am having this error when i run the tasks:

 ![Screenshot from 2020-02-24 15-10-47](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/a1de92111815729ffb8afdbe8f3f69a1667c7120.png)

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 27, 2020, 3:56am UTC](https://discuss.openedx.org/t/installing-insights/1329/15 "2020-02-27T03:56:07Z")

</div>

There’s an error in your screenshot that could be the culprit:

> Required argument: -input

Are there any tracking logs under `hdfs://localhost:9000/data/` that match the configured pattern `.*tracking.log.*`?

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 27, 2020, 12:04pm UTC](https://discuss.openedx.org/t/installing-insights/1329/16 "2020-02-27T12:04:25Z")

</div>

I have a file tracking.log under /edx/var/log/tracking that’s it!  
this `hdfs://localhost:9000/data/` should be pointed there i think?

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 27, 2020, 10:58pm UTC](https://discuss.openedx.org/t/installing-insights/1329/17 "2020-02-27T22:58:53Z")

</div>

The pipeline task want to read the tracking logs from hdfs (or s3, when configured to read from there), so you should sync your tracking logs to that hdfs store periodically.

The analytics devstack does this with a cron job, see [analytics\_pipeline playbook](https://github.com/edx/configuration/blob/ada15bec6e0269042380e340e65675640983e6ba/playbooks/roles/analytics_pipeline/tasks/main.yml#L201-L208).

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 28, 2020, 11:45am UTC](https://discuss.openedx.org/t/installing-insights/1329/18 "2020-02-28T11:45:04Z")

</div>

Actually that was the main problem!!! there was nothing on that hdfs store!  
When i ran that playbook i didn’t receive any error so i though that all is good ☹  
I reran that manually and i restarted the taks and everything works well then i run the sync db command and finally everything is working well and the dashboard is there!!!  
Big thanks for you @jill!!! 😍 🥰

 ![Screenshot from 2020-02-28 12-12-54](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/1X/8a3df4413dee90ca6bdb6ad7313bf686077a3233.png)

---

<div class="post-metadata">

**Author:** ![ettayeb\_mohamed](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ettayeb_mohamed/32/556_2.png) [@ettayeb\_mohamed](https://discuss.openedx.org/u/ettayeb_mohamed)\
**Post date:** [February 28, 2020, 11:46am UTC](https://discuss.openedx.org/t/installing-insights/1329/19 "2020-02-28T11:46:22Z")

</div>

I will prepare a full guide on the next days and share it with you.

---

<div class="post-metadata">

**Author:** ![jill](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/jill/32/3188_2.png) [@jill](https://discuss.openedx.org/u/jill)\
**Post date:** [February 28, 2020, 11:33pm UTC](https://discuss.openedx.org/t/installing-insights/1329/20 "2020-02-28T23:33:25Z")

</div>

Thank you for your persistence @ettayeb_mohamed! So pleased you got it working.

[Next page](https://discuss.openedx.org/t/installing-insights/1329.md?page=2)
