tigase / tigase-server

(M) Highly optimized, extremely modular and very flexible XMPP/Jabber server
https://tigase.net
GNU Affero General Public License v3.0
322 stars 107 forks source link

Unable to initialize tigase in docker #45

Open josephgeorgek opened 4 years ago

josephgeorgek commented 4 years ago

We are setting Tigase within Docker container. However, we are unable to perform initialization activities such as setting predefined API KEY for tigase in docker without accessing GUI. With GUI, means we need to restart other application servers which consumes this API key. Hence GUI is not an option. Please advice how this can be accomplished .. for instance is there any way such as REST api or DB scripts or file property update that can be performed during the docker start up.

woj-tek commented 4 years ago

We do have a REST API however it's not possible to manage API Keys before creating just one (for example using installer).

If your case, where the aim is to have unattended setup, you have following options:

woj-tek commented 4 years ago

You can also use Tigase Command Line Management Tool which internally is an XMPP client, but allows you to manage Tigase from the command line.

agustino-lim commented 4 years ago

Hello @woj-tek ,

I encounter similar issue. I tried to run this script in the docker https://github.com/tigase/tigase-docker-support/blob/master/8.0.0/scripts/start.sh. It performs upgade-schema operation, but adminJID is not created in the schema. So I am not able to login into admin page after the server is started.

Can you please advise why adminJID is not created?

Thanks

woj-tek commented 4 years ago

@agustino-lim I assume you don't want to to use WebInstaller (as described in QuickStart guide)?

And you do provide your configuration config.tdsl so that the schema is correctly created? In that case, after you start the server you can simply use jabber:iq:register and register account with JID matching one configured in config.tdsl file.