Project

General

Profile

Startup Errors

world hello
Added over 3 years ago

Hi, when I started it up for the second time, the error message poped up as below:

Loading component: bosh :: componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46), Class=tigase.server.bosh.BoshConnectionManager}
Loading component: c2s :: componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46), Class=tigase.server.xmppclient.ClientConnectionManager}
Loading component: monitor :: componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46), Class=tigase.server.monitor.MonitorComponent}
Loading component: muc :: componentInfo{Title=Tigase MUC, Version=2.4.0-SNAPSHOT-b3/011e01fc, Class=tigase.muc.MUCComponent}
2015-06-18 20:14:31.458 [main]             PubSubComponent.setProperties()    SEVERE:   Can't initialize pubsub repository: tigase.db.UserExistsException: Error adding user to repository: 
tigase.db.UserExistsException: Error adding user to repository: 
    at tigase.mongodb.MongoRepository.addUserRepo(MongoRepository.java:152)
    at tigase.mongodb.MongoRepository.addUser(MongoRepository.java:174)
    at tigase.db.UserRepositoryMDImpl.addUser(UserRepositoryMDImpl.java:87)
    at tigase.pubsub.PubSubComponent.initialize(PubSubComponent.java:217)
    at tigase.pubsub.PubSubComponent.setProperties(PubSubComponent.java:551)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addComponent(MessageRouter.java:108)
    at tigase.server.MessageRouter.addRouter(MessageRouter.java:145)
    at tigase.server.MessageRouter.setProperties(MessageRouter.java:705)
    at tigase.conf.ConfiguratorAbstract.setup(ConfiguratorAbstract.java:540)
    at tigase.conf.ConfiguratorAbstract.componentAdded(ConfiguratorAbstract.java:177)
    at tigase.conf.Configurator.componentAdded(Configurator.java:50)
    at tigase.conf.Configurator.componentAdded(Configurator.java:33)
    at tigase.server.AbstractComponentRegistrator.addComponent(AbstractComponentRegistrator.java:116)
    at tigase.server.MessageRouter.addRegistrator(MessageRouter.java:131)
    at tigase.server.MessageRouter.setConfig(MessageRouter.java:604)
    at tigase.server.XMPPServer.start(XMPPServer.java:142)
    at tigase.server.XMPPServer.main(XMPPServer.java:112)
Caused by: com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost:27017" , "ok" : 1 , "n" : 0 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: tigase_test1.tig_users.$_id_  dup key: { : BinData }" , "code" : 11000}
    at com.mongodb.CommandResult.getWriteException(CommandResult.java:88)
    at com.mongodb.CommandResult.getException(CommandResult.java:79)
    at com.mongodb.DBCollectionImpl.translateBulkWriteException(DBCollectionImpl.java:314)
    at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:189)
    at com.mongodb.DBCollectionImpl.insert(DBCollectionImpl.java:165)
    at com.mongodb.DBCollection.insert(DBCollection.java:93)
    at com.mongodb.DBCollection.insert(DBCollection.java:78)
    at com.mongodb.DBCollection.insert(DBCollection.java:120)
    at tigase.mongodb.MongoRepository.addUserRepo(MongoRepository.java:150)
    ... 21 more
Loading component: pubsub :: componentInfo{Title=Tigase PubSub, Version=3.0.0-b354/9e37a2d3, Class=tigase.pubsub.PubSubComponent}
Loading plugin: session-close=4:25000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: session-open=4:25000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: default-handler=4:25000 ...     , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: jabber:iq:auth=2:50000 ...  , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: urn:ietf:params:xml:ns:xmpp-sasl=2:50000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: urn:ietf:params:xml:ns:xmpp-bind=2:50000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: urn:ietf:params:xml:ns:xmpp-session=2:50000 ...     , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: jabber:iq:roster=4:25000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: jabber:iq:privacy=2:50000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: jabber:iq:version=2:50000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: http://jabber.org/protocol/stats=2:50000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: vcard-temp=2:50000 ...  , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: http://jabber.org/protocol/commands=2:50000 ...     , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: jabber:iq:private=2:50000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: urn:xmpp:ping=2:50000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: presence=4:25000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: disco=2:50000 ...   , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: zlib=2:50000 ...    , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: amp=2:50000 ...     , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading plugin: message-carbons=2:50000 ...     , version: 7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46)
Loading component: sess-man :: componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46), Class=tigase.server.xmppsession.SessionManager}
Loading component: ws2s :: componentInfo{Title=Tigase XMPP Server, Version=7.1.0-SNAPSHOT-b14/c0b9ca38(2015-06-18/12:12:46), Class=tigase.server.websocket.WebSocketClientConnectionManager}
2015-06-18 20:14:33.361 [main]             ConfigurationCache.store()         WARNING:  Dumping server configuration to: etc/config-dump.properties

Replies (5)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

world hello wrote:

Hi, when I started it up for the second time, the error message poped up as below:

What do you mean 'for the second time'? Are you trying to run seconds instance of Tigase? Can you try with the latest Tigase version?

Added by world hello over 3 years ago

Hi, the above error shows up after closing and restarting Tigase process.

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Can't reproduce. Can you share your configuration and environment details?

Added by world hello over 3 years ago

Hi, The following are my configuration and log output

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Can you check that after first startup the user:

{ "_id" : BinData(0,"…"), "user_id" : "tigase-pubsub", "domain" : "tigase-pubsub" }

is created in the database? Can you try latest nightly?

    (1-5/5)