Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
jabberd/sm: mysql: connection to database failed: Access denied for user 'jabberd2'@'localhost' (using password: YES)
jabberd/sm: initialisation of storage driver 'mysql' failed
jabberd/sm: failed to initialise one or more storage drivers, aborting
jabberd/c2s: mysql: connection to database failed: #HY000Host 'XXX.XXX.XXX.XXX' is not allowed to connect to this MySQL server
jabberd/c2s: 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?
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.
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:
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:
shell> mysqladmin -u jabberd2 -h localhost password "newpwd"
mysql> SET PASSWORD FOR 'jabberd2'@'%' = PASSWORD('newpwd');
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.
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 :
jabberd/c2s:  [127.0.0.1, port=52414] connect
jabberd/c2s:  packet sent before session start, closing stream
jabberd/c2s:  [127.0.0.1, port=52414] disconnect
What do they mean?
Last edited by vs_optimist; 04-10-2006 at 07:19 AM.
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?
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
RSLV [notice] attempting connecting to router at 127.0.0.1, port 5347
RSLV [notice]  [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.