Error Reading Mnesia
Looking for ejabberd docs? To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im » Corrupted database (?) Submitted by Shakademus on Fri, 2008-10-17 15:42 ejabberd Administration Hi. I got an ejabberd server up and running quite a while now. Now, for a few days, after a simple reboot of the host, it doesn't start up anymore. The message I get is: Quote: E(<0.39.0>:ejabberd_config:272) : Error reading Mnesia database spool files: The Mnesia database couldn't read the spool file for the table 'config'. ejabberd needs read and write access in the directory: /var/lib/ejabberd Maybe the problem is a change in the computer hostname, or a change in the Erlang node name, which is currently: ejabberd@shakaweb Check the ejabberd guide for details about changing the computer hostname or Erlang node name. But I didn't change anything. Neither the hostname or erlang node name nor anything else. Could it be a corrupted database? How do I get more informations about the problem from Erlang? Thanks in advance ‹ Issue setting up ejabberd cluster Spool files growing out of control › Login or register to post comments Let's imagine the node name changed for any reason Submitted by mfoss on Mon, 2008-10-27 11:10. The node name currently is 'ejabberd@shakaweb', and Mnesia can't load the database files, probably because the node name before was different. To try that possibility, you can check ejabberd.log and sasl.log to see if that was the old node name or not. If it was different, put the old name in ejabberdctl.cfg: ERLANG_NODE=ejabberd@atenea » Login or register to post comments Search this site: User login Username: * Password: * CAPTCHAThis question is for testing whether you are a human visitor and to prevent automated spam submissions. Create new account Request new password Navigation Recent posts Feed aggregator News GitHub Bugtracker Mailing List Forums Contact Documentation Downloads Boxcar ejabberd ejabberd SaaS Hosted.IM TextOne Open Messaging Customers Contact Blog About Support
Sign in Pricing Blog Support Search GitHub This repository Watch 282 Star 2,678 Fork 848 processone/ejabberd Code Issues 128 Pull requests 22 Projects 1 Wiki Pulse Graphs New issue Change ejabberd host name and node name #1023 Closed netknokt opened this Issue Mar 18, 2016 · 7 comments Projects None yet Labels Component:Admin Tools Note:Needs more info Milestone No milestone Assignees badlop 3 participants netknokt commented Mar 18, 2016 What version of ejabberd are you using? 2.1.11-1ubuntu2.1 What operating system (version) are you using? Ubuntu 14.04 How did you install ejabberd (source, package, distribution)? distribution https://www.ejabberd.im/node/3245 What did not work as expected? Are there error messages in the log? What was the unexpected behavior? What was the expected result? I'm trying to change the hostname of the host and following the instructions here (https://docs.ejabberd.im/admin/guide/managing/#change-computer-hostname) but it doesn't work at all. I get to Step 4&5 which looks like this: root@m:~# mv /var/lib/ejabberd/*.* /var/lib/ejabberd/oldfiles/ root@m:~# ejabberdctl start The node ejabberd@m is started with status: https://github.com/processone/ejabberd/issues/1023 started ejabberd is not running in that node Check for error messages: ejabberd.log or other files in that directory. Error in ejabberd ctl process: 'error' badarg I've tried lots of variations, to no avail. If the node won't run ejabberd, I can't get anywhere. And removing all the files from /var/lib/ejabberd really seems to not help at all badlop was assigned by mremond Mar 18, 2016 ProcessOne - XMPP, Erlang, jabber member badlop commented Mar 19, 2016 Error in ejabberd ctl process: 'error' badarg Is the error message longer? I mean, does it provide anything else other than just "error badarg"? And removing all the files from /var/lib/ejabberd really seems to not help at all I assume that dir is where ejabberd creates the mnesia spool files when starts the first time in your system: caps_features.DAT irc_custom.DCD last_activity.DCD LATEST.LOG motd.DCD ... Please note that maybe the Ubuntu package for ejabberd uses another path for those files. netknokt commented Mar 20, 2016 I assume that dir is where ejabberd creates the mnesia spool files when starts the first time in your system: caps_features.DAT irc_custom.DCD last_activity.DCD LATEST.LOG motd.DCD ... You are correct. Old host name of machine: "mail" New host name o
command, and you get no feedback. That's normal, ejabberdctl is actually very laconic by nature. Still, it looks like nothing happened, as you can't see http://humbuckercode.co.uk/licks/tricks/ejabberd-startup-error-osx/ any new processes spawned. You then tail /usr/local/var/log/ejabberd/ejabberd.log and it tells you that E(:ejabberd_config:554) : Error reading Mnesia database spool files: The Mnesia database couldn't read the spool file for the https://lieeil.wordpress.com/2010/05/22/cluser-ejabberd/ table 'config'. ejabberd needs read and write access in the directory: /usr/local/var/lib/ejabberd Maybe the problem is a change in the computer hostname, or a change in the Erlang node name, which error reading is currently: ejabberd@localhost Check the ejabberd guide for details about changing the computer hostname or Erlang node name. You try out a couple of Googles on that error, and on the 10th hit you finally bump into the solution: rm -rf /usr/local/var/lib/ejabberd/* This basically removes the existing Mnesia database, forcing the software to create a new one on the next startup. The error reading mnesia reason the whole thing happened seems to have something to do with machine names, and how the internal database is bound to them. Share this:EmailTwitterLinkedInFacebook Categories: Tricks. Tags: ejabberd, osx By ac — March 15, 2013 at 6:01 pm Comment Feed 2 Responses Works 🙂 Thanks 🙂 Jan — August 12, 2013 @ 8:02 am — Reply Thanks ! soul — March 7, 2014 @ 12:34 am — Reply Leave a Reply Cancel Some HTML is OK Name (required) Email (required, but never shared) Web or, reply to this post via trackback. Notify me of follow-up comments by email. Notify me of new posts by email. Writing an XMPP Component in Ruby » « Redis and Ruby on Rails environments Rubygemsrbcalc autometal-piwik autometal-geoip ElScripto nutrun-string google-cse Majestic SEO autometal-growl Categories Code Pains in the Arse Tricks Uncategorized Search for: Running on WordPress and Carrington.
Copyright © 2010 - 2016, Humbucker Limited Send to Email Address Your Name Your Email Address Cancel Post was not sent - check your email addresses! Email check failed, please try again Sorry, your blog cannot share posts by email.name like: ejabberd@wheel.3322.org, and then test by the command in erlang: net_adm:ping(‘ejabberd@wheel.3322.org'). should return pong not pang. On the 2st node, you should : 1 change ejabberdctl.cfg/ejabberd.cfg as before 2 start and then stop ejabberd 3 cd mnesia spool directory: /usr/local/ejabberd-2.1.x/var/lib/ 4 get the mnesia data: 4.0 cp /root/.erlang.cookie to ./ejabberd/.erlang.cookie 4.1 erl -name ejabberd@test_3.im.591hx.com -mnesia extra_db_nodes "[‘ejabberd@wheel.3322.org']" -s mnesia 4.2 mnesia:change_table_copy_type(schema, node(), disc_copies). 4.3 q(). -NOTE: to get multiple masters of mnesia, see the previous post: Multiple masters of mnesia clusters 5 mv Mnesia.ejabberd@test_3.im.591hx.com/* to ejabberd 6 add this line to ./sbin/ejabberdctl, to start(): -mnesia extra_db_nodes "[‘ejabberd@wheel.3322.org']" 7 ./sbin/ejabberdctl start @ref1: Set up clustering in ejabberd @ref2: Cluster ejabberd @ref3: clustering ejabberd nodes using mnesia TIP: you may account this: =ERROR REPORT==== 2010-04-27 11:17:04 === E(:ejabberd_config:549) : Error reading Mnesia database spool files: The Mnesia database couldn't read the spool file for the table ‘config'. ejabberd needs read and write access in the directory: /usr/local/ejabberd-2.1.x/var/lib/ejabberd Maybe the problem is a change in the computer hostname, or a change in the Erlang node name, which is currently: ‘ejabberd@wheel.3322.org' Check the ejabberd guide for details about changing the computer hostname or Erlang node name. Solve: rm /usr/local/ejabberd-2.1.x/var/lib/ejabberd/* Like this:Like Loading... Related Written by eric1729 05/22/2010 at 11:40 Posted in XMPP Server « Ethtool: query and change settings for your system’s ethernetcards. benchmark ejabberd withtsung » Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/Change) Cancel Connecting to %s Notify me