Http://www.tigase.org/content/tigase-db-errorclient-cant-logintigase dB error, client can't Login here
5 replies [Last Post] Mon, 2012-10-15 03: 12 Anonymous
Tigase dB error, like this:
2012-10-15 10:05:19 saslauth. supstreamfeatures () Warning: database problem: tigase. DB. tigasedbexception: No euthentmechanic ISMs found, probably dB misconfiguration problem.
2012-10-15 10:05:20 saslauth. supstreamfeatures () Warning: database problem: tigase. DB. tigasedbexception: No euthentmechanic ISMs found, probably dB misconfiguration problem.
2012-10-15 10:05:21 jabberiqauth. Process () Warning: database problem, most likely misconfiguration error: Java. Lang. nullpointerexception
At last week tigase and MySQL is no problem, I reinstall can't resolve this problem.
PS: Use MYSQL client and use Java JDBC connect MySQL server is correct.
Top
- 48 reads
- Printer-friendly
Version
- Send by email
Tue
#1 chlaws (not verified)
= Resolve by myself =
Install command: Java-jar tigase-server-5.1.0-b3002.jar-Console (all finished say: Install was successeful)
Yeaterday question:
The logfile output dB problem when I login.
The error log you can see other comment.
Today I retry install on all server use some dB type, all config and install and startup method is same like yesterday
Case 1: Use dB Derby
On centos6.2 x86_64 JDK version 1.7.0 _ 03
On suse10sp4 x86_64 JDK version 1.7.0 _ 03
Init. properties content:
-- User-DB = Derby
-- Admins = admin @ PP-im
-- User-db-uri = JDBC: Derby:/home/chlaws/tigase/tigasedb
Config-type = -- gen-config-def
-- Virt-hosts = PP-im
-- DEBUG = Server
Startup command:./scripts/tigase. Sh start./etc/tigase. conf
Register and login is succesful
Startup command:./XMPP. Sh start
XMPP content:
If [$ #-EQ 1]; then
If [$1 = "start"]; then
./Tigase/scripts/tigase. Sh start./tigase/etc/tigase. Sh
Elif [$1 = "stop"]; then
./Tigase/scripts/tigase. Sh stop./tigase/etc/tigase. Sh
Else
Echo "unknown cmd: $ @"
Fi
Else
Echo "unknown cmd: $ @"
Fi
Use myself shell XMPP. Sh start has error like yesterday, so I check agian, the command in the XMPP. Sh is error.
Change ETC/tigase. Sh to ETC/tigase. conf, restart all is right.
In the end, I think may be scripts/tigase. sh shoshould add check, when parameters file suffix not. conf or the file not defualt file like ETC/tigase. conf you shoshould echo prompt tell user use self config file.
Top
Mon
#2 Artur hefczycofflinejoined: 2006-09-03posts: Points: 267328
As the error says, the most likely cause is the server misconfiguration. config file cocould help. Also how to you start the server, what OS do you use?
Top
Mon
#3 wojtekofflinejoined: 2010-11-24posts: Points: 765
Can you provide your configuration as well as log Excerpt from the server startup?
Top
Mon
#4 chlaws (not verified)
1. reinstall and use dB is derby on two server, the error exist
2. I change new server and install use dB is Derby, this time no error
Use PSI can register and login.
=> I don't known the error what happen, has someone tell me why?
Top
Mon
#5 chlaws (not verified)
When I use PostgreSQL instead MySQL, the error also exist.
Register successful, but data not write PostgreSQL.
2012-10-15 16:42:37 saslauth. supstreamfeatures () Warning: database problem: tigase. DB. tigasedbexception: No euthentmechanic ISMs found, probably dB misconfiguration problem.
2012-10-15 16:42:37 jabberiqauth. Process () Warning: database problem, most likely misconfiguration error: Java. Lang. nullpointerexception
2012-10-15 16:42:37 repositoryaccess. Register () info: User Added: jiangwenlong @ PP-im, pass: 123
2012-10-15 16:42:37 repositoryaccess. Register () info: registration data set for: jiangwenlong @ PP-im, pass: 123, reg_params: NULL
2012-10-15 16:42:39 saslauth. supstreamfeatures () Warning: database problem: tigase. DB. tigasedbexception: No euthentmechanic ISMs found, probably dB misconfiguration problem.
2012-10-15 16:42:39 jabberiqauth. Process () Warning: database problem, most likely misconfiguration error: Java. Lang. nullpointerexception
Note that after the installation is successful, go to the tigase installation directory and run. /scripts/tigase. sh start. /etc/tigase. after conf is started, if everything is normal, after the component is loaded successfully, a log is flushed out at 10:18:21 connectionmanager $ 1.run() Fine: Reconnecting service for component: C2S, to remote host: localhost on port: 5,222
2012-10-16 10:18:21 connectionmanager $ 1.run() Fine: Reconnecting service for component: s2s, to remote host: localhost on port: 5,269
2012-10-16 10:18:21 connectionmanager $ 1.run() Fine: Reconnecting service for component: bosh, to remote host: localhost on port: 5,280
10:18:21 connectionmanager $ 1.run() Fine: Reconnecting service for component: C2S, to remote host: localhost on port: 5,223 if these four statements are not available, then there will be problems in subsequent login.