Closed explanar closed 8 years ago
Use ejabberd >= 15.04 and the yaml configuration file from the wiki. Working fine.
sudo dpkg -i ejabberd_15.07-0_amd64.deb
[...] ejabberd (15.07-0) wird eingerichtet ...
Error running Post Install Script.
The installation may have not completed correctly
then
$sudo bash /opt/ejabberd-15.07/bin/postinstall.sh
-=- ejabberd post installation script -=-
(c) 2005-2015 ProcessOne
* Checking ejabberd installation
useradd: Benutzer »ejabberd« existiert bereits
usermod: Keine Änderungen
* Starting ejabberd instance
* Error, ejabberd can not start
... i'll have to wait for 15.09 release or build from source :-(
I suggest you to start with a fresh installation (don't create the ejabberd user if you are using the package). Or give a try with the binary installer.
ejabberd 15.07 from the dep-package is working fine under Ubuntu 15.04 here.
I did the install on an fresh configured system. I also got the message with error in post install script.
Files under /opt where created with the wrong user. So I had to chown them to ejabberd:ejabberd I did not run the postinstall.sh
actually didn't get it working yet. The try that is being processed at the moment looks as follows:
cd $HOME/Downloads
wget -O erlang.deb http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang.deb
rm erlang.deb
sudo su -c 'echo "deb https://apt.jabber.at trusty ejabberd" > /etc/apt/sources.list.d/jabber.at.list'
wget -qO- https://apt.jabber.at/gpg-key | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install erlang ejabberd
Looks very positive until now in case of ejabberd 15.06~5 and erlang Rev18 available from those Repo's natively compiled for trusty 14.04.
Tries that didn't work:
#############################################
# wget -O ejabberd.deb https://launchpad.net/ubuntu/+source/ejabberd/14.07-4ubuntu1/+build/6981202/+files/ejabberd_14.07-4ubuntu1_amd64.deb
#############################################
# wget -O ejabberd.deb http://ge.archive.ubuntu.com/ubuntu/pool/universe/e/ejabberd/ejabberd_15.03-2_amd64.deb
#############################################
# wget -O ejabberd.deb https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/15.07/ejabberd_15.07-0_amd64.deb
#############################################
# wget -O ejabberd.deb https://www.process-one.net/downloads/downloads-action.php?file=/ejabberd/15.07/ejabberd_15.07-0_amd64.deb
#############################################
# wget -O erlang.deb http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_18.0-1~ubuntu~trusty_amd64.deb
#############################################
# sudo dpkg -i erlang.deb
# sudo dpkg -i ejabberd.deb
# sudo apt-get -y -f install
# rm ejabberd.deb erlang.deb
# sudo chown -R ejabberd:/opt/ejabberd-15.07/*
# sudo cp /opt/ejabberd-15.07/bin/ejabberd.init /etc/init.d/ejabberd
# sudo sed -i 's/USER=ejabberd/USER=root/' /etc/init.d/ejabberd
# sudo chmod 770 /etc/init.d/ejabberd
# sudo usermod -s /usr/sbin/nologin ejabberd
# sudo cp -a /etc/init.d/ejabberd /etc/init.d/ejabberd.bak
# sudo sed -i 's/su $EJABBERDUSER -c/sudo -u "$EJABBERDUSER" sh -c/g' /etc/init.d/ejabberd
# sudo mv /opt/ejabberd-15.07/conf/ejabberd.yml /opt/ejabberd-15.07/conf/ejabberd.yml.orig
# sudo touch /opt/ejabberd-15.07/conf/ejabberd.yml
i'll give feedback after a successfull archipel setup.
You don't need erlang package AFAIK because everything is included in the ejabberd package.
Update: directly after successfull installation of erlang and ejabberd i get the following response:
sudo ejabberdctl status
The node ejabberd@fqdn is started with status: started
ejabberd 15.06 is running in that node
Now i copy https://github.com/ArchipelProject/Archipel/wiki/Ejabberd:-Configuration to /etc/ejabberd/ejabberd.yml after backing the original up.
sudo mv /etc/ejabberd/ejabberd.yml /etc/ejabberd/ejabberd.yml.orig
sudo nano /etc/ejabberd/ejabberd.yml # now copy the config from the link
sudo chmod --reference /etc/ejabberd/ejabberd.yml.orig /etc/ejabberd/ejabberd.yml
sudo sed -i 's/FQDN/myArchipelHost.com/' /etc/ejabberd/ejabberd.yml
sudo chmod 660 /etc/ejabberd/ejabberd.yml
sudo chown ejabberd: /etc/ejabberd/ejabberd.yml
sudo service ejabberd restart
After that i see that the recommended archipel-config for ejabberd works (or: ejabberd is able to restart without errors):
ejabberdctl status
The node ejabberd@fqdn is started with status: started
ejabberd 15.06 is running in that node
but now i'll restart my setup from beginning and try without erlang - thank's for that note CyrilPeponnet!
So now back from fresh Installation setting up ejabberd as described in the post before this one, the first thing i realize is that ejabberd takes some erlang-stuff from standard-repo but including ejabberd there's only a space of ~ 32MB additionally used on HD, the try before (including special erlang-Repo for Rev18 and trusty) needed about 185 MB additional HD-space.
The erlang-stuff needed by ejabberd is:
erlang-asn1 erlang-base erlang-crypto erlang-eunit erlang-goldrush
erlang-inets erlang-jiffy erlang-lager erlang-mnesia erlang-odbc
erlang-p1-cache-tab erlang-p1-iconv erlang-p1-mysql erlang-p1-pam
erlang-p1-pgsql erlang-p1-sip erlang-p1-stringprep erlang-p1-stun
erlang-p1-tls erlang-p1-utils erlang-p1-xml erlang-p1-yaml erlang-p1-zlib
erlang-proper erlang-public-key erlang-runtime-tools erlang-ssl
erlang-syntax-tools erlang-tools erlang-webtool erlang-xmerl libodbc1
libsctp1 libyaml-0-2 lksctp-tools
With the yaml-config for ejabberd i played as described before, then i registered ejabberd admin user.
After the lighttpd-install i took config from: http://www.dinotools.de/2011/07/26/archipel-installation/ and restarted the server.
The Nightlies' client i wgot to $HOME/Downloads and extracted Archipel/* to /var/www
After that i insalled requirements for Agend, and the agend itself - completing with $ sudo easy_install archipel-central-agent
.
At least i created tagnode, rolesnode, centralagentnode and did sudo update-rc.d archipel defaults before i started archipel via "sudo service".
Now the command
$ sudo ejabberdctl connected_users
should show me 1 Hypervisor and 1 Admin, after login at http://locahlost or http://fqdn.
and it did. Hypervisor fqdn@fqdn is also online in archipel Client after Login. This solution should be enough general to close this issue.
Glad it works for you.
On Sep 15, 2015, at 1:10 PM, explanar notifications@github.com wrote:
and it did. Hypervisor fqdn@fqdn is also online in archipel Client after Login. This solution should be enough general to close this issue.
— Reply to this email directly or view it on GitHub https://github.com/ArchipelProject/Archipel/issues/1155#issuecomment-140523509.
Me too ;) Thank's for your reliable and every-time support.
This is my firs try of ejabberd-config-translation in case of lots of syntax-errors after trying
https://github.com/ArchipelProject/Archipel/wiki/Ejabberd:-Configuration
as /etc/ejabberd/ejabberd.cfg in combination with actually updated ejabberd from Repo's. I'll comment if testing ends up successfully.Actually there's ejabberd "not running in that node", so i checked file-permissions and added an admin user:
Loglevel is set to 5 but there are no newly arrived messages in the named logfile, even trying to register admin to localhost instead of my FQDN fails. Some little research tells me that 1.) /etc/hosts could be misconfigured and 2.) i have to kill all processes "beam" and "epmd". I checked the hosts file and killed the two prcesses that were listening on ports :epmd and :41672, established to localhost.
Now i get the following error:
What can i do now?
Here's the translated ejabberd.cfg: