LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Jabber server. I can't start it. (https://www.linuxquestions.org/questions/linux-newbie-8/jabber-server-i-cant-start-it-428983/)

vs_optimist 03-27-2006 09:32 AM

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.

gilead 03-28-2006 01:18 PM

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?

vs_optimist 03-29-2006 03:02 AM

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...

gilead 03-29-2006 06:46 AM

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?

vs_optimist 03-29-2006 09:01 AM

Quote:

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
Exactly.

Quote:

and can you remember if there were there any messages on the screen when you set up MySQL?
MySQL was installed from RPM package when I installed my distro.

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.

gilead 03-29-2006 03:38 PM

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
When it prompts you for a password, just enter the password you used in the MySQL module configuration section in c2s.xml. If that fails you can either modify c2s.xml to the correct password or change the account's password. To do this have a look at http://dev.mysql.com/doc/refman/4.1/en/passwords.html, sign in as your admin user and run one of the following after changing it for your setup:
Code:

shell> mysqladmin -u jabberd2 -h localhost password "newpwd"
or
mysql> SET PASSWORD FOR 'jabberd2'@'%' = PASSWORD('newpwd');

Hope that helps...

vs_optimist 03-30-2006 04:01 AM

The above described commands caused the following error message: "Unable to change the password; error: 'Access denied for user ''@localhost' to database mysql"

gilead 03-30-2006 06:41 AM

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.

vs_optimist 03-30-2006 08:15 AM

Sorry, but one more error: "Can't find any matching row in the user table" (After SET PASSWORD FOR 'jabberd2'@'%' = PASSWORD('pass'); )

gilead 03-30-2006 05:53 PM

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
mysql>\. db-setup.mysql

And
Code:

GRANT select,insert,delete,update ON jabberd2.* to jabberd2@localhost IDENTIFIED by 'secret';
Those steps create the user you're trying to log in as - but please make sure you read the docs and don't just run the steps above...

vs_optimist 04-02-2006 04:12 AM

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.

gilead 04-02-2006 02:10 PM

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...

vs_optimist 04-10-2006 05:40 AM

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:

jabberd/c2s[3453]: [7] [127.0.0.1, port=52414] connect
jabberd/c2s[3453]: [7] packet sent before session start, closing stream
jabberd/c2s[3453]: [7] [127.0.0.1, port=52414] disconnect
What do they mean?

gilead 04-10-2006 02:22 PM

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?

vs_optimist 04-11-2006 10:45 AM

Quote:

Did you get any errors when configuring MySQL this time?
The only problem was the message "mysql client libraries not found" after ./configure --enable-mysql --enable-ssl -enable-idn -enable-debug. But I tried ./configure --enable-mysql --enable-ssl -enable-idn -enable-debug --with-extra-library-path=/usr/lib/mysql and there were no problems with mysql since then. Can that be the reason of my problems?

Quote:

http://jabberd.jabberstudio.org/2/docs/section04_8.html - have you had a look at that yet?
Yes, but my Jabber server started succesfully and I didn't try to start it with option -D firstly. But when I did it the following strings attracted my attention
Quote:

RSLV [notice] attempting connecting to router at 127.0.0.1, port 5347
RSLV [notice] [4] [router] write error:Connection refused (111)
Should I change anything in the resolver or router configuration files? But according to the intro I don't need to do any changes there... Can it be the problem with some kind of permissions? How to check it?


All times are GMT -5. The time now is 12:24 AM.