Projects tigase _server tigase-mongodb Issues #33
Admin user is not created during installation (#33)
wojciech.kapcia@tigase.net opened 4 years ago
wojciech.kapcia@tigase.net commented 4 years ago

On the first look it seems like issue with passing admin credentials:

[2020-09-08 16:12:07:681] [CONFIG  ] [    http-server-pool-2 ] MongoSchemaLoader.init()         : Parameters: [adminPassword: admin, admins: [admin@atlantiscity], dbHostname: localhost, dbName: tigasedb, dbOptions: null, dbPass: tigase_pass, dbRootPass: root, dbRootUser: root, dbUser: tigase_user, logLevel: CONFIG, useSSL: false, forceReloadSchema: false]
[2020-09-08 16:12:07:778] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.validateDBExists(): Creating database...
[2020-09-08 16:12:07:778] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.validateDBExists(): OK
[2020-09-08 16:12:07:883] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.loadSchema()   : Loading schema message-archiving, version: 0.0.0
[2020-09-08 16:12:08:040] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.loadSchema()   : Loading schema server-offline-message, version: 0.0.0
[2020-09-08 16:12:08:109] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.loadSchema()   : Loading schema server-user, version: 0.0.0
[2020-09-08 16:12:08:356] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.loadSchema()   : Loading schema muc-history, version: 0.0.0
[2020-09-08 16:12:08:422] [INFO    ] [    http-server-pool-2 ] MongoSchemaLoader.loadSchema()   : Loading schema pubsub, version: 0.0.0
[2020-09-08 16:12:08:670] [WARNING ] [    http-server-pool-2 ] MongoSchemaLoader.shutdown()     : Connection not validated
[2020-09-08 16:12:22:436] [CONFIG  ] [    http-server-pool-2 ] MongoSchemaLoader.init()         : Parameters: [adminPassword: null, admins: null, dbHostname: localhost, dbName: tigasedb, dbOptions: null, dbPass: tigase_pass, dbRootPass: root, dbRootUser: root, dbUser: tigase_user, logLevel: CONFIG, useSSL: false, forceReloadSchema: false]
[2020-09-08 16:12:24:290] [CONFIG  ] [    http-server-pool-2 ] MongoSchemaLoader.init()         : Parameters: [adminPassword: null, admins: null, dbHostname: localhost, dbName: tigasedb, dbOptions: null, dbPass: tigase_pass, dbRootPass: root, dbRootUser: root, dbUser: tigase_user, logLevel: CONFIG, useSSL: false, forceReloadSchema: false]
Andrzej Wójcik (Tigase) commented 3 years ago

The issue was caused by "server" schema being split into separate schemas with multiple suffixes (-user, -offline, etc.) while tigase-server was still looking for "main" server schema to create admin accounts. I've added support for spitted schema to tigase-server to SchemaManager which solved this issue.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
tigase-server-8.2.0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-mongodb#33
Please wait...
Page is in error, reload to recover