[Solved] How to uninstall?

I got Bluemind installed on Ubuntu 12.04, however, something messed up the other programs I’m running in apache. I don’t know if it was the Bluemind installer itself or something I did to set up the fully qualified domain name.

Here’s what happens. My ubuntu server, host name was ubuntuVM. I changed it to ubuntuVM.mycompany.local. The IP address is 192.168.200.227. From another computer on my network, I go to the url of one of the other programs, such as http://192.168.200.227/phpMyBackupPro-2.2/phpMyBackupPro/ The URL in the browser gets changed to: https://ubuntuVM.fontana.local/phpMyBackupPro-2.2/phpMyBackupPro/ and the page doesn’t load because it can’t find ubuntuVM.fontana.local. So I put an entry in the host file of the client computer and now I get the blue mind page, even if the url points to phpmybackuppro.

I changed the hostname of the server back to what it was originally, and it still behaves as described above.

So my next step is to uninstall Bluemind and hope that fixes the problem, but I can’t find any instructions for how to do that.

Thanks

Blue Mind is designed to be installed on a dedicated server or VM.

You can reconfigre NGinx, to redirect /phpMyBackupPro to the right apache virtualhost, but this will be overriden on every Blue Mind update.

To uninstall Blue Mind, you can run: sh bluemind-installer-1.XX.XXXX-rhel6.bin uninstall or simply remove all bm-* packages. But you may reconfigure your apache we guess.

The uninstall didn’t work. I got this:

sudo sh bluemind-installer-1.13.8921-precise.bin uninstall
Verifying archive integrity... All good.
Uncompressing Blue Mind Groupware installer..............................................................................................

########################################
# Welcome to Blue Mind installer
########################################

Remove Blue Mind local repository: done.
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
You can only specify a package archive with an 'install' command.
(This line repeated 158 times)

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Installation log: /tmp/bluemind-installer-1.13.8921-precise.bin.log

So I used Synaptic to remove all the BM-* packages and got a bunch of other errors. I don’t know if they are important:

(Reading database ... 498322 files and directories currently installed.)
Removing bm-full ...
(Reading database ... 498319 files and directories currently installed.)
Removing bm-admin-console ...
Removing bm-webmail ...
Removing bm-apache ...
Site bm-ui disabled.
To activate the new configuration, you need to run:
  service apache2 reload
Enabling site default.
To activate the new configuration, you need to run:
  service apache2 reload
Site bm-ui already disabled
Restart apache2 service
Purging configuration files for bm-apache ...
ERROR: Site bm-ui does not exist!
Restart apache2 service
Processing triggers for bm-tomcat ...
/usr/share/tomcat/conf/Catalina/localhost /
publish /usr/share/bm-tomcat/applis/cal.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/contact.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/ROOT.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/settings.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/setup.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/solr.xml into BM tomcat server...
/
Blue Mind Tomcat already running.
(Reading database ... 491144 files and directories currently installed.)
Removing bm-client-access ...
Removing bm-certs ...
(Reading database ... 491129 files and directories currently installed.)
Removing bm-ca ...
Purging configuration files for bm-ca ...
(Reading database ... 491117 files and directories currently installed.)
Removing bm-calendar ...
Removing bm-solr ...
dpkg: warning: while removing bm-solr, directory '/var/bm-solr/event' not empty so not removed.
dpkg: warning: while removing bm-solr, directory '/var/bm-solr/webmail' not empty so not removed.
dpkg: warning: while removing bm-solr, directory '/var/bm-solr/default' not empty so not removed.
dpkg: warning: while removing bm-solr, directory '/var/bm-solr/contact' not empty so not removed.
Removing bm-cyrus ...
Removing bm-core ...
Waiting for Blue Mind core Server shutdown..
Processing triggers for bm-tomcat ...
/usr/share/tomcat/conf/Catalina/localhost /
publish /usr/share/bm-tomcat/applis/contact.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/ROOT.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/settings.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/setup.xml into BM tomcat server...
/
Blue Mind Tomcat already running.
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
(Reading database ... 490764 files and directories currently installed.)
Removing bm-conf ...
dpkg: warning: while removing bm-conf, directory '/etc/bm' not empty so not removed.
(Reading database ... 490757 files and directories currently installed.)
Removing bm-settings ...
Processing triggers for bm-tomcat ...
/usr/share/tomcat/conf/Catalina/localhost /
publish /usr/share/bm-tomcat/applis/contact.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/ROOT.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/setup.xml into BM tomcat server...
/
/etc/init.d/bm-tomcat: line 23: /usr/bin/bm_java_home: No such file or directory
/usr/share/tomcat/bin/catalina.sh: line 11: /usr/bin/bm_java_home: No such file or directory
Starting server Blue Mind Tomcat: /etc/init.d/bm-tomcat: line 38: /bin/jps: No such file or directory
fail
invoke-rc.d: initscript bm-tomcat, action "start" failed.
dpkg: error processing bm-tomcat (--remove):
 subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up bm-tomcat (1.13.8921) ...
/usr/share/tomcat/conf/Catalina/localhost /home/ubuntu
publish /usr/share/bm-tomcat/applis/contact.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/ROOT.xml into BM tomcat server...
publish /usr/share/bm-tomcat/applis/setup.xml into BM tomcat server...
/home/ubuntu
/etc/init.d/bm-tomcat: line 23: /usr/bin/bm_java_home: No such file or directory
/usr/share/tomcat/bin/catalina.sh: line 11: /usr/bin/bm_java_home: No such file or directory
Starting server Blue Mind Tomcat: /etc/init.d/bm-tomcat: line 38: /bin/jps: No such file or directory
fail
invoke-rc.d: initscript bm-tomcat, action "start" failed.
dpkg: error processing bm-tomcat (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 bm-tomcat

So has everything been removed or is there still something else I need to do?

Thanks,

After reloading the list in Synaptic, the only bm packages that got removed were:
bm-certs
bm-client-access
bm-core
bm-cyrus

So I emptied out the directories it was complaining about, and I was able to remove a few more packages. The current errors are:

(Reading database ... 490524 files and directories currently installed.)
Removing bm-installation-wizard ...
Removing bm-contact ...
Removing bm-default-app ...
Removing bm-tomcat ...
/etc/init.d/bm-tomcat: line 23: /usr/bin/bm_java_home: No such file or directory
Blue Mind Tomcat not running.
Removing bm-connector-thunderbird ...
Removing bm-eas ...
/etc/init.d/bm-eas: line 20: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-eas, action "stop" failed.
dpkg: error processing bm-eas (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              /etc/init.d/bm-eas: line 20: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-eas, action "start" failed.
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Removing bm-hps ...
/etc/init.d/bm-hps: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-hps, action "stop" failed.
dpkg: error processing bm-hps (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing bm-mq ...
/etc/init.d/bm-mq: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-mq, action "stop" failed.
dpkg: error processing bm-mq (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing bm-locator ...
/etc/init.d/bm-locator: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-locator, action "stop" failed.
dpkg: error processing bm-locator (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing ysnp ...
/etc/init.d/ysnp: line 18: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript ysnp, action "stop" failed.
dpkg: error processing ysnp (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing bm-lmtpd ...
/etc/init.d/bm-lmtpd: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-lmtpd, action "stop" failed.
dpkg: error processing bm-lmtpd (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing bm-node ...
/etc/init.d/bm-node: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME: 
invoke-rc.d: initscript bm-node, action "stop" failed.
dpkg: error processing bm-node (--remove):
 subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
                                                              Removing bm-jdk ...
Removing bm-postfix ...
Removing bm-storage ...
Processing triggers for ureadahead ...
Errors were encountered while processing:
 bm-eas
 bm-hps
 bm-mq
 bm-locator
 ysnp
 bm-lmtpd
 bm-node
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

The packages still installed are:
bm-eas
bm-hps
bm-lmtpd
bm-locator
bm-mq
bm-node

Try to re-install bm-conf and bm-jdk then remove all packages except bm-conf and bm-jdk.

If it’s ok, finish by removing bm-conf and bm-jdk packages.

Well, that didn’t quite work. Conf and jdk didn’t show up in synaptic at first so I couldn’t reinstall them from there. So I reran the installer script, and then they showed up in synaptic, so then I installed them. I think that worked. I then tried to uninstall everything but them, and I still had errors about non-empty directories in var/log and var/lib. So I deleted these directories by hand. Then I tried to remove conf and jdk. I think bm-conf is gone, but when I uninstall bm-jdk it fails because it can’t find /usr/bin/bm_java_home.

I still see some bm- folders in various places. Can I just delete these by hand and be done with it? It looks like the uninstaller still has a few bugs in it.

Did I miss the warning that says that Blue-Mind needs its own dedicated server? If there isn’t one, it sure would be nice if there was one, prominently placed on the download page. It might save someone else a whole bunch of trouble.

Thanks

Hm, strange… Could you send bm-jdk uninstall error message please ?
Try to remove bm-jdk first, and finish by removing bm-conf.

There is a mistake on Blue Mind 2 documentation on our web site, warning about installing on a dedicated server was forgotten… It’s fix, and we’ll add this on installer too. Sorry for the inconvenience.

Well, there are no longer any bm- packages listed in synaptic, so I can’t uninstall it without reinstalling it again. As I recall, the message was very similar to this one for bm-locator or most of the other ones in the previous log I posted here. Except it referred to bm-jdk instead of bm-locator.

                                                          Removing bm-locator ...

/etc/init.d/bm-locator: line 19: /usr/bin/bm_java_home: No such file or directory
JDK not found in JAVA_HOME:
invoke-rc.d: initscript bm-locator, action “stop” failed.
dpkg: error processing bm-locator (–remove):
subprocess installed pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already

I think my only problems now are nginx is running automatically on reboot and apache isn’t. I tried to uninstall nginx, but it is not shown as installed. However a PS shows it running. I can kill it, and start apache, and everything seems back to normal. Any idea how to get rid of nginx? I’m assuming it isn’t a standard part of the ubuntu installation.

I may just go back to a previous snapshot.

Thanks

I deleted the nginx file in /etc/init.d and restarted and I think it all works now. Thanks for the help.

Remove all the /etc/rc?.d/nginx files too.