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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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[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?
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 09: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:
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');
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.
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 :
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 06: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
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 10:49 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.