How to make user root?

40 views
Skip to first unread message

R K

unread,
Jan 17, 2023, 5:24:34 PM1/17/23
to Tinode General
The FAQ just states: 

A: Starting with Tinode version 0.18 the root access can be granted to a user by running the following command:

./tinode-db -auth=ROOT -uid=usrAbcDef123 -scheme=basic


But where is the executable tinode-db ?? I run the server on docker and cant find it anywhere

Gene

unread,
Jan 17, 2023, 7:45:22 PM1/17/23
to Tinode General
Yes, there is a bit of confusion there. The binary is init-db.

R K

unread,
Jan 18, 2023, 2:38:36 AM1/18/23
to Tinode General
Hi,
ok I already tried this. I think the problem is the db running in the other container.

When I go into the docker container with:
sudo docker exec -i -t ID /bin/bash

I get the following error:

./init-db -auth=ROOT -uid=********* -scheme=basic

2023/01/18 07:32:23 Database adapter: 'rethinkdb'; version: 112
2023/01/18 07:32:23 Failed to init DB adapter: rethinkdb: dial tcp 127.0.0.1:28015: connect: connection refused


Docker is setup exactly like in the documentation.
docker network create tinode-net
docker run --name rethinkdb --network tinode-net --restart always -d rethinkdb:2.3
docker run -p 6060:6060 -d --name tinode-srv --network tinode-net tinode/tinode-rethinkdb:latest

Do you have an idea how to fix that? If not I would try running it native and not in docker.
Message has been deleted
Message has been deleted

R K

unread,
Jan 18, 2023, 8:34:44 AM1/18/23
to Tinode General
So somehow my answers get deleted.

I fixed it by setting the IP Adress of the rethinkdb container in the tinode-net in the tinode.conf where it defines the db connection.
Then the command works.

Gene schrieb am Mittwoch, 18. Januar 2023 um 01:45:22 UTC+1:
Reply all
Reply to author
Forward
0 new messages