Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation & Running #2

Open
MaxMohammadi opened this issue Jun 21, 2021 · 1 comment
Open

Installation & Running #2

MaxMohammadi opened this issue Jun 21, 2021 · 1 comment

Comments

@MaxMohammadi
Copy link

I'm getting this error when running 'python app.py' in your cloned repo:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8086): Max retries exceeded with url: /query?q=SELECT+%2A+FROM+%22rp_temp%22.%22downsampled_temp%22&db=sensors_data (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8d4227a2b0>: Failed to establish a new connection: [Errno 61] Connection refused'))

Do I need to run influxdb host separately?

@AyushBhardwaj261
Copy link

Hi @MaxMohammadi Yes you have to run the InfuxDB instance. For ease you can up the docker container of influxDB.
You can achieve that by following the steps:

  1. Create the container
docker run --name influxdb -d \
-p 8086:8086 \
--volume `pwd`/influxdb2:/var/lib/influxdb2 \
--volume `pwd`/config.yml:/etc/influxdb2/config.yml \
influxdb:2.0.7
  1. Use some of the flags as shown in the following command:
docker exec influxdb influx setup \
  --bucket BUCKET_NAME \
  --org ORG_NAME \
  --password PASSWORD \
  --username USERNAME \
  --force
  1. Use the influx CLI to retrieve the token using the following command:
docker exec influxdb influx auth list

The command will produce the following output:
ID Description Token User Name User ID Permissions
07ec335d5c118000 admin's Token TOKEN_REDACTED admin 07ec335d32118000 [read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp]
I hope this might work for you as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants