Giter Site home page Giter Site logo

No Host Specified about npmgrafstats HOT 7 CLOSED

daedric7 avatar daedric7 commented on July 18, 2024
No Host Specified

from npmgrafstats.

Comments (7)

smilebasti avatar smilebasti commented on July 18, 2024 1

Ok. Are you using the container name in a docker network?

Can you please test it again with an IP address. Either the Host or VM IP or maybe the docker network IP if it's all running in a docker network.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

Hi,
this is not a logs problem.
No host specified, Traceback (most recent call last): File "/root/.config/NPMGRAF/Getipinfo.py", line 122, in <module> and the fact that the logs show the Measurement Time (last think before sending them to influx), this seems that the container isn't able to talk to your influxdbv2. Or you haven't set one No host specified.

Please test your InfluxDBv2 connection.

from npmgrafstats.

daedric7 avatar daedric7 commented on July 18, 2024

npmgraf, influxdb2 and npm are on the same network.

I can reach the webui from npm, so the hostname should be ok.

Also, from npmgraf container i can reach influxdb:

docker compose exec npmgraf sh
# curl influxdb
curl: (7) Failed to connect to influxdb port 80 after 1 ms: Couldn't connect to server
# curl influxdb:8086
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="InfluxDB is a time series platform, purpose-built by InfluxData for storing metrics and events, provides real-time visibility into stacks, sensors, and systems."><title>InfluxDB</title><base href="/"><base href=""><link rel="icon" href="/favicon.ico"></head><body><div id="react-root" data-basepath=""></div><script defer="defer" src="/fa4773d142.js"></script></body></html>

from npmgrafstats.

daedric7 avatar daedric7 commented on July 18, 2024

Apologies for the lack of replys :)

INFLUX_HOST: 'localip:8086' # use host IP

I think i have progress :)

stats-npmgraf-1  | **************** start *********************
stats-npmgraf-1  | Measurement-name: ReverseProxyConnections
stats-npmgraf-1  | Hungary
stats-npmgraf-1  | Budapest
stats-npmgraf-1  | Budapest
stats-npmgraf-1  | 1125
stats-npmgraf-1  | 19.0947
stats-npmgraf-1  | 47.5636
stats-npmgraf-1  | HU
stats-npmgraf-1  | Outside IP:  46.139.3.54
stats-npmgraf-1  | Target IP:  46.139.3.54
stats-npmgraf-1  | Domain:  aguiarvieira.pt
stats-npmgraf-1  | Measurement Time:  2023-09-17T15:33:52+00:00
stats-npmgraf-1  | *************** data send ******************

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

That seem`s to work. What was the issue?

One thing is of. The Target IP should be in your network and not the same as Outside. So you have changed the logging sheme for that?

from npmgrafstats.

daedric7 avatar daedric7 commented on July 18, 2024

It seems npmgraft does not like to resolve hostname ->IP when connecting to Influx...

Regarding your question, i don't think i've changed anything, but that specific host is a Matrix host, it's quite complex with many forwards on the advanced that, lots of options, and also specific loggings per location.

from npmgrafstats.

smilebasti avatar smilebasti commented on July 18, 2024

Ah ok. This seems to be a problem with the python package influxdb-client.

Ok. Then i will close this issue. Enjoy.

from npmgrafstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.