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

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

Open
rkinginflux opened this issue Dec 29, 2022 · 10 comments
Open

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

rkinginflux opened this issue Dec 29, 2022 · 10 comments
Labels
area/ui area/2.x OSS 2.0 related issues and PRs kind/bug

Comments

@rkinginflux
Copy link

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:

  • System info: Run uname -srm and copy the output here
    Linux 4.18.0-408.el8.x86_64 x86_64

  • InfluxDB version: Run influxd version and copy the output here
    InfluxDB v2.6.1 (git: 9dcf880) build_date: 2022-12-29T15:53:07Z

  • Other relevant environment details: Container runtime, disk info, etc
    CentOS Stream release 8
    influxdb2-2.6.1-1.x86_64
    influxdb2-cli-2.6.1-1.x86_64

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 rkinginflux added area/ui area/2.x OSS 2.0 related issues and PRs kind/bug labels Dec 29, 2022
@rkinginflux
Copy link
Author

ScreenShot
oss_nodeJS

@rkinginflux
Copy link
Author

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

@RichHenst
Copy link

Thanks Rick, appreciate you raising this.

@innomatica
Copy link

innomatica commented Jan 17, 2023

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
Copy link

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
Copy link

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
Copy link

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
Copy link

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: 9dcf880) build_date: 2022-12-29T15:52:06Z

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

Any suggestions appreciated :)

@jeffreyssmith2nd
Copy link
Contributor

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
Copy link

any update if this freature is finished?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui area/2.x OSS 2.0 related issues and PRs kind/bug
Projects
None yet
Development

No branches or pull requests

7 participants