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?

No one??
Hope there is some that can help me…

Hi @Dylantje,

The db is in the directories that are configured in the Influxdb.conf file …

There you have a data dir and a wal dir …

1 Like

If the database was started without a config file you can find the directories in the home dir of the user who started the database in .influxdb. I guess you start the database with the user pi ?
You can copy the data , meta and wal directories…
And the configfile …

1 Like

@MarcV THANKS!!!
If you are a women …

is should they say here

Only a other strange part…
I install grafana, looks all ok

pi@odroid:~$ sudo apt install grafana -y

Reading package lists… Done
Building dependency tree
Reading state information… Done
grafana is already the newest version (6.2.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Only:
pi@odroid:~$ sudo systemctl start grafana-server

Job for grafana-server.service failed because of unavailable resources or another system error.
See “systemctl status grafana-server.service” and “journalctl -xe” for details.
pi@odroid:~$

I sorry i connot find anything on google

Hi @Dylantje,
Do you see errors in /var/log/grafana/grafana.log ?

Marc ( the man :slight_smile: )

Possibly missing dependencies. Trying installing Grafana with the -f flag

sudo apt install grafana -f

that should force it to install and or repair dependancies Grafana relies on.

Did make no sense
pi@odroid:~ sudo apt install grafana -f Reading package lists... Done Building dependency tree Reading state information... Done grafana is already the newest version (6.2.5). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@odroid:~ ^C
pi@odroid:~$

No thing @ all:


Grafana is not running perhaps that explane.

Right ok, what details does it give when you run journalctl? Does it give any more info other than the information about the grafana service failing?

Have you tried installing it with the .deb file using dpkg? If you remove/purge the current install and try the following.

wget https://dl.grafana.com/oss/release/grafana_CHANGE_TO_YOUR_VERSION.deb

sudo apt-get install -y adduser libfontconfig1

sudo dpkg -i grafana_CHANGE_TO_YOUR_VERSION.deb

Whats the result?