Feed aggregator

Installation and maintenance: RE: Newbie about MUC, create, config

Tigase XMPP Server Board - 5 hours 47 min ago

MUC rooms are now persistent by default, so you can remove the default room config setting for that.

Categories: Tigase Forums

Installation and maintenance: RE: Newbie about MUC, create, config

Tigase XMPP Server Board - 6 hours 29 min ago

Hi

I already done it, that was the problem.

After a successful restart, I try to create a presistent, open MUC room.
I make a init.properties change
--comp-name-1=muc
--comp-class-1=tigase.muc.MUCComponent
muc/muc-lock-new-room = false
muc/default_room_config/muc#roomconfig_persistentroom=true

Idea coming from here: https://projects.tigase.org/boards/8/topics/3456

It's look like some syntax error around my lines, because the muc component not start after that.

Categories: Tigase Forums

Installation and maintenance: RE: Newbie about MUC, create, config

Tigase XMPP Server Board - 6 hours 40 min ago

That would do it, go ahead and edit your init.properties file and fix the typo, should work for you now.
--comp-name-1=muc
--comp-class-1=tigase.muc.MUCComponent

I will check web installer for bug, thanks!

Categories: Tigase Forums

Installation and maintenance: RE: Newbie about MUC, create, config

Tigase XMPP Server Board - 9 hours 35 min ago

Hello

I setup the server thru web installer. The problem probably the MUCComponnet typo on install J

--comp-name-1=muc
--comp-class-1=tigase.muc.MUCComponnet

Categories: Tigase Forums

Installation and maintenance: RE: Newbie about MUC, create, config

Tigase XMPP Server Board - 9 hours 42 min ago

Unfortunately we do not have a create room script available from the admin UI. I would recommend checking the component settings from the web ui (which is a full XMPP client) at yourhost:8080/ui/ From there go to Management > Configuration > Manage Active Server Components > muc . If MUC is not listed, you will need to add the component to your init.properties file.

Categories: Tigase Forums

Installation and maintenance: Newbie about MUC, create, config

Tigase XMPP Server Board - 12 hours 50 min ago

Hi

Can I create permanent MUC in the web admin?

I didn't find any MUC related setup possibility on Web Admin, even I find a rich content about pubsub. I not find even the plug-in, compontent list in web admin, this is some error?

When I try to create MUC form a client, the answer is 'room not exist'. Where can I find a proper IQ to create MUC room?

Thank you

Categories: Tigase Forums

API and development: how to implement a online-customer service robot by tigase?

Tigase XMPP Server Board - Thu, 08/27/2015 - 19:55

how to implement a online-customer service robot by tigase?
I don't know how to develop the plugin,*I can't modify the packet's body content,could you help me ?*

my demo code like this:
@Override public boolean preProcess(Packet packet, XMPPResourceConnection session, NonAuthUserRepository repo, Queue<Packet> results, Map<String, Object> settings) { JID from = packet.getStanzaTo(); if ("message" == packet.getElemName() && "admin".equals(from.getLocalpart()) && null!=packet.getElemCData("message/body") ) { try { Packet resultData = packet.swapFromTo(); // 简单的对XML元素进行克隆,然后…… Element result = resultData.getElement().clone(); String content = result.getCData("message/body"); Element elemBody = result.findChildStaticStr(Message.MESSAGE_BODY_PATH); if (null!=elemBody && null!=elemBody.getChildren() && elemBody.getChildren().size() > 0 ) { String body = elemBody.childrenToString(); if (null!=body && ""!=body) { elemBody.getChildren().remove(0).addChild(new CData("--您好,回复:Message:" + body)); }else{ elemBody.getChildren().remove(0).addChild(new CData("----消息不能为空!")); } result.removeChild(result.findChildStaticStr(Message.MESSAGE_BODY_PATH)); result.addChild(elemBody); } //修改返回内容 // String body = result.getAttribute("body"); // result.setAttribute("body","你好,"+body); Packet response = Packet.packetInstance(result) ; // 在大多数情况,这可能是一个能够保持于客户端连接的c2s或Bosh组件 response.setPacketTo(packet.getPacketFrom()); // 在大多数情况,这一步可以跳过,但是当packet的投递过程出现了什么问题,这么做可以为调用者返回一个错误 response.setPacketFrom(packet.getPacketTo()); // 把他放到传出packet队列里面就行了 results.offer( response); return true;//表示拦截后不再做后续处理,直接响应客户端 } catch (TigaseStringprepException e) { e.printStackTrace(); } } return false; }

any help will be appreciated!

Categories: Tigase Forums

Installation and maintenance: RE: CPU Hight-loads around midnights

Tigase XMPP Server Board - Thu, 08/27/2015 - 00:18

OK, one question that comes to my mind - are there any other processes on that machine? Have you verified that this is in fact Tigase process that utilizes the CPU at that time?

Categories: Tigase Forums

Installation and maintenance: Single tig_user multiple login from different browsers and systems:

Tigase XMPP Server Board - Wed, 08/26/2015 - 01:27

Problem is that: when a single user is logged in and logged out from a single system then online_status incrementing and decrementing properly.

But when a single user is logged in from different systems or browsers at that time
online_status is incrementing every login. But when this single user is getting logged out
from all the systems or browsers, it is decremented only 1(decremented only after last logged out for that single user).
online_status not being changed for all the intermediate logged out.

I want it should decrement every time like it is incremented each login.

Waiting for reply.

Categories: Tigase Forums

Installation and maintenance: Tigase users logout issue with online_status in tig_users table:

Tigase XMPP Server Board - Wed, 08/26/2015 - 00:28

If a tig_user is logged in from different systems or browsers for more than once,then it is
incremented for every login. But it is decremented only 1 when tig_user is logged out from
all of the logged in systems or browsers. Specifically it is decremented only 1 when it is
logged out from last logged in browser, there is no change in online_status when tig_user is
logged out from all the intermediate browsers.
That is why the online_status of a tig_user is not 0 when it is logged out from all the systems.

Can any one faces the same issue.
Anyone help me to fix this issue.

Categories: Tigase Forums

Installation and maintenance: RE: CPU Hight-loads around midnights

Tigase XMPP Server Board - Tue, 08/25/2015 - 23:33

Wojciech Kapcia wrote:

While there is a mechanism that allows performing some actions at a given interval it shouldn't cause such spikes in usage.

I'm a little suspicious to our Database for null entries. Regarding the mechanism you mentioned above; Are these actions related to database?

Actually, we have had these CPU-loads issue since some months ago.

Anything particular that may have happened at that time or it "just started on it's own"?

I think, when we was starting using stream management component it was started!

Wojciech Kapcia wrote:

Some times Tigase consumes up to 80 percent in our servers.

Can you try to capture the situation with the Tigase Monitor (including bottom part) and post screenshots of whole overview window while it's happening?

I've attached the screen captures which happened yesterday afternoon and last night.

Wojciech Kapcia wrote:

The following is a post for CPU Highloads that we had posted before.
[[https://projects.tigase.org/boards/15/topics/5479?r=5542#message-5542]]

That post indicated more towards problems with deadlocks, however it may be related.

I have checked threads states with thread dump analyzer such as jstack,samurai,TDA,jvirtualvm and I haven't seen any deadlock so far.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase HTTP REST API set up API key issue

Tigase XMPP Server Board - Mon, 08/24/2015 - 11:59

Never mind

I set the api-key, that is fixed the issue.

Categories: Tigase Forums

Installation and maintenance: RE: Tigase HTTP REST API set up API key issue

Tigase XMPP Server Board - Mon, 08/24/2015 - 10:56

Hi

I have a problem around this with Tigase 7.0.2

First, my registrated admin name, password and the SHA1 data is not the same, as I try to authenticate in http.

In the Tigase DB: dca349b5cd2bc3e29cb2c09674bbcc9270XXXXXX [valid password]

When I send auth datas with cURL, the sended data: (curl_setopt($res, CURLOPT_USERPWD, ":[valid password]"); )
the result:

GET /rest/adhoc/ HTTP/1.1

Authorization: Basic YWRtaW5AY2hhdC5tZWR2ZWtsdWIuY29tOjExOTXXXXXX
Host: chat.medveklub.com:8080

My password is right, I can login to the web interface with my account, or with any client.

I don't know, that is a problem or not, but every API call I try to call, result as forbidden

< HTTP/1.1 403 Forbidden
< Content-length: 77
< Date: Mon, 24 Aug 2015 17:48:54 GMT
<
  • Connection #41 to host chat.medveklub.com left intact

Do I need any other setup than the usual? Shoud I give an api-key?

The second problem is if I call
http://chat.medveklub.com:8080/rest/users
- without slash - there is no any error, only waiting - you can try out :).

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Tigase XMPP Server Board - Mon, 08/24/2015 - 08:02

You need to enforce connection to the exact same Tigase machine and this should be configured in your HTTP proxy.

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Tigase XMPP Server Board - Mon, 08/24/2015 - 04:59

Artur Hefczyc wrote:

Are you using a HTTP keep-alive mode for the Bosh connections? If you do not then on each request from a Bosh client there is a new TCP/IP connection (Bosh IO) established between the server and the client. If you use keep-alive then, a possible explanation could be HTTP proxy if you use one.

HI Artur in case of using HTTP proxy is there anyway to keep the connection alive ?

Categories: Tigase Forums

API and development: RE: Bosh Disconnecting After 10 Minutes

Tigase XMPP Server Board - Mon, 08/24/2015 - 04:58

Artur Hefczyc wrote:

Are you using a HTTP keep-alive mode for the Bosh connections? If you do not then on each request from a Bosh client there is a new TCP/IP connection (Bosh IO) established between the server and the client. If you use keep-alive then, a possible explanation could be HTTP proxy if you use one.

HI Artur in case of using HTTP proxy is there anyway to keep the connection alive ?

Categories: Tigase Forums

Pages

Get in touch

We provide software products, consulting and custom development services

Tigase, Inc.
100 Pine Street, Suite 1250
San Francisco, CA 94111, USA
Phone: (415) 315 9771

Follow us on:

Twitter

Back to Top