Jabber server. I can't start it.
I installed Jabber server. But when I tried to start it I got the message "ERROR:sm died. Shutting down server." Firewall and SELinux are turned off. And I can't find any Jabber's logs. What's wrong with my Jabber server? I would be very pleased if you help me.
|
Have you had a look in /var/log/messages (or /var/log/syslog)? I think jabber logs to there (my jabber box is at work, I'm not at the moment) - but can you also post the version of jabber that you're running and the steps you used to set it up?
|
Jabber version - Jabber-2.0s11
There are two error in the log file: jabberd/sm[3051]: mysql: connection to database failed: Access denied for user 'jabberd2'@'localhost' (using password: YES) jabberd/sm[3051]: initialisation of storage driver 'mysql' failed jabberd/sm[3051]: failed to initialise one or more storage drivers, aborting jabberd/c2s[3054]: mysql: connection to database failed: #HY000Host 'XXX.XXX.XXX.XXX' is not allowed to connect to this MySQL server jabberd/c2s[3054]: failed to initialise auth module 'mysql' I ran db-setup.mysql script from Jabber instalation and created a symlink to /tmp/mysql.sock in /var/lib/mysql/. As it was described in "Jabberd 2 Installation and Administation Guide". I have never worked with any databases. If I had any experience of such work I would try to fix this problem myself... |
It sounds like either the jabber2d user in MySQL has the wrong password or something went wrong in setting up that user. Did you use the info at http://jabberd.jabberstudio.org/2/docs/section04_4.html and can you remember if there were there any messages on the screen when you set up MySQL?
|
Quote:
Quote:
How can I try to change SQL user's password? Would it be better to remove an existing Jabber user and create it again? How can I do it? By the way I didn't change default passwords. I wanted to change them later when I'm sure everything is working propely. |
I'm using MySQL 4.1 here, and I'm assuming that the commands are the same for you. If the password is wrong, the following should show it:
Code:
mysql -u jabberd2 -p Code:
shell> mysqladmin -u jabberd2 -h localhost password "newpwd" |
The above described commands caused the following error message: "Unable to change the password; error: 'Access denied for user ''@localhost' to database mysql"
|
You need to change it for your setup - if it's not localhost, it may be 127.0.0.1 or whatever IP address/hostname you have set up for your MySQL install.
|
Sorry, but one more error: "Can't find any matching row in the user table" (After SET PASSWORD FOR 'jabberd2'@'%' = PASSWORD('pass'); )
|
Unless the RPM creates the user for you, you may need to run the following steps from the Jabber setup docs:
Code:
mysql -u root -p Code:
GRANT select,insert,delete,update ON jabberd2.* to jabberd2@localhost IDENTIFIED by 'secret'; |
Jabber server started succesfully. Thanks for your help. But when I tried to send a message to another user I got a message "Message delivery to Test failed: (Code 404)". What does it mean? I found the same question on other forums, but there were no answers how to decide the problem or what can cause it.
|
I haven't seen that error here before. But if both users have successfully created accounts and can sign in to Jabber with those accounts, there are at least 2 places to check for answers.
Firstly I'd check /var/log/messages and /var/log/syslog to see if there is any more detail there. Secondly, I'd run something like Ethereal on the Jabber server to listen to the conversation between the clients and server - it should provide more information. Hope that helps... |
I decided to do everything from the beginning and reinstalled Jabber.
But I can't connect to Jabber server even from the same computer on which it's installed. There are such error messages in /var/log/message : Quote:
|
I haven't seen that error before. Did you get any errors when configuring MySQL this time?
There's a section on testing the server at http://jabberd.jabberstudio.org/2/docs/section04_8.html - have you had a look at that yet? |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 12:24 AM. |