LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2006, 10:32 AM   #1
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Rep: Reputation: 16
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.
 
Old 03-28-2006, 02:18 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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?
 
Old 03-29-2006, 04:02 AM   #3
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
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...
 
Old 03-29-2006, 07:46 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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?
 
Old 03-29-2006, 10:01 AM   #5
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
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.

Last edited by vs_optimist; 03-29-2006 at 10:03 AM.
 
Old 03-29-2006, 04:38 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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...
 
Old 03-30-2006, 05:01 AM   #7
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
The above described commands caused the following error message: "Unable to change the password; error: 'Access denied for user ''@localhost' to database mysql"
 
Old 03-30-2006, 07:41 AM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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.
 
Old 03-30-2006, 09:15 AM   #9
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

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

Last edited by vs_optimist; 03-30-2006 at 09:20 AM.
 
Old 03-30-2006, 06:53 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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...
 
1 members found this post helpful.
Old 04-02-2006, 05:12 AM   #11
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
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.
 
Old 04-02-2006, 03:10 PM   #12
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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...
 
Old 04-10-2006, 06:40 AM   #13
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
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?

Last edited by vs_optimist; 04-10-2006 at 07:19 AM.
 
Old 04-10-2006, 03:22 PM   #14
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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?
 
Old 04-11-2006, 11:45 AM   #15
vs_optimist
LQ Newbie
 
Registered: Mar 2006
Location: Ukraine
Distribution: FC5
Posts: 27

Original Poster
Rep: Reputation: 16
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?

Last edited by vs_optimist; 04-11-2006 at 11:49 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Jabber Server Error hasnain Linux - Networking 1 07-11-2004 04:13 PM
jabber server doesn't work claude56 Linux - Networking 3 06-26-2004 09:25 PM
Start Jabber server on Linux RH9 system Boot jimmax777 Linux - Software 4 02-17-2004 05:19 AM
Start Jabber as daemon jgnasser Linux - Newbie 1 02-16-2004 01:44 PM
Jabber Server gcombe74 Linux - Software 1 08-10-2002 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration