[ejabberd] Not able to start ejabberd after configuring it to use mysql

CGS cgsmcmlxxv at gmail.com
Tue Sep 20 10:24:32 MSD 2011


Hi,

>From the error it seems you have problems with rights (access permission)
there. Try ls -al in /usr/lib/ejabberd/ebin/. All the files should have the
same owner. If not, use chown (e.g., chown -R <group>:<user> .) to change
the owner or chmod to change the access permission for users.

Good luck!
CGS



On Tue, Sep 20, 2011 at 8:15 AM, Vineet Naik <naikvin at gmail.com> wrote:

> Hello,
> I have installed ejabberd on Ubuntu 10.04 using apt-get. It worked properly
> and i could register an admin user and login to the web interface using it.
> But then when I tried to configure it to use mysql by modifying the
> ejabberd.cfg file. But am not able to make it work.
> Now when I start ejabberd from init.d, and then check the status by running
> `ejabberdctl status` it shows the following message -
>
> >
> > The node 'ejabberd at vineet-desktop' is started with status: started
> > ejabberd is not running in that node
> > Check for error messages: ejabberd.log
> > or other files in that directory.
>
> The error messages in logs are as follows -
> >
> > =INFO REPORT==== 2011-09-20 11:22:21 ===
> > I(<0.40.0>:ejabberd_app:86) : ejabberd 2.1.2 is stopped in the node
> 'ejabberd at vineet-desktop'
> > =ERROR REPORT==== 2011-09-20 11:22:34 ===
> > File operation error: eacces. Target: /usr/lib/ejabberd/ebin/mysql.beam.
> Function: get_file. Process: code_server.
> > =ERROR REPORT==== 2011-09-20 11:22:34 ===
> > File operation error: eacces. Target:
> /usr/lib/ejabberd/ebin/mysql_auth.beam. Function: get_file. Process:
> code_server.
> > =ERROR REPORT==== 2011-09-20 11:22:34 ===
> > File operation error: eacces. Target:
> /usr/lib/ejabberd/ebin/mysql_conn.beam. Function: get_file. Process:
> code_server.
> > =ERROR REPORT==== 2011-09-20 11:22:34 ===
> > File operation error: eacces. Target:
> /usr/lib/ejabberd/ebin/mysql_recv.beam. Function: get_file. Process:
> code_server.
> > =ERROR REPORT==== 2011-09-20 11:22:34 ===
> > C(<0.38.0>:ejabberd_check:63) : ejabberd is configured to use 'mysql',
> but the following Erlang modules are not installed: '[mysql,
> >
>                                                    mysql_auth,
> >
>                                                    mysql_conn,
> >
>                                                    mysql_recv]'
> > =INFO REPORT==== 2011-09-20 11:22:34 ===
> >     application: ejabberd
> >     exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
> >                          {'EXIT',database_module_missing}}}
> >     type: temporary
>
> I have copied the mysql driver .beam files to /usr/lib/ejabberd/ebin/ ,
> still it shows the "modules not installed" message
> I have followed this article -
> https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver
> and can see that ejabberd is compiled with the --enable-odbc flag.
>
> How do i do this if its installed using apt-get instead of from the source
> ?
>
> Thanks
> --
> Vineet Naik
>
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110920/a4ede8d1/attachment.html>


More information about the ejabberd mailing list