Project

General

Profile

Unable to log with admin account after installation

Cyrille Voluter
Added over 3 years ago

I request any help for an install problem with last Tigase version on Ubuntu 15.02 and MySql for database engine hosted, all of these are hosted into one Azure VM :

After installation, I'm trying to connect with an xmpp client (spark) on port 5222 with admin account.

Connection while occurs correctly but it cannot log in into server (“not authorized” error), the Stream during this step is provided below :

-->   <stream:stream to="newco.com" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">

 < --   <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='newco.com' id='1bbd7ac5-a600-40b3-9f1e-7b56f6b77e4a' version='1.0' xml:lang='en'>

 -->   <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

 < --   <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

 -->   <stream:stream to="newco.com" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0">

 < --   <stream:features><ver xmlns="urn:xmpp:features:rosterver"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>

 -->   <auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">YWRtaW4AYWRtaW4AdGlnYXNl</auth>

 < --   <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>

I'm tring to connect into Web interface but there are not available on port 8080, what steps are neccessary to deploy and use it ?

Please find below server configuration (etc/init.properties file content) :

--comp-class-1 = tigase.muc.cluster.MUCComponentClustered

 --virt-hosts = newco.com

 --auth-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=Xmpp2015%21

 --user-db-uri = jdbc:mysql://localhost/tigasedb?user=tigase&password=Xmpp2015%21

 --user-db = mysql

 --admins = admin@newco.com

 --comp-name-6 = message-archive

 --comp-name-5 = rest/tigased

 --comp-name-4 = stun

 --auth-db = tigase-auth

 --comp-name-3 = proxy

 config-type = --gen-config-all

 --comp-name-2 = pubsub

 --comp-name-1 = muc

 --cluster-mode = false

 --sm-plugins = +message-archive-xep-0136,-jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+$

 --comp-class-6 = tigase.archive.MessageArchiveComponent

 --debug = server,xmpp.impl,db

 --comp-class-5 = tigase.http.rest.RestMessageReceiver

 --comp-class-4 = tigase.stun.StunComponent

 --comp-class-3 = tigase.socks5.Socks5ProxyComponent

 --comp-class-2 = tigase.pubsub.cluster.PubSubComponentClustered

 --vhost-anonymous-enabled = true

 --trusted = admin@newco.com, test@newco.com

Does anyone have same problem ?

Thanks,


Replies (7)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Was the admin user correctly created during the installation? Is it present in the database?

If you used the installer or full distribution package then you should be able to access the web UI under http://localhost:8080/ui/

Added by Cyrille Voluter over 3 years ago

Hello,

Tigase setup seem to be processed correctly. No problems notified during installation ( in console mode).

nevertheless, localhost:8080/ doesn't respond and connection thought Xmpp client is impossible.

admin account is present into tig_users table.

Version : Tigase community ediion 7.0.2-b3821

Server : Linux UBUNTU 15.05 LTS on Azure VM over SSH

SGBD : MySQL 5.1 community edition in same server VM

Java and JDK version : java version "1.7.0_79", OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1), OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode).

Added by Cyrille Voluter over 3 years ago

I,

I can log with admin account through XMPP client now.

This can be possible by changing SHA1_user_id value into admin account row (tigasedb.tig_users table).

But web administration always still not active.

Is is possible to deploy war package manualy ?

Thks,

Added by Cyrille Voluter over 3 years ago

Web admin endpoint has been activated by replacing component class restMessageReciever by HttpMessagereceiver into inti.propreties message.

But I can't log with admin account into web log page.

When i check request with browser development tool, i got an CORS cross Policy error over BOSH communication.

Is it possible to deactivate this Policy ?

Thanks

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Cyrille Voluter wrote:

I can log with admin account through XMPP client now.

This can be possible by changing SHA1_user_id value into admin account row (tigasedb.tig_users table).

What exactly you had to change? Installer uses stored procedures so need to change something manually would indicate some error during installation.

Cyrille Voluter wrote:

Web admin endpoint has been activated by replacing component class restMessageReciever by HttpMessagereceiver into inti.propreties message.

Thank you, I've corrected the class in the installer.

But I can't log with admin account into web log page.

When i check request with browser development tool, i got an CORS cross Policy error over BOSH communication.

What exact URL are you trying to access?

Added by Cyrille Voluter over 3 years ago

Wojciech Kapcia wrote:

Cyrille Voluter wrote:

I can log with admin account through XMPP client now.

This can be possible by changing SHA1_user_id value into admin account row (tigasedb.tig_users table).

What exactly you had to change? Installer uses stored procedures so need to change something manually would indicate some error during installation.

Cyrille Voluter wrote:

Web admin endpoint has been activated by replacing component class restMessageReciever by HttpMessagereceiver into inti.propreties message.

Thank you, I've corrected the class in the installer.

But I can't log with admin account into web log page.

When i check request with browser development tool, i got an CORS cross Policy error over BOSH communication.

What exact URL are you trying to access?

Web interface is plenty functional when i browse from localhost machine :

When I'm connect here: http://localhost:8080/ui/ , i can log with admin@domainmachin + password. For other admin domain, I add bosh url : http://localhost:5280/bosh.

Unfortunately, when i try from other than localhost machine, i can connect on auth page from http://mydomain.cloudapp.net:8080/ui/ but when I try to log in something (bosh url : http://mydomain.cloudapp.net:5280/bosh) nothing proceed and CROSS domain error appear into debug dev log plug in.

I have already tried with full ip but it something.

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Cyrille Voluter wrote:

Unfortunately, when i try from other than localhost machine, i can connect on auth page from http://mydomain.cloudapp.net:8080/ui/ but when I try to log in something (bosh url : http://mydomain.cloudapp.net:5280/bosh) nothing proceed and CROSS domain error appear into debug dev log plug in.

I have already tried with full ip but it something.

BOSH url is intended to establish XMPP connections over bosh protocol and not for any kind of administrative operations.

    (1-7/7)