Some help with installing Influxdb on a unbuntu server 18.04

Dear all hope there is some one that…

I run a Odroid xu4 with ubuntu 18.04…
I try to install influx n this machine with different tutors…
Only the strange part… Influx is running only i cannot doe anything with influx
root@odroid:~# service influxdb status
● influxdb.service - InfluxDB is an open-source, distributed, time series databa
Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset:
Active: active (running) since Sun 2019-06-02 21:14:07 CEST; 94ms ago
Docs: https://docs.influxdata.com/influxdb/
Main PID: 7917 (influxd)
CGroup: /system.slice/influxdb.service
└─7917 /usr/bin/influxd -config /etc/influxdb/influxdb.conf

Jun 02 21:14:07 odroid systemd[1]: Started InfluxDB is an open-source, distribut

So everything looks ok…

Only when i try to go insertof Influx error:
root@odroid:~# influx
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused
Please check your connection settings and ensure ‘influxd’ is running.

I did try the tutor on Influx website.
Not working
I try some youtube not working

I still does not understand what there is going wrong.
Strange part, i cannot see any influx config file…

So i hope there is some help here, for a bricklayer…

Thanks

hi @Dylantje ,

if there is no configfile the service should fail to start ,
do you see a file : /etc/influxdb/influxdb.conf ?
can you see the influxd process running with a ps ?

You could stop the service and try to start influxd with the command you see in the service startup messages and see what happens : /usr/bin/influxd -config /etc/influxdb/influxdb.conf

hope this helps :slight_smile:

Running:

Only when i try to go into influx:

No file:

There is no file in: etc/influxdb/influxdb.conf

And when i run this:
/usr/bin/influxd -config
This is what i see…

code>
Jun 03 17:51:28 odroid systemd[1]: Started InfluxDB is an open-source, distributed, time series database.
pi@odroid:~ influx Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: connect: connection refused Please check your connection settings and ensure 'influxd' is running. pi@odroid:~ /usr/bin/influxd -config
flag needs an argument: -config
Runs the InfluxDB server.

Usage: influxd run [flags]

-config <path>
        Set the path to the configuration file.
        This defaults to the environment variable INFLUXDB_CONFIG_PATH,
        ~/.influxdb/influxdb.conf, or /etc/influxdb/influxdb.conf if a file
        is present at any of these locations.
        Disable the automatic loading of a configuration file using
        the null device (such as /dev/null).
-pidfile <path>
        Write process ID to a file.
-cpuprofile <path>
        Write CPU profiling information to a file.
-memprofile <path>
        Write memory usage information to a file.

run: flag needs an argument: -config
pi@odroid:~$

So there is something going wrong…
Influx is running without een cfg file???

So all the tutor etc sayas that ther emust be a config…:frowning:
Is isntall it like the website from Influxdb

No one??
I am stuck in this part…
Influx should work on a ubuntu server ?

Hi @Dylantje,

Influx does work on Ubuntu. It looks like you’re missing a configuration file.

You can find an example here: https://github.com/influxdata/influxdb/blob/1.7/etc/config.sample.toml

You should save this too /etc/influxdb/influxdb.conf

You will then need to reload systemd:

systemctl daemon-reload

and finally,

systemctl restart influxdb

I hope this helps

@rawkode

THANKS!!!
This did the job…
Only why is there no config after a install?

Thanks… did search for days…

Perhaps you can help me with a other problem…
Where is influx DB?
I do have a infux db on a other Pi…
And i will have this old data into my new Odroid.

I found some tutor on the web.
Only looks very simple for me to place the old db with ftp to the new db…

Is this al the data?
I think not, because i mis in this part my data that i make…?

Or where is influx set the db?