# Server is not responding

**URL:** https://community.influxdata.com/t/server-is-not-responding/18485
**Category:** InfluxDB 2
**Tags:** influxdb, grafana
**Created:** [February 21, 2021, 1:54pm UTC](https://community.influxdata.com/t/server-is-not-responding/18485 "2021-02-21T13:54:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dbocksteger](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dbocksteger/32/6731_2.png) [@dbocksteger](https://community.influxdata.com/u/dbocksteger)
#### Post date: [February 21, 2021, 1:54pm UTC](https://community.influxdata.com/t/server-is-not-responding/18485/1 "2021-02-21T13:54:44Z")

</div>

Hi there,

I set up my influx instance on a Raspberry Pi using Docker and Docker Compose. The YAML file is attached below. InfluxDB, NodeRed and Grafana containers are up and running, NodeRed and Grafana are working as well, while influx is not working.

```
dbocksteger@stats:~$ sudo docker ps
[sudo] password for dbocksteger:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
12b245bcb009 nodered/node-red "npm --no-update-not…" 2 hours ago Up 44 seconds (healthy) 0.0.0.0:1880->1880/tcp nodered
3dece8d58e76 grafana/grafana "/run.sh" 2 hours ago Up 44 seconds 0.0.0.0:3000->3000/tcp grafana
3ac1651da66a quay.io/influxdb/influxdb:v2.0.4 "/entrypoint.sh infl…" 2 hours ago Up 44 seconds 0.0.0.0:8086->8086/tcp influxdb

```

I’m wondering whether it is correct, that all containers are running with ip 0.0.0.0, but as mentioned above, NodeRed and Grafana are working like charm.

But when I try to use Influx, nothing is working. I’m not abled to perform queries using `influx` only, trying to pass a host like localhost or the Pi’s IP fails even more.

```
dbocksteger@stats:~$ influx
WARN: Connected to http://localhost:8086, but found no server version.
Are you sure an InfluxDB server is listening at the given address?
InfluxDB shell version: 1.6.4
> SHOW DATABASES
ERR: received status code 401 from server

dbocksteger@stats:~$ influx -host localhost:8086
Failed to connect to http://[localhost:8086]:8086: Get http://[localhost:8086]:8086/ping: dial tcp: lookup localhost:8086: no such host
Please check your connection settings and ensure 'influxd' is running.

dbocksteger@stats:~$ influx -host 192.168.178.22:8086
Failed to connect to http://[192.168.178.22:8086]:8086: Get http://[192.168.178.22:8086]:8086/ping: dial tcp: lookup 192.168.178.22:8086: no such host
Please check your connection settings and ensure 'influxd' is running.

```

Trying to connect using Grafana I only get `Bad Gateway`. I really hope someone in this community is capable to help me out solving this issue.

The whole \*.yml looks like:

```
version: "2.2"

services:

  grafana:
    image: grafana/grafana
    container_name: grafana
    restart: always
    ports:
      - 3000:3000
    networks:
      - knx
    volumes:
      - grafana-volume:/knxstats

  influxdb:
    image: quay.io/influxdb/influxdb:v2.0.4
    container_name: influxdb
    restart: always
    ports:
      - 8086:8086
    networks:
      - knx
    volumes:
      - influxdb-volume:/knxstats
    environment:
      - INFLUXDB_DB=knxstats

      - INFLUXDB_HTTP_ENABLED=true
      - INFLUXDB_HTTP_AUTH_ENABLED=true

      - INFLUXDB_HTTP_BIND_ADDRESS: 127.0.0.1:8086

      - INFLUXDB_USER=admin

      - INFLUXDB_ADMIN_USER=admin
      - INFLUXDB_ADMIN_PASSWORD=admin

  nodered:
    image: nodered/node-red
    container_name: nodered
    restart: always
    environment:
      - TZ=Europe/Amsterdam
    ports:
      - 1880:1880
    networks:
      - knx
    volumes:
      - node-red-data:/knxstats

volumes:
  grafana-volume:
  influxdb-volume:
  node-red-data:

networks:
  knx:

```

What makes me additionally wondering; In the used directory `/knxstats` still is the YAML file completely alone, altough it is mentioned in the file as volume for every service.

---

<div class="post-metadata">

### Author: ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)
#### Post date: [February 22, 2021, 11:43am UTC](https://community.influxdata.com/t/server-is-not-responding/18485/2 "2021-02-22T11:43:13Z")

</div>

- First of all, check the **docker logs** of the influxdb container. What does the log say?
- I don’t understand what you want to achieve with these `/knxstats` folders in every container?
- Where did you get this `docker-compose.yml` file from?

---

<div class="post-metadata">

### Author: ![soeti](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/soeti/32/7456_2.png) [@soeti](https://community.influxdata.com/u/soeti)
#### Post date: [May 17, 2021, 5:47am UTC](https://community.influxdata.com/t/server-is-not-responding/18485/3 "2021-05-17T05:47:42Z")

</div>

Have the same problem. Its official docker image from dockerhub.

In web [http://localhost:8086](http://localhost:8086) all works fine.

---

<div class="post-metadata">

### Author: ![dan-moran](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/dan-moran/32/5885_2.png) [@dan-moran](https://community.influxdata.com/u/dan-moran)
#### Post date: [May 17, 2021, 1:20pm UTC](https://community.influxdata.com/t/server-is-not-responding/18485/4 "2021-05-17T13:20:13Z")

</div>

@dbocksteger based on the logs, it looks like you’re using a v1.6.4 CLI against a v2.0.4 database. That isn’t going to work; you’ll need to download the latest CLI.

The environment variables you’re using in the `influxdb` container also look like all 1.x variants, so most of them aren’t going to have an effect. I’d recommend:

- Use `influxdb:2.0` instead of `quay.io/influxdb/influxdb` for your image tag (the `quay.io` variant was a stop-gap until we restored the DockerHub build for 2.x)
- See the DockerHub docs about the new environment variables available for configuring 2.0 on startup: [Docker](https://hub.docker.com/_/influxdb)
