influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.65k stars 3.54k forks source link

OSS: 2.6.1 - Getting 404 accessing the node.js setup page #24015

Open rkinginflux opened 1 year ago

rkinginflux commented 1 year ago

Steps to reproduce: 1) Install OSS 2.6.1 (create ORG, users etc etc) 2) Go to http://localhost:8086 and authenticate 3) Place cursor over 'Up arrow' icon, displaying sub-menu "Sources|Buckets|Telegraf|Scapers|API Tokens" 4) Select "Sources" 5) Click JavaScript/Node.js under client Libraries

Observed: Getting 404 Page Not Found Expected: Directed to the node.js Setting up Page

Environment info:

Config: bolt-path = "/var/lib/influxdb/influxd.bolt" engine-path = "/var/lib/influxdb/engine" flux-log-enabled = true ui-disabled = false hardening-enabled = false

rkinginflux commented 1 year ago

ScreenShot

oss_nodeJS
rkinginflux commented 1 year ago

In addition, getting the same 404 page selecting go & python client libraries.

RichHenst commented 1 year ago

Thanks Rick, appreciate you raising this.

innomatica commented 1 year ago

I think you can access the page by manually entering the url like this:

http://localhost:8086/orgs/<your org id>/load-data/client-libraries/python

You still need to generate a token using CLI though.

RichHenst commented 1 year ago

I think you can access the page by manually entering the url like this:

http://localhost:8086/orgs/<your org id>/load-data/client-libraries/python

You still need to generate a token using CLI though.

Thanks but getting the same result, 404.

DashyCry commented 1 year ago

Has someone an idea how to install the client library for python? I got the same 404 issue. Had installed influxDB in a Docker on my NAS.

innomatica commented 1 year ago

For installing the client library, check this.

You need to have a token for the python client to connect to the db and access a bucket. You can use the admin token although not recommended. Proper way of doing it is

  1. create a bucket (in the console or using bucket cli)
  2. create a token that has read/write access to the bucket (in the console or using auth cli)
  3. in the client app, use the token to access the bucket
cliver1956 commented 1 year ago

Is there a fix for this anywhere? I am having the exact same issue as OP. I want to add a node.js source to a new influxdb instance but get the 404 error. Browsing directly gets the same result. I tried several threads to install client libraries but non have worked so far. I did have this running in a docker container on my NAS but want to get it running separately so trying to run on a raspberry pi 3B running Raspberry Pi OS Lite (64 Bit). I have the same setup running on another Pi (same spec) gathering data from a different source perfectly. The instance also giver the 404 error when I try to add a node.js source.

My Environment: $ uname -srm Linux 5.15.84-v8+ aarch64

$ influxd version InfluxDB v2.6.1 (git: 9dcf880fe0) build_date: 2022-12-29T15:52:06Z

bolt-path = "/mnt/influxdb/influxd.bolt" engine-path = "/mnt/influxdb/engine"

Any suggestions appreciated :)

jeffreyssmith2nd commented 1 year ago

It is being worked on, but in the meantime all the information on utilizing the javascript client can be found https://github.com/influxdata/influxdb-client-js.

innomatica's suggestions above are correct in that you will want to create a new token that is limited to just the scope that you need. The links they provided will help with that.

amabiruinflux commented 1 year ago

any update if this freature is finished?