Project

General

Profile

Web interface to Tigase server

Ingo Theiss
Added almost 4 years ago

I have tested the latest Tigase server 7.0.0-SNAPSHOT. The Web-Installer is working great and the setup went really smooth.

Two questions came up for which I didn't find an answer:

  1. I have read a news about a Web interface to Tigase server at [[[http://www.tigase.net/portfolio/web-interface-tigase-server]]]. Is there any management UI besides the Web-Installer in the current 7.0.0-SNAPSHOT builds?

  2. I have found the tigase-web-ui.war inside the jars folder. How is this related to 1. and what steps are neccessary to deploy/use this?

Thanks for your help!

Regards

Ingo


Replies (12)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

It requires HTTP-API component enabled and, if yes, it's deployed automatically and it's available under http://localhost:8080/ui address.

Added by Peter Rajcani almost 4 years ago

I have the same question - the link above gives me 'Not found' error. I have installed the latest version of the Tigase server and have the http component enabled. Here is my init.properties file:

--comp-class-1 = tigase.muc.MUCComponent
--virt-hosts = tigasetest.com
--user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=tigase12
--user-db = mysql
--admins = admin@tigasetest.com,http@tigasetest.com,pubsub@tigasetest.com
--comp-name-4 = message-archive
--comp-name-3 = proxy
config-type = --gen-config-def
--comp-name-2 = pubsub
--comp-name-1 = muc
--cluster-mode = true
--sm-plugins = +message-archive-xep-0136
--debug = server
--comp-class-4 = tigase.archive.MessageArchiveComponent
--comp-class-3 = tigase.socks5.Socks5ProxyComponent
--comp-class-2 = tigase.pubsub.PubSubComponent
--comp-name-5=http
--comp-class-5=tigase.http.HttpMessageReceiver
--api-keys=open_access
--monitoring=jmx:9050

Is there anything that I am missing in the configuration? Also, I did not see the tigase-web-ui.war file in the jars folder (using Tigase snapshot b3766 version). Where can I download that file?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

It was missing from the Installer - will be included in the next nightly. It can be obtained either from archived distribution packages or from nightly maven repository

Added by Peter Rajcani almost 4 years ago

I copied the latest version of the .war file (tigase-web-ui-2.0-20150127.021509-7.war) from the Maven repository into the jars folder. I am still getting errors accessing localhost:8080/ui, the browser gets stuck loading the page. I tried Chrome, Firefox and Safari all with the same result. I also tried to install build 3765 from 1/23/2015 that contains the web ui war file but I still get the same issue.

This is what I see in Chrome:

GET http://localhost:8080/ui net::ERR_CONNECTION_REFUSED

http://localhost:8080/ui:1 GET http://localhost:8080/ui net::ERR_CONNECTION_REFUSED

http://localhost:8080/ui:1 GET http://localhost:8080/ui net::ERR_EMPTY_RESPONSE

http://localhost:8080/ui:1 GET http://localhost:8080/ui net::ERR_CONNECTION_REFUSED

The HTTP API works fine so I have HTTP component enabled. Is there anything else needed in the configuration? I am running Mac OS X, v. 10.9.4

Added by Eric Dziewa almost 4 years ago

Can you try adding a slash onto the end of URL: http://localhost:8080/ui/ please.

Added by Peter Rajcani almost 4 years ago

That works! Thanks!

Added by Peter Rajcani almost 4 years ago

I see the web interface but I am unable to log in as an admin user. When I click on 'Authenticate' the application does not proceed. What else is required in the configuration to run the web interface other than the .war file and HTTP component? Will the updated version be available tomorrow?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Peter Rajcani wrote:

I see the web interface but I am unable to log in as an admin user. When I click on 'Authenticate' the application does not proceed.

Do you provide full admin credentials (FullJID)? Can you login with those credentials using any other XMPP Client? Can you check the logs in the DeveloperConsole in your browser?

What else is required in the configuration to run the web interface other than the .war file and HTTP component?

That all required components.

Will the updated version be available tomorrow?

Yes, it is be available now.

Added by Peter Rajcani almost 4 years ago

Thanks! I have installed the lastest build - 3772, I had to specify the Bosh url under 'Advanced' to log in:

ws://localhost:5290/bosh

Without it, I get the following error:

WebSocket connection to 'ws://tigasetest.com:5290/bosh' failed: Error in connection establishment: net::ERR_TUNNEL_CONNECTION_FAILED

I have the Tigase server installed on my machine (localhost).

I can now see the server components under "Management', but accessing 'Statistics' tab gives the following error:

adding values [0] with label

site-0.js:2345 exception adding data TypeError: Cannot read property 'e' of undefined {stack: (...), message: "Cannot read property 'e' of undefined"}message: "Cannot read property 'e' of undefined"stack: (...)get stack: function () { [native code] }set stack: function () { [native code] }proto: Error

site-0.js:1847 Uncaught com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'e' of undefined

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Peter Rajcani wrote:

Thanks! I have installed the lastest build - 3772, I had to specify the Bosh url under 'Advanced' to log in:

ws://localhost:5290/bosh

Without it, I get the following error:

WebSocket connection to 'ws://tigasetest.com:5290/bosh' failed: Error in connection establishment: net::ERR_TUNNEL_CONNECTION_FAILED

I have the Tigase server installed on my machine (localhost). Web UI tries to connect using the host information from the JID (as the specification suggests). You would run into the same issue when you try to connect using any other client.

This is the issue with name resolution.

The issue comes how dns resolution in the WebUI - we will improve it to work better on local deployments.

I can now see the server components under "Management', but accessing 'Statistics' tab gives the following error:

Can you share your configuration/browser and also log from the webdeveloper console? I've tried to replicate the issue and it worked fine for me.

Added by Hic cup almost 4 years ago

I got the same problem "When I click on 'Authenticate' the application does not proceed" with admin credentials (FullJID) when i visit the http://XXX:8080/ui/from remote. but it works via local browser.

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

The issue (#2654) still was not resolved, sorry.

    (1-12/12)