pdoc 0.1 documentation

Archipel

«  VirtualBox   ::   Contents   ::   CloudStack  »

Archipel

インストール

# apt-get install ejabberd
# apt-get install subversion erlang-dev erlang-xmerl build-essential erlang-tools
# cd /usr/local/src
# svn checkout http://svn.process-one.net/ejabberd-modules/
# cd /usr/local/src
# wget http://ejabberd.jabber.ru/files/contributions/xmlrpc-1.13-ipr2.tgz
# tar -xzf xmlrpc-1.13-ipr2.tgz
# cd xmlrpc-1.13/src
# vi Makefile

Makefile

XMERL_PATH=../../xmerl by XMERL_PATH=/usr/lib/erlang/lib/xmerl-1.2.5
$(XMERL_PATH)/inc by $(XMERL_PATH)/include.
# make
# cd /usr/local/src
# cp -a xmlrpc-1.13 /usr/lib/erlang/lib/
# cd /usr/local/src/ejabberd-modules/ejabberd_xmlrpc/trunk
# ./build.sh
# cp ebin/ejabberd_xmlrpc.beam /usr/lib/ejabberd/ebin/
# cd /usr/local/src/ejabberd-modules/mod_admin_extra/trunk
# ./build.sh
# cp ebin/mod_admin_extra.beam /usr/lib/ejabberd/ebin/
# ejabberdctl register admin localhost admin
# apt-get install python-dev python-numpy
# easy-install archipel-agent
# archipel-initinstall
MESSAGE: Installation initialization started
MESSAGE: Installing init script to /etc/init.d/archipel
SUCCESS: Init script installed
SUCCESS: Init script chmoded
MESSAGE: Installing configuration to /etc/archipel
SUCCESS: Config folder installed
SUCCESS: Config file chmoded
MESSAGE: Pre-configuring /etc/archipel/archipel.conf:
MESSAGE: Installing data folder to /var/lib/archipel
SUCCESS: Lib folder installed
SUCCESS: Archipel installation complete
MESSAGE: IMPORTANT NOTE 1: you now need to edit /etc/archipel/archipel.conf top match your informations
MESSAGE: IMPORTANT NOTE 2: If you have used --name=auto and/or --xmpp-server=auto, please check values for xmpp_server and hypervisor_xmpp_jid
MESSAGE: IMPORTANT NOTE 3: if this is not already done, you need to run archipel-tagnode, archipel-rolesnode, archipel-adminaccount, archipel-vmparkingnode and archipel-vmrequestnode
# archipel-tagnode -j admin@localhost --password=admin --create
# archipel-rolesnode --jid=admin@localhost --password=admin --create
# archipel-adminaccounts --jid=admin@localhost --password=admin --create
# archipel-vmparkingnode --jid=admin@localhost --password=admin --create
# archipel-vmparkingnode --jid=admin@localhost --password=admin -a hypervisor_jid@localhost

マニュアル通りにm/etc/ejabberd/ejabberd.cfgをコピーしてくる

# cd /etc/ejabberd
# mv ejabberd.cfg ejabberd.cfg.org
# vi ejabberd.cfg
<コピペ>
# chown ejabberd.ejabberd ejabberd.cfg
# archipel-testxmppserver -j admin@localhost -p admin
<snip>
your XMPP server should be ready!
# runarchipel
ERROR: Bad archipel installation. You need archipel-core and archipel-agent: No module named libvirt

(#^ω^)easy_installしたんじゃなかったのかお...

# apt-get install python-libvirt
# /etc/init.d/archipel start
 * Starting Archipel: [OK]
# apt-get install apache2
# wget http://updates.archipelproject.org/archipel-gui-beta5.zip
# unzip archipel-gui-beta5.zip
# mv Archipel-Release-b93dae20 /var/www/archipel

あとは http://<your-ip-address>/archipel/ にアクセスして、ログインすればいい。

(と、簡単に書いている割に、ログイン出来るようになるまで躓きまくった。)

自分でejabberdの設定書こうと思った時のログ

# archipel-testxmppserver -j admin@localhost -p admin
<snip>
# TEST 2 : INBAND REGISTRATION
 * Trying to register a new dummy XMPP account using in-band registration
 * Registration information sent. Wait for response...
   [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg

/etc/ejabbered/ejabbered.cfg

%{access, register, [{deny, all}]}.
{access, register, [{allow, all}]}.
# /etc/init.d/ejabbered restart
# archipel-testxmppserver -j admin@localhost -p admin
<snip>
# TEST 4 : PUBSUB CONFIGURATION
 * Trying to configure the pubsub with required info for Archipel...
   [ ERROR ] : Unable to configure the pubsub. Be sure you have '{max_items_node, 1000}' in mod_pubsub configuration in ejabberd.cfg

/etc/ejabbered/ejabbered.cfg

{mod_pubsub,   [ % requires mod_caps
                {access_createnode, pubsub_createnode},
                {pep_sendlast_offline, false},
                {last_item_cache, false},
                {max_items_node, 1000},
                %%{plugins, ["default", "pep"]}
                {plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
               ]},
# /etc/init.d/ejabbered restart
# archipel-testxmppserver -j admin@localhost -p admin
<snip>
# TEST 7 : QUICK REGISTRATION/UNREGISTRATION
 * Trying to register a new dummy XMPP account using in-band registration
 * Registration information sent. Wait for response...
   [ ERROR ] : Unable to register. Be sure '{access, register, [{allow, all}]}.' and '{registration_timeout, infinity}.' are present in ejabberd.cfg
 * Trying to unregister the dummy XMPP account using in-band unregistration
   [ ERROR ] : Bad authentication
 * Unregistration information sent. Waiting for response...

/etc/ejabbered/ejabbered.cfg

%%{registration_timeout, 600}.
{registration_timeout, infinity}.
# /etc/init.d/ejabbered restart
# archipel-testxmppserver -j admin@localhost -p admin
<snip>
# TEST 8 : EJABBERD_XMLRPC BASIC OPERATION
 * Trying to connect the ejabberd_xmlrpc module...
   [ ERROR ] : Unable to contact the ejabberd_xmlrpc module: [Errno 111] Connection refused

/etc/ejabbered/ejabbered.cfg

{listen,
 [
  {4560, ejabberd_xmlrpc, []},

エラーと戦っている内に非常に面倒になってきたので投げた

Table Of Contents

Previous topic

VirtualBox

Next topic

CloudStack

This Page

«  VirtualBox   ::   Contents   ::   CloudStack  »