I was having trouble with my initial installation of ejabberd -- I was never able to connect to ejabberd from a client.
as I kept changing options in the ejabberd.cfg file, I became aware that options in the config file might be overridden or merged
with options retained in the internal database.
I decided to completely uninstall ejabberd, and start from scratch, but portions of the previous installation seem
not to have been removed, and I can't do a vanilla install of ejabberd as I wish to do.
logs follow.
any ideas?
-Kevin
root@vcsap19d:/etc/ejabberd# cp -p ejabberd.cfg /home/kbroekho
root@vcsap19d:/etc/ejabberd# /etc/init.d/ejabberd stop
root@vcsap19d:/etc/ejabberd# ps -ef|grep jabber
ejabberd 3982 1 0 Oct29 ? 00:00:00 /usr/lib/erlang/erts-5.5.5/bin/epmd -daemon
#
# remove package...
#
root@vcsap19d:/etc/ejabberd# apt-get remove ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
unixodbc odbcinst1debian1 erlang-nox erlang-base
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
ejabberd
0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
Need to get 0B of archives.
After unpacking 2564kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 23050 files and directories currently installed.)
Removing ejabberd ...
Stopping jabber server: ejabberd already stopped.
root@vcsap19d:/etc/ejabberd# ls /etc/ejabberd
#
# there's stuff still in the /etc/ejabberd dir, so remove it...
#
ejabberd.cfg ejabberd.cfg.orig ejabberd.pem inetrc
root@vcsap19d:/etc/ejabberd# rm /etc/ejabberd/*
#
# re-install it "vanilla" -- DOESN'T WORK -- why??????
#
root@vcsap19d:/# apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libunix-syslog-perl
The following NEW packages will be installed:
ejabberd
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/885kB of archives.
After unpacking 2564kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ejabberd.
(Reading database ... 22878 files and directories currently installed.)
Unpacking ejabberd (from .../ejabberd_1.1.2-9_i386.deb) ...
Setting up ejabberd (1.1.2-9) ...
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Not replacing deleted config file /etc/ejabberd/ejabberd.cfg
chown: cannot access `/etc/ejabberd/ejabberd.cfg': No such file or directory
dpkg: error processing ejabberd (--configure):
subprocess post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
# remove EVERYTHING named ejabberd...
#
root@vcsap19d:/etc# find / -name ejabberd -print
/etc/init.d/ejabberd
/etc/default/ejabberd
/etc/logrotate.d/ejabberd
/var/log/ejabberd
/var/lib/ejabberd
root@vcsap19d:/etc# apt-get purge ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ejabberd is not installed, so not removed
The following packages were automatically installed and are no longer required:
unixodbc odbcinst1debian1 erlang-nox erlang-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
root@vcsap19d:/etc# rm -r /etc/init.d/ejabberd /etc/default/ejabberd /etc/logrotate.d/ejabberd /var/log/ejabberd /var/lib/ejabberd
root@vcsap19d:/etc# find / -name ejabberd -print
root@vcsap19d:/etc# apt-get install ejabberd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libunix-syslog-perl
The following NEW packages will be installed:
ejabberd
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0B/885kB of archives.
After unpacking 2564kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package ejabberd.
(Reading database ... 22878 files and directories currently installed.)
Unpacking ejabberd (from .../ejabberd_1.1.2-9_i386.deb) ...
Setting up ejabberd (1.1.2-9) ...
Generating SSL certificate /etc/ejabberd/ejabberd.pem...
Not replacing deleted config file /etc/ejabberd/ejabberd.cfg
chown: cannot access `/etc/ejabberd/ejabberd.cfg': No such file or directory
dpkg: error processing ejabberd (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
ejabberd
E: Sub-process /usr/bin/dpkg returned an error code (1)
#
# so how can I COMPLETELY REMOVE EJABBERD, so I can proceed with a "vanilla"
# install?????
-Kevin
#
Delete the directory /etc/ejabberd/ ?
# rm /etc/ejabberd/*
# apt-get install ejabberd
...
Not replacing deleted config file /etc/ejabberd/ejabberd.cfg
chown: cannot access `/etc/ejabberd/ejabberd.cfg': No such file or directory
dpkg: error processing ejabberd (--configure):
Did you try to delete the directory /etc/ejabberd/, or put a fake ejabberd.cfg so dpkg doesn't complain?
I installed ejabberd 2.0.1-5 Debian unstable package with apt-get, and then completely removed:
And then installed again.
thanks -- "--purge" solved my problem
I had tried the "--purge" option after the "remove" to no effect.
what worked was to do a re-install. this fails as before. then do the remove with the "--purge"
option.
thanks so much for your reply.
-Kevin