ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] ejabberd и смена имени хоста
Date: Mon, 09 Aug 2010 13:14:19 +0600
Message-ID: <m3fwyomf5g.fsf@vvk.distance.ru> (raw)
In-Reply-To: <i2l74p$3km$1@dough.gmane.org> (Jurij Bogaevs'kyj's message of "Tue, 27 Jul 2010 02:52:56 +0300")

>>>>> On 27 Jul 2010 at 05:52 "JB" == Jurij Bogaevs'kyj writes:

JB> On 26.07.10 15:27, Andrey Rahmatullin wrote:
>> On Mon, Jul 26, 2010 at 03:16:50PM +0300, Jurij Bogaevs'kyj wrote:
>>> Добрый день всем!
>>> Подскажите пожалуйста. После изменения имени хоста, ejabberd не
>>> запускается с такой руганью
>> Базу надо было дампить заранее.
>> Впрочем, возможно, она ещё не сдохла.
>>
>>> ERROR REPORT==== 2010-07-26 11:12:41 ===
>>> E(<0.36.0>:ejabberd_config:278) : 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@optymus
>> В имени ноды хостнейм упоминать было нельзя, надо было ставить localhost.
JB> В имени хостнейм не упоминал, называл только виртуальный хост.
>>
>>> Как исправить?
>> Для начала попробовать поменять хостнейм на старый, сдампить базу,
>> поменять имя ноды на нормальное (ejabberd@localhost), ресторнуть базу и
>> поменять хостнейм на новый.
>>
JB> Получилось. Вернул назад старый хостнейм, сбекапил базу, с помощью
JB> скрипта от сюда http://www.ejabberd.im/migrate-host переименовал, снес
JB> ejabberd, почистил /var/lib/ejabberd/, установил ejabberd, ресторнул
JB> базу. После чего в конфиг добавил старый виртуальний хост.
JB> Спасибо всем за помощь.

А вы не пробовали перед этим в /etc/sysconfig/ejabberd задать в ERLANG_NODE
старое значение?

-- 
vvk


  reply	other threads:[~2010-08-09  7:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 12:16 Jurij Bogaevs'kyj
2010-07-26 12:21 ` Andrii Dobrovol`s`kii
2010-07-26 12:27 ` Andrey Rahmatullin
2010-07-26 23:52   ` Jurij Bogaevs'kyj
2010-08-09  7:14     ` Vladimir V. Kamarzin [this message]
2010-07-26 12:28 ` Alexey I. Froloff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fwyomf5g.fsf@vvk.distance.ru \
    --to=vvk@vvk.pp.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git