Uninstalling clients hosted on NEOSYS Server: Difference between revisions

From NEOSYS Technical Support Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
This must be done in the following circumstances:
This must be done in the following circumstances:


# Reinstallation on other servers
#Reinstallation on other servers
# Reinstallation on clients own server
#Reinstallation on clients own server
# Termination of contract
#Termination of contract
# Any other reason
#Any other reason


NEOSYS needs to:
NEOSYS needs to:


# Ensure that the installations can no longer be used by accident or design
#Ensure that the databases can no longer be logged in to by accident or design.
# Ensure that for a reasonable period of time that NEOSYS can be re-enabled in case of error or change in circumstances
#Ensure that for a reasonable period of time that NEOSYS can be re-enabled in case of error or change in circumstances.


==== Stage 1. Disabling ====
Include admin@neosys.com when sending emails regarding this subject.


1. Ensure that the NEOSYS processes, for the installation that is being moved, have been shutdown. This includes checking that no ntvdm process is running for the installation being moved, in procexp.exe (Find, Handle, D:)
====Stage 1. Disabling====


2. Stop the associated web in IIS
1. Ensure that the services for the client being uninstalled have been stopped.
./doall <dbname> stop


3. Edit the process startup cmd file, which is scheduled to run daily in the task scheduler and comment out the stopped installation from it
2. Delete the website
./doall <dbname> delete_site


4. Capitalise the client folder name. In Windows, capitalisation has no effect other than visual. This makes it possible to differentiate between active and terminated clients.
3. Disable the service, otherwise the services will start up every time ex1 reboots.
./doall <dbname> disable


The old procedure of MOVING this folder to the "OLD" folder leads to backups doubling up on capacity. i.e. on the backup server, the terminated Client's folder will be present both in the old location (where all active client folders are) and the new location ("OLD" folder).
4. In doall, comment out the line corresponding to the client being uninstalled. Do this in dev as well and push the changes to neosys git.


Capitalising the folder name instead of moving the folder will prevent the backups from doubling up while still allowing us to identify which clients are live and which ones are terminated.
5. Comment the lines for the stopped installation in the Nagios config file so that Nagios stops alerting for it. (edit: genclients.sh)


5. Comment the lines for the stopped installation in the Nagios config file so that Nagios stops alerting for it
6. Strike-through the terminated client's link on support home page (support.htm).
 
7. Create Thunderbird reminder to permanently delete the client 1 year later.
 
====Stage 2. Permanent Deletion====
 
We keep ex client data for up to one year before deleting, but after this period:


6. Strike-through the terminated client's link on support home page (support.htm).
1. Retain a copy of the client's latest backup sql.gz file in a separate directory (in ex1:/backups/current/deleted as of 3/4/2023)
 
2. Delete the database and service
sudo -u postgres dropdb <dbname>
sudo -u postgres dropdb <dbname_test>
./doall <dbname> delete_service


==== Stage 2. Permanent Deletion ====
3. Delete client directory from /root/hosts directory.
rm -r ~/hosts/<dbname>


Any installation found in the hosts\OLD folder which is older than one year may be deleted to free up storage and backup resources as follows:
4. Remove the terminated client's link from support home page (support.htm).


1. Delete the associated web in IIS
5. Delete the associated entry from Zone Edit.


2. Delete the associated folders in hosts\OLD folder
6. In doall, delete the line corresponding to the client being uninstalled. Do this in dev as well and push the changes to neosys git.


3. Remove the terminated client's link from support home page (support.htm).
7. Delete the lines for the stopped installation in the Nagios config file (edit: genclients.sh).

Latest revision as of 05:54, 1 April 2024

This must be done in the following circumstances:

  1. Reinstallation on other servers
  2. Reinstallation on clients own server
  3. Termination of contract
  4. Any other reason

NEOSYS needs to:

  1. Ensure that the databases can no longer be logged in to by accident or design.
  2. Ensure that for a reasonable period of time that NEOSYS can be re-enabled in case of error or change in circumstances.

Include admin@neosys.com when sending emails regarding this subject.

Stage 1. Disabling

1. Ensure that the services for the client being uninstalled have been stopped.

./doall <dbname> stop

2. Delete the website

./doall <dbname> delete_site

3. Disable the service, otherwise the services will start up every time ex1 reboots.

./doall <dbname> disable

4. In doall, comment out the line corresponding to the client being uninstalled. Do this in dev as well and push the changes to neosys git.

5. Comment the lines for the stopped installation in the Nagios config file so that Nagios stops alerting for it. (edit: genclients.sh)

6. Strike-through the terminated client's link on support home page (support.htm).

7. Create Thunderbird reminder to permanently delete the client 1 year later.

Stage 2. Permanent Deletion

We keep ex client data for up to one year before deleting, but after this period:

1. Retain a copy of the client's latest backup sql.gz file in a separate directory (in ex1:/backups/current/deleted as of 3/4/2023)

2. Delete the database and service

sudo -u postgres dropdb <dbname>
sudo -u postgres dropdb <dbname_test>
./doall <dbname> delete_service

3. Delete client directory from /root/hosts directory.

rm -r ~/hosts/<dbname>

4. Remove the terminated client's link from support home page (support.htm).

5. Delete the associated entry from Zone Edit.

6. In doall, delete the line corresponding to the client being uninstalled. Do this in dev as well and push the changes to neosys git.

7. Delete the lines for the stopped installation in the Nagios config file (edit: genclients.sh).