Installing influxdb 1.8x and separate data

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
Dears

I have set up and launched influxdb 1.8x as docker image on TrueNAS-SCALE-22.12.1. the instance is up and running, i created a database, all works fine.
I now want to separate application from data.
therefore i added a host path volume: "<path>/influxdb"; i also set the mount path to "<path>/influxdb", expecting to see some data in this directory.
I added also an additional volume pointing to above mentioned directories using the correct dataset.
but still the directory "<path>/influxdb" is empty.

Question:
How do i have to set up influxdb to separate the application from data?

br and tnx for your help

1684163082453.png


1684163110804.png
 

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
my fault! the mount path was set in a wrong way. correct path: /var/lib/influxdb

tnx for all the responses :)
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
hi there, can you write up how you did this, need a influxdb for sweetest.

G
 

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
hi
in my case i had set the mount path incorrectly. it has to be: "/var/lib/influxdb"
My fault was to set the mount path to the dataset where i wanted the data to be saved
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
no, i actually mean the entire get a docker/image like influxdb from hub.docker.com working.
i was able to download/install a image, but the contained influx did not start. so guessing there is allot i'm missing.
G
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
can you share more of the screen grabs of how you ran influx please.
G
 

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
sure :)

most of the setup is default. i made screenshots for you only of the interesting parts of the setup

choose the image:
1689574689610.png


i chose a static arbitrary ip address:
1689574740983.png

you can leave the ports on default:
1689574781832.png


i set up a dataset, where all data shall be stored. pay attention to the mount path. use this exact path as shown below. ofc your host path will be different, pointing to your dataset.
1689574998722.png
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
i see at the bottom they mention webui, did you specify anything there ?
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
I'm getting bucket load of:

2023-07-17 06:50:28.272718+00:00ts=2023-07-17T06:50:28.272404Z lvl=info msg=Unauthorized log_id=0j4ecKS0000 error="authorization not found"
2023-07-17 06:50:28.272726+00:00ts=2023-07-17T06:50:28.272401Z lvl=info msg=Unauthorized log_id=0j4ecKS0000 error="authorization not found"
2023-07-17 06:50:28.272738+00:00ts=2023-07-17T06:50:28.272503Z lvl=info msg=Unauthorized log_id=0j4ecKS0000 error="authorization not found"
2023-07-17 06:50:28.272746+00:00ts=2023-07-17T06:50:28.272559Z lvl=info msg=Unauthorized log_id=0j4ecKS0000 error="authorization not found"
2023-07-17 06:50:28.272753+00:00ts=2023-07-17T06:50:28.272570Z lvl=info msg=Unauthorized log_id=0j4ecKS0000 error="authorization not found"
 

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
did you create a dataset for influx and point to it? if so, that might be related to the permissions of this dataset.
either you open it completely for all users, or you build a more specific ruleset.
in the latter case, i can truly refer to Tom Lawrence's YT-channel (e.g.: https://youtu.be/59NGNZ0kO04)
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
thought that it might be permissions onto the dataset, so assigned apps/apps. as used by iX
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
still having issues, will watch Tom's video and see.
G
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
i made ownership of my dataset apps/apps. but maybe I should ask, who should the owner be, if it will be used by a docker container ?
busy watching Tom.
G
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
did you change the dataset ownership ?
I've created it both as SMB and as APPS and still same error.
The log just talks about a authorisation problem... so not clear if it's re the storage for the influxdb.

are you running the default load balancer or have you deployed metallb, just wondering as I've assigned (and you as per your pics) a different IP than the NAS itself if that might demand metallb first be operational.

G
 

hugo99

Dabbler
Joined
May 15, 2023
Messages
17
i dont use a loadbalancer and left everything on default there. i adopted the access right to my needs accordingly, which for sure will differ from your's.
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
thanks,
slightly larger problem atm, all my apps deployed just disappeared...
G
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
heheheh Windows Fix... lets see ;)
 

georgelza

Patron
Joined
Feb 24, 2021
Messages
417
so ye there seems to be a serious bug in apps/settings/advance... heheh

anyhow. back to this. still sitting with errors and don't understand why/where.

G
 
Top