<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://techwiki.neosys.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vineet</id>
	<title>NEOSYS Technical Support Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://techwiki.neosys.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vineet"/>
	<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php/Special:Contributions/Vineet"/>
	<updated>2026-05-29T18:21:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Procedures&amp;diff=1118</id>
		<title>Procedures</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Procedures&amp;diff=1118"/>
		<updated>2012-11-21T11:46:45Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Creating and Handling passwords */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are procedures to be followed by Support Staff in respect to various technical matters in day to day operations of client issues.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS Support Policies ==&lt;br /&gt;
In order to maintain good payment speed by clients NEOSYS needs to restrict support to clients that dont pay their bills on time, however the degree of restriction needs to depend on an intimate knowledge of the client which cannot be expected from all NEOSYS support staff. Therefore we will use a simple escalation policy as follows:&lt;br /&gt;
&lt;br /&gt;
=== Stop Support List ===&lt;br /&gt;
NEOSYS SUPPORT MANAGERS WILL maintain an overdue/stop list on a whiteboard visible to all support staff. Generally clients will go on the list immediately when their invoice is overdue and come off only after satisfactory commitment to pay have been obtained.&lt;br /&gt;
&lt;br /&gt;
NEOSYS SUPPORT STAFF WILL discretely refer any calls for support from client on the overdue/stop list to support managers for handling.&lt;br /&gt;
&lt;br /&gt;
Managers may well instruct support to provide support on a case by case basis even if clients are on the stop list. Being on the stop list does not necessarily indicate a major issue with accounts&lt;br /&gt;
&lt;br /&gt;
In case clients pressurize neosys staff to provide support then the support staff must inform them that there is an issue with their account and that their request had been forwarded to the manager.&lt;br /&gt;
&lt;br /&gt;
This policy excludes dealing with server failures, backup failures and measures required to be taken to fix these failures.&lt;br /&gt;
&lt;br /&gt;
== Client Password Policy ==&lt;br /&gt;
All client user passwords, including their initial one, are to be obtained via the user&#039;s email address using the password reminder/reset button on the login screen.&lt;br /&gt;
&lt;br /&gt;
NEOSYS staff should never know users passwords therefore NEOSYS will not obtain and grant user passwords.&lt;br /&gt;
&lt;br /&gt;
=== Support requests from ordinary client users ===&lt;br /&gt;
Any support requests concerning inability to obtain passwords will be forwarded to known skilled users on the client staff since this is the most efficient (not fastest) way to handle such issues.&lt;br /&gt;
&lt;br /&gt;
=== Support requests from senior client management ===&lt;br /&gt;
Any support requests concerning inability to obtain passwords by senior client management users shall be handled directly by NEOSYS support staff in any way convenient to resolve the issue in the quickest possible time rather than the most efficient.&lt;br /&gt;
&lt;br /&gt;
Bearing in mind that NEOSYS staff should never know user&#039;s passwords this will probably involve NEOSYS staff using the Password Reminder/Reset button to send a new password to the user.&lt;br /&gt;
&lt;br /&gt;
=== User Defined Passwords ===&lt;br /&gt;
NEOSYS will provide user defined passwords in very special cases which must be pre-approved case by case by NEOSYS management. For many reasons, NEOSYS will not approve.&lt;br /&gt;
&lt;br /&gt;
Currently this permission has only been granted to one NEOSYS client with several hundred of databases.&lt;br /&gt;
&lt;br /&gt;
== Handling client issues ==&lt;br /&gt;
=== Handling error messages ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Before Attempting to resolve client issues, please ensure that we have secure access to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
#The very first step is understanding client problem.&lt;br /&gt;
#Ask the client what error does he gets on the screen.&lt;br /&gt;
#If error seems to be familiar then resolve it over the phone.&lt;br /&gt;
#If error is unknown then ask user to send a screenshot of the error displayed along with the options used (basically you need to know HOW to replicate the error)&lt;br /&gt;
#Upon receipt of the error, check in all the wikis for a solution.&lt;br /&gt;
#If the issue is unknown or you don’t understand it clearly ask the user then use remote support to gain access to the users desktop to view how to replicate the error. &lt;br /&gt;
&lt;br /&gt;
If it is new issue then report by escalation the same issue to your manager with a brief explanation.&lt;br /&gt;
&lt;br /&gt;
=== NEOSYS support for resolving issues with totals on reports ===&lt;br /&gt;
&lt;br /&gt;
If a client has a problem with any total output by NEOSYS software then NEOSYS support will advise them which other NEOSYS report or reports provide a complete breakdown of the total (if necessary, to individual transactions) and ask the client to locate any offending transactions themselves.&lt;br /&gt;
&lt;br /&gt;
NEOSYS support staff will handle any issues where the total on the breakdown report does not add up to the total on the summary report.&lt;br /&gt;
&lt;br /&gt;
Reconciling totals can be hard if there are many transactions involved. Regardless of how hard it may be, reconciliation is an operational task for users not for support staff since NEOSYS support staff will not get involved in understanding client transactions or data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using Support Tools ==&lt;br /&gt;
&lt;br /&gt;
=== NEOSYS Software ===&lt;br /&gt;
&lt;br /&gt;
The NEOSYS Software is currently supported on the following Operating Systems (OS) and browsers:&lt;br /&gt;
&lt;br /&gt;
* For Media &amp;amp; Finance modules, Internet Explorer 6+ on Windows&lt;br /&gt;
* For Jobs &amp;amp; Timesheets modules, Internet Explorer 6+ on Windows or Safari 5+ on Mac&lt;br /&gt;
&lt;br /&gt;
Users are to ensure that pop-up blockers and any 3rd party toolbars are deactivated/switched off or else certain pages and alert messages while using NEOSYS do not appear as a result of blocking from either the pop-up blocker or toolbars with built-in pop-up blockers.&lt;br /&gt;
&lt;br /&gt;
NEOSYS Support personnel should additionally ensure that under Internet Explorer &amp;gt; Tools &amp;gt; Internet Options &amp;gt; Advanced &amp;gt; Browsing - the items Disable script debugging (Internet Explorer) and Disable script debugging (Other) are &#039;&#039;&#039;UNTICKED&#039;&#039;&#039;. This is because if NEOSYS generates any javascript error message, the same would disappear in the bottom left corner of a window, which in turn helps the programmer fix the error.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note-&#039;&#039; The above mentioned process must be carried out after every Factory Reset.&lt;br /&gt;
&lt;br /&gt;
=== Website Live Support ===&lt;br /&gt;
www.neosys.com is equipped with a Live Support software and clients can visit the website, click on this link and chat with any of our support staff, without the need for any installation. The client has to fill in their name and email address to connect to an available support personnel. During non-working hours, the Live Support icon on the website automatically displays &amp;quot;offline&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
NEOSYS Support personnel who are authorised to provide such support, need to download a software called Kayako Live Support from http://hotfix.kayako.com/latest.php?product=lr&amp;amp;platform=win32&amp;amp;buildtype=stable&lt;br /&gt;
&lt;br /&gt;
Once downloaded the account needs to be setup as follows:&lt;br /&gt;
&lt;br /&gt;
* Account Name: (as provided by NEOSYS IT)&lt;br /&gt;
* SupportSuite URL: http://support.neosys.com/&lt;br /&gt;
* User Name: (as provided by NEOSYS IT and usually same as Account Name)&lt;br /&gt;
* Password: (as provided by NEOSYS IT)&lt;br /&gt;
&lt;br /&gt;
The first time the account is setup, you need to close Kayako Live Support completely and restart for it to login and work properly.&lt;br /&gt;
&lt;br /&gt;
=== Teamviewer ===&lt;br /&gt;
Since teamviewer allows no restriction on access once a fixed pass is installed, we cannot install fixed pass on teamviewer however convenient it might be.&lt;br /&gt;
&lt;br /&gt;
RULE: NO FIXED PASS TO BE INSTALLED ON TEAMVIEWER IN ANY NEOSYS OR NEOSYS CLIENT COMPUTER&lt;br /&gt;
&lt;br /&gt;
Running teamviewer live from a web link is fine because it does not allow installation of a permanent password&lt;br /&gt;
&lt;br /&gt;
=== Documenting Processes in Wiki ===&lt;br /&gt;
[[How to create templates in wiki]]&lt;br /&gt;
&lt;br /&gt;
== Handling Nagios Client Monitoring system ==&lt;br /&gt;
Nagios is configured to display information pertaining to all NEOSYS client&#039;s server statuses which include multiple services such as:&lt;br /&gt;
# HTTPS: Most of NEOSYS clients are configured to have external web access via secure HTTP protocol (port 4430) from outside office. Nagios is configured to check port 4430 on a regular interval of 10 minutes and display any issues in accessing the same.&lt;br /&gt;
# SSH: As part of the support contract, NEOSYS should have external secure access to the client server usually over port 19580. Nagios is configured to check this port on a regular interval of 10 minutes and display any issues in accessing the same.&lt;br /&gt;
# Ping: Nagios is also configured to ping the client router as a measure to check if router responds incase the NEOSYS server is down.&lt;br /&gt;
# NEOSYS: This service works in a reverse direction, and the NEOSYS installation on the client server sends information such as databases running, current backup status, internal and internet IP addressess etc to Nagios on a regular interval of 10 minutes.&lt;br /&gt;
&lt;br /&gt;
Some key information about Nagios is as follows:&lt;br /&gt;
* Nagios is also configured to display information related to internal servers. &lt;br /&gt;
* Clients hosted on a NEOSYS cloud server might not have services such as SSH or PING as this is monitored as part of the internal server service.&lt;br /&gt;
* Nagios sends out email alerts to support2@neosys.com (which is forwarded to support@neosys.com) from 8 am to 12 midnight on all Dubai working days (Sun-Thu). No alerts are sent out on Fri and Sat, unless they are for NEOSYS internal servers.&lt;br /&gt;
&lt;br /&gt;
NEOSYS support staff on duty has to follow the below outlined procedures in case of any Nagios items showing a critical or warning message for any service: &lt;br /&gt;
# Nagios is required to be checked first thing in the morning and any critical or warning messages need to be dealth with to resolve the same at the earliest. &lt;br /&gt;
# Some of the messages could be related to backup failures and the usual procedure as stated in #Backup Procedures needs to be followed. In case the backup issue isn&#039;t resolved by 9:30 am, the Nagios service needs to be scheduled with downtime for a minimum of 2 hours and maximum until 1 am next day if the issue cannot be solved. &lt;br /&gt;
# In case any HTTPS, SSH or PING service is down, immediate action is required and the relevant IT people at the client side needs to be contacted to get this resolved. A downtime of 2 hours is required to be scheduled with further intervals of 2 hours incase this is not resolved. Support staff shouldn&#039;t schedule downtime till 1 am next day, just to get rid of the alerts for the day. Proactive follow up with the client is required to get this resolved before the business day - more so, if there is a weekend ahead. &lt;br /&gt;
# In case the HTTPS, SSH or PING service goes down during the day, a grace period of 20 minutes is given before the issue is reported to the client IT. This helps incase there is any temporary internet connection issue at the client or along the internet route. &lt;br /&gt;
# In case of &amp;quot;Backup not changed&amp;quot; warning status which occurs if the client has not interchanged the USB before 12 noon on that day, no action is required from the support staff and a downtime until 1 am next day needs to be scheduled.&lt;br /&gt;
 &lt;br /&gt;
**&#039;&#039;&#039;PLEASE NOTE&#039;&#039;&#039;: Failure to schedule appropriate downtime will lead to REDUNDANT ALERTS from NAGIOS every hour.&lt;br /&gt;
&lt;br /&gt;
== What happens if there is no remote access to NEOSYS server based in client’s premises ? ==&lt;br /&gt;
&lt;br /&gt;
If access to the NEOSYS server is lost then we must determine the root cause by: &lt;br /&gt;
&lt;br /&gt;
# Checking if the server is UP and running&lt;br /&gt;
# If yes, please check internet connectivity on the server&lt;br /&gt;
# If there is connectivity, please check the router for connectivity issues&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
Please note that we have currently lost access to the NEOSYS server. The server seems to be down at the moment and it seems that neosys processes are not running on the server.&lt;br /&gt;
Kindly check if the server is UP and running. If yes, please check internet connectivity on the server.&lt;br /&gt;
Do keep us posted on the server status so we can test connectivity from our side as well.0&lt;br /&gt;
&lt;br /&gt;
== New Router (Port Forwarding) ==&lt;br /&gt;
&lt;br /&gt;
If you have changed your router then you may notice that external access to NEOSYS is unavailable. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Setup a permanent access for NEOSYS by reconfiguring the Router / Firewall for Port Forwarding from Router to the NEOSYS Server as follows: &lt;br /&gt;
# Port 19580 &amp;gt; 19580 for SSH &lt;br /&gt;
# Port 4430 &amp;gt; 4430 for HTTPS&lt;br /&gt;
&lt;br /&gt;
You can see [http://portforward.com/ Set Up Port Forwarding] to learn how to configure your Router.&lt;br /&gt;
&lt;br /&gt;
To see how to test/ troubleshoot port forwarding settings, go to [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting Port Forwarding]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
You are requested to kindly setup a permanent access for NEOSYS by reconfiguring the Router / Firewall for Port Forwarding from Router to the NEOSYS Server,i.e.  port 19580 for SSH and port 4430 for HTTPS.&lt;br /&gt;
&lt;br /&gt;
Once this is complete, kindly send me an email to confirm the same so that we could test connectivity from our end as well.&lt;br /&gt;
&lt;br /&gt;
== Backup Procedures ==&lt;br /&gt;
=== Preparing daily backup report ===&lt;br /&gt;
# Note the success, failure and other error of the clients backup mail in an excel sheet and forward the same to your manager.&lt;br /&gt;
# If there is a backup failure or backup is not available, check wiki to take necessary steps.&lt;br /&gt;
# If there is any unknown error, forward the same to your manager.&lt;br /&gt;
&lt;br /&gt;
=== Updating Nagios incase of failures ===&lt;br /&gt;
# If the backup failure is unsolved, schedule downtime Neosys service in Nagios till 01 am.&lt;br /&gt;
# If the backup did not happen because of server down. Call the IT person; ask him to re-boot the server and check wiki to do necessary step ahead and schedule downtime to Nagios for 2hours.&lt;br /&gt;
# If there is an error &amp;quot;Backup-&amp;gt;Impossible&amp;quot; on Nagios check wiki and schedule downtime to Nagios for 2hours.&lt;br /&gt;
&lt;br /&gt;
=== Interchange backup USB mail reminder ===&lt;br /&gt;
# Basically all the clients have different days to change their backup USB. All the notification can be seen on Nagios at 12.00 pm every day.&lt;br /&gt;
# When you see the change backup notification on Nagios at 12.00 pm, send a mail to the IT person or the person who changes the USB. As you send the mail schedule downtime for Neosys services for two hours.&lt;br /&gt;
# Check the Nagios at 2.00 pm if the backup USB is changed, don&#039;t send another mail and stop there. But if backup is still not yet changed, send a another mail and this time cc the mail to your manager. After sending the mail, schedule downtime for Neosys service for more two hours.&lt;br /&gt;
# Now at 4.00 pm if you still find the backup USB not changed. Call the IT person and ask him to change the USB ASAP and schedule downtime for Neosys services for one hour.&lt;br /&gt;
# Now at 5.00 pm check Nagios and see if the backup USB is changed and if not changed. Send the mail to everyone from the backup mail.&lt;br /&gt;
# If the backup is still not changed, escalate the issue to your manager.&lt;br /&gt;
&lt;br /&gt;
==== Importance of interchanging backup USBs ====&lt;br /&gt;
If the backup USB is not interchanged on the scheduled day then the NEOSYS automated backup fails. This happens because traditionally, each USB holds backup of 7 days and using 3 different USBs we can store backups for the last 21 days enabling us to restore the system unto a time period beginning 21 days prior.&lt;br /&gt;
If the USB is not changed then the first backup on the current USB is replaced with the new or latest backup leading to inconsistencies within the backups. Hence we must interchange the USB on schedule to avoid a backup failure the next morning.&lt;br /&gt;
&lt;br /&gt;
The reasons for using multiple USBs for backup are:&lt;br /&gt;
#We can keep other USBs out of the office for safety purposes since theft or office fire/water hazards could damage the computer and the USB keys if they are all in the same place.&lt;br /&gt;
#Having multiple USBs provide safety against corrupt USBs which cannot be used to restore any backup data. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
The NEOSYS backup has failed today as the USB was not interchanged on the scheduled day.&lt;br /&gt;
Please interchange the USB immediately today to avoid a backup failure tomorrow morning.&lt;br /&gt;
Also note that your scheduled day to interchange the USB next week and hence forth remains unchanged to &#039;&#039;&#039;(Scheduled Day)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Finding out which USB is inserted into the server ===&lt;br /&gt;
As we ask the client to have 3 USB&#039;s and interchange them weekly, we also need to sometimes track which one of these 3 USB&#039;s are inserted into the server. USB&#039;s can be tracked using their volume serial number in most cases. To find this out either go to the command prompt and type VOL or in the nightly backup message check for the 2nd line (which looks like this - 14/12/2009 2:45pm Media: 705B-5B5F). However serial numbers can be the same even for different USB&#039;s.&lt;br /&gt;
&lt;br /&gt;
== Client relocating operations to a new premises == &lt;br /&gt;
&lt;br /&gt;
Ensure that the following procedure is followed by the clients IT staff prior to relocation:&lt;br /&gt;
&lt;br /&gt;
# Login to the NEOSYS server and shut down all the processes by hitting the ESC button on each of the window three times or until they close&lt;br /&gt;
# Take a backup of the D drive on another system or network / external drive&lt;br /&gt;
# Remove the USB plugged in and secure the same along with the other two USB’s in a safe location&lt;br /&gt;
# The NEOSYS server may now be shutdown and moved to the new premises&lt;br /&gt;
&lt;br /&gt;
Post relocation, the clients IT staff must ensure the following immediately:&lt;br /&gt;
&lt;br /&gt;
# Connect the server to the local network and complete all setup required for users to be able to access the system internally&lt;br /&gt;
# Configure the firewall and/or port settings to enable NEOSYS support staff to connect to the server externally &lt;br /&gt;
# Provide NEOSYS support with the new fixed IP address so that the connection can be tested.&lt;br /&gt;
&lt;br /&gt;
== Creating and Handling passwords ==&lt;br /&gt;
Passwords made out of a pass phrase should be at least 10 characters since using initials results in a lot of i&#039;s and a&#039;s etc which reduces the effectiveness of the password and allows hacking via brute force guessing especially since windows doesnt slow down logins even if it sees thousands of password attempts.&lt;br /&gt;
&lt;br /&gt;
=== Creating a password ===&lt;br /&gt;
Passwords are generated from a pass phrase and it is important to create a very difficult to guess pass phrase.&lt;br /&gt;
&lt;br /&gt;
For example, a good pass phrase would be: &#039;&#039;&#039;Today is a good day and it is the best time to go for a holiday&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The password for this would be &#039;&#039;&#039;Tiagdaiitbt2g4ah&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The important instructions for the above are:&lt;br /&gt;
#You have to take the first letter of each word and that makes your password (i.e. by using initials)&lt;br /&gt;
#Wherever any word starts with a capital, then you have to take first letter as a capital (eg. For Today you will take T)&lt;br /&gt;
#Replace &#039;&#039;&#039;and&#039;&#039;&#039; with &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;&lt;br /&gt;
#Replace &#039;&#039;&#039;to&#039;&#039;&#039; with &#039;&#039;&#039;2&#039;&#039;&#039;&lt;br /&gt;
#Replace &#039;&#039;&#039;for&#039;&#039;&#039; with &#039;&#039;&#039;4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Handling passwords ===&lt;br /&gt;
#Never send the actual password - always send the pass phrase&lt;br /&gt;
#Make sure that the password created out of the pass phrase is at least 10 characters long since using initials results in a lot of i&#039;s and a&#039;s etc which reduces the effectiveness of the password and allows hacking via brute force guessing especially since windows doesnt slow down logins even if it sees thousands of password attempts&lt;br /&gt;
#Pass phrases are never to be sent by email, whatever the case maybe.&lt;br /&gt;
#Pass phrases can be sent by chat - however they have to be broken down in two parts and sent separately over two different messengers or if you are using Gtalk then use the &#039;off the record&#039; mode.&lt;br /&gt;
#Using SMS to send pass phrases is the best known way as of now.&lt;br /&gt;
#If you save the passwords on your system in an file then:&lt;br /&gt;
#*Ensure that you only store pass phrases in the excel file&lt;br /&gt;
#*Ensure that the excel file is encrypted with a master password&lt;br /&gt;
&lt;br /&gt;
== NEOSYS Maintenance Window ==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS server is functional from 6am – 1am. There is a 5hr window gap for the system to perform updates &amp;amp; backups.&lt;br /&gt;
&lt;br /&gt;
The 5hr maintenance window:-&lt;br /&gt;
&lt;br /&gt;
1. At 1am – The server performs a data backup on a USB (for the respective clients) &amp;amp; once the backup has been completed, the system automatically generates an email addressed to the neosys staff &amp;amp; the respective clients.&lt;br /&gt;
&lt;br /&gt;
2. At 2:45am – The main data over writes the test data on the server.&lt;br /&gt;
&lt;br /&gt;
3. At 3:00am – The server by itself performs an update for Windows.&lt;br /&gt;
&lt;br /&gt;
4. At 4:00am – The server performs a backup to the headquarters for clients, and then automatically generates an email addressed to the NEOSYS staff &amp;amp; the respective clients. This process is followed by only two clients i.e. Adline &amp;amp; Farouk.&lt;br /&gt;
&lt;br /&gt;
5. At 6:00am – The server starts up NEOSYS.&lt;br /&gt;
&lt;br /&gt;
==Switching to a backup server==&lt;br /&gt;
&lt;br /&gt;
As NEOSYS provides clients with option of backing up their data to a remote NEOSYS server in case of emergencies or server problems, it is crucial you understand the below procedure on how to switch to a backup server in the event of such a situation. Extreme care must be taken when switching over to using a backup server otherwise unnecessary data loss is very likely.&lt;br /&gt;
&lt;br /&gt;
Backup servers are normally switched off and should not be started automatically otherwise there is a serious risk of the client’s staff working on two systems. It is not possible to merge two databases into one database. Before the backup server is enabled the main server must be disabled, and before the main server is re-enabled, the backup  server must be disabled again. This can be managed technically without requiring any decision from senior non-technical staff.&lt;br /&gt;
&lt;br /&gt;
However, there are also some potentially hard decisions about unavoidable loss of data versus continued system availability. *** Backup servers should therefore only be started with the written approval of the clients senior staff. A suitable email requesting approval follows.&lt;br /&gt;
&lt;br /&gt;
The following case assumes that the main server has gone down sometime during the working day and that therefore the data on the backup server is out of date. Allowing them to use the backup server therefore implies some loss of data. They may wish to lose the data. They may wish to work on the backup server data and then try to redo the work on the main server once it is restored. There are a variety of options depending on the situation.&lt;br /&gt;
&lt;br /&gt;
If the main server is still functioning AND you are reasonably sure that the database is not damaged (which is perhaps an unlikely situation if you need to use the backup server!), it may be sensible to trigger an additional “backup/sync” process to bring the backup server database up to date with the main server. Before you do this, it is advisable that you take a backup copy of the backup system on the backup  server. In this case there would be no data loss in using the backup.&lt;br /&gt;
&lt;br /&gt;
An additional option of providing usage of the backup server in read-only mode so that people can at least access some data is being developed. The backup server could be available continuously at any time in read-only mode. This article would then be related to switching a backup server into main operational mode.&lt;br /&gt;
&lt;br /&gt;
 Dear {senior staff} cc {IT staff}&lt;br /&gt;
 &lt;br /&gt;
 Please note that we can enable the backup server if you wish.&lt;br /&gt;
 &lt;br /&gt;
 However the data on the backup server is out of date since it is a copy of your main database as at 11/22/33 99:99.&lt;br /&gt;
 &lt;br /&gt;
 If you wish to allow work to be done on the backup server then any data entered on your main server since the above date will be lost if we &lt;br /&gt;
 subsequently copy the data on the backup server to the main server.&lt;br /&gt;
 &lt;br /&gt;
 If, after using the backup server, we do NOT copy the data on the back server to the main server then any data you have entered on the backup &lt;br /&gt;
 server/database will be lost.&lt;br /&gt;
 &lt;br /&gt;
 Please confirm a) you want to work on HOSTS2 database and that we should therefore enable it and b) you have disconnected your main server &lt;br /&gt;
 for the duration.&lt;br /&gt;
 &lt;br /&gt;
 Best Regards,&lt;br /&gt;
 xxxxxx xxxxxxx&lt;br /&gt;
 NEOSYS Support&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description of Backup Procedure for the NEOSYS Client Hosting Server ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS backup is a two phase process. It is mandatory that both phases are complete for the process to be considered a backup.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#On the main NEOSYS server host(Schuberg Philis in Amsterdam as of Dec 2010)&amp;lt;br&amp;gt;Every night, the NEOSYS process for selected databases stops serving users at around 1:00 AM to 5:00 AM (local time of the client&#039;s main office) and performs the following procedure: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; - All the database files are checked for physical corruption.&amp;lt;br&amp;gt; - All the database files are zipped into a file who&#039;s path would be something like C:\DATA.BAK\CLIENTX\MONDAY\BACKUP.ZIP file.&amp;lt;br&amp;gt; - The file having the same name as that of the corresponding day of the week as last week is overwritten.A &amp;quot;backup alert&amp;quot; email indicating success or failure is sent to senior managers at the client, the client’s IT manager and backups@neosys.com.&amp;lt;br&amp;gt; - An internal log (accessible on each database&#039;s Support Menu) is maintained as a record and in case the emails cannot be sent out for some reason.&amp;lt;br&amp;gt; - NEOSYS support staff in Dubai check the emails every morning Sunday through Thursday.&amp;lt;br&amp;gt; - In the case of failure, NEOSYS support staff in Dubai take appropriate action and send an email (to the same people who receive the automated backup alert emails) indicating what action has been taken.&amp;lt;br&amp;gt; - The above does not by itself constitute a proper backup because the backup is stored on the same server and physical disk as the actual data.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#On the NEOSYS backup server host (in NEOSYS Dubai Office as of Dec 2010 but could be changed without notice to EvoSwitch in Amsterdam).&amp;lt;br&amp;gt; - At around 02:00-02:30 AM GMT daily, NEOSYS&#039;s backup server copies (replicates) all the BACKUP.ZIP files from the main NEOSYS server host to itself.&amp;lt;br&amp;gt; - An email indicating success or failure is sent to NEOSYS support staff (only) who deal with it in a similar way to phase 1, except that only NEOSYS management are updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cutting and Pasting NEOSYS Maintenance Mode Messages into Wiki ==&lt;br /&gt;
&lt;br /&gt;
Error messages expressed as images are not searchable.&lt;br /&gt;
&lt;br /&gt;
Therefore SELECT THE TEXT OF MAINTENANCE MODE WINDOWS using right click on window heading, Edit, Mark, Copy .. not graphical copy.&lt;br /&gt;
 &lt;br /&gt;
Then paste the text into wiki and surround with &amp;quot;&amp;lt; pre&amp;gt;&amp;quot; and &amp;quot;&amp;lt; /pre&amp;gt;&amp;quot; tags (without the space) as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:loginmessage.jpg]]&lt;br /&gt;
&lt;br /&gt;
the result is searchable text as follows ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔════════════════════════════╗&lt;br /&gt;
║      NEOSYS SECURITY       ║&lt;br /&gt;
║    What is your name ?     ║&lt;br /&gt;
║                            ║&lt;br /&gt;
║   [                    ]   ║&lt;br /&gt;
║                            ║&lt;br /&gt;
║  Please enter your name,   ║&lt;br /&gt;
║   or press Esc to exit.    ║&lt;br /&gt;
╚════════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Amending/Reposting Journal Entries ==&lt;br /&gt;
In certain exceptional cases, amending/reposting of journal entries is allowed for a brief period of time to enable clients to present reports in an alternative manner. This would be subject to NEOSYS would requiring a written LETTER OF APPROVAL duly signed and stamped by the highest management of the company.&lt;br /&gt;
&lt;br /&gt;
In case the client management decides to allow editing/reposting of journal entries, the following procedure is to be followed:&lt;br /&gt;
# Client must de-allocate vouchers which need to be amended&lt;br /&gt;
# NEOSYS support staff must wait for a day so that de-allocated vouchers are copied into Test database&lt;br /&gt;
# Authorise required users to amend and repost (without record) &#039;&#039;&#039;in Test database only&#039;&#039;&#039; &amp;lt;br&amp;gt;( While reposting, we have 2 options i.e. with record and without record. The &#039;with record&#039; option causes the system to maintain a history of edits made. Hence, we want to repost without record so that there is no trace of the edit in the system)&lt;br /&gt;
# Amend a substantial number of vouchers in Test and verify them.&amp;lt;br&amp;gt;To verify if the edits made are reflected:&lt;br /&gt;
# *Print all ledgers for the whole year&lt;br /&gt;
# *Cross-check all balances&lt;br /&gt;
# Once you verify the balances are correct in Test database, grant users permission to amend and repost in the Live database.&lt;br /&gt;
# Ask users to amend and repost vouchers in the Live database.&lt;br /&gt;
# Cross-check all balances for the current year.&lt;br /&gt;
# If you successfully verify the balances, revoke permissions immediately. Else, wait for 24 hours and revoke permissions irrespectively.&lt;br /&gt;
&lt;br /&gt;
== Removal of unauthorized third-party software on client servers ==&lt;br /&gt;
&lt;br /&gt;
Rule: Any third party software that is discovered by NEOSYS support staff on client servers that has been installed without the agreement of NEOSYS should be uninstalled immediately on discovery.&lt;br /&gt;
&lt;br /&gt;
However purposeful a software is, NEOSYS is contractually responsible for support and there are too many opportunities for poorly installed software to cause unpredictable damage to the NEOSYS database so NEOSYS has to have a clear and safe and simple policy to ensure the integrity of client data. Installing software without prior discussion with NEOSYS by itself indicates that insufficient care and consideration as been given to possible issues.&lt;br /&gt;
&lt;br /&gt;
Any software required by client IT for some purpose may only be installed after discussion and agreement from NEOSYS support staff concerning the configuration and operation of the software.&lt;br /&gt;
&lt;br /&gt;
The NEOSYS Software Licence and Support agreement requires that where NEOSYS software is installed on client servers that a dedicated server is provided and dedicated implies that no other software may be installed without the agreement of NEOSYS support.&lt;br /&gt;
&lt;br /&gt;
== Configuring tunnelier to autologin on opening tlp files ==&lt;br /&gt;
If you have many tunnelier tlp files in a directory and connect by opening the desired tlp file the, instead of opening the file and then clicking Login you can also right click the file and select Connect.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can configure tunnelier to login (connect) automatically by following the procedure mentioned below. (Even if you configure automatic login, you can still open and not login by right clicking and choosing Open)&lt;br /&gt;
#Go to My Computer&lt;br /&gt;
#Click on Tools -&amp;gt; Folder Options &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tunnauto-1.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on File Types&lt;br /&gt;
#*Select TLP (Bitvise Tunnelier Profile) [Type &amp;quot;TLP&amp;quot; to find it quickly]&lt;br /&gt;
#*Click on Advanced &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tunnauto-2.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Connect and Click on Set Default &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; [[image:tunnauto-3.jpg]]&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_IE7_%26_IE8_Download_Blocker&amp;diff=1115</id>
		<title>Installing IE7 &amp; IE8 Download Blocker</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_IE7_%26_IE8_Download_Blocker&amp;diff=1115"/>
		<updated>2012-11-04T06:11:22Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Why to install the IE7 &amp;amp; IE8 download blocker? ===&lt;br /&gt;
&lt;br /&gt;
IE7 and IE8 comes with high security settings which interferes with permissions relating to the functioning of Neosys on a server. Hence on Windows 2003 servers which Neosys is installed upon, we need to install the download blockers so that Windows Update does not automatically download IE7. You do not need to do this on Windows 2008&lt;br /&gt;
&lt;br /&gt;
=== Procedure ===&lt;br /&gt;
&lt;br /&gt;
Download an exe file:&lt;br /&gt;
&lt;br /&gt;
For IE7: from http://www.microsoft.com/downloads/details.aspx?FamilyID=4516A6F7-5D44-482B-9DBD-869B4A90159C&amp;amp;displaylang=en&lt;br /&gt;
For IE8: http://www.microsoft.com/downloads/details.aspx?FamilyID=21687628-5806-4ba6-9e4e-8e224ec6dd8c&amp;amp;displaylang=en&lt;br /&gt;
&lt;br /&gt;
Once downloaded, run the file and it will create 4 files at a specified location (preferably C drive). The required file is &amp;lt;b&amp;gt;IE70Blocker.cmd&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Go to the dos prompt (Start &amp;gt; Run &amp;gt; cmd) and run the following command:&lt;br /&gt;
&lt;br /&gt;
 IE70Blocker.cmd /B&lt;br /&gt;
&lt;br /&gt;
On the next prompt type:&lt;br /&gt;
&lt;br /&gt;
 IE70Blocker.cmd /B&lt;br /&gt;
&lt;br /&gt;
This command creates a registry key and sets the associated value to block automatic delivery of IE7 on the local machine. The registry should show the following value after you have done this: &lt;br /&gt;
&lt;br /&gt;
 Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0&lt;br /&gt;
 &lt;br /&gt;
 Key value name: DoNotAllowIE70&lt;br /&gt;
&lt;br /&gt;
=== Error when attempting to login: &amp;quot;Permission denied cannot run waiting2.exe&amp;quot; ===&lt;br /&gt;
This error message occurs when clicking &amp;quot;Login&amp;quot; on the login page. It occurs only on Window 2003 servers when ie7 or ie8 is installed.&lt;br /&gt;
&lt;br /&gt;
Solved by uninstalling ie7/ie8 and installing ie7 ie8 blocker to prevent it being automatically installed&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Configuring_IIS&amp;diff=1114</id>
		<title>Configuring IIS</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Configuring_IIS&amp;diff=1114"/>
		<updated>2012-11-04T06:09:30Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After you have installed all the NEOSYS program files you need to configure IIS so that you can operate NEOSYS. Instructions are below.&lt;br /&gt;
&lt;br /&gt;
== Configuring IIS for windows 2003 ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a virtual web directory ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Client Server:&#039;&#039;&#039; first step is to create a virtual directory called neosys linked to D:\neosys\neosys.net:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NL1 Server:&#039;&#039;&#039; Create a website called &amp;quot;clientname&amp;quot; linked to D:\hosts\clientfolder\neosys.net &lt;br /&gt;
&lt;br /&gt;
[[image:figure1.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[image:figure3.jpg]]&lt;br /&gt;
&lt;br /&gt;
A new window will pop up &amp;quot;IP Address and Port Setting&amp;quot; after completion of the above step.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Client Server:&#039;&#039;&#039;  select *(All Unassigned)* from the drop down list of &amp;quot;Enter the IP address to use for the Web site&amp;quot; and keep the default port as 80. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NL1 Server:&#039;&#039;&#039; Select the static Ip from the drop down list of &amp;quot;Enter the IP address to use for the Web site&amp;quot; and enter then next port available and click on next.&lt;br /&gt;
&lt;br /&gt;
[[image:Figure_2.jpg‎]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Client Server:&#039;&#039;&#039; Within the above neosys web site folder create a virtual directory called data linked to D:\neosys\data: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Nl1 Server:&#039;&#039;&#039; Within the above clientwebsite folder create a virtual directory called data linked to D:\hosts\clientfolder\data:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(I haven’t got the screenshot because I can only get it once I create the above)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== To allow file uploads ===&lt;br /&gt;
&lt;br /&gt;
==== Create IMAGES directory ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Client server:&#039;&#039;&#039; create a folder IMAGES under D:\neosys and within the neosys web site folder create a virtual directory called images linked to D:\neosys\images: Modes: READ and WRITE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Nl1 Server:&#039;&#039;&#039; create a folder IMAGES under D:\hosts\clientfolder and within the client web site folder create a virtual directory called images linked to D:\hosts\clientfolder\images: Modes: READ and WRITE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(I haven’t got the screenshot because I can only get it once I create the above)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== Permit upload.dll ====&lt;br /&gt;
&lt;br /&gt;
# Right click Default Web Site, neosys, NEOSYS, dll&lt;br /&gt;
# Execute Permissions: Scripts and Executables&lt;br /&gt;
&lt;br /&gt;
# Internet Information Services (IIS) Manager&lt;br /&gt;
# Web Service Extensions&lt;br /&gt;
# All Unknown ISAPI Extensions: Allowed&lt;br /&gt;
&lt;br /&gt;
=== Solving error during file upload: &amp;quot;Page cannot be displayed&amp;quot; HTTP Error 405 ===&lt;br /&gt;
&lt;br /&gt;
This error should not occur in normal NEOSYS installations but the solution is as follows:&lt;br /&gt;
&lt;br /&gt;
# Go to Control Panel, Administrative Tools, Internet Information Services&lt;br /&gt;
# Expand the tree to COMPUTERNAME, Web Sites&lt;br /&gt;
# Right-click &amp;quot;Default Web Site&amp;quot; (or specific Web Site if multiple NEOSYS http/https installations on the server as per NL1)&lt;br /&gt;
# Properties&lt;br /&gt;
# Home Directory&lt;br /&gt;
# Configuration&lt;br /&gt;
# Mappings, Add&lt;br /&gt;
# Browse&lt;br /&gt;
# Dynamic Link Libraries *.dll&amp;quot; from the &amp;quot;Files of Type&amp;quot; dropdown&lt;br /&gt;
# Find and select D:\NEOSYS\neosys.net\NEOSYS\dll\upload.dll (OR upload.dll in the installation directory)&lt;br /&gt;
# Extension Type: dll&lt;br /&gt;
# Limit to: All&lt;br /&gt;
# Click the &amp;quot;OK&amp;quot; button&lt;br /&gt;
&lt;br /&gt;
=== Solving HTTP Error 404 Error occurring immediately on opening NEOSYS login page on a new server installation: &amp;quot;System Failure. Do you want to retry?&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
This error message is caused by failing to enable Active Server Pages in the IIS configuration.&lt;br /&gt;
&lt;br /&gt;
This message is from IE8 and a Windows 2003 server. The message may be different for other browser versions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Message from web page.&lt;br /&gt;
&lt;br /&gt;
System Failure. Do you want to retry?&lt;br /&gt;
&lt;br /&gt;
The page cannot be found&lt;br /&gt;
The page you are looking for might have been removed, had its name change, or it temporarily unavailable.&lt;br /&gt;
&lt;br /&gt;
Please try the following:&lt;br /&gt;
(omitted)&lt;br /&gt;
HTTP Error 404 - File or directory not found.&lt;br /&gt;
Internet Information Services (IIS)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[image:http404.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring IIS for Windows 2008 ==&lt;br /&gt;
&lt;br /&gt;
==== Installing IIS ====&lt;br /&gt;
&lt;br /&gt;
First install IIS from Control Panel &amp;gt; Programs &amp;amp; Features &amp;gt; Turn Windows Features ON or OFF &amp;gt; Add Roles:&lt;br /&gt;
&lt;br /&gt;
[[image:iis1.jpg]]&lt;br /&gt;
&lt;br /&gt;
On the window that pops up click on next and you will get this screen, tick Web Server (IIS) - on the prompt click on Add Required Resources and then on Next:&lt;br /&gt;
&lt;br /&gt;
[[image:iis2.jpg]]&lt;br /&gt;
&lt;br /&gt;
On the next window, click on next until you get this window - tick ASP and ISAPI Extensions:&lt;br /&gt;
&lt;br /&gt;
[[image:iis3.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on Next and Finish&lt;br /&gt;
&lt;br /&gt;
==== Configuring IIS ====&lt;br /&gt;
After successfully installing IIS, go to Control Panel &amp;gt; Administrative Tools &amp;gt; Computer Management &amp;gt; Services and Applications &amp;gt; Internet Information Services (IIS) &amp;gt; Machine Name &amp;gt; Sites &amp;gt; Default Website:&lt;br /&gt;
&lt;br /&gt;
The first step is to create a virtual directory called neosys linked to D:\neosys\neosys.net:&lt;br /&gt;
&lt;br /&gt;
[[image:iis4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Within the above neosys web site folder create a virtual directory called data linked to D:\neosys\data:&lt;br /&gt;
&lt;br /&gt;
[[image:iis5.jpg]]&lt;br /&gt;
&lt;br /&gt;
In the IIS Default Web Site create a another virtual directory called neosys.w3c linked to D:\neosys\neosys.w3c (only if timesheets for mac is required):&lt;br /&gt;
&lt;br /&gt;
[[image:iis6.jpg]]&lt;br /&gt;
&lt;br /&gt;
To allow file uploads – create a folder IMAGES under D:\neosys and within the neosys web site folder create a virtual directory called images linked to D:\neosys\images:&lt;br /&gt;
&lt;br /&gt;
[[image:iis7.jpg]]&lt;br /&gt;
&lt;br /&gt;
After you add all virtual directories the tree map of the Default Website should look as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:iis8.jpg]]&lt;br /&gt;
&lt;br /&gt;
To configure file uploads besides adding the images directory, go under IIS &amp;gt; Default Website &amp;gt; neosys – click on Handler Mappings and delete the ISAPI you see there:&lt;br /&gt;
&lt;br /&gt;
[[image:iis9a.jpg]]&lt;br /&gt;
&lt;br /&gt;
Thereafter click on Add Script Map and fill in the details as follows – Request path: *.dll , Executable: D:\neosys\neosys.net\NEOSYS\dll\upload.dll , Name: ISAPI (once you click on OK click on YES to the confirmation box)&lt;br /&gt;
&lt;br /&gt;
[[image:iis9b.jpg]]&lt;br /&gt;
&lt;br /&gt;
Edit the hosts file under c:\windows\system32\drivers\etc\ - delete the # sign next to 127.0.0.1 localhost and incluide the # sign before ::1 localhost&lt;br /&gt;
&lt;br /&gt;
[[image:iis10.jpg]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Http404.jpg&amp;diff=1113</id>
		<title>File:Http404.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Http404.jpg&amp;diff=1113"/>
		<updated>2012-11-04T06:08:19Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Windows_2003_New_Installation_Checklist_with_remote_support.doc&amp;diff=1112</id>
		<title>File:Windows 2003 New Installation Checklist with remote support.doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Windows_2003_New_Installation_Checklist_with_remote_support.doc&amp;diff=1112"/>
		<updated>2012-11-04T05:59:03Z</updated>

		<summary type="html">&lt;p&gt;Vineet: uploaded a new version of &amp;quot;File:Windows 2003 New Installation Checklist with remote support.doc&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1110</id>
		<title>Handling damaged files</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1110"/>
		<updated>2012-11-01T06:30:47Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symptoms ==&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;A Damaged file has been found..... ((the rest of this message to be completed)) &lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : BOOKING.TEXTS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
== Cause ==&lt;br /&gt;
Rare but nasty problem on server 99% caused by power failure, killing NEOSYS or server hardware or operating system failure.&lt;br /&gt;
&lt;br /&gt;
*Did somebody kill NEOSYS processes to reboot the server or any other reason?&lt;br /&gt;
*Was there a power cut?&lt;br /&gt;
*Any expected or unexpected reboots in the server log? (see Event Viewer &amp;gt; System Log)&lt;br /&gt;
*Enough disk free space especially on servers not dedicated to NEOSYS?&lt;br /&gt;
*Third party software running on NEOSYS server?&lt;br /&gt;
*RAID installed on the server?&lt;br /&gt;
*Did windows update happen?&lt;br /&gt;
&lt;br /&gt;
== Solution==&lt;br /&gt;
&lt;br /&gt;
Damaged files, when detected, cause an immediate termination of the currently executing program/user request and a restart of the process is involved. Some damaged files are automatically fixed during restart. Although the process &amp;quot;restarts&amp;quot; it may be internally corrupted in some way and it is advisable to close it completely and start or allow another process to start automatically.&amp;lt;br&amp;gt;&lt;br /&gt;
However, the solution always depends on the cause and usually often requires aggressive interrogation to discover the cause.&lt;br /&gt;
&lt;br /&gt;
Guidelines:&lt;br /&gt;
&lt;br /&gt;
#Identify the cause of the damaged file&lt;br /&gt;
#Depending on the type of damaged file follow the procedures mentioned below to handle Damaged Files:&lt;br /&gt;
#*[[Handling_damaged_files#Files_that_are_automatically_fixed|Damaged Files that are Automatically fixed]]&lt;br /&gt;
#*Damaged Files that Need fixing&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_file_that_have_a_process_to_recreate_them| Damaged Files that have a process to Recreate them]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_index_files_.28names_starting_with_.21.29| Damaged Index Files]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_files_that_have_no_process_for_recreating_them|Fixing damaged files that have no process for recreating them]]&lt;br /&gt;
#*[[ Handling_damaged_files#Dealing_with_damaged_files_that_cannot_be_fixed| Damaged Files that Cannot be fixed]]&lt;br /&gt;
#Verify if the damaged file is fixed in the database by following instructions at [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Recovery==&lt;br /&gt;
&lt;br /&gt;
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work.&lt;br /&gt;
&lt;br /&gt;
See the following sections how to patch the damaged files.&lt;br /&gt;
&lt;br /&gt;
== Files that are automatically fixed ==&lt;br /&gt;
&lt;br /&gt;
*LISTS&lt;br /&gt;
*LOCKS&lt;br /&gt;
*!INDEXING&lt;br /&gt;
&lt;br /&gt;
The above files are automatically checked for corruption (and initialised to empty if so) when you &lt;br /&gt;
startup a NEOSYS process and do not require any manual intervention apart from locating and eliminating the initial cause of the damage.&lt;br /&gt;
&lt;br /&gt;
If the !INDEXING file was damaged then you should also do REINDEXALL to reinstate any possibly missing index entries, but since this will take a long time&lt;br /&gt;
you should do this when everybody is off the system in the evening probably. A few missing index entries may only mean some records missing from some reports which may or may not be seriously inconvenient. It is a temporary file that should not hold any records for longer than it takes to update the various indexes immediately when the user saves any document.&lt;br /&gt;
&lt;br /&gt;
Each process has its own LISTS file, so damage is limited to one process for the LISTS file. The process number can be seen in the error message. for example:&lt;br /&gt;
&lt;br /&gt;
 Process=7&lt;br /&gt;
&lt;br /&gt;
You can also see the process number on the server screen. For example here is a process 2.&lt;br /&gt;
&lt;br /&gt;
 13:17:31 TESTDB NEOS0002 0 Listening 7 hours, 49 mins ...&lt;br /&gt;
&lt;br /&gt;
The LISTS file is a temporary file for sorting records into order for reports, popups etc. Therefore any damage usually causes no real inconvenience apart from the failed report or popup on which the user might receive the &amp;quot;damaged LISTS file&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
The error message would appear as follows :&lt;br /&gt;
&lt;br /&gt;
 SYSTEM ERROR:&lt;br /&gt;
 An internal file LISTS was found&lt;br /&gt;
 to be damaged and has been patched.&lt;br /&gt;
 INFORM YOUR TECHNICAL SUPPORT&amp;lt;br&amp;gt;&lt;br /&gt;
 SOME DATA HAS PROBABLY BEEN LOST&lt;br /&gt;
 AND THE NEOSYS SYSTEM MAY MALFUNCTION&amp;lt;br&amp;gt;&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
The error could also appear as follows :&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : LISTS&lt;br /&gt;
 Group # : 00000014&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : STATISTICS&lt;br /&gt;
 Group # : 00000005&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 114 files checked.&lt;br /&gt;
 Failed with 1 error&lt;br /&gt;
 !!!DANGER!!!&lt;br /&gt;
 !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
 !!!BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note - &#039;&#039; Statistics contains info about user usage as per support menu so loss of data is not critical and it will be rebuilt automatically&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We might also get errors related to Temporary Files as follows:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
DO NOT CONTINUE USING THE SYSTEM!&lt;br /&gt;
&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : MATDEL_MEDIALIN_3&lt;br /&gt;
 Group # : 13369375&lt;br /&gt;
 Wrong Overflow frame linked to group.&lt;br /&gt;
&lt;br /&gt;
Server=NEOSYS-SERVER&lt;br /&gt;
Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
Version=11:26:27  26 JUL 2010&lt;br /&gt;
Database=23BF2931 MEDIALIN&lt;br /&gt;
Process=3&lt;br /&gt;
Client=100_100_100_77&lt;br /&gt;
User=HAMADA&lt;br /&gt;
Request=MEDIADIARY&lt;br /&gt;
@Id=&lt;br /&gt;
Data=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since these are temporary files, we need not use FIXFILE. They get cleared automatically.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged file that have a process to recreate them ==&lt;br /&gt;
&lt;br /&gt;
Below files can be recreated from the maintenance mode.&lt;br /&gt;
&lt;br /&gt;
ADS file can be recreated with F5 CREATEADS&lt;br /&gt;
&lt;br /&gt;
ANALYSIS file can be recreated with F5 CREATEANALYSIS&lt;br /&gt;
&lt;br /&gt;
BRANDS files can be recreated with F5 CREATEBRANDS&lt;br /&gt;
&lt;br /&gt;
If the file is actually damaged it might be necessary to initialise it first using CLEARFILE filename.&lt;br /&gt;
&lt;br /&gt;
The following is an example of the error in the ADS File at the time of backup.&lt;br /&gt;
&lt;br /&gt;
  Group Format Error:&lt;br /&gt;
  OS File : ADS&lt;br /&gt;
  Group # : 00009543&lt;br /&gt;
  Record length incorrect or frame linkage error.&lt;br /&gt;
  217 files checked.&lt;br /&gt;
  Failed with 1 errors&lt;br /&gt;
  !!! DANGER !!!&lt;br /&gt;
  !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
  !!! BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
  Error while writing data.&lt;br /&gt;
  You have attempted to write to a read-only file.&lt;br /&gt;
                      - or -&lt;br /&gt;
  access to the file has been denied by the operating system.&lt;br /&gt;
  (operating system file name: &amp;quot;ADS&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Explanation: The last four lines are very rare and can be seen with the above error messages in the backup email.  The above message indicates that some external application is trying to access the backup files at the time of backup.&lt;br /&gt;
&lt;br /&gt;
Before doing the solution below, please check the number of damaged files on the database by running CHK.FILES in maintenance mode. [CHK.FILES can be done when users are online]&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Stop all the processes before doing the below procedure. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions)&lt;br /&gt;
&lt;br /&gt;
Procedure to run CREATEADS is as under &lt;br /&gt;
&lt;br /&gt;
Login to maintenance&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 CREATEXXXX&lt;br /&gt;
&lt;br /&gt;
(XXXX = ADS, ANALYSIS OR BRANDS)&lt;br /&gt;
&lt;br /&gt;
Select the option appropriate option and start the procedure and hit ENTER&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039; CREATEADS no longer asks to choose CREATE/CHECK/REINDEX and only does CREATE from now on. CHECK was never used and REINDEXADS command is available independently.&lt;br /&gt;
&lt;br /&gt;
To verify if the above is done successfully and check if the damage files is fixed in the database run CHK.FILES or CHK.FILES FILENAME (Recommended) from this link: [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged index files (names starting with !) ==&lt;br /&gt;
&lt;br /&gt;
Whilst backing up or using NEOSYS the following error message might appear:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;A Damaged file has been found.....&lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : !ADS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
#Ensure that no-one is using NEOSYS&lt;br /&gt;
#Log into NEOSYS on the server&lt;br /&gt;
#Press F5 to get a TCL command box&lt;br /&gt;
#Type REINDEXADS and press enter.&lt;br /&gt;
#Wait until it finishes and you get back to the command box&lt;br /&gt;
#Type OFF in the command box and you will quit NEOSYS.&lt;br /&gt;
&lt;br /&gt;
Other reindex commands are:&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;Note -&#039;&#039; You can save time when indexing very large files by indexing only selected indexes instead of all indexed for the file. You can select the field(s) that need to be reindexed from a list of indexed fields which REINDEX filename presents you after you enter the command.)&lt;br /&gt;
&lt;br /&gt;
*REINDEXACCOUNTS	recreates !ACCOUNTS, !BATCHES and !VOUCHERS&lt;br /&gt;
*REINDEXADDRESSES &lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXBOOKINGS	recreates !BOOKING.ORDERS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXINVS		recreates !INVOICES&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXPRODINVS	recreates !PRODUCTION.INVOICES&lt;br /&gt;
*REINDEXPRODORDERS	recreates !PRODUCTION.ORDERS&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
&lt;br /&gt;
REINDEXMEDIA does all the following&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXBOOKINGS&lt;br /&gt;
&lt;br /&gt;
REINDEXFILES does all the following&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
&lt;br /&gt;
REINDEXPRODUCTION does all the following&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXPRODORDERS&lt;br /&gt;
*REINDEXPRODINVS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
&lt;br /&gt;
REINDEXALL does all the following&lt;br /&gt;
*REINDEXMEDIA&lt;br /&gt;
*REINDEXPRODUCTION&lt;br /&gt;
*REINDEXFILES&lt;br /&gt;
*REINDEXINVS&lt;br /&gt;
*REINDEXACCOUNTS&lt;br /&gt;
*REINDEXADDRESSES&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged files that have no process for recreating them ==&lt;br /&gt;
&lt;br /&gt;
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files like &#039;&#039;LOG20xx&#039;&#039; can be “fixed” to prevent NEOSYS crashes as follows &amp;lt;i&amp;gt;but some records will most probably be lost&amp;lt;/i&amp;gt;. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;SHADOW&#039;&#039; is a type of log file that can lose some records without serious impact and can therefore can also be fixed with FIXFILE.&lt;br /&gt;
&lt;br /&gt;
FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down the processes for the dataset in question.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE -&#039;&#039; If there are multiple datasets running on the server. Shut down the particular dataset which has got the problem. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions). &lt;br /&gt;
&lt;br /&gt;
If you are trying to close processes during the day then please check if there are users that are actively working on that dataset in question. If yes, then please email the clients asking them to log off till the process is complete. If there are no users actively working then you may proceed to complete the fix quickly before users login so that users are not disturbed during their daily work.&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 FIXFILE filename&lt;br /&gt;
&lt;br /&gt;
(Select option 1 to update the file)&lt;br /&gt;
&lt;br /&gt;
In case you get any Overwrite messages – type YES, as these are the actual files being updated.&lt;br /&gt;
&lt;br /&gt;
The only alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact serial numbers of critical documents like orders, invoices, receipts and payments advices.&lt;br /&gt;
&lt;br /&gt;
=== Fixing damaged NEOSYS program files and other non-data files ===&lt;br /&gt;
Some files listed below could be NEOSYS program files or other non-data files in the NEOSYS directory or subdirectories and can probably can only be fixed by reinstalling the NEOSYS software. &lt;br /&gt;
&lt;br /&gt;
*VOC&lt;br /&gt;
&lt;br /&gt;
There could be other files as well. You can check if any particular file is a data file in Maintenance mode F5 as follows:&lt;br /&gt;
&lt;br /&gt;
 ED FILES filename&lt;br /&gt;
&lt;br /&gt;
If it is a data file then the first line will mention something like ..\DATA\DEMO\ACCOUNTS&lt;br /&gt;
&lt;br /&gt;
=== Using FIXFILE to repair corrupted files ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BEWARE:&#039;&#039;&#039; FIXFILE causes loss of data. If the data is critical then use of FIXFILE can be totally catastrophic without any warning. &lt;br /&gt;
Hence, in such situations it is advisable to talk to NEOSYS technical staff to see if they can provide any proper fix or provide any better comment about the impact of loss of data rather than implement FIXFILE directly.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; &lt;br /&gt;
# Using FIXFILE on some files is a guaranteed way to cause complete chaos for the users without them being aware of it until too late to do anything about it.&lt;br /&gt;
#Corrupt files will cause programs to abort every time they try to update that section of the file. Aborting programs causes possibly horrendous inconsistency in the database so it is important to stop all user activity and fix the corrupt file immediately.&lt;br /&gt;
#You can freely use FIXFILE on any file but it works by deleting any problematic data so cannot realistically be used on some files at all.&lt;br /&gt;
#FIXFILE cannot and does not recover any corrupted records therefore, for those files that have specific programs to rebuild them, FIXFILE is not the correct option.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Why use FIXFILE at all since it causes loss of data?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Many files do not have programs to rebuild them and for some of those files, using FIXFILE is a quick way to get the system back in operation BUT with missing records. Missing records causes various degrees of failure ranging from the odd document missing, totally misleading information like wrong account balances, or any kind of system failure.&lt;br /&gt;
#FIXFILE does not fix the consistency of information in the database. When the database is is being updated with a transaction, usually a series of files are updated for the one transaction. A damaged file causes the update program to abort in the middle of the series of updates. Therefore some of the updates are done and the remaining updates are not done. This means that the data in the database (even after fixing the corrupt file) is inconsistent.&lt;br /&gt;
#FIXFILE merely fixes the technical structure of the file so that any further program accesses to that portion of the file do not cause immediate program termination and consequent likely catastrophic database inconsistency.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;IMPORTANT :&#039;&#039;&#039; You must prevent anyone from accessing NEOSYS while FIXFILE is running.&lt;br /&gt;
&lt;br /&gt;
==== List of Files Impacted by FIXFILE ====&lt;br /&gt;
#&#039;&#039;&#039;USERS File :&#039;&#039;&#039; The main data of any lost records from the USERS file will be recreated any time the Authorisation File is saved, however only the information in the Authorisation File is recreated which means that all personal preferences, holiday records, login history etc will be lost.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Damaged DEFINITIONS file ===&lt;br /&gt;
==== Non-Solution ====&lt;br /&gt;
 &lt;br /&gt;
You will probably not be able to login if the DEFINITIONS FILE is damaged. You can press Alt+S and type EXECUTE to get a TCL command box but this still doesnt help because you cannot use FIXFILE on DEFINITIONS.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: DO NOT USE FIXFILE TO TRY AND FIX THE DEFINITIONS FILE.&lt;br /&gt;
 &lt;br /&gt;
DOUBLE CAUTION: IN CASE YOU DECIDE TO IGNORE THIS EXPECT ALL KINDS OF HORRIBLE PROBLEMS IN THE DATABASE REQUIRING A COMPLETE RESTORE FROM A GOOD BACKUP AFTER A FEW DAYS OF PAIN BECAUSE RANDOM OLD DATABASE UPGRADE/CONVERSIONS WILL BE PERFORMED *AGAIN* WITHOUT YOU KNOWING IT.&lt;br /&gt;
 &lt;br /&gt;
==== Partial Restore ====&lt;br /&gt;
 &lt;br /&gt;
You can copy recent DEFINITIONS.LK and DEFINITIONS.OV files from the DATA\datasetcode\GENERAL folder.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: All changes done in the Configuration File, Authorisation File, Users File and various other changes will be reverted to the date of the DEFINITIONS files being restored. If you are restoring from last nights backup or testdata then this will not be much but could cause serious confusion to people who have changed their passwords etc.&lt;br /&gt;
&lt;br /&gt;
==== Full Restore ====&lt;br /&gt;
&lt;br /&gt;
Restore from your latest backup losing all work done since that time and date.&lt;br /&gt;
&lt;br /&gt;
=== Preventing users from accessing NEOSYS in order to do maintenance or repairs ===&lt;br /&gt;
 &lt;br /&gt;
On most systems you can simply stop the NEOSYS processes. On other systems where NEOSYS processes are automatically started in response to requests from the web, you need to disable the autostart by one of the following methods&lt;br /&gt;
 &lt;br /&gt;
# Stop the autostart program/script&lt;br /&gt;
# Put a file called NET.CFG with a single line saying AUTOSTART=NO in the neosys\neosys folder&lt;br /&gt;
# Stop the IIS server&lt;br /&gt;
# Stop/Pause the particular web in question&lt;br /&gt;
&lt;br /&gt;
== Dealing with damaged files that cannot be fixed ==&lt;br /&gt;
&lt;br /&gt;
If programmers are unable to fix the damage in a reasonably period of time and the damage is caused due to matters beyond NEOSYS control such as non-dedicated servers and power failures then data must be restored and client advised why they are going to suffer loss of data.&lt;br /&gt;
 &lt;br /&gt;
THIS DOES NOT RELEASE NEOSYS SUPPORT STAFF FROM THE OBLIGATION TO PROACTIVELY INFORM THE CLIENT OF MEASURES TO PREVENT THE RECURRENCE OF THE EVENT.&lt;br /&gt;
&lt;br /&gt;
The following are the steps to follow:&lt;br /&gt;
# Ascertain the cause of the damage to the database by looking at the internal logs&lt;br /&gt;
# Create a new database from the damaged one as it will contain the up to date but damaged database.&lt;br /&gt;
# Restore the database from the backup media so that the database is in the last good known state. &lt;br /&gt;
# The client can see what work was done over the past couple of days from the damaged database and it will assist them to redo the work in the currently restored out of date main database.&lt;br /&gt;
# Next discuss with the client about the cause of the damage and (a) what to do to prevent the damage occurring again (b) to agree a procedure to perform a manual backup in case the automatic one is not performed for any reason overnight.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1109</id>
		<title>Installing EMS Magic</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1109"/>
		<updated>2012-11-01T06:22:05Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The EMS (Emulate Expanded) memory support is not available in Windows 2008. &lt;br /&gt;
&lt;br /&gt;
On Windows 2003, normally EMS memory is provided, but this can vary depending on the server hardware/bios configuration.&lt;br /&gt;
Sometimes lack of EMSMAGIC may cause errors like: &lt;br /&gt;
#Backup File Size is 0&lt;br /&gt;
#RTP27. [B28] Not enough String Space – Out of Memory&lt;br /&gt;
#B703 Error&lt;br /&gt;
#B706 - String Space Format Error&lt;br /&gt;
&lt;br /&gt;
Please read the notes at [[Troubleshooting_NEOSYS_Generally#Recognising_and_Solving_Low_Memory_Problems|Recognising and Solving Low Memory Problems]] to understand more about EMS related problems. AS NEOSYS requires this important legacy feature it is required to an EMS emulator called EMSMAGIC&lt;br /&gt;
&lt;br /&gt;
The steps are:&lt;br /&gt;
&lt;br /&gt;
# Download http://www.neosys.com/support/EMSMAGIC.EXE and place it in C:\Windows folder&lt;br /&gt;
# Edit c:\windows\system32\autoexec.nt file in Notepad to include the following at the bottom:&lt;br /&gt;
[[image:autoexecnt.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you are done with the above, test that the EMS memory shows in the maintenance mode by typing WHO in the command line (instructions at [[Troubleshooting_NEOSYS_Generally#Checking_EMS_Memory_Configuration|Checking EMS Memory Configuration]])&lt;br /&gt;
&lt;br /&gt;
Another quick way to test that EMS Magic is functioning is to notice this screen as soon as you open up a maintenance or process window:&lt;br /&gt;
&lt;br /&gt;
[[image:emsscreenmaint.jpg]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_HTTPS&amp;diff=1108</id>
		<title>Setting up HTTPS</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_HTTPS&amp;diff=1108"/>
		<updated>2012-10-30T13:52:36Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Creating multiple HTTPS web sites */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a single HTTPS web site on Windows 2008 ==&lt;br /&gt;
&lt;br /&gt;
Install selfssl.exe from Microsoft site (iis60rkt.exe available in neosys nl1 download folder) only the ssl utility is needed.&lt;br /&gt;
&lt;br /&gt;
http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;displaylang=en&lt;br /&gt;
&lt;br /&gt;
However please note that the command is different from the usual one:&lt;br /&gt;
&lt;br /&gt;
[[image:sslwin2008-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
 C:\Program Files\IIS Resources\SelfSSL&amp;gt;selfssl.exe /N:CN=NEOSYS-SERVER /K:1024 /V:9999&lt;br /&gt;
 Microsoft (R) SelfSSL Version 1.0&lt;br /&gt;
 Copyright (C) 2003 Microsoft Corporation. All rights reserved.&lt;br /&gt;
 &lt;br /&gt;
 Do you want to replace the SSL settings for site 1 (Y/N)?y&lt;br /&gt;
 Error opening metabase: 0x80040154&lt;br /&gt;
 C:\Program Files\IIS Resources\SelfSSL&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ignore the error.&lt;br /&gt;
&lt;br /&gt;
Next go to the IIS Manager and make sure the certificate was created and stored. Note that creating a certificate does not make it automatically bind to the website. &lt;br /&gt;
&lt;br /&gt;
[[image:sslwin2008-2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you make sure it is created, then click on Sites &amp;gt; Default Website and in the right pane select Bindings:&lt;br /&gt;
&lt;br /&gt;
[[image:sslwin2008-3.jpg]]&lt;br /&gt;
&lt;br /&gt;
In the Bindings section - click on Add and select https, All Unassigned IP addresses, port 4430 and select the certificate from the drop down and press click on OK:&lt;br /&gt;
&lt;br /&gt;
[[image:sslwin2008-4.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then test the site from explorer to make sure it works.&lt;br /&gt;
&lt;br /&gt;
== Creating a single HTTPS web site on Windows 2003 ==&lt;br /&gt;
&lt;br /&gt;
Install selfssl.exe from Microsoft site (iis60rkt.exe available in neosys nl1 download folder) only the ssl utility is needed.&lt;br /&gt;
&lt;br /&gt;
http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&amp;amp;displaylang=en&lt;br /&gt;
&lt;br /&gt;
then&lt;br /&gt;
&lt;br /&gt;
[[Image:SelfSSL.png]]&lt;br /&gt;
&lt;br /&gt;
 C:\Program Files\IIS Resources\SelfSSL&amp;gt;selfssl /v:9999 /s:&#039;&#039;&#039;&#039;&#039;866651215&#039;&#039;&#039;&#039;&#039; /p:4430 /n:CN=&#039;&#039;&#039;&#039;&#039;hostname&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
 Microsoft (R) SelfSSL Version 1.0&lt;br /&gt;
 Copyright (C) 2003 Microsoft Corporation. All rights reserved.&lt;br /&gt;
 Do you want to replace the SSL settings for site 866651215 (Y/N)?y&lt;br /&gt;
 The self signed certificate was successfully assigned to site 866651215.&lt;br /&gt;
&lt;br /&gt;
 /v:9999 means valid for 9999 days&lt;br /&gt;
 /s:&#039;&#039;&#039;&#039;&#039;866651215&#039;&#039;&#039;&#039;&#039; is the site number in this case   (site number is shown in IIS management screen)&lt;br /&gt;
 /p:4430 is the non-standard port number neosys uses by convention for ssl/https instead of the standard 443&lt;br /&gt;
 /n:CN=&#039;&#039;&#039;&#039;&#039;hostname&#039;&#039;&#039;&#039;&#039; indicates the full domain name of the site and depends on what you want to use (eg. clientname.hosts.neosys.com if the site is hosted on nl1/nl1b or clientname.support.neosys.com (if fixed IP) / clientname.redirectme.net (if dynamic IP) IF the site is hosted on the client server.&lt;br /&gt;
&lt;br /&gt;
You probably made a mistake in the site number if you get the following message.&lt;br /&gt;
&lt;br /&gt;
 Error opening site metabase key: 0x80070003&lt;br /&gt;
&lt;br /&gt;
== Creating a single HTTPS web site on nl1/nl1b ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a site in IIS ===&lt;br /&gt;
&lt;br /&gt;
Each client hosted on nl1/nl1b uses the same IP address, but unique https port numbers starting from 4431 onwards. Similarly tcp/https also needs to be configured with unique port numbers starting from 8123 onwards. An updated list of the port numbers in use is updated in the GDocs file &amp;quot;nl1/nl1b port numbers&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Creating a site in IIS in Windows 2003 (nl1) ====&lt;br /&gt;
&lt;br /&gt;
The https options are only available after running selfssl (see below).&lt;br /&gt;
&lt;br /&gt;
[[Image:httpadvancedwebsitesetup.png]]&lt;br /&gt;
&lt;br /&gt;
==== Creating a site in IIS in Windows 2008 (nl1b) ====&lt;br /&gt;
&lt;br /&gt;
Follow the procedures as explained in &amp;quot;Creating a single HTTPS web site on Windows 2008&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Testing access to the new https web site. ===&lt;br /&gt;
&lt;br /&gt;
Make a subdomain &#039;&#039;&#039;clientname&#039;&#039;&#039;.hosts.neosys.com&lt;br /&gt;
&lt;br /&gt;
https://&#039;&#039;&#039;clientname&#039;&#039;&#039;.hosts.neosys.com:4430/neosys&lt;br /&gt;
&lt;br /&gt;
If you get certificate error:&lt;br /&gt;
&lt;br /&gt;
#check that the selfsll /n:CN=&#039;&#039;&#039;clientname&#039;&#039;&#039;.hosts.neosys.com matches the domain name used in IE&lt;br /&gt;
#install the certificate into the client computer (double click the padlock, view certificates etc)&lt;br /&gt;
&lt;br /&gt;
closing all internet explorer versions and restarting is necessary for installed certificates to become effective.&lt;br /&gt;
&lt;br /&gt;
== Creating multiple HTTPS web sites ==&lt;br /&gt;
&lt;br /&gt;
=== Bugs ===&lt;br /&gt;
&lt;br /&gt;
SelfSSL allows only one website to have SSL at a time in Windows 2003. However to avoid any issues in the future the solutions below have been provided for both Windows 2003 and 2008.&lt;br /&gt;
&lt;br /&gt;
IIS Diagnostics Toolkit which has fixed SelfSSL but doesnt allow full control&lt;br /&gt;
http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx&lt;br /&gt;
&lt;br /&gt;
=== Solution for Windows 2003 ===&lt;br /&gt;
&lt;br /&gt;
Use selfssl as follows: &lt;br /&gt;
&lt;br /&gt;
&amp;quot;Wizard&amp;quot; in the following means IIS, Web Sites, (website), properties, directory security, server certificate, next, Renew/Remove/Export/Import&lt;br /&gt;
&lt;br /&gt;
Certificates must be saved in d:\hosts\certificates preferably by name for easy reference otherwise by site number. If this is not done then if certificates need to be regenerated then you have the pain of supporting re-import of certificates by all users. In some cases this isn&#039;t easy e.g. Vista.&lt;br /&gt;
&lt;br /&gt;
#delete any existing certificate &lt;br /&gt;
#create certificate for a site in SELFSSL following the normal procedure&lt;br /&gt;
#export the certificate to a pfx file (Wizard) USE PASSWORD FOUND IN CERTIFICATES FOLDER&lt;br /&gt;
#remove the certificate (Wizard)&lt;br /&gt;
#import pfx certificate back (Wizard) &lt;br /&gt;
#*Use PASSWORD found in certificates folder&lt;br /&gt;
#*Make sure you select the &amp;quot;mark certificate as exportable&amp;quot; option &amp;lt;br&amp;gt;[[image:import-export.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Continue adding sites this way and they should work perfectly fine. Just follow the sequence here for each site being added.&lt;br /&gt;
&lt;br /&gt;
NOTE: The EXPORT/REMOVE/IMPORT stage is necessary where there are multiple https sites on one server since any subsequent SELFCERT seems to destroy all other sites done with SELFCERT that have not been exported/REMOVED/imported.&lt;br /&gt;
&lt;br /&gt;
=== Re-installing Certificates ===&lt;br /&gt;
&lt;br /&gt;
Sometimes due to an unknown issue, site/s stop working and hence there is a need to re-install the site certificate.&lt;br /&gt;
&lt;br /&gt;
==== Re-installing Certificates from saved PFX files ====&lt;br /&gt;
&lt;br /&gt;
Just do the first and last steps of the normal installation procedure.&lt;br /&gt;
&lt;br /&gt;
#delete the existing certificate (IIS-&amp;gt;Site-&amp;gt;directory security-&amp;gt;server certificate wizard)&lt;br /&gt;
#import pfx certificate (IIS-&amp;gt;Site-&amp;gt;directory security-&amp;gt;server certificate wizard)&lt;br /&gt;
#*Use PASSWORD found in certificates folder&lt;br /&gt;
#*Make sure you select the &amp;quot;mark certificate as exportable&amp;quot; option &amp;lt;br&amp;gt;[[image:import-export.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Re-installing Certificates from selfssl ====&lt;br /&gt;
&lt;br /&gt;
Repeat the usual installation method above without missing the delete stage&lt;br /&gt;
&lt;br /&gt;
If users have installed certificates in their browsers then they will have to reinstall them again to avoid the usual &amp;quot;certificate not trusted/matching&amp;quot; type problems.&lt;br /&gt;
&lt;br /&gt;
=== Solution for Windows 2008 ===&lt;br /&gt;
&lt;br /&gt;
The solution involves generating the certificate and thereafter saving it. Certificates must be saved in d:\hosts\certificates preferably by name for easy reference otherwise by site number. If this is not done then if certificates need to be regenerated then you have the pain of supporting re-import of certificates by all users. &lt;br /&gt;
&lt;br /&gt;
#Create certificate for a site in SELFSSL following the normal procedure of Windows 2008&lt;br /&gt;
#Export the certificate to a pfx file from IIS Manager &amp;gt; Click on Certificate &amp;gt; Export (use the location stated above - password to be set will be in a txt file in the same folder)&lt;br /&gt;
#Remove the certificate from IIS Manager&lt;br /&gt;
#Import pfx certificate back from IIS Manager&lt;br /&gt;
#*Use PASSWORD found in certificates folder&lt;br /&gt;
#*Make sure you select the &amp;quot;mark certificate as exportable&amp;quot; option &amp;lt;br&amp;gt;[[image:import-export.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: Importing and Exporting certificates in Windows 2008 is just one part of the step to add certificates to sites and you need to follow the usual instructions to &amp;quot;bind&amp;quot; the certificate to a particular site.&lt;br /&gt;
&lt;br /&gt;
=== Re-installing Certificates ===&lt;br /&gt;
&lt;br /&gt;
Sometimes due to an unknown issue, site/s stop working and hence there is a need to re-install the site certificate.&lt;br /&gt;
&lt;br /&gt;
==== Re-installing Certificates from saved PFX files ====&lt;br /&gt;
&lt;br /&gt;
#Unbind the certificate from the site&lt;br /&gt;
#Remove the certificate from IIS Manager&lt;br /&gt;
#Import pfx certificate back from IIS Manager&lt;br /&gt;
#*Use PASSWORD found in certificates folder&lt;br /&gt;
#*Make sure you select the &amp;quot;mark certificate as exportable&amp;quot; option &amp;lt;br&amp;gt;[[image:import-export.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Rebind the certificate&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Import-export.jpg&amp;diff=1107</id>
		<title>File:Import-export.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Import-export.jpg&amp;diff=1107"/>
		<updated>2012-10-30T13:48:50Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_windows_2003.doc&amp;diff=1106</id>
		<title>File:New Installation Checklist windows 2003.doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_windows_2003.doc&amp;diff=1106"/>
		<updated>2012-10-24T11:50:29Z</updated>

		<summary type="html">&lt;p&gt;Vineet: uploaded a new version of &amp;quot;File:New Installation Checklist windows 2003.doc&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1105</id>
		<title>Troubleshooting NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1105"/>
		<updated>2012-10-24T11:45:57Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Fixing Low Memory */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Solving failure to start a NEOSYS server due to disk failure message ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
During a reboot process (which maybe due to a Windows update or even done by a support personnel) the NEOSYS server gets hung on the startup and shows a message &amp;quot;Boot Failure - Abort, Retry&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Temporary solution ===&lt;br /&gt;
This typically happens due to the USB being plugged into the server and the boot sequence being wrong - i.e. the server trying to boot from the USB first and fails. The immediate solution would be to unplug the USB and ask the client to reboot the server again and upon successfully rebooting the system, plug the USB back again.&lt;br /&gt;
&lt;br /&gt;
=== Permanent solution ===&lt;br /&gt;
The above problem will occur every time the computer is rebooted, so you need to immediately talk to the IT Administrator of the client and ask them to rectify the boot sequence to make it boot first from the CD ROM, then the HDD and last the USB.&lt;br /&gt;
&amp;lt;BR&amp;gt;Allowing &amp;quot;Boot from USB&amp;quot; causes a severe risk of infection by boot sector viruses since the first infected USB device inserted WILL infect the server immediately as anti-virus programs are not active during boot.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS process hung due to “Abort, Retry, Fail” ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
The following messages may come on older versions of NEOSYS if there is a some problem with the USB media inserted for backup.&lt;br /&gt;
&lt;br /&gt;
[[image:usberror.jpg]]&lt;br /&gt;
&lt;br /&gt;
This results in “NEOSYS has not checked in” message on Nagios since it hangs during the monitoring update and locks all other processes from monitoring too.&lt;br /&gt;
&lt;br /&gt;
General failure writing drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Not read reading drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Pressing A or F results in the problem happening again in about a minute, perhaps on a different process.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Temporary solution is to do “Safely remove hardware” from the windows notification area. Using “Eject” from My Computer will not work.&lt;br /&gt;
&lt;br /&gt;
Permanent solution is to replace the defective USB memory stick. Sometime reformatting is sufficient.&lt;br /&gt;
&lt;br /&gt;
Upgrading NEOSYS will probably stop the defective media from causing NEOSYS to hang but the USB will still be useless for backup.&lt;br /&gt;
&lt;br /&gt;
== Solving &amp;quot;Read error in the operating system file&amp;quot; ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
Nagios reports a hung process and on the server a process has the following message popup.&lt;br /&gt;
&lt;br /&gt;
 Read error in the operating system file &amp;quot;..\DATA\PT0833\ACCOUNTS\REV20049&lt;br /&gt;
 The file does not exist or the filename is&lt;br /&gt;
 not valid for the operating system.&lt;br /&gt;
&lt;br /&gt;
[[Image:readerrorintheoperatingsystemfile.png]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Some non-NEOSYS program is directly accessing the NEOSYS database files while NEOSYS processes are running and using the files as well.&lt;br /&gt;
&lt;br /&gt;
*Client IT staff using a backup program to perform backup without ensuring that NEOSYS processes are shutdown.&lt;br /&gt;
*A NEOSYS rsync process taking longer than expected due to new USB.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Kill the NEOSYS process eg with the X button. It is advisable NOT to let it run further while it cannot properly access one of its files.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
Remove the third party program or arrange for it to operate only while NEOSYS processes are shutdown eg from 3am-6am.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the &amp;quot;Database not available&amp;quot; error message == &lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
This error appears when you try to login to NEOSYS after you enter your username and password and click the Login button.&lt;br /&gt;
&lt;br /&gt;
[[image:database_unavailable.jpg]]&lt;br /&gt;
&lt;br /&gt;
Error message : &lt;br /&gt;
&lt;br /&gt;
 Cannot login because : &lt;br /&gt;
 Error :  The (database code) database is not available right now.&lt;br /&gt;
&lt;br /&gt;
=== Solution explained ===&lt;br /&gt;
# Determine if the processes are running. If they are running and you still get the same message that means that the proccesses have hung. Close them by hitting the X button on the window.&lt;br /&gt;
# If the processes are not visible, it is possible that they are running in the background and have hung for some reason. Check the windows task manager to see if any ‘ntvdm’ process is running. If so, use the End Process method to force close it.&lt;br /&gt;
# If there is no trace of any process running, that means the process probably did not start at the scheduled time. Refer to the &#039;Hung Process Reports&#039; to verify this claim. &lt;br /&gt;
# If the process had not hung, then the server might have restarted due to a power failure or a windows update and the administrator user had not logged in post the scheduled startup time of 6AM. To determine this cause, investigate in the Windows Event Viewer Log file.&lt;br /&gt;
# You can now start up the process by clicking on the respective desktop icons.&lt;br /&gt;
# Also check if the backup took place successfully or not. If not take a manual backup.&lt;br /&gt;
&lt;br /&gt;
== Handling damaged files ==&lt;br /&gt;
&lt;br /&gt;
[[Handling damaged files]]&lt;br /&gt;
&lt;br /&gt;
== Checking for corrupt database files ==&lt;br /&gt;
Login to NEOSYS Maintenance&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.FILES&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 CHK.FILES filename&lt;br /&gt;
&lt;br /&gt;
== Assessing Database Size per File ==&lt;br /&gt;
In NEOSYS maintenance mode&lt;br /&gt;
 &lt;br /&gt;
 LIST FILES BY BY-DSND SIZE VOLUME.NAME SIZE&lt;br /&gt;
 &lt;br /&gt;
This will include all files not just those in the actual dataset in DATA\* folders.&lt;br /&gt;
&lt;br /&gt;
== Resolving slow speed ==&lt;br /&gt;
=== [[Benchmarking NEOSYS]] ===&lt;br /&gt;
=== Investigating CPU 100% using Windows Task Manager ===&lt;br /&gt;
Email, to support, a screen-shot of task manager APPLICATIONS, PROCESSES and PERFORMANCE screens MAXIMIZED TO SHOW AS MUCH AS POSSIBLE. &lt;br /&gt;
&lt;br /&gt;
(Sort the processes to show ntvdm, waiting.exe and high cpu% processes clearly)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Steps:&#039;&#039;&#039;&lt;br /&gt;
#Right Click on Windows Taskbar and click on Start Task Manager &amp;lt;br&amp;gt; [[image:starttaskmanager.jpg]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Processes and then click on CPU &amp;lt;br&amp;gt;&#039;&#039;&#039;Note - The HIGH cpu% processes which should usually be the &amp;quot;process&amp;quot; called &amp;quot;System Idle Process&amp;quot; &#039;&#039;&#039;&amp;lt;br&amp;gt;[[image:cpu100percent1.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on the Performance Tab &amp;lt;br&amp;gt; &#039;&#039;&#039;Note - PF Usage should typically be much less than Physical Memory otherwise there is insufficient real memory in the server to handle the load&#039;&#039;&#039; &amp;lt;br&amp;gt; [[image:cpu100percent3.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on Application Tab then Right Click on a NEOSYS Process and Click on Bring to Front &amp;lt;br&amp;gt;&#039;&#039;&#039;See what the NEOSYS Process is doing &amp;lt;br&amp;gt; [[image:cpu100percent2.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Right Click on a NEOSYS Process and Click on Go to Processes &amp;lt;br&amp;gt;&#039;&#039;&#039;Note the cpu% ntvdm process &amp;lt;br&amp;gt;[[image:cpu100percent2_2.jpg]]&amp;lt;br&amp;gt;  &lt;br /&gt;
#Normally NEOSYS application screens say &amp;quot;LISTENING&amp;quot; in the bottom line and those applications should have very low cpu%&amp;lt;br&amp;gt;[[image:normalneosysprocess.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Look at the difference between the screen of running NEOSYS processes (applications actually) which are idle (listening for requests) and active (processing a request from a user)&lt;br /&gt;
#Note the number of cpus or cpu threads in the server from the performance screen graphics&amp;lt;br&amp;gt;[[image:performance-taskmgr-cputhread.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Take screen-shots of any and ALL hung or long running processes (NEOSYS application screens) and email them to support. Even small details on the screens and user names, the user names may give clues to what problem caused the hanging.A Typical Hung NEOSYS process will look like this: &amp;lt;br&amp;gt; [[image:hungneosysprocess.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Once all hung/long processes are closed then CPU should be low and not near 100%. If it is still 100% then check all high cpu% processes and send a screen-shot of processes sorted to show the high cpu% process names to support.&lt;br /&gt;
&lt;br /&gt;
=== Solving server CPU% is 100 and all users are extremely slow/stopped ===&lt;br /&gt;
==== Too few cpus/threads for the number of users ====&lt;br /&gt;
In Windows task manager normally, you should see one ntvdm.exe and one waiting.exe process per NEOSYS process (application). A standard installation has three NEOSYS processes per main database and plus one per test database. This is configured in Support Menu, Configuration File.&lt;br /&gt;
&lt;br /&gt;
If there are MORE ntvdm processes than you expect from the configuration file, then perhaps NEOSYS is auto starting new NEOSYS processes to try and cater for a high number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
If the number of concurrent NEOSYS processes significantly exceeds the number of cpus/hyperthreads available in the server then processing for everybody can become so slow for everybody and almost no work gets done.&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Stop NEOSYS creating new NEOSYS processes automatically. Create a text file with the first and only line as AUTOSTART=NO in the neosys\neosys folder something like this.&lt;br /&gt;
&lt;br /&gt;
notepad d:\neosys\neosys\NET.CFG&lt;br /&gt;
&lt;br /&gt;
AUTOSTART=NO&lt;br /&gt;
&lt;br /&gt;
== Handling failure and warning on nightly backup alerts ==&lt;br /&gt;
&lt;br /&gt;
[[Handling failure and warning messages on nightly backup alerts]]&lt;br /&gt;
&lt;br /&gt;
== Resolving permissions errors while logging in ==&lt;br /&gt;
 &lt;br /&gt;
=== Problem ===&lt;br /&gt;
 &lt;br /&gt;
While logging in, you get the following error message:&lt;br /&gt;
[[Image:login_error_message.jpg]]&lt;br /&gt;
 &lt;br /&gt;
=== Solution ===&lt;br /&gt;
 &lt;br /&gt;
Add the internet guest account to the security list of the data folder with the default permission of list/read/write&lt;br /&gt;
 &lt;br /&gt;
Make sure the read&amp;amp;execute permission is removed&lt;br /&gt;
[[Image:permissions_on_data.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;HTTP Error 500.0 - Internal Server Error&#039; while logging in on IE on a Windows Vista system ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
After configuring IIS on Windows Vista you will get this error message while trying to login into NEOSYS from Internet Explorer:&lt;br /&gt;
&lt;br /&gt;
 HTTP Error 500.0 - Internal Server Error&lt;br /&gt;
 Description: This application is running in an application pool that uses the Integrated .NET  &lt;br /&gt;
 mode. This is the preferred mode for running ASP.NET applications on the current and future &lt;br /&gt;
 version of IIS.&lt;br /&gt;
 &lt;br /&gt;
 In this mode, the application using client impersonation configured with &amp;lt;identity &lt;br /&gt;
 impersonate=&amp;quot;true&amp;quot; /&amp;gt; may not behave correctly. Client impersonation is not available in early &lt;br /&gt;
 ASP.NET request processing stages and may lead modules in those stages to execute with process &lt;br /&gt;
 identity instead.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
You can move the application to an application pool that uses the Classic .NET mode by using the following from a command line window (the window must be running as Administrator) &lt;br /&gt;
&lt;br /&gt;
 %systemroot%\system32\inetsrv\APPCMD.EXE set app &amp;quot;Default Web Site/neosys&amp;quot; /applicationPool:&amp;quot;Classic .NET AppPool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;Class Not Registered&#039; error message while logging in ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
While logging into NEOSYS, you will get a popup window giving an error message saying &#039;Class Not Registered - Server Error&#039;. Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there&#039;s way to solve it, however the root cause of this is still unknown.&lt;br /&gt;
&lt;br /&gt;
Anyway, you will get the proper message in the event log:&lt;br /&gt;
&lt;br /&gt;
 Event Type: Warning&lt;br /&gt;
 Event Source: W3SVC&lt;br /&gt;
 Event Category: None&lt;br /&gt;
 Event ID: 36&lt;br /&gt;
 Description: The server failed to load application &#039;/LM/W3SVC/1/ROOT/NEOSYS.&lt;br /&gt;
 The error was &#039;Class not registered&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB from Microsoft (PRB: Cannot Expand &amp;quot;My Computer&amp;quot; in Component Services MMC Snap-In http://support.microsoft.com/?id=301919):&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, reinstall Component Services as follows: WARNING: &lt;br /&gt;
# Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.  &lt;br /&gt;
# From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.  &lt;br /&gt;
# Click Add/Remove Windows Components. &lt;br /&gt;
# Proceed through the wizard, and accept all of the defaults (including IIS)&lt;br /&gt;
# Restart the computer.&lt;br /&gt;
&lt;br /&gt;
If the above didn&#039;t solve it, and you still receive the &#039;Class not registered&#039; error message, then you need to recreate the IIS packages in COM+, try&lt;br /&gt;
&lt;br /&gt;
# Delete IIS related package in Component Services MMC&lt;br /&gt;
# IIS In-Process Applications &lt;br /&gt;
# IIS Out-of-Process Pooled Applications &lt;br /&gt;
# IIS Utilities&lt;br /&gt;
&lt;br /&gt;
Next, if you still get the message, try following before re-install IIS if you can&#039;t find Distributed Transaction Coordinator in your Services console.&lt;br /&gt;
&lt;br /&gt;
Launch command prompt and run the following command.&lt;br /&gt;
# msdtc -install&lt;br /&gt;
# net start msdtc&lt;br /&gt;
&lt;br /&gt;
Then try re-install IIS.&lt;br /&gt;
&lt;br /&gt;
This should solve the problem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling File Security option on Win XP Professional ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
In the Properties of any folders, the Security option does not show, hence you cannot modify the Read, Write options.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution would be to untick the &#039;Simple File Sharing&#039; option from  Tools &amp;gt; Folder Options &amp;gt; View:&lt;br /&gt;
[[Image:simplefilesharingoff.jpg]]&lt;br /&gt;
&lt;br /&gt;
== B703 Errors ==&lt;br /&gt;
&lt;br /&gt;
The B703 error is usually always related to something too big for NEOSYS to handle. &lt;br /&gt;
&lt;br /&gt;
These are the only B errors that NEOSYS cant always permanently prevent by fixing the software.&lt;br /&gt;
&lt;br /&gt;
== Internet Explorer Menu, View, Text Size doesnt change font size as expected ==&lt;br /&gt;
&lt;br /&gt;
Cause: This is because the font size is now user definable in NEOSYS and View, Text Size does not override predefined font sizes.&lt;br /&gt;
&lt;br /&gt;
Solution: If you are using Internet Explorer 7 you can scale the screen (including the font size  using ctrl + and ctrl - keyboard shortcuts or the font size button on the bottom right hand side of the window. &lt;br /&gt;
&lt;br /&gt;
You can adjust the font size on the User Details form when you login although this permanently applies to all forms not just the one that you are on.&lt;br /&gt;
&lt;br /&gt;
== Error on process window &amp;quot;Not enough string space - Out of Memory&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
‘RTP27’ Line 1. [B29] Not enough string space – Out of Memory.&lt;br /&gt;
&lt;br /&gt;
Not enough memory to execute Debugger; current program aborted.&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&lt;br /&gt;
[[Image:out_of_memory.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Unknown perhaps related to some large document or report&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Ask users for any hanging transactions.&lt;br /&gt;
None other than closing and starting another process&lt;br /&gt;
&lt;br /&gt;
== Uploaded jpg files fail to display in internet explorer ==&lt;br /&gt;
&lt;br /&gt;
Some large jpg files &amp;gt; 2Mb cannot be viewed in internet explorer despite being viewable in image preview, ms paint and other viewers/editors. It is not an issue caused by uploading or downloading the files.&lt;br /&gt;
&lt;br /&gt;
These file appear to have been created on Photoshop CS Macintosh and may be a special type of uncompressed jpg used for production quality files.&lt;br /&gt;
&lt;br /&gt;
=== Partial solution ===&lt;br /&gt;
Before uploading the files, open them in some editor like MS Paint (right click, edit) and save them. However this results in a loss of quality. Perhaps there is some program that can convert these files to a format understandable by Internet explorer without any loss of quality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;You have attempted to write to a read-only file&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
Error while writing data.&lt;br /&gt;
You have attempted to write to a read-only file.&lt;br /&gt;
- or -&lt;br /&gt;
access to the file has been denied by the operating system.&lt;br /&gt;
(operating system file name: &amp;quot;..\DATA\ADLINEC\ADAGENCY\REV76467.OV00012618&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
It is almost certainly due to some third party backup or other maintenance software opening the NEOSYS database files when it shouldn&#039;t e.g. badly configured third party backup scheduled to backup NEOSYS while NEOSYS is still running. Note that the exact filename varies each time.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
This can be a serious error that causes damaged files in NEOSYS especially if the filename ends in .OV. Use the usual methods of checking for damaged files e.g. do a backup which also looks for damaged files BUT DO NOT OVERWRITE THE LATEST BACKUP SINCE IT MAY BE REQUIRED for restoration. Then fix the damaged files using the usual methods e.g. by rebuilding/using&lt;br /&gt;
FIXFILE or restoring databases.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
&lt;br /&gt;
Remove the third party backup or other maintenance software or reschedule it to run at a time that NEOSYS is shutdown. Removal of software may require hunting through the windows process list for unexpected programs running.&lt;br /&gt;
&lt;br /&gt;
== Resolving &amp;quot;Cannot backup/restore because PROCESS1 PROCESS2 (etc) is/are online&amp;quot; message ==&lt;br /&gt;
 &lt;br /&gt;
This can happen for a variety of reasons if all the NEOSYS processes fail to close down at backup time&lt;br /&gt;
 &lt;br /&gt;
# NEOSYS maintenance windows are left open.&lt;br /&gt;
# NEOSYS processes hang due to software error.&lt;br /&gt;
 &lt;br /&gt;
== How to kill hung NEOSYS processes ==&lt;br /&gt;
 &lt;br /&gt;
NOTE WELL: If you kill actively working NEOSYS processes (those which are &amp;quot;listening&amp;quot; and not hung/crashed) there is a reasonable chance that the database will be damaged and might need a restore losing possibly large amounts of work.&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are visible on the server desktop ====&lt;br /&gt;
 &lt;br /&gt;
Look for processes which don&#039;t have &amp;quot;Listening ...&amp;quot; on the last but one line. The times on the left hand side are frozen as at the time of the hang.&lt;br /&gt;
 &lt;br /&gt;
You can then click the X to kill the process and confirm that this is OK.&lt;br /&gt;
 &lt;br /&gt;
Example of a NEOSYS process that has hung due to a software error resulting in a failure to handle a complex query with a lot of brand codes.&lt;br /&gt;
&lt;br /&gt;
[[Image:hungprocess.jpg]]&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are not visible on the server desktop ====&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on computer restart and no one has logged into the server. In this case it would be running in the background. Secondly in the case of Windows 2008, the processes always are hidden. &lt;br /&gt;
&lt;br /&gt;
You can check if there are any hung processes from the NEOSYS Support Menu, List of Database Processes. &lt;br /&gt;
[[Image:databaseprocesseslist.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this case you should follow the below instructions - however all of them need to be done within 30 seconds of starting the first instruction to avoid inconvenience to the users. It is recommend that you keep relevant windows open before proceeding with the same:&lt;br /&gt;
&lt;br /&gt;
#Shutdown NEOSYS by TEMPORARILY putting a file called GLOBAL.END in the parent directory of NEOSYS (if there is already a GLOBAL.END.TEMP file then rename it to GLOBAL.END). Leaving the file there would prevent NEOSYS from starting up again. Shutting down NEOSYS from the Support menu will not work because of the hung processes.&lt;br /&gt;
#Use Windows Task Manager to kill all the NTVDM processes - assuming that you have closed all the visible NEOSYS processes, then the NTVDM processes in the task manager would be the hung one.&lt;br /&gt;
#Delete GLOBAL.END or rename it to GLOBAL.END.TEMP&lt;br /&gt;
#Restart the processes back again. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
#*Restarting a process is not noticed by users.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
=== Temporary workarounds for hung NEOSYS processes ===&lt;br /&gt;
Until the error in the software is fixed users can often get their results by simplifying their requirements. For example select individual clients instead of selecting all the brands for a particular client. If the user has repeated his request (in forlorn hope that it would work finally) then the number of NEOSYS working NEOSYS processes will drop causing severe slowdown for other users and complete stop if all the NEOSYS processes hang.&lt;br /&gt;
&lt;br /&gt;
== How to fix a NEOSYS process which opens up in a notepad instead of Microsoft Windows Based Script Host (i.e. DOS window)==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS process (cmd file) might open up in a notepad, instead of the usual black colour DOS window. This can be fixed by the following:&lt;br /&gt;
&lt;br /&gt;
# Download and install the Windows Script 5.6/5.7 from the Microsoft Website&lt;br /&gt;
# Go to any folder, click on Tools &amp;gt; Folder Options &amp;gt; File Types and find the .JS and .JSE and change the default program to wscript.exe (from windows&amp;gt;system32)&lt;br /&gt;
&lt;br /&gt;
== Resolving a &#039;Could not start&#039; error on Scheduled Tasks in Windows Server 2000 SP4 ==&lt;br /&gt;
&lt;br /&gt;
This error occurs because of a change that is made to the data that is stored in the credentials database when you install Windows 2000 SP4. Hence installing SP4 causes the the data that is stored in the credentials database to get converted to an SP4-compatible format. A registry key is configured to indicate that the data has been converted to the SP4 format.&lt;br /&gt;
&lt;br /&gt;
Hence the Scheduled Tasks do not work sometimes. However the Scheduled Tasks works fine sometimes, but when you uninstall SP4, it does not work.&lt;br /&gt;
&lt;br /&gt;
The best solution is to:&lt;br /&gt;
&lt;br /&gt;
# Incase Scheduled Tasks do not work after installing SP4, then uninstall SP4 and it should be fine.&lt;br /&gt;
# Incase Scheduled Tasks works after installing SP4, and later after uninstalling SP4, it does not work, then install SP4 and it should be fine.&lt;br /&gt;
&lt;br /&gt;
== Checking for server or NEOSYS crashes ==&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS Maintenance Mode&lt;br /&gt;
#General Menu, Setup, Processes&lt;br /&gt;
#Select the dates and the option Detailed&lt;br /&gt;
 &lt;br /&gt;
This report shows a list of dates and times that NEOSYS logged in but did not log out properly.&lt;br /&gt;
 &lt;br /&gt;
Ignore the very latest entries since they represent the current NEOSYS processes. For example, if you have four NEOSYS processes running at the time that you get the report (including any in maintenance mode) then you can ignore the last four entries.&lt;br /&gt;
 &lt;br /&gt;
The date and time shows for each process that has failed to shutdown correctly when the process logged in. Versions of NEOSYS from January 2008 will also show the date and time that each crashed NEOSYS process was last active (heartbeat) so that the time of failure can be known.&lt;br /&gt;
 &lt;br /&gt;
If you see a bunch of NEOSYS processes all started up at around the same time but all failed to shutdown correctly then the cause will be a server failure - usually power failure.&lt;br /&gt;
 &lt;br /&gt;
Isolated one-off failures will be related to individual NEOSYS process crashes - most commonly caused by one of the following:&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS hanging to due to software failure&lt;br /&gt;
#Manually exiting a NEOSYS process on the server either by pressing Ctrl+Alt+Del or clicking the &amp;quot;X&amp;quot; close icon/box and ignoring the warning&lt;br /&gt;
#Random server failures eg memory, disk etc&lt;br /&gt;
 &lt;br /&gt;
Example:&lt;br /&gt;
 &lt;br /&gt;
 LOGIN 22/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation &lt;br /&gt;
 LOGIN 23/12/2007 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:53 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 13:51 NEOSYS SERVER NEOSYS         Current user session  &lt;br /&gt;
&lt;br /&gt;
Interpretation:&lt;br /&gt;
 &lt;br /&gt;
The first four entries indicate that all four NEOSYS processes started at 06am were suddenly killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The next four entries indicate that NEOSYS was restarted at around 08:52 and all these processes were AGAIN killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The last four entries can be ignored because there were four NEOSYS processes running at the time that the report was generated&lt;br /&gt;
&lt;br /&gt;
== Searching for word/number in the database files using maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
You can search for any word/number in the database files of NEOSYS, using the following command line:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 FIND FILENAME WORDWITHOUTANYSPACES&lt;br /&gt;
 &lt;br /&gt;
 For eg:&lt;br /&gt;
 FIND CURRENCIES 1.1&lt;br /&gt;
 (here you are searching for the number 1.1 in the currencies file) You CANNOT search for a phrase ie include spaces like this.&lt;br /&gt;
 &lt;br /&gt;
 Or you can also type:&lt;br /&gt;
 FIND FILENAME &amp;lt;enter&amp;gt;&lt;br /&gt;
 and it will ask you what you want do to search. You can enter an exact phrase with spaces.&lt;br /&gt;
&lt;br /&gt;
Incase you do not know the filenames, you can enter the following command to see all the filenames in the system:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 LF&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the NTVDM Hard error when opening up NEOSYS processes ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears:&lt;br /&gt;
&lt;br /&gt;
[[Image:ntvdm.jpg]]&lt;br /&gt;
&lt;br /&gt;
 NTVDM encountered a hard error&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
This error is caused by missing or corrupt Windows system files (i.e. command.com, autoexec.nt and config.nt). The solution is to run a program called XP FIX which will reinstall these missing files. You can download it form http://www.visualtour.com/downloads/xp_fix.exe&lt;br /&gt;
&lt;br /&gt;
Sometimes even after running the XP FIX program the error still appears. Then you need to copy all the files under C:/windows/repair to C:/windows/system32 and in the autoexec.nt and config.nt put REM before any lines there which don&#039;t have it.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting a Service Unavailable message on Internet Explorer when opening up NEOSYS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears in Internet Explorer when you try to open up NEOSYS:&lt;br /&gt;
&lt;br /&gt;
 Service Unavailable&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
Open the IIS Manager, right click Web Sites and select properties:&lt;br /&gt;
[[Image:serviceunavailable1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Switch to the Service Tab and tick the &amp;quot;Run WWW Service in IIS 5.0 Isolation Mode&amp;quot;.&lt;br /&gt;
[[Image:serviceunavailable2.jpg]]&lt;br /&gt;
&lt;br /&gt;
You will be asked for Restart of IIS. Click yes to restart IIS. If you are not asked just restart IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inspecting IIS log files ==&lt;br /&gt;
&lt;br /&gt;
At a windows command prompt:&lt;br /&gt;
&lt;br /&gt;
 c:&lt;br /&gt;
 cd \Windows\system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 %SystemDrive%&lt;br /&gt;
 cd %SystemRoot%&lt;br /&gt;
 cd system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
then (substituting the ip number you are interested in)&lt;br /&gt;
&lt;br /&gt;
 find &amp;quot;192.168.1.55&amp;quot; *|sort&amp;gt;temp.log&lt;br /&gt;
&lt;br /&gt;
Open temp.log in Excel and use Tools, Data, Text to Columns to split into columns using options &amp;quot;Delimited&amp;quot; and check split on Space.&lt;br /&gt;
&lt;br /&gt;
Autowidth all columns by clicking on the top left box just outside the data to the left of column A and above column 1 then double click the column separator to the right of column &amp;quot;A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that times and dates are in UTC/GMT so you have to add/subtract your timezone offset to get local times.&lt;br /&gt;
&lt;br /&gt;
== Fixing NEOSYS processes that do not auto start / Recovering from incorrect advanced date or time ==&lt;br /&gt;
This solution is applicable to live database processes only. Test database processes don’t auto-start any other processes.&lt;br /&gt;
&lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
After starting up the 1st process, the rest of the processes don&#039;t start up.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The possible cause for this could be that the system date/time might have been changed - either manually or by the auto synchronization. Do the following checks in the sequence of order:&lt;br /&gt;
&lt;br /&gt;
# Check for any *.$* files (* after dollar sign should show a number, the highest being the latest one). If it shows OK, then proceed ahead.&lt;br /&gt;
# Check for any .end files and delete it to rename to .end.temp&lt;br /&gt;
# Check the System Event Viewer log for any 520 or 577 error message (refer http://128.175.24.251/forensics/timechange.htm). Also check for any out of sequence / ahead of today date or time.&lt;br /&gt;
# In case of no 520 or 577 error message, go to Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; Audit Policy &amp;gt; Audit Privilege use - make sure that Success and Failure are selected under this (this will ensure that future changes to the date/time are recorded in the System Log).&lt;br /&gt;
# In NEOSYS maintenance mode - F5 ED PROCESSES %UPDATE% - and see what it says, incase of any text (only text, not numbers) there, that means that for sure the system date has been changed. To fix this, exit the editor by pressing the ESCAPE key and then type DELETE PROCESSES &amp;quot;%UPDATE%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Recognising and Solving Low Memory Problems ==&lt;br /&gt;
&lt;br /&gt;
Quick Note: Installing a server class operating system on a workstation class computer with the intention of NEOSYS serving a heavy load is likely to cause problems with low memory.&lt;br /&gt;
&lt;br /&gt;
Quick Fix: Disable *ALL* non-essential features in the power-on setup menu.&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
It is speculated but not proven that low memory may cause NEOSYS to fail by hanging, causing damaged files etc.&lt;br /&gt;
&lt;br /&gt;
=== Checking ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 MEMORY&lt;br /&gt;
&lt;br /&gt;
On server class machines it should say somewhere around 350Kb to 370Kb Free&lt;br /&gt;
&lt;br /&gt;
Some server class machines have around 330Kb and sometimes even less with no reported problems&lt;br /&gt;
&lt;br /&gt;
The actual effect of low memory is supposed to make NEOSYS slower and perhaps cause hanging and damaged files however this has not been proven in an specific case so far.&lt;br /&gt;
&lt;br /&gt;
On workstation class machines it may often say around 280Kb to 300Kb.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
Although there is plenty of real memory in virtually all computers now, NEOSYS runs in the legacy 16 bit virtual memory space of a windows mode called NTVDM. This is limited to 1Mb plus 4Mb of EMS memory.&lt;br /&gt;
&lt;br /&gt;
The 1Mb memory space is shared with:&lt;br /&gt;
&lt;br /&gt;
#Various non-essential windows drivers which NEOSYS automatically disables them in autoexec.nt&lt;br /&gt;
#Various plug and play hardware device drivers for the various adapters in the computer like video, network adapters and various other items that NEOSYS is unable to disable.&lt;br /&gt;
&lt;br /&gt;
In a server class computer the hardware device drivers are usually minimally present in the 1Mb base memory and do not therefore DOESNT a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
In workstation class computers there are often many hardware device drivers present in the 1Mb base memory and this DOES causes a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
When NEOSYS is installed on workstation class computers with XP there is usually not a heavy load expectation and therefore the low memory does not cause a problem.&lt;br /&gt;
&lt;br /&gt;
If Windows Server OS is installed on a workstation class computer NEOSYS may well be expected to serve a heavy load with limited amounts of memory.&lt;br /&gt;
&lt;br /&gt;
Workstation class computers: hardware drivers present and EMS is installed in low memory (0000-9FFF) causing low memory for NEOSYS and possible inability to &lt;br /&gt;
&lt;br /&gt;
Server class computers: Usually few hardware drivers are present in high part (A000-FFFF) of the 1Mb base memory and EMS is able to occupy the high memory leaving the low part (0000-9FFFF) of the 1Mb memory free for NEOSYS. You can find out how much memory is available to NEOSYS and whether EMS is occuping high or low memory using the following sections.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Low Memory ===&lt;br /&gt;
&lt;br /&gt;
Start, Run, notepad c:\windows\system32\autoexec.nt&lt;br /&gt;
&lt;br /&gt;
Every time NEOSYS starts it tries to make some changes as follow:&lt;br /&gt;
&lt;br /&gt;
#replaces all lines in C:/WINDOWS/SYSTEM32/AUTOEXEC.NT starting with &#039;lh &#039; to start with &#039;rem NEOSYS LH &#039; instead.&lt;br /&gt;
#changes the line in C:/WINDOWS/SYSTEM32/CONFIG.NT &amp;quot;files=...&amp;quot; to &amp;quot;FILES=200&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The replacement is case sensitive triggered on &#039;lh&#039; and &#039;files&#039; so if you manually edit the files and remove the rem or change the number of files and leave the LH and FILES in uppercase then NEOSYS will NOT make further changes. This allows you to do manual amendments to the files without NEOSYS overwriting them.&lt;br /&gt;
&lt;br /&gt;
Check that NEOSYS has successfully disabled all the drivers in the lines starting with LH.&lt;br /&gt;
&lt;br /&gt;
They should be commented out (prefixed) with REM or REM NEOSYS as follows.&lt;br /&gt;
&lt;br /&gt;
After making changes reopen NEOSYS in maintenance mode to use the MEMORY and WHO commands again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REM Install CD ROM extensions&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\mscdexnt.exe&lt;br /&gt;
&lt;br /&gt;
REM Install network redirector (load before dosx.exe)&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\redir&lt;br /&gt;
&lt;br /&gt;
REM Install DPMI support&lt;br /&gt;
REM NEOSYS LH %SYSTEMROOT%\SYSTEM32\DOSX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low Memory Issues in Windows 2003 server can be fixed using instructions mentioned at [http://techwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Enabling_EMS_memory_on_Window_2003| Fixing Low Memory in Windows 2003 Server]&lt;br /&gt;
&lt;br /&gt;
=== Allowing DOS programs that require DOSX to run on the same computer as NEOSYS ===&lt;br /&gt;
&lt;br /&gt;
The automatic commenting out DOSX by NEOSYS will prevent some other DOS-like programs from running. If NEOSYS is on dedicated server then there should be no other such programs to fail. However, if you must allow DOS-like programs to work as well as NEOSYS you can do the following configuration:&lt;br /&gt;
&lt;br /&gt;
#leave or restore the original AUTOEXEC.NT and CONFIG.NT files where they are&lt;br /&gt;
#copy them to another folder eg neosys folder&lt;br /&gt;
#make the necessary REM changes there by hand&lt;br /&gt;
#right click the NEOSYS\NEOSYS\AREV.PIF and select properties&lt;br /&gt;
#change the location of the AUTOEXEC.NT and CONFIG.NT files in the following location&lt;br /&gt;
&lt;br /&gt;
[[image:pifsettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Checking EMS Memory Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Inspection ====&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 WHO&lt;br /&gt;
&lt;br /&gt;
 press the up arrow to get to the last part/page&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Server EMS Memory =====&lt;br /&gt;
[[image:serveremm.jpg]]&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Workstation EMS Memory =====&lt;br /&gt;
[[image:workstationemm.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Correction====&lt;br /&gt;
&lt;br /&gt;
No easy way&lt;br /&gt;
&lt;br /&gt;
Removal of hardware adapters designed for workstations instead of servers eg graphics cards and network cards.&lt;br /&gt;
&lt;br /&gt;
Many of the devices may be located on the motherboard and not relocatable except possibly by BIOS configuration or special manufacturer information.&lt;br /&gt;
&lt;br /&gt;
Use windows device manager, View: Resources by Connection, Open the Memory item and look for items between 000A0000 up to 000FFFFF that might give you a clue as to what hardware could be removed or reconfigured. Actually only 000C0000 to 000FFFFF is candidate for EMS memory since 000A000-000BFFFF is mandatory video memory in all systems.&lt;br /&gt;
&lt;br /&gt;
[[image:devicemanager.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Resolving issue where NEOSYS processes do not start-up at all or start-up and close immediately ==&lt;br /&gt;
&lt;br /&gt;
# Find if a file with the name global.end exists in the root directory of the NEOSYS installation. Eg D:\global.end . If you find such a file, rename it to global.end.temp - for more information on global.end and what it does refer to [[Closing NEOSYS services]]&lt;br /&gt;
# If the above didn&#039;t fix the problem and NEOSYS still does not start, do a windows search for the entire NEOSYS folder for *.end (i.e. any file ending with .end extension). You may find a (databasecode).end file in D:\neosys\neosys folder which is created by the NEOSYS program during backup at 1 am and later on removed automatically. In this case NEOSYS program might have crashed during the backup and left this file behind. (databasecode).end files prevent other other NEOSYS processes starting up on the database while exclusive processes (like backup) are being done.&lt;br /&gt;
&lt;br /&gt;
In case the above didn&#039;t fix the problem then escalate to the programmer immediately.&lt;br /&gt;
&lt;br /&gt;
== Handling Change Backup message if the client does not use a USB backup device ==&lt;br /&gt;
DO *NOT* FOLLOW THIS PROCEDURE SINCE IS IT IS TOTALLY UNACCEPTABLE FOR NEOSYS TO SEND OUT A &amp;quot;BACKUP SUCCESS&amp;quot; MESSAGE WHEN THE BACKUP IS NOT BEING DONE PROPERLY. IN GENERAL, TAKING SHORT CUTS THAT MAKE THINGS APPEAR SATISFACTORY WHEN THEY ARE NOT IS VERY POOR POLICY.&lt;br /&gt;
&lt;br /&gt;
IF THE CLIENT IS BACKING UP TO A NON-REMOVABLE DESTINATION THEN EITHER 1. LIVE WITH THE FAILURE MESSAGE OR 2. SUPPRESS THE BACKUP ENTIRELY IN WHICH CASE NO BACKUPS ARE BEING DONE AND PROBABLY THIS WILL SHOW ON NEOSYS PROACTIVE WARNING SYSTEMS LIKE NAGIOS.&lt;br /&gt;
&lt;br /&gt;
# Basically most of the client use USB for Neosys server but there are some clients who do not use USB but save their backups in hard drive. &lt;br /&gt;
# As we know that backup take place in Data.bak folder but it do a backup only for a week in a single USB. Over here client do not use USB but save their backup in hard drive in Data.bak folder, once the week is over  it will again give Change backup message.  &lt;br /&gt;
# In this case rename the Data.bak folder to Data1.bak this is done because system read only Data.bak folder as it is configured in the system. When you rename Data.bak to Data1.bak it automatically create a new folder Data.bak in Backup drive.&lt;br /&gt;
# This process is done so that the backup should not fail then next day morning and backups are done in Data.bak folder.&lt;br /&gt;
# In the third week we will again see the same message Chang backup USB message so you need to rename Data.bak folder to Data2.bak&lt;br /&gt;
# But in fourth week you rename the Data1.bak to Data.bak and change the Data2.bak to Data1.bak and Data.bak to Data2.bak &lt;br /&gt;
# Keep only three folders and Data.bak, Data1.bak, Data2.bak and keep on renaming these folders every week as shown above.&lt;br /&gt;
&lt;br /&gt;
== Closing processes that are not visible on the desktop or hidden ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on restart and no one has logged into the server. In this case it would be hidden. Secondly in the case of Windows 2008, the processes always are hidden.&lt;br /&gt;
&lt;br /&gt;
In these cases whenever there is a hung NEOSYS process - due to many reasons for eg low memory. In this case you should close all processes using the global.end method and then from the task manager kill any NTVDM processes and then restart NEOSYS. This should be done within 30 seconds from using the global.end method to avoid any inconvenience to the users. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS not updating NAGIOS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
You notice a problem on NAGIOS indicating that &#039;&#039;&#039;&#039;&#039;NEOSYS not checked in&#039;&#039;&#039; on a particular client server.&lt;br /&gt;
&lt;br /&gt;
=== Possible Causes &amp;amp; Solutions ===&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process is &#039;&#039;&#039;NOT&#039;&#039;&#039; running on the server====&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS process and wait for 10 mins for NEOSYS to check into NAGIOS.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process &#039;&#039;&#039;is&#039;&#039;&#039; running on the server but still cannot connect to NAGIOS====&lt;br /&gt;
&lt;br /&gt;
NEOSYS connects to NAGIOS using http. NEOSYS automatically detects and uses any http proxy configuration configured in Internet Explorer. If Internet Explorer can reach the internet then NEOSYS should be able to update to NAGIOS via the same proxy.&lt;br /&gt;
&lt;br /&gt;
First check if Internet Explorer can reach NAGIOS.&lt;br /&gt;
&lt;br /&gt;
If you are asked to login then the Internet Explorer is working OK. You do not need to login. Just cancel and move on to the next step.&lt;br /&gt;
&lt;br /&gt;
 http://monitor.neosys.com&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CANNOT connect to NAGIOS then resolving that fundamental issue will probably solve the NAGIOS connection issue too.&lt;br /&gt;
&lt;br /&gt;
View the Internet Explorer proxy configuration as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:ieproxy.png]]&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CAN connect to NAGIOS then check if there is an issue with NEOSYS&#039;s http proxy server configuration as follows:&lt;br /&gt;
&lt;br /&gt;
#Search for &#039;&#039;&#039;UPDATE.$WG&#039;&#039;&#039; file located in the neosys\neosys. folder and open it using notepad or wordpad.&lt;br /&gt;
#You should find a message similar to the following:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to 192.168.100.145:8080 failed: No such file or directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where the above appears to be some non-functional http proxy server ip/port number and is not the expected nagios server ip number.&lt;br /&gt;
&#039;&#039;&#039;A windows proxy command shows the same ip and port:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On Windows 2003/XP&lt;br /&gt;
&lt;br /&gt;
 proxycfg&lt;br /&gt;
&lt;br /&gt;
On Windows 2008/Win7&lt;br /&gt;
&lt;br /&gt;
 NetSH WinHTTP import Proxy ie&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Microsoft (R) WinHTTP Default Proxy Configuration Tool&lt;br /&gt;
Copyright (c) Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Current WinHTTP proxy settings under:&lt;br /&gt;
  HKEY_LOCAL_MACHINE\&lt;br /&gt;
    SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\&lt;br /&gt;
      WinHttpSettings :&lt;br /&gt;
&lt;br /&gt;
    Proxy Server(s) :  192.168.100.145:8080&lt;br /&gt;
    Bypass List     :  192.168.*.*;localhost;&amp;lt;local&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 1 - Remove the above setting to create a direct connection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#To remove the registry entries that ProxyCfg.exe creates,you must delete the WinHttpSettings value from the following registry key:&amp;lt;br&amp;gt;&amp;lt;PRE&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings&amp;lt;/PRE&amp;gt;&lt;br /&gt;
#After you do the above, confirm that the proxy details are deleted by running the proxycfg command &amp;lt;BR&amp;gt;&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2 - Configure a functioning proxy ip/port number&#039;&#039;&#039;&lt;br /&gt;
#Use the proxycfg command to enter a working proxy ip/port number/exclusion list: http://msdn.microsoft.com/en-us/library/aa384069%28VS.85%29.aspx&lt;br /&gt;
#After you do the above, confirm that the new proxy details are working by running the proxycfg command again&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; Note: Please refer to the link before you restart NEOSYS processes [[http://techwiki.neosys.com/index.php/Closing_NEOSYS_services#CLOSING_NEOSYS_SERVICES|Closing Hidden Processes]] &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “page not found” when downloading some file types after uploading them successfully ==&lt;br /&gt;
=== One by One ===&lt;br /&gt;
&lt;br /&gt;
Windows web server will not download file types that it is unaware of. You can enable the download of new file types one by one as follows.&lt;br /&gt;
&lt;br /&gt;
This process is tedious and error-prone if you have to add many type.&lt;br /&gt;
&lt;br /&gt;
#Computer Management&lt;br /&gt;
#Services and Applications&lt;br /&gt;
#IIS properties&lt;br /&gt;
#Mime Types&lt;br /&gt;
#Add&lt;br /&gt;
&lt;br /&gt;
=== Many ===&lt;br /&gt;
&lt;br /&gt;
Window Server 2003 is unaware of all the Office 2007+ file types. To add all Office 2007+ file types at once do the following:&lt;br /&gt;
&lt;br /&gt;
Stop IIS&lt;br /&gt;
&lt;br /&gt;
 iisreset /stop&lt;br /&gt;
&lt;br /&gt;
Open the list of mime types&lt;br /&gt;
&lt;br /&gt;
*Start, Run, notepad C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;br /&gt;
&lt;br /&gt;
Search the file for “xlsx” and quit the editor if already inserted.&lt;br /&gt;
&lt;br /&gt;
Otherwise, find the following line,&lt;br /&gt;
&lt;br /&gt;
  .xml,text/xml&lt;br /&gt;
&lt;br /&gt;
and insert after that line the following lines. They do not need to be indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.docm,application/vnd.ms-word.document.macroEnabled.12&lt;br /&gt;
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;br /&gt;
.dotm,application/vnd.ms-word.template.macroEnabled.12&lt;br /&gt;
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;br /&gt;
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12&lt;br /&gt;
.potx,application/vnd.openxmlformats-officedocument.presentationml.template&lt;br /&gt;
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;br /&gt;
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;br /&gt;
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;br /&gt;
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;br /&gt;
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;br /&gt;
.xlam,application/vnd.ms-excel.addin.macroEnabled.12&lt;br /&gt;
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;br /&gt;
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12&lt;br /&gt;
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;br /&gt;
.xltm,application/vnd.ms-excel.template.macroEnabled.12&lt;br /&gt;
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file with File and Exit&lt;br /&gt;
&lt;br /&gt;
Restart IIS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Handling Neosys Automatic Upgrade Error Messages ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
We will receive an email from the NEOSYS client installation with the following message:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;UPGRADEN.EXE&amp;quot; does not have expected exe MZ signature&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
This message is a note that the NEOSYS automatic update procedure failed to download an upgrade file correctly.&lt;br /&gt;
This happens sometimes due to network issues but can be ignored because the file will be probably be correctly downloaded on the next automatic update check.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This message is only informative to help with any problem with the automatic upgrade procedure and may be removed in a later version of neosys (currently Oct 2012)&lt;br /&gt;
&lt;br /&gt;
== Testing https connection ==&lt;br /&gt;
&lt;br /&gt;
The following procedure tests that the https server is operational and not blocked by firewall etc. It does not detect certificate errors.&lt;br /&gt;
&lt;br /&gt;
From a windows command prompt use the following telnet command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet clientname.hosts.neosys.com 4430&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#4430 is the usual NEOSYS http port but replace it by whatever port is actually used for NEOSYS https on the system being tested. If there are multiple https installations on a particular server then different ports are probably used&lt;br /&gt;
#Replace clientname.hosts.neosys.com with the normal https login domain name of the client for whom we want to check the https service&lt;br /&gt;
&lt;br /&gt;
Normal behavior is that it should open a black screen. Pressing Enter or any key returns the _ character. (Close the window using the [X] since there is no keyboard command to do so)&lt;br /&gt;
&lt;br /&gt;
Hanging means that there is some connectivity issue (firewall/ip/server not running/https not installed etc)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;quot;page not found&amp;quot; error while using https ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#The https service stops working and gives &amp;quot;Page not found&amp;quot; error.&lt;br /&gt;
#The https connection tests fine using telnet (see article above)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Reinstall https using the usual procedure (currently using selfssl)&lt;br /&gt;
#Email clients, requesting to reinstall the new security certificate by following the procedure given at [http://userwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Resolving_HTTPS_certificate_error_when_logging_in_from_an_external_link Resolving https certificate error].&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;quot;QUICKDEX&amp;quot; on some files ==&lt;br /&gt;
&amp;quot;Quickdex&amp;quot; is a type of index that keeps an alphabetical order on small files. In some maintenance procedures you may be asked to &amp;quot;install Quickdex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example to add a quickdex to the UNITS file.&lt;br /&gt;
&lt;br /&gt;
Maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 DICT UNITS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=================Dictionary=================┐&lt;br /&gt;
│                                            │&lt;br /&gt;
│  File name      UNITS                      │&lt;br /&gt;
│  Field name     .........................  │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Dict type                                 │&lt;br /&gt;
│  Single/Multi                              │&lt;br /&gt;
│  Data type                                 │&lt;br /&gt;
│  Output format                             │&lt;br /&gt;
│  Validation patterns                       │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Position              Key part            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Column heading                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Justification     Display length          │&lt;br /&gt;
│  Description                               │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
L============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Shift+F3.&lt;br /&gt;
&lt;br /&gt;
If it says &amp;quot;Do you want to remove ...&amp;quot; then Quickdex has already been installed and you should not continue. Press Esc to cancel, then Esc to quit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[B202]==================================┐&lt;br /&gt;
│                                         │&lt;br /&gt;
│               &amp;quot;UNITS&amp;quot; has               │&lt;br /&gt;
│          &amp;quot;QUICKDEX&amp;quot; installed.          │&lt;br /&gt;
│                                         │&lt;br /&gt;
│ Do you want to remove &amp;quot;QUICKDEX&amp;quot;? [Y/N] │&lt;br /&gt;
│                                         │&lt;br /&gt;
│&amp;lt;Y                                      &amp;gt;│&lt;br /&gt;
L=========================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise it should say &amp;quot;Do you want to install ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W963]============================┐&lt;br /&gt;
│                                   │&lt;br /&gt;
│     Do you want to install a      │&lt;br /&gt;
│ Quickdex or Rightdex index? [Q/R] │&lt;br /&gt;
│                                   │&lt;br /&gt;
│&amp;lt;Q                                &amp;gt;│&lt;br /&gt;
L===================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It should then say &amp;quot;Do you want to update ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W901]========================================┐&lt;br /&gt;
│                                               │&lt;br /&gt;
│           The &amp;quot;UNITS&amp;quot; file has had            │&lt;br /&gt;
│ the &amp;quot;QUICKDEX&amp;quot; modifying filing system added. │&lt;br /&gt;
│        There are 0 records in &amp;quot;UNITS&amp;quot;.        │&lt;br /&gt;
│                                               │&lt;br /&gt;
│    Do you want to update &amp;quot;QUICKDEX&amp;quot;? [Y/N]    │&lt;br /&gt;
│                                               │&lt;br /&gt;
│&amp;lt;Y                                            &amp;gt;│&lt;br /&gt;
L===============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards it should return to the initial screen. Press Esc to quit.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS smtp server failure ==&lt;br /&gt;
In case the neosys smtp server fails then we can just use the client&#039;s smtp server.&lt;br /&gt;
&lt;br /&gt;
The following information is required from the client&#039;s smtp server configuration:&lt;br /&gt;
#hostname&lt;br /&gt;
#username&lt;br /&gt;
#password&lt;br /&gt;
#port no. (most likely = 25)&lt;br /&gt;
&lt;br /&gt;
These details should be entered in the &#039;&#039;&#039;System Configuration File&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[image:SYSCFGFILE-SMTP.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Strange characters in maintenance mode ==&lt;br /&gt;
While in Maintenance mode, pressing keys on keyboard gives strange characters. Even Enter and Esc don’t work. &lt;br /&gt;
&lt;br /&gt;
This problem has been seen using RDP on:&lt;br /&gt;
*Window Server 2003 Web Edition&lt;br /&gt;
*Windows Server 2003 R2 SP2&lt;br /&gt;
&lt;br /&gt;
[[image:strangecharmaint.jpg]] &lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
#Go to Windows -&amp;gt; control panel&lt;br /&gt;
#Go to Regional and Language Options &lt;br /&gt;
#Click on Languages tab then click on Details &amp;lt;br&amp;gt; [[image:lang1.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Settings Tab and Change default input language to English (United States)&amp;lt;br&amp;gt;(or perhaps something else depending on rdp keyboard) &amp;lt;br&amp;gt; [[image:lang2.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NEOSYS processes do not start after Windows Update  ==&lt;br /&gt;
&lt;br /&gt;
Servers with Windows 2008 will not start the NEOSYS processes after Windows update. The user will have to be log into the server to start the processes.&lt;br /&gt;
&lt;br /&gt;
If one gets this message on the Schedule Task &amp;quot; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exit &amp;quot;.&lt;br /&gt;
Then they should tick the options Run whether user is logged on or not and Run with highest privileges in General settings of the Task.  &lt;br /&gt;
&lt;br /&gt;
[[image:sti.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Network Outages reflected in Nagios due to reassigning of router name or IP address ==&lt;br /&gt;
Nagios displays errors if a router name or the ip address it is monitoring have been reassigned. &lt;br /&gt;
&lt;br /&gt;
We can resolve this issue by trying to find the ISP router ip address just before the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
Steps:-&lt;br /&gt;
#Login to Nagios&lt;br /&gt;
#Click on Tactical Overview -&amp;gt; Network Outages and click on Blocking Outages to view &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-00.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You will now see the host/ISP which is down. Click on the status map icon to identify the host associated with the ISP, as shown below: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-01.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#From the Network Map displayed, identify the host associated with the ISP. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-02.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#If you already know the ip address of the host then skip to next step else, in Nagios, click on Host Detail, then on the hostname identified earlier and From the Host Details shown, save the host url. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-03.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-04.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Log onto www.network-tools.com:&lt;br /&gt;
#*Select Trace&lt;br /&gt;
#*Enter the host&#039;s ip address if already known or host url&lt;br /&gt;
#*Click on Go &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-05.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#The trace route should complete successfully revealing the IP address of the ISP just before the NEOSYS server. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-06.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You can now login to zoneedit and update the ip address of the host.&lt;br /&gt;
#Check Nagios.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NEOSYS remote support port forwarding ==&lt;br /&gt;
This assumes that you have already “port forwarded” tcp port 19580 from your public internet router to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
=== Tst 0 - Check if SSH is working on the NEOSYS Server ===&lt;br /&gt;
Type in the following command in command prompt:&lt;br /&gt;
 telnet 127.0.0.1 19580&lt;br /&gt;
&lt;br /&gt;
IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Test 1 - Check if SSH is basically working on NEOSYS server over the LAN ===&lt;br /&gt;
You must know and use the NEOSYS SERVER LAN IP to do this.&lt;br /&gt;
&lt;br /&gt;
 telnet ???.???.???.??? 19580&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-01.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you have the WRONG SERVER LAN IP or NEOSYS server SSH is NOT working then it will hang for about 15 seconds and then say “Could not open connection to host …”&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-02.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
OR IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to Exit&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-04.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test 2 - Check if can connect to the NEOSYS ssh from OUTSIDE the office  ===&lt;br /&gt;
From any internet connected computer OUTSIDE the office test if you can connect to NEOSYS ssh service. You cannot do this test from inside the office.&lt;br /&gt;
&lt;br /&gt;
You need to know the public ip or domain name of the router. If the router IP is dynamic then NEOSYS sets up dynamic name server so instead of a static ip number you will have a domain name something like clientxyz.redirectme.net.&lt;br /&gt;
&lt;br /&gt;
Enter the command .. using YOUR public internet IP number (NOT the LAN ip number) or the dynamic domain name.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-05.jpg]]  &lt;br /&gt;
&lt;br /&gt;
If everything is working OK you will get a black screen as follows. You will NOT get the “SSH-2.0-OpenSSH-4.7” banner” because NEOSYS ssh remote support is restricted to connect ONLY from LAN ip nos and NEOSYS office ip nos.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-06.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you press Enter a few times then the cursor will just go down. You have click the [X] to close the window.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-07.jpg]]  &lt;br /&gt;
&lt;br /&gt;
=== Test 3 - Check that the ssh connection from step 2 was rejected  ===&lt;br /&gt;
On the NEOSYS server, check the Windows Application log to verify that an SSH connection was rejected.&lt;br /&gt;
&lt;br /&gt;
The rejected ip number will be of the system outside the office that you performed the test from.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Sample Email: Solving port 19580 port forwarding issues ===&lt;br /&gt;
&lt;br /&gt;
Some IT people know how to trouble shoot port forwarding issues but others are more just power users who can configure a home router. If the IT person is in the second category then it is quicker for NEOSYS support to offer to configure their router from the NEOSYS server using Teamviewer. Here is a letter advising a more skilled person to check connections using telnet which is a low level test.&lt;br /&gt;
&lt;br /&gt;
You can usually determine the NEOSYS server LAN ip number from nagios. If so then adjust the email text appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear xyz,&lt;br /&gt;
&lt;br /&gt;
There is no connection from the internet via your router to the NEOSYS server because when we do the following:&lt;br /&gt;
&lt;br /&gt;
 telnet CLIENTNAME.support.neosys.com 19580&lt;br /&gt;
&lt;br /&gt;
We get no connection. Normally it should connect and presents a black screen  (saying SSH something after pressing Enter) which we close.&lt;br /&gt;
&lt;br /&gt;
Please check that you can connect to the NEOSYS server internally by using the NEOSYS server IP address in the following command on any&lt;br /&gt;
computer in your LAN.&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.?.? 19580&lt;br /&gt;
&lt;br /&gt;
If you can connect to the NEOSYS server internally then please check port forwarding.&lt;br /&gt;
&lt;br /&gt;
1. Has your router ip changed?&lt;br /&gt;
2. Has your server’s lan ip changed and are you forwarding to the correct LAN ip?&lt;br /&gt;
3. Is the configuration really correct?&lt;br /&gt;
&lt;br /&gt;
For further information, see http://techwiki.neosys.com/index.php&lt;br /&gt;
/Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding&lt;br /&gt;
&lt;br /&gt;
Until this is resolved we cannot resolve some types of user support issues.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “Cant login … INVALID DATA PATH … permission denied” ==&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
[[image:error-invalid-data-path-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error Text:&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 Cannot login because:&lt;br /&gt;
 ERROR: INVALID DATA PATH&lt;br /&gt;
 “D:\HOSTS\HOSTNAME\DATA\HOSTNAME\~8746345.1$” Permission Denied&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
When installing NEOSYS on an existing “non-clean” Windows installation, the standard NEOSYS installation procedure can result in failure to login if the standard windows folder permissions have been modified.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
The solution is to grant IIS permission to write in the \neosys\DATA folder and subfolders as follows:&lt;br /&gt;
#First add the IUSR_XXXXXXX user to the list of users. (XXXXXXXX is the server name and therefore varies per server) as follows:&lt;br /&gt;
#*Right Click on DATA Folder and click on Properties&lt;br /&gt;
#*Click on Security Tab -&amp;gt; Add -&amp;gt; Advanced&lt;br /&gt;
#*Click on Find Now, Select the IUSR_XXXXXXX user and Click on OK&amp;lt;br&amp;gt;[[image:error-invalid-data-path-2.jpg]]&amp;lt;br&amp;gt;[[image:error-invalid-data-path-3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Second, for the newly added IUSR (IIS user) change the permissions as follows:&lt;br /&gt;
#*&#039;&#039;&#039;REMOVE&#039;&#039;&#039; the read and execute permission (for security, IIS should be unable to execute things that it might have uploaded)&lt;br /&gt;
#*&#039;&#039;&#039;ADD&#039;&#039;&#039; the write permission &amp;lt;br&amp;gt;[[image:error-invalid-data-path-4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Login should now be possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NEOSYS process window displays message &amp;quot;Upgrade Downloading&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
[[image:upgradedownloading.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
NEOSYS thinks it sees an new neosys2.exe upgrade file on the location http://www.neosys.com/support/neosys2.exe which is accessed by http so attempts to download it.&lt;br /&gt;
&lt;br /&gt;
Http proxies and various internet issues can cause incorrect info to be sent and there is actually no upgrade available. In this case, eventually it realizes that it cant find an appropriate and it stops. &lt;br /&gt;
&lt;br /&gt;
You don’t have to worry about this case.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Enabling EMS memory on Window 2003 ==&lt;br /&gt;
&lt;br /&gt;
Normally EMS memory is provided by Windows 2003 but this can vary depending on the server hardware/bios configuration&lt;br /&gt;
&lt;br /&gt;
If you get the following messages on Windows 2003&lt;br /&gt;
&lt;br /&gt;
#Backup File Size is 0&lt;br /&gt;
#RTP27. [B28] Not enough String Space – Out of Memory&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
On servers that had no problem previously, the problem is caused by a windows update on 10th Oct 2012 that disables standard Windows EMS memory.&lt;br /&gt;
&lt;br /&gt;
http://support.microsoft.com/kb/2724197&lt;br /&gt;
&lt;br /&gt;
=== Solution 1 - maximum performance ===&lt;br /&gt;
&lt;br /&gt;
To re-enable standard windows EMS on older slower servers or servers where NEOSYS performance must be maximized.&lt;br /&gt;
&lt;br /&gt;
The following link contains instructions how to remove the offending windows update and prevent it being reinstalled automatically by Windows.&lt;br /&gt;
&lt;br /&gt;
http://www.columbia.edu/~em36/wpdos/emsxp.html&lt;br /&gt;
&lt;br /&gt;
=== Solution 2 – ease of installation ===&lt;br /&gt;
&lt;br /&gt;
This option can also be used if Window 2003 is unable to provide EMS memory for example when the server hardware/bios configuration prevents it.&lt;br /&gt;
&lt;br /&gt;
Install EMSMAGIC in the same way as for Windows server 2008&lt;br /&gt;
&lt;br /&gt;
EMSMAGIC has higher memory consumption and makes NEOSYS processes slower so it is better to use Solution 1 above if NEOSYS performance is an issue.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1104</id>
		<title>Troubleshooting NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1104"/>
		<updated>2012-10-24T11:43:31Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Solving failure to start a NEOSYS server due to disk failure message ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
During a reboot process (which maybe due to a Windows update or even done by a support personnel) the NEOSYS server gets hung on the startup and shows a message &amp;quot;Boot Failure - Abort, Retry&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Temporary solution ===&lt;br /&gt;
This typically happens due to the USB being plugged into the server and the boot sequence being wrong - i.e. the server trying to boot from the USB first and fails. The immediate solution would be to unplug the USB and ask the client to reboot the server again and upon successfully rebooting the system, plug the USB back again.&lt;br /&gt;
&lt;br /&gt;
=== Permanent solution ===&lt;br /&gt;
The above problem will occur every time the computer is rebooted, so you need to immediately talk to the IT Administrator of the client and ask them to rectify the boot sequence to make it boot first from the CD ROM, then the HDD and last the USB.&lt;br /&gt;
&amp;lt;BR&amp;gt;Allowing &amp;quot;Boot from USB&amp;quot; causes a severe risk of infection by boot sector viruses since the first infected USB device inserted WILL infect the server immediately as anti-virus programs are not active during boot.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS process hung due to “Abort, Retry, Fail” ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
The following messages may come on older versions of NEOSYS if there is a some problem with the USB media inserted for backup.&lt;br /&gt;
&lt;br /&gt;
[[image:usberror.jpg]]&lt;br /&gt;
&lt;br /&gt;
This results in “NEOSYS has not checked in” message on Nagios since it hangs during the monitoring update and locks all other processes from monitoring too.&lt;br /&gt;
&lt;br /&gt;
General failure writing drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Not read reading drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Pressing A or F results in the problem happening again in about a minute, perhaps on a different process.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Temporary solution is to do “Safely remove hardware” from the windows notification area. Using “Eject” from My Computer will not work.&lt;br /&gt;
&lt;br /&gt;
Permanent solution is to replace the defective USB memory stick. Sometime reformatting is sufficient.&lt;br /&gt;
&lt;br /&gt;
Upgrading NEOSYS will probably stop the defective media from causing NEOSYS to hang but the USB will still be useless for backup.&lt;br /&gt;
&lt;br /&gt;
== Solving &amp;quot;Read error in the operating system file&amp;quot; ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
Nagios reports a hung process and on the server a process has the following message popup.&lt;br /&gt;
&lt;br /&gt;
 Read error in the operating system file &amp;quot;..\DATA\PT0833\ACCOUNTS\REV20049&lt;br /&gt;
 The file does not exist or the filename is&lt;br /&gt;
 not valid for the operating system.&lt;br /&gt;
&lt;br /&gt;
[[Image:readerrorintheoperatingsystemfile.png]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Some non-NEOSYS program is directly accessing the NEOSYS database files while NEOSYS processes are running and using the files as well.&lt;br /&gt;
&lt;br /&gt;
*Client IT staff using a backup program to perform backup without ensuring that NEOSYS processes are shutdown.&lt;br /&gt;
*A NEOSYS rsync process taking longer than expected due to new USB.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Kill the NEOSYS process eg with the X button. It is advisable NOT to let it run further while it cannot properly access one of its files.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
Remove the third party program or arrange for it to operate only while NEOSYS processes are shutdown eg from 3am-6am.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the &amp;quot;Database not available&amp;quot; error message == &lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
This error appears when you try to login to NEOSYS after you enter your username and password and click the Login button.&lt;br /&gt;
&lt;br /&gt;
[[image:database_unavailable.jpg]]&lt;br /&gt;
&lt;br /&gt;
Error message : &lt;br /&gt;
&lt;br /&gt;
 Cannot login because : &lt;br /&gt;
 Error :  The (database code) database is not available right now.&lt;br /&gt;
&lt;br /&gt;
=== Solution explained ===&lt;br /&gt;
# Determine if the processes are running. If they are running and you still get the same message that means that the proccesses have hung. Close them by hitting the X button on the window.&lt;br /&gt;
# If the processes are not visible, it is possible that they are running in the background and have hung for some reason. Check the windows task manager to see if any ‘ntvdm’ process is running. If so, use the End Process method to force close it.&lt;br /&gt;
# If there is no trace of any process running, that means the process probably did not start at the scheduled time. Refer to the &#039;Hung Process Reports&#039; to verify this claim. &lt;br /&gt;
# If the process had not hung, then the server might have restarted due to a power failure or a windows update and the administrator user had not logged in post the scheduled startup time of 6AM. To determine this cause, investigate in the Windows Event Viewer Log file.&lt;br /&gt;
# You can now start up the process by clicking on the respective desktop icons.&lt;br /&gt;
# Also check if the backup took place successfully or not. If not take a manual backup.&lt;br /&gt;
&lt;br /&gt;
== Handling damaged files ==&lt;br /&gt;
&lt;br /&gt;
[[Handling damaged files]]&lt;br /&gt;
&lt;br /&gt;
== Checking for corrupt database files ==&lt;br /&gt;
Login to NEOSYS Maintenance&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.FILES&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 CHK.FILES filename&lt;br /&gt;
&lt;br /&gt;
== Assessing Database Size per File ==&lt;br /&gt;
In NEOSYS maintenance mode&lt;br /&gt;
 &lt;br /&gt;
 LIST FILES BY BY-DSND SIZE VOLUME.NAME SIZE&lt;br /&gt;
 &lt;br /&gt;
This will include all files not just those in the actual dataset in DATA\* folders.&lt;br /&gt;
&lt;br /&gt;
== Resolving slow speed ==&lt;br /&gt;
=== [[Benchmarking NEOSYS]] ===&lt;br /&gt;
=== Investigating CPU 100% using Windows Task Manager ===&lt;br /&gt;
Email, to support, a screen-shot of task manager APPLICATIONS, PROCESSES and PERFORMANCE screens MAXIMIZED TO SHOW AS MUCH AS POSSIBLE. &lt;br /&gt;
&lt;br /&gt;
(Sort the processes to show ntvdm, waiting.exe and high cpu% processes clearly)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Steps:&#039;&#039;&#039;&lt;br /&gt;
#Right Click on Windows Taskbar and click on Start Task Manager &amp;lt;br&amp;gt; [[image:starttaskmanager.jpg]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Processes and then click on CPU &amp;lt;br&amp;gt;&#039;&#039;&#039;Note - The HIGH cpu% processes which should usually be the &amp;quot;process&amp;quot; called &amp;quot;System Idle Process&amp;quot; &#039;&#039;&#039;&amp;lt;br&amp;gt;[[image:cpu100percent1.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on the Performance Tab &amp;lt;br&amp;gt; &#039;&#039;&#039;Note - PF Usage should typically be much less than Physical Memory otherwise there is insufficient real memory in the server to handle the load&#039;&#039;&#039; &amp;lt;br&amp;gt; [[image:cpu100percent3.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on Application Tab then Right Click on a NEOSYS Process and Click on Bring to Front &amp;lt;br&amp;gt;&#039;&#039;&#039;See what the NEOSYS Process is doing &amp;lt;br&amp;gt; [[image:cpu100percent2.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Right Click on a NEOSYS Process and Click on Go to Processes &amp;lt;br&amp;gt;&#039;&#039;&#039;Note the cpu% ntvdm process &amp;lt;br&amp;gt;[[image:cpu100percent2_2.jpg]]&amp;lt;br&amp;gt;  &lt;br /&gt;
#Normally NEOSYS application screens say &amp;quot;LISTENING&amp;quot; in the bottom line and those applications should have very low cpu%&amp;lt;br&amp;gt;[[image:normalneosysprocess.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Look at the difference between the screen of running NEOSYS processes (applications actually) which are idle (listening for requests) and active (processing a request from a user)&lt;br /&gt;
#Note the number of cpus or cpu threads in the server from the performance screen graphics&amp;lt;br&amp;gt;[[image:performance-taskmgr-cputhread.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Take screen-shots of any and ALL hung or long running processes (NEOSYS application screens) and email them to support. Even small details on the screens and user names, the user names may give clues to what problem caused the hanging.A Typical Hung NEOSYS process will look like this: &amp;lt;br&amp;gt; [[image:hungneosysprocess.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Once all hung/long processes are closed then CPU should be low and not near 100%. If it is still 100% then check all high cpu% processes and send a screen-shot of processes sorted to show the high cpu% process names to support.&lt;br /&gt;
&lt;br /&gt;
=== Solving server CPU% is 100 and all users are extremely slow/stopped ===&lt;br /&gt;
==== Too few cpus/threads for the number of users ====&lt;br /&gt;
In Windows task manager normally, you should see one ntvdm.exe and one waiting.exe process per NEOSYS process (application). A standard installation has three NEOSYS processes per main database and plus one per test database. This is configured in Support Menu, Configuration File.&lt;br /&gt;
&lt;br /&gt;
If there are MORE ntvdm processes than you expect from the configuration file, then perhaps NEOSYS is auto starting new NEOSYS processes to try and cater for a high number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
If the number of concurrent NEOSYS processes significantly exceeds the number of cpus/hyperthreads available in the server then processing for everybody can become so slow for everybody and almost no work gets done.&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Stop NEOSYS creating new NEOSYS processes automatically. Create a text file with the first and only line as AUTOSTART=NO in the neosys\neosys folder something like this.&lt;br /&gt;
&lt;br /&gt;
notepad d:\neosys\neosys\NET.CFG&lt;br /&gt;
&lt;br /&gt;
AUTOSTART=NO&lt;br /&gt;
&lt;br /&gt;
== Handling failure and warning on nightly backup alerts ==&lt;br /&gt;
&lt;br /&gt;
[[Handling failure and warning messages on nightly backup alerts]]&lt;br /&gt;
&lt;br /&gt;
== Resolving permissions errors while logging in ==&lt;br /&gt;
 &lt;br /&gt;
=== Problem ===&lt;br /&gt;
 &lt;br /&gt;
While logging in, you get the following error message:&lt;br /&gt;
[[Image:login_error_message.jpg]]&lt;br /&gt;
 &lt;br /&gt;
=== Solution ===&lt;br /&gt;
 &lt;br /&gt;
Add the internet guest account to the security list of the data folder with the default permission of list/read/write&lt;br /&gt;
 &lt;br /&gt;
Make sure the read&amp;amp;execute permission is removed&lt;br /&gt;
[[Image:permissions_on_data.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;HTTP Error 500.0 - Internal Server Error&#039; while logging in on IE on a Windows Vista system ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
After configuring IIS on Windows Vista you will get this error message while trying to login into NEOSYS from Internet Explorer:&lt;br /&gt;
&lt;br /&gt;
 HTTP Error 500.0 - Internal Server Error&lt;br /&gt;
 Description: This application is running in an application pool that uses the Integrated .NET  &lt;br /&gt;
 mode. This is the preferred mode for running ASP.NET applications on the current and future &lt;br /&gt;
 version of IIS.&lt;br /&gt;
 &lt;br /&gt;
 In this mode, the application using client impersonation configured with &amp;lt;identity &lt;br /&gt;
 impersonate=&amp;quot;true&amp;quot; /&amp;gt; may not behave correctly. Client impersonation is not available in early &lt;br /&gt;
 ASP.NET request processing stages and may lead modules in those stages to execute with process &lt;br /&gt;
 identity instead.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
You can move the application to an application pool that uses the Classic .NET mode by using the following from a command line window (the window must be running as Administrator) &lt;br /&gt;
&lt;br /&gt;
 %systemroot%\system32\inetsrv\APPCMD.EXE set app &amp;quot;Default Web Site/neosys&amp;quot; /applicationPool:&amp;quot;Classic .NET AppPool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;Class Not Registered&#039; error message while logging in ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
While logging into NEOSYS, you will get a popup window giving an error message saying &#039;Class Not Registered - Server Error&#039;. Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there&#039;s way to solve it, however the root cause of this is still unknown.&lt;br /&gt;
&lt;br /&gt;
Anyway, you will get the proper message in the event log:&lt;br /&gt;
&lt;br /&gt;
 Event Type: Warning&lt;br /&gt;
 Event Source: W3SVC&lt;br /&gt;
 Event Category: None&lt;br /&gt;
 Event ID: 36&lt;br /&gt;
 Description: The server failed to load application &#039;/LM/W3SVC/1/ROOT/NEOSYS.&lt;br /&gt;
 The error was &#039;Class not registered&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB from Microsoft (PRB: Cannot Expand &amp;quot;My Computer&amp;quot; in Component Services MMC Snap-In http://support.microsoft.com/?id=301919):&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, reinstall Component Services as follows: WARNING: &lt;br /&gt;
# Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.  &lt;br /&gt;
# From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.  &lt;br /&gt;
# Click Add/Remove Windows Components. &lt;br /&gt;
# Proceed through the wizard, and accept all of the defaults (including IIS)&lt;br /&gt;
# Restart the computer.&lt;br /&gt;
&lt;br /&gt;
If the above didn&#039;t solve it, and you still receive the &#039;Class not registered&#039; error message, then you need to recreate the IIS packages in COM+, try&lt;br /&gt;
&lt;br /&gt;
# Delete IIS related package in Component Services MMC&lt;br /&gt;
# IIS In-Process Applications &lt;br /&gt;
# IIS Out-of-Process Pooled Applications &lt;br /&gt;
# IIS Utilities&lt;br /&gt;
&lt;br /&gt;
Next, if you still get the message, try following before re-install IIS if you can&#039;t find Distributed Transaction Coordinator in your Services console.&lt;br /&gt;
&lt;br /&gt;
Launch command prompt and run the following command.&lt;br /&gt;
# msdtc -install&lt;br /&gt;
# net start msdtc&lt;br /&gt;
&lt;br /&gt;
Then try re-install IIS.&lt;br /&gt;
&lt;br /&gt;
This should solve the problem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling File Security option on Win XP Professional ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
In the Properties of any folders, the Security option does not show, hence you cannot modify the Read, Write options.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution would be to untick the &#039;Simple File Sharing&#039; option from  Tools &amp;gt; Folder Options &amp;gt; View:&lt;br /&gt;
[[Image:simplefilesharingoff.jpg]]&lt;br /&gt;
&lt;br /&gt;
== B703 Errors ==&lt;br /&gt;
&lt;br /&gt;
The B703 error is usually always related to something too big for NEOSYS to handle. &lt;br /&gt;
&lt;br /&gt;
These are the only B errors that NEOSYS cant always permanently prevent by fixing the software.&lt;br /&gt;
&lt;br /&gt;
== Internet Explorer Menu, View, Text Size doesnt change font size as expected ==&lt;br /&gt;
&lt;br /&gt;
Cause: This is because the font size is now user definable in NEOSYS and View, Text Size does not override predefined font sizes.&lt;br /&gt;
&lt;br /&gt;
Solution: If you are using Internet Explorer 7 you can scale the screen (including the font size  using ctrl + and ctrl - keyboard shortcuts or the font size button on the bottom right hand side of the window. &lt;br /&gt;
&lt;br /&gt;
You can adjust the font size on the User Details form when you login although this permanently applies to all forms not just the one that you are on.&lt;br /&gt;
&lt;br /&gt;
== Error on process window &amp;quot;Not enough string space - Out of Memory&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
‘RTP27’ Line 1. [B29] Not enough string space – Out of Memory.&lt;br /&gt;
&lt;br /&gt;
Not enough memory to execute Debugger; current program aborted.&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&lt;br /&gt;
[[Image:out_of_memory.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Unknown perhaps related to some large document or report&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Ask users for any hanging transactions.&lt;br /&gt;
None other than closing and starting another process&lt;br /&gt;
&lt;br /&gt;
== Uploaded jpg files fail to display in internet explorer ==&lt;br /&gt;
&lt;br /&gt;
Some large jpg files &amp;gt; 2Mb cannot be viewed in internet explorer despite being viewable in image preview, ms paint and other viewers/editors. It is not an issue caused by uploading or downloading the files.&lt;br /&gt;
&lt;br /&gt;
These file appear to have been created on Photoshop CS Macintosh and may be a special type of uncompressed jpg used for production quality files.&lt;br /&gt;
&lt;br /&gt;
=== Partial solution ===&lt;br /&gt;
Before uploading the files, open them in some editor like MS Paint (right click, edit) and save them. However this results in a loss of quality. Perhaps there is some program that can convert these files to a format understandable by Internet explorer without any loss of quality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;You have attempted to write to a read-only file&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
Error while writing data.&lt;br /&gt;
You have attempted to write to a read-only file.&lt;br /&gt;
- or -&lt;br /&gt;
access to the file has been denied by the operating system.&lt;br /&gt;
(operating system file name: &amp;quot;..\DATA\ADLINEC\ADAGENCY\REV76467.OV00012618&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
It is almost certainly due to some third party backup or other maintenance software opening the NEOSYS database files when it shouldn&#039;t e.g. badly configured third party backup scheduled to backup NEOSYS while NEOSYS is still running. Note that the exact filename varies each time.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
This can be a serious error that causes damaged files in NEOSYS especially if the filename ends in .OV. Use the usual methods of checking for damaged files e.g. do a backup which also looks for damaged files BUT DO NOT OVERWRITE THE LATEST BACKUP SINCE IT MAY BE REQUIRED for restoration. Then fix the damaged files using the usual methods e.g. by rebuilding/using&lt;br /&gt;
FIXFILE or restoring databases.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
&lt;br /&gt;
Remove the third party backup or other maintenance software or reschedule it to run at a time that NEOSYS is shutdown. Removal of software may require hunting through the windows process list for unexpected programs running.&lt;br /&gt;
&lt;br /&gt;
== Resolving &amp;quot;Cannot backup/restore because PROCESS1 PROCESS2 (etc) is/are online&amp;quot; message ==&lt;br /&gt;
 &lt;br /&gt;
This can happen for a variety of reasons if all the NEOSYS processes fail to close down at backup time&lt;br /&gt;
 &lt;br /&gt;
# NEOSYS maintenance windows are left open.&lt;br /&gt;
# NEOSYS processes hang due to software error.&lt;br /&gt;
 &lt;br /&gt;
== How to kill hung NEOSYS processes ==&lt;br /&gt;
 &lt;br /&gt;
NOTE WELL: If you kill actively working NEOSYS processes (those which are &amp;quot;listening&amp;quot; and not hung/crashed) there is a reasonable chance that the database will be damaged and might need a restore losing possibly large amounts of work.&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are visible on the server desktop ====&lt;br /&gt;
 &lt;br /&gt;
Look for processes which don&#039;t have &amp;quot;Listening ...&amp;quot; on the last but one line. The times on the left hand side are frozen as at the time of the hang.&lt;br /&gt;
 &lt;br /&gt;
You can then click the X to kill the process and confirm that this is OK.&lt;br /&gt;
 &lt;br /&gt;
Example of a NEOSYS process that has hung due to a software error resulting in a failure to handle a complex query with a lot of brand codes.&lt;br /&gt;
&lt;br /&gt;
[[Image:hungprocess.jpg]]&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are not visible on the server desktop ====&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on computer restart and no one has logged into the server. In this case it would be running in the background. Secondly in the case of Windows 2008, the processes always are hidden. &lt;br /&gt;
&lt;br /&gt;
You can check if there are any hung processes from the NEOSYS Support Menu, List of Database Processes. &lt;br /&gt;
[[Image:databaseprocesseslist.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this case you should follow the below instructions - however all of them need to be done within 30 seconds of starting the first instruction to avoid inconvenience to the users. It is recommend that you keep relevant windows open before proceeding with the same:&lt;br /&gt;
&lt;br /&gt;
#Shutdown NEOSYS by TEMPORARILY putting a file called GLOBAL.END in the parent directory of NEOSYS (if there is already a GLOBAL.END.TEMP file then rename it to GLOBAL.END). Leaving the file there would prevent NEOSYS from starting up again. Shutting down NEOSYS from the Support menu will not work because of the hung processes.&lt;br /&gt;
#Use Windows Task Manager to kill all the NTVDM processes - assuming that you have closed all the visible NEOSYS processes, then the NTVDM processes in the task manager would be the hung one.&lt;br /&gt;
#Delete GLOBAL.END or rename it to GLOBAL.END.TEMP&lt;br /&gt;
#Restart the processes back again. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
#*Restarting a process is not noticed by users.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
=== Temporary workarounds for hung NEOSYS processes ===&lt;br /&gt;
Until the error in the software is fixed users can often get their results by simplifying their requirements. For example select individual clients instead of selecting all the brands for a particular client. If the user has repeated his request (in forlorn hope that it would work finally) then the number of NEOSYS working NEOSYS processes will drop causing severe slowdown for other users and complete stop if all the NEOSYS processes hang.&lt;br /&gt;
&lt;br /&gt;
== How to fix a NEOSYS process which opens up in a notepad instead of Microsoft Windows Based Script Host (i.e. DOS window)==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS process (cmd file) might open up in a notepad, instead of the usual black colour DOS window. This can be fixed by the following:&lt;br /&gt;
&lt;br /&gt;
# Download and install the Windows Script 5.6/5.7 from the Microsoft Website&lt;br /&gt;
# Go to any folder, click on Tools &amp;gt; Folder Options &amp;gt; File Types and find the .JS and .JSE and change the default program to wscript.exe (from windows&amp;gt;system32)&lt;br /&gt;
&lt;br /&gt;
== Resolving a &#039;Could not start&#039; error on Scheduled Tasks in Windows Server 2000 SP4 ==&lt;br /&gt;
&lt;br /&gt;
This error occurs because of a change that is made to the data that is stored in the credentials database when you install Windows 2000 SP4. Hence installing SP4 causes the the data that is stored in the credentials database to get converted to an SP4-compatible format. A registry key is configured to indicate that the data has been converted to the SP4 format.&lt;br /&gt;
&lt;br /&gt;
Hence the Scheduled Tasks do not work sometimes. However the Scheduled Tasks works fine sometimes, but when you uninstall SP4, it does not work.&lt;br /&gt;
&lt;br /&gt;
The best solution is to:&lt;br /&gt;
&lt;br /&gt;
# Incase Scheduled Tasks do not work after installing SP4, then uninstall SP4 and it should be fine.&lt;br /&gt;
# Incase Scheduled Tasks works after installing SP4, and later after uninstalling SP4, it does not work, then install SP4 and it should be fine.&lt;br /&gt;
&lt;br /&gt;
== Checking for server or NEOSYS crashes ==&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS Maintenance Mode&lt;br /&gt;
#General Menu, Setup, Processes&lt;br /&gt;
#Select the dates and the option Detailed&lt;br /&gt;
 &lt;br /&gt;
This report shows a list of dates and times that NEOSYS logged in but did not log out properly.&lt;br /&gt;
 &lt;br /&gt;
Ignore the very latest entries since they represent the current NEOSYS processes. For example, if you have four NEOSYS processes running at the time that you get the report (including any in maintenance mode) then you can ignore the last four entries.&lt;br /&gt;
 &lt;br /&gt;
The date and time shows for each process that has failed to shutdown correctly when the process logged in. Versions of NEOSYS from January 2008 will also show the date and time that each crashed NEOSYS process was last active (heartbeat) so that the time of failure can be known.&lt;br /&gt;
 &lt;br /&gt;
If you see a bunch of NEOSYS processes all started up at around the same time but all failed to shutdown correctly then the cause will be a server failure - usually power failure.&lt;br /&gt;
 &lt;br /&gt;
Isolated one-off failures will be related to individual NEOSYS process crashes - most commonly caused by one of the following:&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS hanging to due to software failure&lt;br /&gt;
#Manually exiting a NEOSYS process on the server either by pressing Ctrl+Alt+Del or clicking the &amp;quot;X&amp;quot; close icon/box and ignoring the warning&lt;br /&gt;
#Random server failures eg memory, disk etc&lt;br /&gt;
 &lt;br /&gt;
Example:&lt;br /&gt;
 &lt;br /&gt;
 LOGIN 22/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation &lt;br /&gt;
 LOGIN 23/12/2007 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:53 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 13:51 NEOSYS SERVER NEOSYS         Current user session  &lt;br /&gt;
&lt;br /&gt;
Interpretation:&lt;br /&gt;
 &lt;br /&gt;
The first four entries indicate that all four NEOSYS processes started at 06am were suddenly killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The next four entries indicate that NEOSYS was restarted at around 08:52 and all these processes were AGAIN killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The last four entries can be ignored because there were four NEOSYS processes running at the time that the report was generated&lt;br /&gt;
&lt;br /&gt;
== Searching for word/number in the database files using maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
You can search for any word/number in the database files of NEOSYS, using the following command line:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 FIND FILENAME WORDWITHOUTANYSPACES&lt;br /&gt;
 &lt;br /&gt;
 For eg:&lt;br /&gt;
 FIND CURRENCIES 1.1&lt;br /&gt;
 (here you are searching for the number 1.1 in the currencies file) You CANNOT search for a phrase ie include spaces like this.&lt;br /&gt;
 &lt;br /&gt;
 Or you can also type:&lt;br /&gt;
 FIND FILENAME &amp;lt;enter&amp;gt;&lt;br /&gt;
 and it will ask you what you want do to search. You can enter an exact phrase with spaces.&lt;br /&gt;
&lt;br /&gt;
Incase you do not know the filenames, you can enter the following command to see all the filenames in the system:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 LF&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the NTVDM Hard error when opening up NEOSYS processes ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears:&lt;br /&gt;
&lt;br /&gt;
[[Image:ntvdm.jpg]]&lt;br /&gt;
&lt;br /&gt;
 NTVDM encountered a hard error&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
This error is caused by missing or corrupt Windows system files (i.e. command.com, autoexec.nt and config.nt). The solution is to run a program called XP FIX which will reinstall these missing files. You can download it form http://www.visualtour.com/downloads/xp_fix.exe&lt;br /&gt;
&lt;br /&gt;
Sometimes even after running the XP FIX program the error still appears. Then you need to copy all the files under C:/windows/repair to C:/windows/system32 and in the autoexec.nt and config.nt put REM before any lines there which don&#039;t have it.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting a Service Unavailable message on Internet Explorer when opening up NEOSYS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears in Internet Explorer when you try to open up NEOSYS:&lt;br /&gt;
&lt;br /&gt;
 Service Unavailable&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
Open the IIS Manager, right click Web Sites and select properties:&lt;br /&gt;
[[Image:serviceunavailable1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Switch to the Service Tab and tick the &amp;quot;Run WWW Service in IIS 5.0 Isolation Mode&amp;quot;.&lt;br /&gt;
[[Image:serviceunavailable2.jpg]]&lt;br /&gt;
&lt;br /&gt;
You will be asked for Restart of IIS. Click yes to restart IIS. If you are not asked just restart IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inspecting IIS log files ==&lt;br /&gt;
&lt;br /&gt;
At a windows command prompt:&lt;br /&gt;
&lt;br /&gt;
 c:&lt;br /&gt;
 cd \Windows\system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 %SystemDrive%&lt;br /&gt;
 cd %SystemRoot%&lt;br /&gt;
 cd system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
then (substituting the ip number you are interested in)&lt;br /&gt;
&lt;br /&gt;
 find &amp;quot;192.168.1.55&amp;quot; *|sort&amp;gt;temp.log&lt;br /&gt;
&lt;br /&gt;
Open temp.log in Excel and use Tools, Data, Text to Columns to split into columns using options &amp;quot;Delimited&amp;quot; and check split on Space.&lt;br /&gt;
&lt;br /&gt;
Autowidth all columns by clicking on the top left box just outside the data to the left of column A and above column 1 then double click the column separator to the right of column &amp;quot;A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that times and dates are in UTC/GMT so you have to add/subtract your timezone offset to get local times.&lt;br /&gt;
&lt;br /&gt;
== Fixing NEOSYS processes that do not auto start / Recovering from incorrect advanced date or time ==&lt;br /&gt;
This solution is applicable to live database processes only. Test database processes don’t auto-start any other processes.&lt;br /&gt;
&lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
After starting up the 1st process, the rest of the processes don&#039;t start up.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The possible cause for this could be that the system date/time might have been changed - either manually or by the auto synchronization. Do the following checks in the sequence of order:&lt;br /&gt;
&lt;br /&gt;
# Check for any *.$* files (* after dollar sign should show a number, the highest being the latest one). If it shows OK, then proceed ahead.&lt;br /&gt;
# Check for any .end files and delete it to rename to .end.temp&lt;br /&gt;
# Check the System Event Viewer log for any 520 or 577 error message (refer http://128.175.24.251/forensics/timechange.htm). Also check for any out of sequence / ahead of today date or time.&lt;br /&gt;
# In case of no 520 or 577 error message, go to Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; Audit Policy &amp;gt; Audit Privilege use - make sure that Success and Failure are selected under this (this will ensure that future changes to the date/time are recorded in the System Log).&lt;br /&gt;
# In NEOSYS maintenance mode - F5 ED PROCESSES %UPDATE% - and see what it says, incase of any text (only text, not numbers) there, that means that for sure the system date has been changed. To fix this, exit the editor by pressing the ESCAPE key and then type DELETE PROCESSES &amp;quot;%UPDATE%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Recognising and Solving Low Memory Problems ==&lt;br /&gt;
&lt;br /&gt;
Quick Note: Installing a server class operating system on a workstation class computer with the intention of NEOSYS serving a heavy load is likely to cause problems with low memory.&lt;br /&gt;
&lt;br /&gt;
Quick Fix: Disable *ALL* non-essential features in the power-on setup menu.&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
It is speculated but not proven that low memory may cause NEOSYS to fail by hanging, causing damaged files etc.&lt;br /&gt;
&lt;br /&gt;
=== Checking ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 MEMORY&lt;br /&gt;
&lt;br /&gt;
On server class machines it should say somewhere around 350Kb to 370Kb Free&lt;br /&gt;
&lt;br /&gt;
Some server class machines have around 330Kb and sometimes even less with no reported problems&lt;br /&gt;
&lt;br /&gt;
The actual effect of low memory is supposed to make NEOSYS slower and perhaps cause hanging and damaged files however this has not been proven in an specific case so far.&lt;br /&gt;
&lt;br /&gt;
On workstation class machines it may often say around 280Kb to 300Kb.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
Although there is plenty of real memory in virtually all computers now, NEOSYS runs in the legacy 16 bit virtual memory space of a windows mode called NTVDM. This is limited to 1Mb plus 4Mb of EMS memory.&lt;br /&gt;
&lt;br /&gt;
The 1Mb memory space is shared with:&lt;br /&gt;
&lt;br /&gt;
#Various non-essential windows drivers which NEOSYS automatically disables them in autoexec.nt&lt;br /&gt;
#Various plug and play hardware device drivers for the various adapters in the computer like video, network adapters and various other items that NEOSYS is unable to disable.&lt;br /&gt;
&lt;br /&gt;
In a server class computer the hardware device drivers are usually minimally present in the 1Mb base memory and do not therefore DOESNT a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
In workstation class computers there are often many hardware device drivers present in the 1Mb base memory and this DOES causes a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
When NEOSYS is installed on workstation class computers with XP there is usually not a heavy load expectation and therefore the low memory does not cause a problem.&lt;br /&gt;
&lt;br /&gt;
If Windows Server OS is installed on a workstation class computer NEOSYS may well be expected to serve a heavy load with limited amounts of memory.&lt;br /&gt;
&lt;br /&gt;
Workstation class computers: hardware drivers present and EMS is installed in low memory (0000-9FFF) causing low memory for NEOSYS and possible inability to &lt;br /&gt;
&lt;br /&gt;
Server class computers: Usually few hardware drivers are present in high part (A000-FFFF) of the 1Mb base memory and EMS is able to occupy the high memory leaving the low part (0000-9FFFF) of the 1Mb memory free for NEOSYS. You can find out how much memory is available to NEOSYS and whether EMS is occuping high or low memory using the following sections.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Low Memory ===&lt;br /&gt;
&lt;br /&gt;
Start, Run, notepad c:\windows\system32\autoexec.nt&lt;br /&gt;
&lt;br /&gt;
Every time NEOSYS starts it tries to make some changes as follow:&lt;br /&gt;
&lt;br /&gt;
#replaces all lines in C:/WINDOWS/SYSTEM32/AUTOEXEC.NT starting with &#039;lh &#039; to start with &#039;rem NEOSYS LH &#039; instead.&lt;br /&gt;
#changes the line in C:/WINDOWS/SYSTEM32/CONFIG.NT &amp;quot;files=...&amp;quot; to &amp;quot;FILES=200&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The replacement is case sensitive triggered on &#039;lh&#039; and &#039;files&#039; so if you manually edit the files and remove the rem or change the number of files and leave the LH and FILES in uppercase then NEOSYS will NOT make further changes. This allows you to do manual amendments to the files without NEOSYS overwriting them.&lt;br /&gt;
&lt;br /&gt;
Check that NEOSYS has successfully disabled all the drivers in the lines starting with LH.&lt;br /&gt;
&lt;br /&gt;
They should be commented out (prefixed) with REM or REM NEOSYS as follows.&lt;br /&gt;
&lt;br /&gt;
After making changes reopen NEOSYS in maintenance mode to use the MEMORY and WHO commands again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REM Install CD ROM extensions&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\mscdexnt.exe&lt;br /&gt;
&lt;br /&gt;
REM Install network redirector (load before dosx.exe)&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\redir&lt;br /&gt;
&lt;br /&gt;
REM Install DPMI support&lt;br /&gt;
REM NEOSYS LH %SYSTEMROOT%\SYSTEM32\DOSX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Allowing DOS programs that require DOSX to run on the same computer as NEOSYS ===&lt;br /&gt;
&lt;br /&gt;
The automatic commenting out DOSX by NEOSYS will prevent some other DOS-like programs from running. If NEOSYS is on dedicated server then there should be no other such programs to fail. However, if you must allow DOS-like programs to work as well as NEOSYS you can do the following configuration:&lt;br /&gt;
&lt;br /&gt;
#leave or restore the original AUTOEXEC.NT and CONFIG.NT files where they are&lt;br /&gt;
#copy them to another folder eg neosys folder&lt;br /&gt;
#make the necessary REM changes there by hand&lt;br /&gt;
#right click the NEOSYS\NEOSYS\AREV.PIF and select properties&lt;br /&gt;
#change the location of the AUTOEXEC.NT and CONFIG.NT files in the following location&lt;br /&gt;
&lt;br /&gt;
[[image:pifsettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Checking EMS Memory Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Inspection ====&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 WHO&lt;br /&gt;
&lt;br /&gt;
 press the up arrow to get to the last part/page&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Server EMS Memory =====&lt;br /&gt;
[[image:serveremm.jpg]]&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Workstation EMS Memory =====&lt;br /&gt;
[[image:workstationemm.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Correction====&lt;br /&gt;
&lt;br /&gt;
No easy way&lt;br /&gt;
&lt;br /&gt;
Removal of hardware adapters designed for workstations instead of servers eg graphics cards and network cards.&lt;br /&gt;
&lt;br /&gt;
Many of the devices may be located on the motherboard and not relocatable except possibly by BIOS configuration or special manufacturer information.&lt;br /&gt;
&lt;br /&gt;
Use windows device manager, View: Resources by Connection, Open the Memory item and look for items between 000A0000 up to 000FFFFF that might give you a clue as to what hardware could be removed or reconfigured. Actually only 000C0000 to 000FFFFF is candidate for EMS memory since 000A000-000BFFFF is mandatory video memory in all systems.&lt;br /&gt;
&lt;br /&gt;
[[image:devicemanager.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Resolving issue where NEOSYS processes do not start-up at all or start-up and close immediately ==&lt;br /&gt;
&lt;br /&gt;
# Find if a file with the name global.end exists in the root directory of the NEOSYS installation. Eg D:\global.end . If you find such a file, rename it to global.end.temp - for more information on global.end and what it does refer to [[Closing NEOSYS services]]&lt;br /&gt;
# If the above didn&#039;t fix the problem and NEOSYS still does not start, do a windows search for the entire NEOSYS folder for *.end (i.e. any file ending with .end extension). You may find a (databasecode).end file in D:\neosys\neosys folder which is created by the NEOSYS program during backup at 1 am and later on removed automatically. In this case NEOSYS program might have crashed during the backup and left this file behind. (databasecode).end files prevent other other NEOSYS processes starting up on the database while exclusive processes (like backup) are being done.&lt;br /&gt;
&lt;br /&gt;
In case the above didn&#039;t fix the problem then escalate to the programmer immediately.&lt;br /&gt;
&lt;br /&gt;
== Handling Change Backup message if the client does not use a USB backup device ==&lt;br /&gt;
DO *NOT* FOLLOW THIS PROCEDURE SINCE IS IT IS TOTALLY UNACCEPTABLE FOR NEOSYS TO SEND OUT A &amp;quot;BACKUP SUCCESS&amp;quot; MESSAGE WHEN THE BACKUP IS NOT BEING DONE PROPERLY. IN GENERAL, TAKING SHORT CUTS THAT MAKE THINGS APPEAR SATISFACTORY WHEN THEY ARE NOT IS VERY POOR POLICY.&lt;br /&gt;
&lt;br /&gt;
IF THE CLIENT IS BACKING UP TO A NON-REMOVABLE DESTINATION THEN EITHER 1. LIVE WITH THE FAILURE MESSAGE OR 2. SUPPRESS THE BACKUP ENTIRELY IN WHICH CASE NO BACKUPS ARE BEING DONE AND PROBABLY THIS WILL SHOW ON NEOSYS PROACTIVE WARNING SYSTEMS LIKE NAGIOS.&lt;br /&gt;
&lt;br /&gt;
# Basically most of the client use USB for Neosys server but there are some clients who do not use USB but save their backups in hard drive. &lt;br /&gt;
# As we know that backup take place in Data.bak folder but it do a backup only for a week in a single USB. Over here client do not use USB but save their backup in hard drive in Data.bak folder, once the week is over  it will again give Change backup message.  &lt;br /&gt;
# In this case rename the Data.bak folder to Data1.bak this is done because system read only Data.bak folder as it is configured in the system. When you rename Data.bak to Data1.bak it automatically create a new folder Data.bak in Backup drive.&lt;br /&gt;
# This process is done so that the backup should not fail then next day morning and backups are done in Data.bak folder.&lt;br /&gt;
# In the third week we will again see the same message Chang backup USB message so you need to rename Data.bak folder to Data2.bak&lt;br /&gt;
# But in fourth week you rename the Data1.bak to Data.bak and change the Data2.bak to Data1.bak and Data.bak to Data2.bak &lt;br /&gt;
# Keep only three folders and Data.bak, Data1.bak, Data2.bak and keep on renaming these folders every week as shown above.&lt;br /&gt;
&lt;br /&gt;
== Closing processes that are not visible on the desktop or hidden ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on restart and no one has logged into the server. In this case it would be hidden. Secondly in the case of Windows 2008, the processes always are hidden.&lt;br /&gt;
&lt;br /&gt;
In these cases whenever there is a hung NEOSYS process - due to many reasons for eg low memory. In this case you should close all processes using the global.end method and then from the task manager kill any NTVDM processes and then restart NEOSYS. This should be done within 30 seconds from using the global.end method to avoid any inconvenience to the users. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS not updating NAGIOS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
You notice a problem on NAGIOS indicating that &#039;&#039;&#039;&#039;&#039;NEOSYS not checked in&#039;&#039;&#039; on a particular client server.&lt;br /&gt;
&lt;br /&gt;
=== Possible Causes &amp;amp; Solutions ===&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process is &#039;&#039;&#039;NOT&#039;&#039;&#039; running on the server====&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS process and wait for 10 mins for NEOSYS to check into NAGIOS.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process &#039;&#039;&#039;is&#039;&#039;&#039; running on the server but still cannot connect to NAGIOS====&lt;br /&gt;
&lt;br /&gt;
NEOSYS connects to NAGIOS using http. NEOSYS automatically detects and uses any http proxy configuration configured in Internet Explorer. If Internet Explorer can reach the internet then NEOSYS should be able to update to NAGIOS via the same proxy.&lt;br /&gt;
&lt;br /&gt;
First check if Internet Explorer can reach NAGIOS.&lt;br /&gt;
&lt;br /&gt;
If you are asked to login then the Internet Explorer is working OK. You do not need to login. Just cancel and move on to the next step.&lt;br /&gt;
&lt;br /&gt;
 http://monitor.neosys.com&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CANNOT connect to NAGIOS then resolving that fundamental issue will probably solve the NAGIOS connection issue too.&lt;br /&gt;
&lt;br /&gt;
View the Internet Explorer proxy configuration as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:ieproxy.png]]&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CAN connect to NAGIOS then check if there is an issue with NEOSYS&#039;s http proxy server configuration as follows:&lt;br /&gt;
&lt;br /&gt;
#Search for &#039;&#039;&#039;UPDATE.$WG&#039;&#039;&#039; file located in the neosys\neosys. folder and open it using notepad or wordpad.&lt;br /&gt;
#You should find a message similar to the following:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to 192.168.100.145:8080 failed: No such file or directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where the above appears to be some non-functional http proxy server ip/port number and is not the expected nagios server ip number.&lt;br /&gt;
&#039;&#039;&#039;A windows proxy command shows the same ip and port:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On Windows 2003/XP&lt;br /&gt;
&lt;br /&gt;
 proxycfg&lt;br /&gt;
&lt;br /&gt;
On Windows 2008/Win7&lt;br /&gt;
&lt;br /&gt;
 NetSH WinHTTP import Proxy ie&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Microsoft (R) WinHTTP Default Proxy Configuration Tool&lt;br /&gt;
Copyright (c) Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Current WinHTTP proxy settings under:&lt;br /&gt;
  HKEY_LOCAL_MACHINE\&lt;br /&gt;
    SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\&lt;br /&gt;
      WinHttpSettings :&lt;br /&gt;
&lt;br /&gt;
    Proxy Server(s) :  192.168.100.145:8080&lt;br /&gt;
    Bypass List     :  192.168.*.*;localhost;&amp;lt;local&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 1 - Remove the above setting to create a direct connection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#To remove the registry entries that ProxyCfg.exe creates,you must delete the WinHttpSettings value from the following registry key:&amp;lt;br&amp;gt;&amp;lt;PRE&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings&amp;lt;/PRE&amp;gt;&lt;br /&gt;
#After you do the above, confirm that the proxy details are deleted by running the proxycfg command &amp;lt;BR&amp;gt;&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2 - Configure a functioning proxy ip/port number&#039;&#039;&#039;&lt;br /&gt;
#Use the proxycfg command to enter a working proxy ip/port number/exclusion list: http://msdn.microsoft.com/en-us/library/aa384069%28VS.85%29.aspx&lt;br /&gt;
#After you do the above, confirm that the new proxy details are working by running the proxycfg command again&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; Note: Please refer to the link before you restart NEOSYS processes [[http://techwiki.neosys.com/index.php/Closing_NEOSYS_services#CLOSING_NEOSYS_SERVICES|Closing Hidden Processes]] &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “page not found” when downloading some file types after uploading them successfully ==&lt;br /&gt;
=== One by One ===&lt;br /&gt;
&lt;br /&gt;
Windows web server will not download file types that it is unaware of. You can enable the download of new file types one by one as follows.&lt;br /&gt;
&lt;br /&gt;
This process is tedious and error-prone if you have to add many type.&lt;br /&gt;
&lt;br /&gt;
#Computer Management&lt;br /&gt;
#Services and Applications&lt;br /&gt;
#IIS properties&lt;br /&gt;
#Mime Types&lt;br /&gt;
#Add&lt;br /&gt;
&lt;br /&gt;
=== Many ===&lt;br /&gt;
&lt;br /&gt;
Window Server 2003 is unaware of all the Office 2007+ file types. To add all Office 2007+ file types at once do the following:&lt;br /&gt;
&lt;br /&gt;
Stop IIS&lt;br /&gt;
&lt;br /&gt;
 iisreset /stop&lt;br /&gt;
&lt;br /&gt;
Open the list of mime types&lt;br /&gt;
&lt;br /&gt;
*Start, Run, notepad C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;br /&gt;
&lt;br /&gt;
Search the file for “xlsx” and quit the editor if already inserted.&lt;br /&gt;
&lt;br /&gt;
Otherwise, find the following line,&lt;br /&gt;
&lt;br /&gt;
  .xml,text/xml&lt;br /&gt;
&lt;br /&gt;
and insert after that line the following lines. They do not need to be indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.docm,application/vnd.ms-word.document.macroEnabled.12&lt;br /&gt;
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;br /&gt;
.dotm,application/vnd.ms-word.template.macroEnabled.12&lt;br /&gt;
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;br /&gt;
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12&lt;br /&gt;
.potx,application/vnd.openxmlformats-officedocument.presentationml.template&lt;br /&gt;
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;br /&gt;
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;br /&gt;
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;br /&gt;
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;br /&gt;
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;br /&gt;
.xlam,application/vnd.ms-excel.addin.macroEnabled.12&lt;br /&gt;
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;br /&gt;
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12&lt;br /&gt;
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;br /&gt;
.xltm,application/vnd.ms-excel.template.macroEnabled.12&lt;br /&gt;
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file with File and Exit&lt;br /&gt;
&lt;br /&gt;
Restart IIS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Handling Neosys Automatic Upgrade Error Messages ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
We will receive an email from the NEOSYS client installation with the following message:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;UPGRADEN.EXE&amp;quot; does not have expected exe MZ signature&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
This message is a note that the NEOSYS automatic update procedure failed to download an upgrade file correctly.&lt;br /&gt;
This happens sometimes due to network issues but can be ignored because the file will be probably be correctly downloaded on the next automatic update check.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This message is only informative to help with any problem with the automatic upgrade procedure and may be removed in a later version of neosys (currently Oct 2012)&lt;br /&gt;
&lt;br /&gt;
== Testing https connection ==&lt;br /&gt;
&lt;br /&gt;
The following procedure tests that the https server is operational and not blocked by firewall etc. It does not detect certificate errors.&lt;br /&gt;
&lt;br /&gt;
From a windows command prompt use the following telnet command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet clientname.hosts.neosys.com 4430&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#4430 is the usual NEOSYS http port but replace it by whatever port is actually used for NEOSYS https on the system being tested. If there are multiple https installations on a particular server then different ports are probably used&lt;br /&gt;
#Replace clientname.hosts.neosys.com with the normal https login domain name of the client for whom we want to check the https service&lt;br /&gt;
&lt;br /&gt;
Normal behavior is that it should open a black screen. Pressing Enter or any key returns the _ character. (Close the window using the [X] since there is no keyboard command to do so)&lt;br /&gt;
&lt;br /&gt;
Hanging means that there is some connectivity issue (firewall/ip/server not running/https not installed etc)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;quot;page not found&amp;quot; error while using https ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#The https service stops working and gives &amp;quot;Page not found&amp;quot; error.&lt;br /&gt;
#The https connection tests fine using telnet (see article above)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Reinstall https using the usual procedure (currently using selfssl)&lt;br /&gt;
#Email clients, requesting to reinstall the new security certificate by following the procedure given at [http://userwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Resolving_HTTPS_certificate_error_when_logging_in_from_an_external_link Resolving https certificate error].&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;quot;QUICKDEX&amp;quot; on some files ==&lt;br /&gt;
&amp;quot;Quickdex&amp;quot; is a type of index that keeps an alphabetical order on small files. In some maintenance procedures you may be asked to &amp;quot;install Quickdex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example to add a quickdex to the UNITS file.&lt;br /&gt;
&lt;br /&gt;
Maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 DICT UNITS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=================Dictionary=================┐&lt;br /&gt;
│                                            │&lt;br /&gt;
│  File name      UNITS                      │&lt;br /&gt;
│  Field name     .........................  │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Dict type                                 │&lt;br /&gt;
│  Single/Multi                              │&lt;br /&gt;
│  Data type                                 │&lt;br /&gt;
│  Output format                             │&lt;br /&gt;
│  Validation patterns                       │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Position              Key part            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Column heading                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Justification     Display length          │&lt;br /&gt;
│  Description                               │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
L============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Shift+F3.&lt;br /&gt;
&lt;br /&gt;
If it says &amp;quot;Do you want to remove ...&amp;quot; then Quickdex has already been installed and you should not continue. Press Esc to cancel, then Esc to quit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[B202]==================================┐&lt;br /&gt;
│                                         │&lt;br /&gt;
│               &amp;quot;UNITS&amp;quot; has               │&lt;br /&gt;
│          &amp;quot;QUICKDEX&amp;quot; installed.          │&lt;br /&gt;
│                                         │&lt;br /&gt;
│ Do you want to remove &amp;quot;QUICKDEX&amp;quot;? [Y/N] │&lt;br /&gt;
│                                         │&lt;br /&gt;
│&amp;lt;Y                                      &amp;gt;│&lt;br /&gt;
L=========================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise it should say &amp;quot;Do you want to install ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W963]============================┐&lt;br /&gt;
│                                   │&lt;br /&gt;
│     Do you want to install a      │&lt;br /&gt;
│ Quickdex or Rightdex index? [Q/R] │&lt;br /&gt;
│                                   │&lt;br /&gt;
│&amp;lt;Q                                &amp;gt;│&lt;br /&gt;
L===================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It should then say &amp;quot;Do you want to update ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W901]========================================┐&lt;br /&gt;
│                                               │&lt;br /&gt;
│           The &amp;quot;UNITS&amp;quot; file has had            │&lt;br /&gt;
│ the &amp;quot;QUICKDEX&amp;quot; modifying filing system added. │&lt;br /&gt;
│        There are 0 records in &amp;quot;UNITS&amp;quot;.        │&lt;br /&gt;
│                                               │&lt;br /&gt;
│    Do you want to update &amp;quot;QUICKDEX&amp;quot;? [Y/N]    │&lt;br /&gt;
│                                               │&lt;br /&gt;
│&amp;lt;Y                                            &amp;gt;│&lt;br /&gt;
L===============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards it should return to the initial screen. Press Esc to quit.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS smtp server failure ==&lt;br /&gt;
In case the neosys smtp server fails then we can just use the client&#039;s smtp server.&lt;br /&gt;
&lt;br /&gt;
The following information is required from the client&#039;s smtp server configuration:&lt;br /&gt;
#hostname&lt;br /&gt;
#username&lt;br /&gt;
#password&lt;br /&gt;
#port no. (most likely = 25)&lt;br /&gt;
&lt;br /&gt;
These details should be entered in the &#039;&#039;&#039;System Configuration File&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[image:SYSCFGFILE-SMTP.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Strange characters in maintenance mode ==&lt;br /&gt;
While in Maintenance mode, pressing keys on keyboard gives strange characters. Even Enter and Esc don’t work. &lt;br /&gt;
&lt;br /&gt;
This problem has been seen using RDP on:&lt;br /&gt;
*Window Server 2003 Web Edition&lt;br /&gt;
*Windows Server 2003 R2 SP2&lt;br /&gt;
&lt;br /&gt;
[[image:strangecharmaint.jpg]] &lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
#Go to Windows -&amp;gt; control panel&lt;br /&gt;
#Go to Regional and Language Options &lt;br /&gt;
#Click on Languages tab then click on Details &amp;lt;br&amp;gt; [[image:lang1.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Settings Tab and Change default input language to English (United States)&amp;lt;br&amp;gt;(or perhaps something else depending on rdp keyboard) &amp;lt;br&amp;gt; [[image:lang2.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NEOSYS processes do not start after Windows Update  ==&lt;br /&gt;
&lt;br /&gt;
Servers with Windows 2008 will not start the NEOSYS processes after Windows update. The user will have to be log into the server to start the processes.&lt;br /&gt;
&lt;br /&gt;
If one gets this message on the Schedule Task &amp;quot; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exit &amp;quot;.&lt;br /&gt;
Then they should tick the options Run whether user is logged on or not and Run with highest privileges in General settings of the Task.  &lt;br /&gt;
&lt;br /&gt;
[[image:sti.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Network Outages reflected in Nagios due to reassigning of router name or IP address ==&lt;br /&gt;
Nagios displays errors if a router name or the ip address it is monitoring have been reassigned. &lt;br /&gt;
&lt;br /&gt;
We can resolve this issue by trying to find the ISP router ip address just before the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
Steps:-&lt;br /&gt;
#Login to Nagios&lt;br /&gt;
#Click on Tactical Overview -&amp;gt; Network Outages and click on Blocking Outages to view &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-00.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You will now see the host/ISP which is down. Click on the status map icon to identify the host associated with the ISP, as shown below: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-01.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#From the Network Map displayed, identify the host associated with the ISP. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-02.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#If you already know the ip address of the host then skip to next step else, in Nagios, click on Host Detail, then on the hostname identified earlier and From the Host Details shown, save the host url. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-03.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-04.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Log onto www.network-tools.com:&lt;br /&gt;
#*Select Trace&lt;br /&gt;
#*Enter the host&#039;s ip address if already known or host url&lt;br /&gt;
#*Click on Go &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-05.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#The trace route should complete successfully revealing the IP address of the ISP just before the NEOSYS server. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-06.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You can now login to zoneedit and update the ip address of the host.&lt;br /&gt;
#Check Nagios.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NEOSYS remote support port forwarding ==&lt;br /&gt;
This assumes that you have already “port forwarded” tcp port 19580 from your public internet router to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
=== Tst 0 - Check if SSH is working on the NEOSYS Server ===&lt;br /&gt;
Type in the following command in command prompt:&lt;br /&gt;
 telnet 127.0.0.1 19580&lt;br /&gt;
&lt;br /&gt;
IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Test 1 - Check if SSH is basically working on NEOSYS server over the LAN ===&lt;br /&gt;
You must know and use the NEOSYS SERVER LAN IP to do this.&lt;br /&gt;
&lt;br /&gt;
 telnet ???.???.???.??? 19580&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-01.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you have the WRONG SERVER LAN IP or NEOSYS server SSH is NOT working then it will hang for about 15 seconds and then say “Could not open connection to host …”&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-02.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
OR IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to Exit&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-04.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test 2 - Check if can connect to the NEOSYS ssh from OUTSIDE the office  ===&lt;br /&gt;
From any internet connected computer OUTSIDE the office test if you can connect to NEOSYS ssh service. You cannot do this test from inside the office.&lt;br /&gt;
&lt;br /&gt;
You need to know the public ip or domain name of the router. If the router IP is dynamic then NEOSYS sets up dynamic name server so instead of a static ip number you will have a domain name something like clientxyz.redirectme.net.&lt;br /&gt;
&lt;br /&gt;
Enter the command .. using YOUR public internet IP number (NOT the LAN ip number) or the dynamic domain name.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-05.jpg]]  &lt;br /&gt;
&lt;br /&gt;
If everything is working OK you will get a black screen as follows. You will NOT get the “SSH-2.0-OpenSSH-4.7” banner” because NEOSYS ssh remote support is restricted to connect ONLY from LAN ip nos and NEOSYS office ip nos.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-06.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you press Enter a few times then the cursor will just go down. You have click the [X] to close the window.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-07.jpg]]  &lt;br /&gt;
&lt;br /&gt;
=== Test 3 - Check that the ssh connection from step 2 was rejected  ===&lt;br /&gt;
On the NEOSYS server, check the Windows Application log to verify that an SSH connection was rejected.&lt;br /&gt;
&lt;br /&gt;
The rejected ip number will be of the system outside the office that you performed the test from.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Sample Email: Solving port 19580 port forwarding issues ===&lt;br /&gt;
&lt;br /&gt;
Some IT people know how to trouble shoot port forwarding issues but others are more just power users who can configure a home router. If the IT person is in the second category then it is quicker for NEOSYS support to offer to configure their router from the NEOSYS server using Teamviewer. Here is a letter advising a more skilled person to check connections using telnet which is a low level test.&lt;br /&gt;
&lt;br /&gt;
You can usually determine the NEOSYS server LAN ip number from nagios. If so then adjust the email text appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear xyz,&lt;br /&gt;
&lt;br /&gt;
There is no connection from the internet via your router to the NEOSYS server because when we do the following:&lt;br /&gt;
&lt;br /&gt;
 telnet CLIENTNAME.support.neosys.com 19580&lt;br /&gt;
&lt;br /&gt;
We get no connection. Normally it should connect and presents a black screen  (saying SSH something after pressing Enter) which we close.&lt;br /&gt;
&lt;br /&gt;
Please check that you can connect to the NEOSYS server internally by using the NEOSYS server IP address in the following command on any&lt;br /&gt;
computer in your LAN.&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.?.? 19580&lt;br /&gt;
&lt;br /&gt;
If you can connect to the NEOSYS server internally then please check port forwarding.&lt;br /&gt;
&lt;br /&gt;
1. Has your router ip changed?&lt;br /&gt;
2. Has your server’s lan ip changed and are you forwarding to the correct LAN ip?&lt;br /&gt;
3. Is the configuration really correct?&lt;br /&gt;
&lt;br /&gt;
For further information, see http://techwiki.neosys.com/index.php&lt;br /&gt;
/Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding&lt;br /&gt;
&lt;br /&gt;
Until this is resolved we cannot resolve some types of user support issues.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “Cant login … INVALID DATA PATH … permission denied” ==&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
[[image:error-invalid-data-path-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error Text:&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 Cannot login because:&lt;br /&gt;
 ERROR: INVALID DATA PATH&lt;br /&gt;
 “D:\HOSTS\HOSTNAME\DATA\HOSTNAME\~8746345.1$” Permission Denied&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
When installing NEOSYS on an existing “non-clean” Windows installation, the standard NEOSYS installation procedure can result in failure to login if the standard windows folder permissions have been modified.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
The solution is to grant IIS permission to write in the \neosys\DATA folder and subfolders as follows:&lt;br /&gt;
#First add the IUSR_XXXXXXX user to the list of users. (XXXXXXXX is the server name and therefore varies per server) as follows:&lt;br /&gt;
#*Right Click on DATA Folder and click on Properties&lt;br /&gt;
#*Click on Security Tab -&amp;gt; Add -&amp;gt; Advanced&lt;br /&gt;
#*Click on Find Now, Select the IUSR_XXXXXXX user and Click on OK&amp;lt;br&amp;gt;[[image:error-invalid-data-path-2.jpg]]&amp;lt;br&amp;gt;[[image:error-invalid-data-path-3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Second, for the newly added IUSR (IIS user) change the permissions as follows:&lt;br /&gt;
#*&#039;&#039;&#039;REMOVE&#039;&#039;&#039; the read and execute permission (for security, IIS should be unable to execute things that it might have uploaded)&lt;br /&gt;
#*&#039;&#039;&#039;ADD&#039;&#039;&#039; the write permission &amp;lt;br&amp;gt;[[image:error-invalid-data-path-4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Login should now be possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NEOSYS process window displays message &amp;quot;Upgrade Downloading&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
[[image:upgradedownloading.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
NEOSYS thinks it sees an new neosys2.exe upgrade file on the location http://www.neosys.com/support/neosys2.exe which is accessed by http so attempts to download it.&lt;br /&gt;
&lt;br /&gt;
Http proxies and various internet issues can cause incorrect info to be sent and there is actually no upgrade available. In this case, eventually it realizes that it cant find an appropriate and it stops. &lt;br /&gt;
&lt;br /&gt;
You don’t have to worry about this case.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Enabling EMS memory on Window 2003 ==&lt;br /&gt;
&lt;br /&gt;
Normally EMS memory is provided by Windows 2003 but this can vary depending on the server hardware/bios configuration&lt;br /&gt;
&lt;br /&gt;
If you get the following messages on Windows 2003&lt;br /&gt;
&lt;br /&gt;
#Backup File Size is 0&lt;br /&gt;
#RTP27. [B28] Not enough String Space – Out of Memory&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
On servers that had no problem previously, the problem is caused by a windows update on 10th Oct 2012 that disables standard Windows EMS memory.&lt;br /&gt;
&lt;br /&gt;
http://support.microsoft.com/kb/2724197&lt;br /&gt;
&lt;br /&gt;
=== Solution 1 - maximum performance ===&lt;br /&gt;
&lt;br /&gt;
To re-enable standard windows EMS on older slower servers or servers where NEOSYS performance must be maximized.&lt;br /&gt;
&lt;br /&gt;
The following link contains instructions how to remove the offending windows update and prevent it being reinstalled automatically by Windows.&lt;br /&gt;
&lt;br /&gt;
http://www.columbia.edu/~em36/wpdos/emsxp.html&lt;br /&gt;
&lt;br /&gt;
=== Solution 2 – ease of installation ===&lt;br /&gt;
&lt;br /&gt;
This option can also be used if Window 2003 is unable to provide EMS memory for example when the server hardware/bios configuration prevents it.&lt;br /&gt;
&lt;br /&gt;
Install EMSMAGIC in the same way as for Windows server 2008&lt;br /&gt;
&lt;br /&gt;
EMSMAGIC has higher memory consumption and makes NEOSYS processes slower so it is better to use Solution 1 above if NEOSYS performance is an issue.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_NEOSYS&amp;diff=1103</id>
		<title>Installing NEOSYS</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_NEOSYS&amp;diff=1103"/>
		<updated>2012-10-24T11:43:02Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Technical / Hardware requirements]]&lt;br /&gt;
&lt;br /&gt;
[[Preliminary Check-list and other Misc items]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up TCP/IP filtering]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up Windows Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up and using remote support]]&lt;br /&gt;
&lt;br /&gt;
[[Installing NEOSYS Service]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring Antivirus for NEOSYS]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring IIS]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up Dynsite / Dynamic IP update client]]&lt;br /&gt;
&lt;br /&gt;
[[Benchmarking NEOSYS]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up HTTPS]]&lt;br /&gt;
&lt;br /&gt;
[[Installing IE7 &amp;amp; IE8 Download Blocker]] ** not required for Windows 2008&lt;br /&gt;
&lt;br /&gt;
[[Monitoring NEOSYS]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring NEOSYS automated backup]]&lt;br /&gt;
&lt;br /&gt;
[[Installing EMS Magic]]&lt;br /&gt;
&lt;br /&gt;
[[Establishing Emergency Support Procedures]]&lt;br /&gt;
&lt;br /&gt;
[[Setting up for non-latin characters]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring and Administering Multi-site Installations]]&lt;br /&gt;
&lt;br /&gt;
[[Installing on Windows 7]]&lt;br /&gt;
&lt;br /&gt;
[[Restricting usage of NEOSYS to licence period]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring NEOSYS for various language character sets]]&lt;br /&gt;
&lt;br /&gt;
[[Configuring NEOSYS to display local time]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic_on_Windows_2008&amp;diff=1102</id>
		<title>Installing EMS Magic on Windows 2008</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic_on_Windows_2008&amp;diff=1102"/>
		<updated>2012-10-24T11:42:45Z</updated>

		<summary type="html">&lt;p&gt;Vineet: moved Installing EMS Magic on Windows 2008 to Installing EMS Magic&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Installing EMS Magic]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1101</id>
		<title>Installing EMS Magic</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1101"/>
		<updated>2012-10-24T11:42:45Z</updated>

		<summary type="html">&lt;p&gt;Vineet: moved Installing EMS Magic on Windows 2008 to Installing EMS Magic&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The EMS (Emulate Expanded) memory support is not available in Windows 2008. &lt;br /&gt;
&lt;br /&gt;
On Windows 2003, normally EMS memory is provided, but this can vary depending on the server hardware/bios configuration.&lt;br /&gt;
Sometimes lack of EMSMAGIC may cause errors like: &lt;br /&gt;
#Backup File Size is 0&lt;br /&gt;
#RTP27. [B28] Not enough String Space – Out of Memory&lt;br /&gt;
&lt;br /&gt;
Please read the notes at [[Troubleshooting_NEOSYS_Generally#Recognising_and_Solving_Low_Memory_Problems|Recognising and Solving Low Memory Problems]] to understand more about EMS related problems. AS NEOSYS requires this important legacy feature it is required to an EMS emulator called EMSMAGIC&lt;br /&gt;
&lt;br /&gt;
The steps are:&lt;br /&gt;
&lt;br /&gt;
# Download http://www.neosys.com/support/EMSMAGIC.EXE and place it in C:\Windows folder&lt;br /&gt;
# Edit c:\windows\system32\autoexec.nt file in Notepad to include the following at the bottom:&lt;br /&gt;
[[image:autoexecnt.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you are done with the above, test that the EMS memory shows in the maintenance mode by typing WHO in the command line (instructions at [[Troubleshooting_NEOSYS_Generally#Checking_EMS_Memory_Configuration|Checking EMS Memory Configuration]])&lt;br /&gt;
&lt;br /&gt;
Another quick way to test that EMS Magic is functioning is to notice this screen as soon as you open up a maintenance or process window:&lt;br /&gt;
&lt;br /&gt;
[[image:emsscreenmaint.jpg]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1100</id>
		<title>Installing EMS Magic</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_EMS_Magic&amp;diff=1100"/>
		<updated>2012-10-24T11:42:34Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The EMS (Emulate Expanded) memory support is not available in Windows 2008. &lt;br /&gt;
&lt;br /&gt;
On Windows 2003, normally EMS memory is provided, but this can vary depending on the server hardware/bios configuration.&lt;br /&gt;
Sometimes lack of EMSMAGIC may cause errors like: &lt;br /&gt;
#Backup File Size is 0&lt;br /&gt;
#RTP27. [B28] Not enough String Space – Out of Memory&lt;br /&gt;
&lt;br /&gt;
Please read the notes at [[Troubleshooting_NEOSYS_Generally#Recognising_and_Solving_Low_Memory_Problems|Recognising and Solving Low Memory Problems]] to understand more about EMS related problems. AS NEOSYS requires this important legacy feature it is required to an EMS emulator called EMSMAGIC&lt;br /&gt;
&lt;br /&gt;
The steps are:&lt;br /&gt;
&lt;br /&gt;
# Download http://www.neosys.com/support/EMSMAGIC.EXE and place it in C:\Windows folder&lt;br /&gt;
# Edit c:\windows\system32\autoexec.nt file in Notepad to include the following at the bottom:&lt;br /&gt;
[[image:autoexecnt.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you are done with the above, test that the EMS memory shows in the maintenance mode by typing WHO in the command line (instructions at [[Troubleshooting_NEOSYS_Generally#Checking_EMS_Memory_Configuration|Checking EMS Memory Configuration]])&lt;br /&gt;
&lt;br /&gt;
Another quick way to test that EMS Magic is functioning is to notice this screen as soon as you open up a maintenance or process window:&lt;br /&gt;
&lt;br /&gt;
[[image:emsscreenmaint.jpg]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1098</id>
		<title>File:New Installation Checklist with remote support (Windows Server 2008).doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1098"/>
		<updated>2012-10-11T06:36:07Z</updated>

		<summary type="html">&lt;p&gt;Vineet: uploaded a new version of &amp;quot;File:New Installation Checklist with remote support (Windows Server 2008).doc&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1097</id>
		<title>File:New Installation Checklist with remote support (Windows Server 2008).doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1097"/>
		<updated>2012-10-11T05:39:34Z</updated>

		<summary type="html">&lt;p&gt;Vineet: uploaded a new version of &amp;quot;File:New Installation Checklist with remote support (Windows Server 2008).doc&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1096</id>
		<title>File:New Installation Checklist with remote support (Windows Server 2008).doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc&amp;diff=1096"/>
		<updated>2012-10-10T12:40:17Z</updated>

		<summary type="html">&lt;p&gt;Vineet: uploaded a new version of &amp;quot;File:New Installation Checklist with remote support (Windows Server 2008).doc&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_Windows_Firewall&amp;diff=1095</id>
		<title>Setting up Windows Firewall</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_Windows_Firewall&amp;diff=1095"/>
		<updated>2012-10-10T10:25:48Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You need to setup Windows Firewall in Windows 2008 as this OS does not provide the facility to do TCP/IP filtering.&lt;br /&gt;
&lt;br /&gt;
All these ports are required to be opened and any/all other ports/programs need to be blocked:&lt;br /&gt;
*443&lt;br /&gt;
*4430&lt;br /&gt;
*19580&lt;br /&gt;
*3389&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[image:windowsfirewall.jpg]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Configuring_NEOSYS_Generally&amp;diff=1094</id>
		<title>Configuring NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Configuring_NEOSYS_Generally&amp;diff=1094"/>
		<updated>2012-09-27T11:01:42Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Clearing files in database ==&lt;br /&gt;
&lt;br /&gt;
This is to be done if you want to clean an old database or clean a training database so that a client can enter fresh data.&lt;br /&gt;
&lt;br /&gt;
These commands DO NOT reset the data to &amp;quot;factory settings&amp;quot; so for new installations you need to download a fresh BACKUP.ZIP file from the NEOSYS website.&lt;br /&gt;
&lt;br /&gt;
*Clear transactions F5 - CLEAROP (only clears transactions not reference files)&lt;br /&gt;
&lt;br /&gt;
*Clear all F5 - CLEARALL (rather nasty command because it clears all reference files as well)&lt;br /&gt;
&lt;br /&gt;
*Clear finance transactions F5 - CLEARACC&lt;br /&gt;
&lt;br /&gt;
== Clearing selected files in database ==&lt;br /&gt;
&lt;br /&gt;
This can be done if you want to reimport selected files. The flush index command MUST be performed after doing any clearing.&lt;br /&gt;
&lt;br /&gt;
WARNING This procedure must not be used if there are any transaction in the system that might use the files being cleared.&lt;br /&gt;
&lt;br /&gt;
WARNING Clearing individual files is error prone because other files might refer to the records you are clearing (referential integrity is not applied so dangling references may be created). For example, clearing suppliers without clearing vehicles in advance results in vehicles which have supplier codes that do not exist. Even if you reimport the suppliers, some supplier codes in the vehicles file may not be reimported leaving vehicles with problems.&lt;br /&gt;
&lt;br /&gt;
WARNING The opportunity to create problems that have no solution and that may only surface when the system is in operation is endless unless you think through the implications very very very carefully.&lt;br /&gt;
&lt;br /&gt;
*Flush Index		F5	FLUSH.INDEX (this command MUST be performed immediately after any data clearing)&lt;br /&gt;
&lt;br /&gt;
*Clear suppliers		F5	CLEARFILE SUPPLIERS&lt;br /&gt;
&lt;br /&gt;
*Clear vehicles		F5	CLEARFILE VEHICLES&lt;br /&gt;
&lt;br /&gt;
*Clear Payment Instruction F5    CLEARFIELD CLIENTS PAYMENT_INSTRUCTIONS (only clears the payment instruction from the client and brand file)&lt;br /&gt;
&lt;br /&gt;
== Mass updating database without data entry ==&lt;br /&gt;
&lt;br /&gt;
Warning: It is advisable that you take the approval of NEOSYS DBA or programmers before doing any of the following procedures. There is no protection whatsoever from damaging the database if you do not appreciate all the implications of any particular update. Common sense and caution must be used. If you damage a database then it may be, or with operation become, irretrievably damaged and require reconstruction from a backup causing possibly extreme finance damages to the owner of the data and consequences for yourself. You have been warned.&lt;br /&gt;
&lt;br /&gt;
There are many commands in maintenance mode that allow you to amend the database directly and without any record and without any ability to reverse changes.&lt;br /&gt;
&lt;br /&gt;
Normally, no record of the changes is made. All changes will appear to have been done by the last user at the time and date of the last normal user interface amendments.&lt;br /&gt;
&lt;br /&gt;
=== Available fields to clear or set ===&lt;br /&gt;
&lt;br /&gt;
#Client &amp;amp; Brand File: CLIENTS MARKET_CODE&lt;br /&gt;
#Client &amp;amp; Brand File: BRANDS MARKET_CODE&lt;br /&gt;
&lt;br /&gt;
=== How to clear a database field ===&lt;br /&gt;
&lt;br /&gt;
Assuming that a particular database field may be blank (i.e. not required for data entry) then you may clear a field as follows.&lt;br /&gt;
&lt;br /&gt;
Warning: There is nothing to stop you clearing a field that is mandatory and doing this may cause irrecoverable damage to the database.&lt;br /&gt;
&lt;br /&gt;
In the following example we wish to change all clients with market code “UAE to have market code blank.&lt;br /&gt;
&lt;br /&gt;
First, if you don’t want to clear all records, “select” the required records.&lt;br /&gt;
&lt;br /&gt;
 SELECT CLIENTS WITH MARKET_CODE “UAE”&lt;br /&gt;
&lt;br /&gt;
After a period of time, depending on the number of records in the file, it should briefly state the number of records selected and then return to the command prompt.&lt;br /&gt;
&lt;br /&gt;
WARNING: If no records have been selected then ALL records will be updated by the following command!&lt;br /&gt;
&lt;br /&gt;
 CLEARFIELD CLIENTS MARKET_CODE&lt;br /&gt;
&lt;br /&gt;
=== How to set a database field ===&lt;br /&gt;
&lt;br /&gt;
In the following example we change all the clients where the market code is blank (has not been entered) to become “UAE”.&lt;br /&gt;
&lt;br /&gt;
Warning: You can set the market code to a market code that does not exist. This will cause various problems in the operation of the system but is probably not irrecoverable.&lt;br /&gt;
&lt;br /&gt;
First, if you don’t want to set all records, “select” the required records.&lt;br /&gt;
&lt;br /&gt;
 SELECT CLIENTS WITH MARKET_CODE “”&lt;br /&gt;
&lt;br /&gt;
After a period of time, depending on the number of records in the file, it should briefly state the number of records selected and then return to the command prompt.&lt;br /&gt;
&lt;br /&gt;
WARNING: If no records have been selected then ALL records will be updated by the following command!&lt;br /&gt;
 &lt;br /&gt;
 CLEARFIELD CLIENTS MARKET_CODE/UAE&lt;br /&gt;
&lt;br /&gt;
== Configuring backup procedures ==&lt;br /&gt;
&lt;br /&gt;
See the System Configuration File on the NEOSYS Support Menu. More explanation is at [[Configuring_NEOSYS_automated_backup]]&lt;br /&gt;
&lt;br /&gt;
=== Non-Liability for Backup ===&lt;br /&gt;
&lt;br /&gt;
{{Non-Liability For Backup}}&lt;br /&gt;
&lt;br /&gt;
=== Backing up the Images folder ===&lt;br /&gt;
&lt;br /&gt;
The Images folder under the NEOSYS installation is used to upload images/artworks/files from the Job File section and hence needs to be backed up. NEOSYS will automatically backup this Images folder to the USB drive or other location (specified for the usual data backup) once a week. To configure this backup, RSYNC needs to have been installed during the initial installation.&lt;br /&gt;
&lt;br /&gt;
In case we need to configure the Images folder backup at another location other than the usual daily backup location than we need to edit:&lt;br /&gt;
&lt;br /&gt;
 line 12 - and specify the Drive of the location to be backed up to. eg. E or F&lt;br /&gt;
&lt;br /&gt;
== Backup to other media (i.e. not to USB)==&lt;br /&gt;
&lt;br /&gt;
If the backup is going to &#039;&#039;&#039;non-removable media&#039;&#039;&#039; (even if it is a shared folder on another computer) then the NEOSYS user/client/licensee (NOT the NEOSYS support team) can, at their own responsibility, arrange to &#039;&#039;&#039;move&#039;&#039;&#039; (NOT COPY) the NEOSYS backup files from that location to a backup location of their choice and avoid the WARNING message : &amp;quot;Backup media not changed. Overwriting last weeks backup&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Sample alternative response to client requests for additional backups ===&lt;br /&gt;
&lt;br /&gt;
The existing NEOSYS backup must continue to take place for safety because it is the only well understood standard, controlled and checked procedure in use for all NEOSYS clients.&lt;br /&gt;
&lt;br /&gt;
You are free to setup and operate any additional backup procedure you like but NEOSYS cannot take any responsibility in setting up, monitoring or approving your additional backup procedure because it is beyond our sphere of control, expertise and trust.&lt;br /&gt;
&lt;br /&gt;
What you can backup is the NEOSYS backups on the USB drive. These are readily available online at all times on the NEOSYS server for you to access and copy as you choose. &lt;br /&gt;
&lt;br /&gt;
You can backup the usb anytime using anything you like, but you must not backup anything on any hard disk eg: C or D at any time.&lt;br /&gt;
&lt;br /&gt;
== Copying a single record from one database to another ==&lt;br /&gt;
 &lt;br /&gt;
You need to know the file name and record key of the record to be copied.&lt;br /&gt;
 &lt;br /&gt;
In this case the file is DEFINITIONS and the key is AGENCY.PARAMS&lt;br /&gt;
 &lt;br /&gt;
You can invent any old style 8.3 filename instead of C:\AGP.DAT in the following example&lt;br /&gt;
 &lt;br /&gt;
On the source computer:&lt;br /&gt;
 &lt;br /&gt;
 F5&lt;br /&gt;
 COPY DEFINITIONS AGENCY.PARAMS TO: (DOS C:\AGP.DAT)&lt;br /&gt;
&lt;br /&gt;
On the target computer:&lt;br /&gt;
 &lt;br /&gt;
 F5&lt;br /&gt;
 COPY DOS C:\AGP.DAT (ON) TO: (DEFINITIONS AGENCY.PARAMS)&lt;br /&gt;
&lt;br /&gt;
The (O) option is required to force overwrite of the existing &lt;br /&gt;
 &lt;br /&gt;
The (N) option means only copy if the target already exists. It is advisable to use it when you know that the target already exists to avoid misspellings in the command. It must be omitted if the target doesnt exist.&lt;br /&gt;
&lt;br /&gt;
== Allowing users temporary login as NEOSYS in maintenance mode ==&lt;br /&gt;
 &lt;br /&gt;
#Get them to login with any name even NEOSYS&lt;br /&gt;
#Get the to enter &amp;quot;?&amp;quot; for the pass without the quotes&lt;br /&gt;
#NEOSYS will give them a lock like &amp;quot;NEOSYS 123456&amp;quot; which they must give you. You should not log out until the next step is completed&lt;br /&gt;
#Follow the NEOSYS lock/key procedure using the full contents of the lock including the user name&lt;br /&gt;
(to allow access EXCEPT access to authorisation screen use a special number (not documented here) as the last number of the initial command)&lt;br /&gt;
#Give them the key and get them to enter and proceed&lt;br /&gt;
&lt;br /&gt;
== Configuring upload of photoshop &amp;quot;cs2&amp;quot; jpg files ==&lt;br /&gt;
&lt;br /&gt;
Photoshop version &amp;quot;cs2&amp;quot; produces jpg files that cannot be viewed in Internet Explorer.&lt;br /&gt;
&lt;br /&gt;
A solution is to rename the files extension from .jpg to .psjpg before uploading.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;psjpg&amp;quot; files are an invention of NEOSYS and IIS must be configured to handle .psjpg files as follows:&lt;br /&gt;
&lt;br /&gt;
Windows Server 2003 (doesnt work on XP)&lt;br /&gt;
&lt;br /&gt;
#Computer Management, Internet Information Server, Properties&lt;br /&gt;
#Click MIME Types&lt;br /&gt;
#Click New&lt;br /&gt;
#Extension: psjpg&lt;br /&gt;
#MIME Type: application/photoshop&lt;br /&gt;
#Click OK,OK,OK&lt;br /&gt;
#Restart IIS (Right click, All Tasks, Restart)&lt;br /&gt;
&lt;br /&gt;
== Enabling backup servers to access backed-up servers ==&lt;br /&gt;
&lt;br /&gt;
This relates to a common procedure used by NEOSYS to provide automatic nightly synchronisation/backups between servers for multi-office configurations. For more information see&lt;br /&gt;
http://itwiki.neosys.com/index.php/Setting_up_remote_backup&lt;br /&gt;
&lt;br /&gt;
Αccording to this procedure, backup processes are actually initiated and run on a &amp;quot;backup server&amp;quot; using a &amp;quot;pull&amp;quot; concept. The &amp;quot;backed-up server&amp;quot; serves the data (usually using an rsync service) to the backup server on request. They do not use a &amp;quot;push&amp;quot; concept.&lt;br /&gt;
&lt;br /&gt;
This means that backup servers need to be able to automatically login to the backed-up servers. On most backup servers a NEOSYS cygwin script called autologin.sh has been installed. This helps you configure the backup server and backed-up server.&lt;br /&gt;
&lt;br /&gt;
Normally you only need to run autologin.sh once per pair of backup and backed-up servers but sometimes the configuration is lost (particularly when NEOSYS is upgraded) and it must be repeated.&lt;br /&gt;
&lt;br /&gt;
=== Using autologin.sh ===&lt;br /&gt;
&lt;br /&gt;
#Asks you for the username and hostname&lt;br /&gt;
#Copies an identity file from the backup server to the backed up server.&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;This requires you to enter the administrator or root password.&amp;lt;/b&amp;gt;&lt;br /&gt;
#Logs you in to the backed up server&#039;s cygwin/bash command line.&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;This requires you to enter the password again.&amp;lt;/b&amp;gt;&lt;br /&gt;
#YOU then type a series of commands to install the identity file and finally exit the command console.&amp;lt;br&amp;gt;The series of commands that you must type are shown on screen by autologin.sh&lt;br /&gt;
#Logs you in to the backed up server&#039;s cygwin/bash command line.&amp;lt;br&amp;gt;&amp;lt;b&amp;gt;This time, you should NOT be required to enter a password.&amp;lt;/b&amp;gt;&lt;br /&gt;
#YOU type &amp;quot;exit&amp;quot; to quit the backed up server&#039;s command line.&lt;br /&gt;
&lt;br /&gt;
=== Running ./autologin.sh ===&lt;br /&gt;
&lt;br /&gt;
In cygwin on the backup server, you can use any of the following syntax depending on your configuration:&lt;br /&gt;
&lt;br /&gt;
Syntax&lt;br /&gt;
&lt;br /&gt;
 ./autologin.sh targethostname targetusername sshport&lt;br /&gt;
&lt;br /&gt;
*host and user will be prompted for if omitted &lt;br /&gt;
*port will be 19580 if omitted&lt;br /&gt;
&lt;br /&gt;
Example using prompting for parameters&lt;br /&gt;
&lt;br /&gt;
 ./autologin.sh&lt;br /&gt;
&lt;br /&gt;
Example using default user and port (administrator/19580)&lt;br /&gt;
&lt;br /&gt;
 ./autologin.sh examplehost.neosys.com&lt;br /&gt;
&lt;br /&gt;
Example with different user (port will be 19580)&lt;br /&gt;
&lt;br /&gt;
 ./autologin.sh examplehost.neosys.com Administrator&lt;br /&gt;
&lt;br /&gt;
Example with different user and port&lt;br /&gt;
&lt;br /&gt;
 ./autologin.sh examplehost.neosys.com Administrator 19580&lt;br /&gt;
&lt;br /&gt;
Follow instructions on screen. &lt;br /&gt;
&lt;br /&gt;
The system will ask you once the password to the target server to transfer an identity file and once again to access the command line of the target server from where you must follow a set of instructions in order to load the identity file properly.&lt;br /&gt;
&lt;br /&gt;
The username is usually administrator for windows server targets.&lt;br /&gt;
&lt;br /&gt;
The hostname can be found in backup email logs or in the CONFIG.CMD file in the backup server.&lt;br /&gt;
&lt;br /&gt;
There are often two alternative hostnames. Try the first one first. If you succeed with the first then there is no need to try the second.&lt;br /&gt;
&lt;br /&gt;
Sometimes one of the host names is based on alternative network access methods like hamachi which uses ip addresses starting with &amp;quot;5.&amp;quot; and requires hamachi service to be running in both servers and this sometimes is dependent on being logged in and correct setup of hamachi. You can ping the host names to discover the ip numbers of course.&lt;br /&gt;
&lt;br /&gt;
Follow the instructions on the screen VERY carefully.&lt;br /&gt;
&lt;br /&gt;
==== Checking if autologin is configured correctly and working or not ====&lt;br /&gt;
On the source system, in cygwin console, type something like the following, changing port number, administrator and clientname to suit the case.&lt;br /&gt;
 ssh –p 19580 administrator@clientname.neosys.com&lt;br /&gt;
&lt;br /&gt;
After a few seconds, if it is working properly, it should give you a command prompt on the target system. This indicates that autologin was successful. You may exit using the command: &lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Otherwise, if it gives some error and in particular if it asks you anything at all, for example “confirm fingerprint?” or “password?” then autologin is not working.&lt;br /&gt;
&lt;br /&gt;
You can then type in the following command in cygwin to configure or reconfigure autologin:&lt;br /&gt;
 ./autologin.sh&lt;br /&gt;
&lt;br /&gt;
=== The edit step ===&lt;br /&gt;
&lt;br /&gt;
The last step will enter the nano editor where you should do the following:&lt;br /&gt;
&lt;br /&gt;
If present, delete the word neosys near the end of the last line of the file. The last bit of the last line will refer to some user and host that you are enabling access FROM&lt;br /&gt;
&lt;br /&gt;
BE CAREFUL NOT TO TRIGGER THE AUTOMATIC LINE BREAKING IN NANO because line breaking into two or more lines is automatically triggered when you add characters to long lines. it is not triggered if you just delete characters. If you do cause a line break then quit the editor WITHOUT saving and try again or then use the editor to rejoin the two lines. Note that pressing Alt+L will turn long line breaking off and on which avoids the problem in the first place.&lt;br /&gt;
&lt;br /&gt;
Press Ctrl+X to exit the editor&lt;br /&gt;
&lt;br /&gt;
=== Creating/Upgrading autologin.sh if it doesn’t exist or is out of date ===&lt;br /&gt;
&lt;br /&gt;
 nano autologin.sh&lt;br /&gt;
 chmod +x autologin.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
set -e&lt;br /&gt;
&lt;br /&gt;
REMOTEHOST=$1&lt;br /&gt;
REMOTEUSER=$2&lt;br /&gt;
PORT=$3&lt;br /&gt;
&lt;br /&gt;
test $REMOTEUSER || REMOTEUSER=administrator&lt;br /&gt;
test $PORT || PORT=19580&lt;br /&gt;
&lt;br /&gt;
if [ ! $REMOTEUSER ]; then&lt;br /&gt;
echo -n &amp;quot;Remote User (blank=administrator)/root?&amp;quot;&lt;br /&gt;
read REMOTEUSER&lt;br /&gt;
if [ &amp;quot;$REMOTEUSER&amp;quot; == &amp;quot;&amp;quot; ] ; then REMOTEUSER=administrator ; fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ ! REMOTEHOST ]; then&lt;br /&gt;
echo -n &amp;quot;Remote Host? &amp;quot;&lt;br /&gt;
read REMOTEHOST&lt;br /&gt;
if [ &amp;quot;$REMOTEHOST&amp;quot; == &amp;quot;&amp;quot; ] ; then exit; fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo PASSPHRASE MUST BE BLANK IF YOU GET ASKED FOR IT!&lt;br /&gt;
#Generate priv/pub keys in .ssh if not already done&lt;br /&gt;
#Priv key mustnt be accessible except to owner otherwise wont work.&lt;br /&gt;
test -f ~/.ssh/id_dsa || \&lt;br /&gt;
ssh-keygen -t dsa -b 1024 -f ~/.ssh/id_dsa -N &amp;quot;&amp;quot; &amp;amp;&amp;amp; \&lt;br /&gt;
chmod 600 ~/.ssh/id_dsa&lt;br /&gt;
&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Logging in to the remote server (enter the pass again)&amp;quot;&lt;br /&gt;
sed &#039;s/neosys//&#039; ~/.ssh/id_dsa.pub | \&lt;br /&gt;
ssh -p $PORT $REMOTEUSER@$REMOTEHOST \&lt;br /&gt;
&amp;quot;mkdir -p .ssh ; chmod 700 .ssh ;\&lt;br /&gt;
cat &amp;gt;&amp;gt; .ssh/authorized_keys ;\&lt;br /&gt;
chmod 644 .ssh/authorized_keys&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;Test automatic login to the remote server&amp;quot;&lt;br /&gt;
echo &amp;quot; SHOULD NO LONGER ASK FOR PASSWORD.&amp;quot;&lt;br /&gt;
echo &amp;quot; IF SUCCESSFULL, TYPE exit&amp;quot;&lt;br /&gt;
ssh -p $PORT $REMOTEUSER@$REMOTEHOST&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== System Configuration File ==&lt;br /&gt;
=== Scope ===&lt;br /&gt;
&lt;br /&gt;
*All Installations&lt;br /&gt;
*Current Installation (default)&lt;br /&gt;
*Current Database&lt;br /&gt;
&lt;br /&gt;
You can configure most items at the above “scopes”. Any item configured on higher/broader scope has priority over the same item on a lower/narrower scope.&lt;br /&gt;
&lt;br /&gt;
Assigning higher priority to higher/broader scopes allows us to override any and all individual installations/databases configurations with a particular configuration of our choosing. However it does not allow us to set a default configuration for all installations/databases and then separately configure each one where desired. That would require NEOSYS to assign priority to lower/narrower scopes – which it doesn’t do.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1091</id>
		<title>Troubleshooting NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1091"/>
		<updated>2012-07-26T08:31:32Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Solving failure to start a NEOSYS server due to disk failure message ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
During a reboot process (which maybe due to a Windows update or even done by a support personnel) the NEOSYS server gets hung on the startup and shows a message &amp;quot;Boot Failure - Abort, Retry&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Temporary solution ===&lt;br /&gt;
This typically happens due to the USB being plugged into the server and the boot sequence being wrong - i.e. the server trying to boot from the USB first and fails. The immediate solution would be to unplug the USB and ask the client to reboot the server again and upon successfully rebooting the system, plug the USB back again.&lt;br /&gt;
&lt;br /&gt;
=== Permanent solution ===&lt;br /&gt;
The above problem will occur every time the computer is rebooted, so you need to immediately talk to the IT Administrator of the client and ask them to rectify the boot sequence to make it boot first from the CD ROM, then the HDD and last the USB.&lt;br /&gt;
&amp;lt;BR&amp;gt;Allowing &amp;quot;Boot from USB&amp;quot; causes a severe risk of infection by boot sector viruses since the first infected USB device inserted WILL infect the server immediately as anti-virus programs are not active during boot.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS process hung due to “Abort, Retry, Fail” ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
The following messages may come on older versions of NEOSYS if there is a some problem with the USB media inserted for backup.&lt;br /&gt;
&lt;br /&gt;
[[image:usberror.jpg]]&lt;br /&gt;
&lt;br /&gt;
This results in “NEOSYS has not checked in” message on Nagios since it hangs during the monitoring update and locks all other processes from monitoring too.&lt;br /&gt;
&lt;br /&gt;
General failure writing drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Not read reading drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Pressing A or F results in the problem happening again in about a minute, perhaps on a different process.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Temporary solution is to do “Safely remove hardware” from the windows notification area. Using “Eject” from My Computer will not work.&lt;br /&gt;
&lt;br /&gt;
Permanent solution is to replace the defective USB memory stick. Sometime reformatting is sufficient.&lt;br /&gt;
&lt;br /&gt;
Upgrading NEOSYS will probably stop the defective media from causing NEOSYS to hang but the USB will still be useless for backup.&lt;br /&gt;
&lt;br /&gt;
== Solving &amp;quot;Read error in the operating system file&amp;quot; ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
Nagios reports a hung process and on the server a process has the following message popup.&lt;br /&gt;
&lt;br /&gt;
 Read error in the operating system file &amp;quot;..\DATA\PT0833\ACCOUNTS\REV20049&lt;br /&gt;
 The file does not exist or the filename is&lt;br /&gt;
 not valid for the operating system.&lt;br /&gt;
&lt;br /&gt;
[[Image:readerrorintheoperatingsystemfile.png]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Some non-NEOSYS program is directly accessing the NEOSYS database files while NEOSYS processes are running and using the files as well.&lt;br /&gt;
&lt;br /&gt;
*Client IT staff using a backup program to perform backup without ensuring that NEOSYS processes are shutdown.&lt;br /&gt;
*A NEOSYS rsync process taking longer than expected due to new USB.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Kill the NEOSYS process eg with the X button. It is advisable NOT to let it run further while it cannot properly access one of its files.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
Remove the third party program or arrange for it to operate only while NEOSYS processes are shutdown eg from 3am-6am.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the &amp;quot;Database not available&amp;quot; error message == &lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
This error appears when you try to login to NEOSYS after you enter your username and password and click the Login button.&lt;br /&gt;
&lt;br /&gt;
[[image:database_unavailable.jpg]]&lt;br /&gt;
&lt;br /&gt;
Error message : &lt;br /&gt;
&lt;br /&gt;
 Cannot login because : &lt;br /&gt;
 Error :  The (database code) database is not available right now.&lt;br /&gt;
&lt;br /&gt;
=== Solution explained ===&lt;br /&gt;
# Determine if the processes are running. If they are running and you still get the same message that means that the proccesses have hung. Close them by hitting the X button on the window.&lt;br /&gt;
# If the processes are not visible, it is possible that they are running in the background and have hung for some reason. Check the windows task manager to see if any ‘ntvdm’ process is running. If so, use the End Process method to force close it.&lt;br /&gt;
# If there is no trace of any process running, that means the process probably did not start at the scheduled time. Refer to the &#039;Hung Process Reports&#039; to verify this claim. &lt;br /&gt;
# If the process had not hung, then the server might have restarted due to a power failure or a windows update and the administrator user had not logged in post the scheduled startup time of 6AM. To determine this cause, investigate in the Windows Event Viewer Log file.&lt;br /&gt;
# You can now start up the process by clicking on the respective desktop icons.&lt;br /&gt;
# Also check if the backup took place successfully or not. If not take a manual backup.&lt;br /&gt;
&lt;br /&gt;
== Handling damaged files ==&lt;br /&gt;
&lt;br /&gt;
[[Handling damaged files]]&lt;br /&gt;
&lt;br /&gt;
== Checking for corrupt database files ==&lt;br /&gt;
Login to NEOSYS Maintenance&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.FILES&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 CHK.FILES filename&lt;br /&gt;
&lt;br /&gt;
== Assessing Database Size per File ==&lt;br /&gt;
In NEOSYS maintenance mode&lt;br /&gt;
 &lt;br /&gt;
 LIST FILES BY BY-DSND SIZE VOLUME.NAME SIZE&lt;br /&gt;
 &lt;br /&gt;
This will include all files not just those in the actual dataset in DATA\* folders.&lt;br /&gt;
&lt;br /&gt;
== Resolving slow speed ==&lt;br /&gt;
=== [[Benchmarking NEOSYS]] ===&lt;br /&gt;
=== Investigating CPU 100% using Windows Task Manager ===&lt;br /&gt;
Email, to support, a screen-shot of task manager APPLICATIONS, PROCESSES and PERFORMANCE screens MAXIMIZED TO SHOW AS MUCH AS POSSIBLE. &lt;br /&gt;
&lt;br /&gt;
(Sort the processes to show ntvdm, waiting.exe and high cpu% processes clearly)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Steps:&#039;&#039;&#039;&lt;br /&gt;
#Right Click on Windows Taskbar and click on Start Task Manager &amp;lt;br&amp;gt; [[image:starttaskmanager.jpg]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Processes and then click on CPU &amp;lt;br&amp;gt;&#039;&#039;&#039;Note - The HIGH cpu% processes which should usually be the &amp;quot;process&amp;quot; called &amp;quot;System Idle Process&amp;quot; &#039;&#039;&#039;&amp;lt;br&amp;gt;[[image:cpu100percent1.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on the Performance Tab &amp;lt;br&amp;gt; &#039;&#039;&#039;Note - PF Usage should typically be much less than Physical Memory otherwise there is insufficient real memory in the server to handle the load&#039;&#039;&#039; &amp;lt;br&amp;gt; [[image:cpu100percent3.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on Application Tab then Right Click on a NEOSYS Process and Click on Bring to Front &amp;lt;br&amp;gt;&#039;&#039;&#039;See what the NEOSYS Process is doing &amp;lt;br&amp;gt; [[image:cpu100percent2.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Right Click on a NEOSYS Process and Click on Go to Processes &amp;lt;br&amp;gt;&#039;&#039;&#039;Note the cpu% ntvdm process &amp;lt;br&amp;gt;[[image:cpu100percent2_2.jpg]]&amp;lt;br&amp;gt;  &lt;br /&gt;
#Normally NEOSYS application screens say &amp;quot;LISTENING&amp;quot; in the bottom line and those applications should have very low cpu%&amp;lt;br&amp;gt;[[image:normalneosysprocess.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Look at the difference between the screen of running NEOSYS processes (applications actually) which are idle (listening for requests) and active (processing a request from a user)&lt;br /&gt;
#Note the number of cpus or cpu threads in the server from the performance screen graphics&amp;lt;br&amp;gt;[[image:performance-taskmgr-cputhread.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Take screen-shots of any and ALL hung or long running processes (NEOSYS application screens) and email them to support. Even small details on the screens and user names, the user names may give clues to what problem caused the hanging.A Typical Hung NEOSYS process will look like this: &amp;lt;br&amp;gt; [[image:hungneosysprocess.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Once all hung/long processes are closed then CPU should be low and not near 100%. If it is still 100% then check all high cpu% processes and send a screen-shot of processes sorted to show the high cpu% process names to support.&lt;br /&gt;
&lt;br /&gt;
=== Solving server CPU% is 100 and all users are extremely slow/stopped ===&lt;br /&gt;
==== Too few cpus/threads for the number of users ====&lt;br /&gt;
In Windows task manager normally, you should see one ntvdm.exe and one waiting.exe process per NEOSYS process (application). A standard installation has three NEOSYS processes per main database and plus one per test database. This is configured in Support Menu, Configuration File.&lt;br /&gt;
&lt;br /&gt;
If there are MORE ntvdm processes than you expect from the configuration file, then perhaps NEOSYS is auto starting new NEOSYS processes to try and cater for a high number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
If the number of concurrent NEOSYS processes significantly exceeds the number of cpus/hyperthreads available in the server then processing for everybody can become so slow for everybody and almost no work gets done.&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Stop NEOSYS creating new NEOSYS processes automatically. Create a text file with the first and only line as AUTOSTART=NO in the neosys\neosys folder something like this.&lt;br /&gt;
&lt;br /&gt;
notepad d:\neosys\neosys\NET.CFG&lt;br /&gt;
&lt;br /&gt;
AUTOSTART=NO&lt;br /&gt;
&lt;br /&gt;
== Handling failure and warning on nightly backup alerts ==&lt;br /&gt;
&lt;br /&gt;
[[Handling failure and warning messages on nightly backup alerts]]&lt;br /&gt;
&lt;br /&gt;
== Resolving permissions errors while logging in ==&lt;br /&gt;
 &lt;br /&gt;
=== Problem ===&lt;br /&gt;
 &lt;br /&gt;
While logging in, you get the following error message:&lt;br /&gt;
[[Image:login_error_message.jpg]]&lt;br /&gt;
 &lt;br /&gt;
=== Solution ===&lt;br /&gt;
 &lt;br /&gt;
Add the internet guest account to the security list of the data folder with the default permission of list/read/write&lt;br /&gt;
 &lt;br /&gt;
Make sure the read&amp;amp;execute permission is removed&lt;br /&gt;
[[Image:permissions_on_data.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;HTTP Error 500.0 - Internal Server Error&#039; while logging in on IE on a Windows Vista system ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
After configuring IIS on Windows Vista you will get this error message while trying to login into NEOSYS from Internet Explorer:&lt;br /&gt;
&lt;br /&gt;
 HTTP Error 500.0 - Internal Server Error&lt;br /&gt;
 Description: This application is running in an application pool that uses the Integrated .NET  &lt;br /&gt;
 mode. This is the preferred mode for running ASP.NET applications on the current and future &lt;br /&gt;
 version of IIS.&lt;br /&gt;
 &lt;br /&gt;
 In this mode, the application using client impersonation configured with &amp;lt;identity &lt;br /&gt;
 impersonate=&amp;quot;true&amp;quot; /&amp;gt; may not behave correctly. Client impersonation is not available in early &lt;br /&gt;
 ASP.NET request processing stages and may lead modules in those stages to execute with process &lt;br /&gt;
 identity instead.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
You can move the application to an application pool that uses the Classic .NET mode by using the following from a command line window (the window must be running as Administrator) &lt;br /&gt;
&lt;br /&gt;
 %systemroot%\system32\inetsrv\APPCMD.EXE set app &amp;quot;Default Web Site/neosys&amp;quot; /applicationPool:&amp;quot;Classic .NET AppPool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;Class Not Registered&#039; error message while logging in ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
While logging into NEOSYS, you will get a popup window giving an error message saying &#039;Class Not Registered - Server Error&#039;. Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there&#039;s way to solve it, however the root cause of this is still unknown.&lt;br /&gt;
&lt;br /&gt;
Anyway, you will get the proper message in the event log:&lt;br /&gt;
&lt;br /&gt;
 Event Type: Warning&lt;br /&gt;
 Event Source: W3SVC&lt;br /&gt;
 Event Category: None&lt;br /&gt;
 Event ID: 36&lt;br /&gt;
 Description: The server failed to load application &#039;/LM/W3SVC/1/ROOT/NEOSYS.&lt;br /&gt;
 The error was &#039;Class not registered&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB from Microsoft (PRB: Cannot Expand &amp;quot;My Computer&amp;quot; in Component Services MMC Snap-In http://support.microsoft.com/?id=301919):&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, reinstall Component Services as follows: WARNING: &lt;br /&gt;
# Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.  &lt;br /&gt;
# From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.  &lt;br /&gt;
# Click Add/Remove Windows Components. &lt;br /&gt;
# Proceed through the wizard, and accept all of the defaults (including IIS)&lt;br /&gt;
# Restart the computer.&lt;br /&gt;
&lt;br /&gt;
If the above didn&#039;t solve it, and you still receive the &#039;Class not registered&#039; error message, then you need to recreate the IIS packages in COM+, try&lt;br /&gt;
&lt;br /&gt;
# Delete IIS related package in Component Services MMC&lt;br /&gt;
# IIS In-Process Applications &lt;br /&gt;
# IIS Out-of-Process Pooled Applications &lt;br /&gt;
# IIS Utilities&lt;br /&gt;
&lt;br /&gt;
Next, if you still get the message, try following before re-install IIS if you can&#039;t find Distributed Transaction Coordinator in your Services console.&lt;br /&gt;
&lt;br /&gt;
Launch command prompt and run the following command.&lt;br /&gt;
# msdtc -install&lt;br /&gt;
# net start msdtc&lt;br /&gt;
&lt;br /&gt;
Then try re-install IIS.&lt;br /&gt;
&lt;br /&gt;
This should solve the problem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling File Security option on Win XP Professional ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
In the Properties of any folders, the Security option does not show, hence you cannot modify the Read, Write options.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution would be to untick the &#039;Simple File Sharing&#039; option from  Tools &amp;gt; Folder Options &amp;gt; View:&lt;br /&gt;
[[Image:simplefilesharingoff.jpg]]&lt;br /&gt;
&lt;br /&gt;
== B703 Errors ==&lt;br /&gt;
&lt;br /&gt;
The B703 error is usually always related to something too big for NEOSYS to handle. &lt;br /&gt;
&lt;br /&gt;
These are the only B errors that NEOSYS cant always permanently prevent by fixing the software.&lt;br /&gt;
&lt;br /&gt;
== Internet Explorer Menu, View, Text Size doesnt change font size as expected ==&lt;br /&gt;
&lt;br /&gt;
Cause: This is because the font size is now user definable in NEOSYS and View, Text Size does not override predefined font sizes.&lt;br /&gt;
&lt;br /&gt;
Solution: If you are using Internet Explorer 7 you can scale the screen (including the font size  using ctrl + and ctrl - keyboard shortcuts or the font size button on the bottom right hand side of the window. &lt;br /&gt;
&lt;br /&gt;
You can adjust the font size on the User Details form when you login although this permanently applies to all forms not just the one that you are on.&lt;br /&gt;
&lt;br /&gt;
== Error on process window &amp;quot;Not enough string space - Out of Memory&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
‘RTP27’ Line 1. [B29] Not enough string space – Out of Memory.&lt;br /&gt;
&lt;br /&gt;
Not enough memory to execute Debugger; current program aborted.&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&lt;br /&gt;
[[Image:out_of_memory.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Unknown perhaps related to some large document or report&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Ask users for any hanging transactions.&lt;br /&gt;
None other than closing and starting another process&lt;br /&gt;
&lt;br /&gt;
== Uploaded jpg files fail to display in internet explorer ==&lt;br /&gt;
&lt;br /&gt;
Some large jpg files &amp;gt; 2Mb cannot be viewed in internet explorer despite being viewable in image preview, ms paint and other viewers/editors. It is not an issue caused by uploading or downloading the files.&lt;br /&gt;
&lt;br /&gt;
These file appear to have been created on Photoshop CS Macintosh and may be a special type of uncompressed jpg used for production quality files.&lt;br /&gt;
&lt;br /&gt;
=== Partial solution ===&lt;br /&gt;
Before uploading the files, open them in some editor like MS Paint (right click, edit) and save them. However this results in a loss of quality. Perhaps there is some program that can convert these files to a format understandable by Internet explorer without any loss of quality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;You have attempted to write to a read-only file&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
Error while writing data.&lt;br /&gt;
You have attempted to write to a read-only file.&lt;br /&gt;
- or -&lt;br /&gt;
access to the file has been denied by the operating system.&lt;br /&gt;
(operating system file name: &amp;quot;..\DATA\ADLINEC\ADAGENCY\REV76467.OV00012618&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
It is almost certainly due to some third party backup or other maintenance software opening the NEOSYS database files when it shouldn&#039;t e.g. badly configured third party backup scheduled to backup NEOSYS while NEOSYS is still running. Note that the exact filename varies each time.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
This can be a serious error that causes damaged files in NEOSYS especially if the filename ends in .OV. Use the usual methods of checking for damaged files e.g. do a backup which also looks for damaged files BUT DO NOT OVERWRITE THE LATEST BACKUP SINCE IT MAY BE REQUIRED for restoration. Then fix the damaged files using the usual methods e.g. by rebuilding/using&lt;br /&gt;
FIXFILE or restoring databases.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
&lt;br /&gt;
Remove the third party backup or other maintenance software or reschedule it to run at a time that NEOSYS is shutdown. Removal of software may require hunting through the windows process list for unexpected programs running.&lt;br /&gt;
&lt;br /&gt;
== Resolving &amp;quot;Cannot backup/restore because PROCESS1 PROCESS2 (etc) is/are online&amp;quot; message ==&lt;br /&gt;
 &lt;br /&gt;
This can happen for a variety of reasons if all the NEOSYS processes fail to close down at backup time&lt;br /&gt;
 &lt;br /&gt;
# NEOSYS maintenance windows are left open.&lt;br /&gt;
# NEOSYS processes hang due to software error.&lt;br /&gt;
 &lt;br /&gt;
== How to kill hung NEOSYS processes ==&lt;br /&gt;
 &lt;br /&gt;
NOTE WELL: If you kill actively working NEOSYS processes (those which are &amp;quot;listening&amp;quot; and not hung/crashed) there is a reasonable chance that the database will be damaged and might need a restore losing possibly large amounts of work.&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are visible on the server desktop ====&lt;br /&gt;
 &lt;br /&gt;
Look for processes which don&#039;t have &amp;quot;Listening ...&amp;quot; on the last but one line. The times on the left hand side are frozen as at the time of the hang.&lt;br /&gt;
 &lt;br /&gt;
You can then click the X to kill the process and confirm that this is OK.&lt;br /&gt;
 &lt;br /&gt;
Example of a NEOSYS process that has hung due to a software error resulting in a failure to handle a complex query with a lot of brand codes.&lt;br /&gt;
&lt;br /&gt;
[[Image:hungprocess.jpg]]&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are not visible on the server desktop ====&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on computer restart and no one has logged into the server. In this case it would be running in the background. Secondly in the case of Windows 2008, the processes always are hidden. &lt;br /&gt;
&lt;br /&gt;
You can check if there are any hung processes from the NEOSYS Support Menu, List of Database Processes. &lt;br /&gt;
[[Image:databaseprocesseslist.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this case you should follow the below instructions - however all of them need to be done within 30 seconds of starting the first instruction to avoid inconvenience to the users. It is recommend that you keep relevant windows open before proceeding with the same:&lt;br /&gt;
&lt;br /&gt;
#Shutdown NEOSYS by TEMPORARILY putting a file called GLOBAL.END in the parent directory of NEOSYS (if there is already a GLOBAL.END.TEMP file then rename it to GLOBAL.END). Leaving the file there would prevent NEOSYS from starting up again. Shutting down NEOSYS from the Support menu will not work because of the hung processes.&lt;br /&gt;
#Use Windows Task Manager to kill all the NTVDM processes - assuming that you have closed all the visible NEOSYS processes, then the NTVDM processes in the task manager would be the hung one.&lt;br /&gt;
#Delete GLOBAL.END or rename it to GLOBAL.END.TEMP&lt;br /&gt;
#Restart the processes back again. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
#*Restarting a process is not noticed by users.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
=== Temporary workarounds for hung NEOSYS processes ===&lt;br /&gt;
Until the error in the software is fixed users can often get their results by simplifying their requirements. For example select individual clients instead of selecting all the brands for a particular client. If the user has repeated his request (in forlorn hope that it would work finally) then the number of NEOSYS working NEOSYS processes will drop causing severe slowdown for other users and complete stop if all the NEOSYS processes hang.&lt;br /&gt;
&lt;br /&gt;
== How to fix a NEOSYS process which opens up in a notepad instead of Microsoft Windows Based Script Host (i.e. DOS window)==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS process (cmd file) might open up in a notepad, instead of the usual black colour DOS window. This can be fixed by the following:&lt;br /&gt;
&lt;br /&gt;
# Download and install the Windows Script 5.6/5.7 from the Microsoft Website&lt;br /&gt;
# Go to any folder, click on Tools &amp;gt; Folder Options &amp;gt; File Types and find the .JS and .JSE and change the default program to wscript.exe (from windows&amp;gt;system32)&lt;br /&gt;
&lt;br /&gt;
== Resolving a &#039;Could not start&#039; error on Scheduled Tasks in Windows Server 2000 SP4 ==&lt;br /&gt;
&lt;br /&gt;
This error occurs because of a change that is made to the data that is stored in the credentials database when you install Windows 2000 SP4. Hence installing SP4 causes the the data that is stored in the credentials database to get converted to an SP4-compatible format. A registry key is configured to indicate that the data has been converted to the SP4 format.&lt;br /&gt;
&lt;br /&gt;
Hence the Scheduled Tasks do not work sometimes. However the Scheduled Tasks works fine sometimes, but when you uninstall SP4, it does not work.&lt;br /&gt;
&lt;br /&gt;
The best solution is to:&lt;br /&gt;
&lt;br /&gt;
# Incase Scheduled Tasks do not work after installing SP4, then uninstall SP4 and it should be fine.&lt;br /&gt;
# Incase Scheduled Tasks works after installing SP4, and later after uninstalling SP4, it does not work, then install SP4 and it should be fine.&lt;br /&gt;
&lt;br /&gt;
== Checking for server or NEOSYS crashes ==&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS Maintenance Mode&lt;br /&gt;
#General Menu, Setup, Processes&lt;br /&gt;
#Select the dates and the option Detailed&lt;br /&gt;
 &lt;br /&gt;
This report shows a list of dates and times that NEOSYS logged in but did not log out properly.&lt;br /&gt;
 &lt;br /&gt;
Ignore the very latest entries since they represent the current NEOSYS processes. For example, if you have four NEOSYS processes running at the time that you get the report (including any in maintenance mode) then you can ignore the last four entries.&lt;br /&gt;
 &lt;br /&gt;
The date and time shows for each process that has failed to shutdown correctly when the process logged in. Versions of NEOSYS from January 2008 will also show the date and time that each crashed NEOSYS process was last active (heartbeat) so that the time of failure can be known.&lt;br /&gt;
 &lt;br /&gt;
If you see a bunch of NEOSYS processes all started up at around the same time but all failed to shutdown correctly then the cause will be a server failure - usually power failure.&lt;br /&gt;
 &lt;br /&gt;
Isolated one-off failures will be related to individual NEOSYS process crashes - most commonly caused by one of the following:&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS hanging to due to software failure&lt;br /&gt;
#Manually exiting a NEOSYS process on the server either by pressing Ctrl+Alt+Del or clicking the &amp;quot;X&amp;quot; close icon/box and ignoring the warning&lt;br /&gt;
#Random server failures eg memory, disk etc&lt;br /&gt;
 &lt;br /&gt;
Example:&lt;br /&gt;
 &lt;br /&gt;
 LOGIN 22/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation &lt;br /&gt;
 LOGIN 23/12/2007 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:53 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 13:51 NEOSYS SERVER NEOSYS         Current user session  &lt;br /&gt;
&lt;br /&gt;
Interpretation:&lt;br /&gt;
 &lt;br /&gt;
The first four entries indicate that all four NEOSYS processes started at 06am were suddenly killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The next four entries indicate that NEOSYS was restarted at around 08:52 and all these processes were AGAIN killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The last four entries can be ignored because there were four NEOSYS processes running at the time that the report was generated&lt;br /&gt;
&lt;br /&gt;
== Searching for word/number in the database files using maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
You can search for any word/number in the database files of NEOSYS, using the following command line:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 FIND FILENAME WORDWITHOUTANYSPACES&lt;br /&gt;
 &lt;br /&gt;
 For eg:&lt;br /&gt;
 FIND CURRENCIES 1.1&lt;br /&gt;
 (here you are searching for the number 1.1 in the currencies file) You CANNOT search for a phrase ie include spaces like this.&lt;br /&gt;
 &lt;br /&gt;
 Or you can also type:&lt;br /&gt;
 FIND FILENAME &amp;lt;enter&amp;gt;&lt;br /&gt;
 and it will ask you what you want do to search. You can enter an exact phrase with spaces.&lt;br /&gt;
&lt;br /&gt;
Incase you do not know the filenames, you can enter the following command to see all the filenames in the system:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 LF&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the NTVDM Hard error when opening up NEOSYS processes ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears:&lt;br /&gt;
&lt;br /&gt;
[[Image:ntvdm.jpg]]&lt;br /&gt;
&lt;br /&gt;
 NTVDM encountered a hard error&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
This error is caused by missing or corrupt Windows system files (i.e. command.com, autoexec.nt and config.nt). The solution is to run a program called XP FIX which will reinstall these missing files. You can download it form http://www.visualtour.com/downloads/xp_fix.exe&lt;br /&gt;
&lt;br /&gt;
Sometimes even after running the XP FIX program the error still appears. Then you need to copy all the files under C:/windows/repair to C:/windows/system32 and in the autoexec.nt and config.nt put REM before any lines there which don&#039;t have it.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting a Service Unavailable message on Internet Explorer when opening up NEOSYS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears in Internet Explorer when you try to open up NEOSYS:&lt;br /&gt;
&lt;br /&gt;
 Service Unavailable&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
Open the IIS Manager, right click Web Sites and select properties:&lt;br /&gt;
[[Image:serviceunavailable1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Switch to the Service Tab and tick the &amp;quot;Run WWW Service in IIS 5.0 Isolation Mode&amp;quot;.&lt;br /&gt;
[[Image:serviceunavailable2.jpg]]&lt;br /&gt;
&lt;br /&gt;
You will be asked for Restart of IIS. Click yes to restart IIS. If you are not asked just restart IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inspecting IIS log files ==&lt;br /&gt;
&lt;br /&gt;
At a windows command prompt:&lt;br /&gt;
&lt;br /&gt;
 c:&lt;br /&gt;
 cd \Windows\system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 %SystemDrive%&lt;br /&gt;
 cd %SystemRoot%&lt;br /&gt;
 cd system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
then (substituting the ip number you are interested in)&lt;br /&gt;
&lt;br /&gt;
 find &amp;quot;192.168.1.55&amp;quot; *|sort&amp;gt;temp.log&lt;br /&gt;
&lt;br /&gt;
Open temp.log in Excel and use Tools, Data, Text to Columns to split into columns using options &amp;quot;Delimited&amp;quot; and check split on Space.&lt;br /&gt;
&lt;br /&gt;
Autowidth all columns by clicking on the top left box just outside the data to the left of column A and above column 1 then double click the column separator to the right of column &amp;quot;A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that times and dates are in UTC/GMT so you have to add/subtract your timezone offset to get local times.&lt;br /&gt;
&lt;br /&gt;
== Fixing NEOSYS processes that do not auto start / Recovering from incorrect advanced date or time ==&lt;br /&gt;
This solution is applicable to live database processes only. Test database processes don’t auto-start any other processes.&lt;br /&gt;
&lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
After starting up the 1st process, the rest of the processes don&#039;t start up.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The possible cause for this could be that the system date/time might have been changed - either manually or by the auto synchronization. Do the following checks in the sequence of order:&lt;br /&gt;
&lt;br /&gt;
# Check for any *.$* files (* after dollar sign should show a number, the highest being the latest one). If it shows OK, then proceed ahead.&lt;br /&gt;
# Check for any .end files and delete it to rename to .end.temp&lt;br /&gt;
# Check the System Event Viewer log for any 520 or 577 error message (refer http://128.175.24.251/forensics/timechange.htm). Also check for any out of sequence / ahead of today date or time.&lt;br /&gt;
# In case of no 520 or 577 error message, go to Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; Audit Policy &amp;gt; Audit Privilege use - make sure that Success and Failure are selected under this (this will ensure that future changes to the date/time are recorded in the System Log).&lt;br /&gt;
# In NEOSYS maintenance mode - F5 ED PROCESSES %UPDATE% - and see what it says, incase of any text (only text, not numbers) there, that means that for sure the system date has been changed. To fix this, exit the editor by pressing the ESCAPE key and then type DELETE PROCESSES &amp;quot;%UPDATE%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Recognising and Solving Low Memory Problems ==&lt;br /&gt;
&lt;br /&gt;
Quick Note: Installing a server class operating system on a workstation class computer with the intention of NEOSYS serving a heavy load is likely to cause problems with low memory.&lt;br /&gt;
&lt;br /&gt;
Quick Fix: Disable *ALL* non-essential features in the power-on setup menu.&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
It is speculated but not proven that low memory may cause NEOSYS to fail by hanging, causing damaged files etc.&lt;br /&gt;
&lt;br /&gt;
=== Checking ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 MEMORY&lt;br /&gt;
&lt;br /&gt;
On server class machines it should say somewhere around 350Kb to 370Kb Free&lt;br /&gt;
&lt;br /&gt;
Some server class machines have around 330Kb and sometimes even less with no reported problems&lt;br /&gt;
&lt;br /&gt;
The actual effect of low memory is supposed to make NEOSYS slower and perhaps cause hanging and damaged files however this has not been proven in an specific case so far.&lt;br /&gt;
&lt;br /&gt;
On workstation class machines it may often say around 280Kb to 300Kb.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
Although there is plenty of real memory in virtually all computers now, NEOSYS runs in the legacy 16 bit virtual memory space of a windows mode called NTVDM. This is limited to 1Mb plus 4Mb of EMS memory.&lt;br /&gt;
&lt;br /&gt;
The 1Mb memory space is shared with:&lt;br /&gt;
&lt;br /&gt;
#Various non-essential windows drivers which NEOSYS automatically disables them in autoexec.nt&lt;br /&gt;
#Various plug and play hardware device drivers for the various adapters in the computer like video, network adapters and various other items that NEOSYS is unable to disable.&lt;br /&gt;
&lt;br /&gt;
In a server class computer the hardware device drivers are usually minimally present in the 1Mb base memory and do not therefore DOESNT a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
In workstation class computers there are often many hardware device drivers present in the 1Mb base memory and this DOES causes a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
When NEOSYS is installed on workstation class computers with XP there is usually not a heavy load expectation and therefore the low memory does not cause a problem.&lt;br /&gt;
&lt;br /&gt;
If Windows Server OS is installed on a workstation class computer NEOSYS may well be expected to serve a heavy load with limited amounts of memory.&lt;br /&gt;
&lt;br /&gt;
Workstation class computers: hardware drivers present and EMS is installed in low memory (0000-9FFF) causing low memory for NEOSYS and possible inability to &lt;br /&gt;
&lt;br /&gt;
Server class computers: Usually few hardware drivers are present in high part (A000-FFFF) of the 1Mb base memory and EMS is able to occupy the high memory leaving the low part (0000-9FFFF) of the 1Mb memory free for NEOSYS. You can find out how much memory is available to NEOSYS and whether EMS is occuping high or low memory using the following sections.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Low Memory ===&lt;br /&gt;
&lt;br /&gt;
Start, Run, notepad c:\windows\system32\autoexec.nt&lt;br /&gt;
&lt;br /&gt;
Every time NEOSYS starts it tries to make some changes as follow:&lt;br /&gt;
&lt;br /&gt;
#replaces all lines in C:/WINDOWS/SYSTEM32/AUTOEXEC.NT starting with &#039;lh &#039; to start with &#039;rem NEOSYS LH &#039; instead.&lt;br /&gt;
#changes the line in C:/WINDOWS/SYSTEM32/CONFIG.NT &amp;quot;files=...&amp;quot; to &amp;quot;FILES=200&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The replacement is case sensitive triggered on &#039;lh&#039; and &#039;files&#039; so if you manually edit the files and remove the rem or change the number of files and leave the LH and FILES in uppercase then NEOSYS will NOT make further changes. This allows you to do manual amendments to the files without NEOSYS overwriting them.&lt;br /&gt;
&lt;br /&gt;
Check that NEOSYS has successfully disabled all the drivers in the lines starting with LH.&lt;br /&gt;
&lt;br /&gt;
They should be commented out (prefixed) with REM or REM NEOSYS as follows.&lt;br /&gt;
&lt;br /&gt;
After making changes reopen NEOSYS in maintenance mode to use the MEMORY and WHO commands again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REM Install CD ROM extensions&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\mscdexnt.exe&lt;br /&gt;
&lt;br /&gt;
REM Install network redirector (load before dosx.exe)&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\redir&lt;br /&gt;
&lt;br /&gt;
REM Install DPMI support&lt;br /&gt;
REM NEOSYS LH %SYSTEMROOT%\SYSTEM32\DOSX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Allowing DOS programs that require DOSX to run on the same computer as NEOSYS ===&lt;br /&gt;
&lt;br /&gt;
The automatic commenting out DOSX by NEOSYS will prevent some other DOS-like programs from running. If NEOSYS is on dedicated server then there should be no other such programs to fail. However, if you must allow DOS-like programs to work as well as NEOSYS you can do the following configuration:&lt;br /&gt;
&lt;br /&gt;
#leave or restore the original AUTOEXEC.NT and CONFIG.NT files where they are&lt;br /&gt;
#copy them to another folder eg neosys folder&lt;br /&gt;
#make the necessary REM changes there by hand&lt;br /&gt;
#right click the NEOSYS\NEOSYS\AREV.PIF and select properties&lt;br /&gt;
#change the location of the AUTOEXEC.NT and CONFIG.NT files in the following location&lt;br /&gt;
&lt;br /&gt;
[[image:pifsettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Checking EMS Memory Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Inspection ====&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 WHO&lt;br /&gt;
&lt;br /&gt;
 press the up arrow to get to the last part/page&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Server EMS Memory =====&lt;br /&gt;
[[image:serveremm.jpg]]&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Workstation EMS Memory =====&lt;br /&gt;
[[image:workstationemm.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Correction====&lt;br /&gt;
&lt;br /&gt;
No easy way&lt;br /&gt;
&lt;br /&gt;
Removal of hardware adapters designed for workstations instead of servers eg graphics cards and network cards.&lt;br /&gt;
&lt;br /&gt;
Many of the devices may be located on the motherboard and not relocatable except possibly by BIOS configuration or special manufacturer information.&lt;br /&gt;
&lt;br /&gt;
Use windows device manager, View: Resources by Connection, Open the Memory item and look for items between 000A0000 up to 000FFFFF that might give you a clue as to what hardware could be removed or reconfigured. Actually only 000C0000 to 000FFFFF is candidate for EMS memory since 000A000-000BFFFF is mandatory video memory in all systems.&lt;br /&gt;
&lt;br /&gt;
[[image:devicemanager.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Resolving issue where NEOSYS processes do not start-up at all or start-up and close immediately ==&lt;br /&gt;
&lt;br /&gt;
# Find if a file with the name global.end exists in the root directory of the NEOSYS installation. Eg D:\global.end . If you find such a file, rename it to global.end.temp - for more information on global.end and what it does refer to [[Closing NEOSYS services]]&lt;br /&gt;
# If the above didn&#039;t fix the problem and NEOSYS still does not start, do a windows search for the entire NEOSYS folder for *.end (i.e. any file ending with .end extension). You may find a (databasecode).end file in D:\neosys\neosys folder which is created by the NEOSYS program during backup at 1 am and later on removed automatically. In this case NEOSYS program might have crashed during the backup and left this file behind. (databasecode).end files prevent other other NEOSYS processes starting up on the database while exclusive processes (like backup) are being done.&lt;br /&gt;
&lt;br /&gt;
In case the above didn&#039;t fix the problem then escalate to the programmer immediately.&lt;br /&gt;
&lt;br /&gt;
== Handling Change Backup message if the client does not use a USB backup device ==&lt;br /&gt;
DO *NOT* FOLLOW THIS PROCEDURE SINCE IS IT IS TOTALLY UNACCEPTABLE FOR NEOSYS TO SEND OUT A &amp;quot;BACKUP SUCCESS&amp;quot; MESSAGE WHEN THE BACKUP IS NOT BEING DONE PROPERLY. IN GENERAL, TAKING SHORT CUTS THAT MAKE THINGS APPEAR SATISFACTORY WHEN THEY ARE NOT IS VERY POOR POLICY.&lt;br /&gt;
&lt;br /&gt;
IF THE CLIENT IS BACKING UP TO A NON-REMOVABLE DESTINATION THEN EITHER 1. LIVE WITH THE FAILURE MESSAGE OR 2. SUPPRESS THE BACKUP ENTIRELY IN WHICH CASE NO BACKUPS ARE BEING DONE AND PROBABLY THIS WILL SHOW ON NEOSYS PROACTIVE WARNING SYSTEMS LIKE NAGIOS.&lt;br /&gt;
&lt;br /&gt;
# Basically most of the client use USB for Neosys server but there are some clients who do not use USB but save their backups in hard drive. &lt;br /&gt;
# As we know that backup take place in Data.bak folder but it do a backup only for a week in a single USB. Over here client do not use USB but save their backup in hard drive in Data.bak folder, once the week is over  it will again give Change backup message.  &lt;br /&gt;
# In this case rename the Data.bak folder to Data1.bak this is done because system read only Data.bak folder as it is configured in the system. When you rename Data.bak to Data1.bak it automatically create a new folder Data.bak in Backup drive.&lt;br /&gt;
# This process is done so that the backup should not fail then next day morning and backups are done in Data.bak folder.&lt;br /&gt;
# In the third week we will again see the same message Chang backup USB message so you need to rename Data.bak folder to Data2.bak&lt;br /&gt;
# But in fourth week you rename the Data1.bak to Data.bak and change the Data2.bak to Data1.bak and Data.bak to Data2.bak &lt;br /&gt;
# Keep only three folders and Data.bak, Data1.bak, Data2.bak and keep on renaming these folders every week as shown above.&lt;br /&gt;
&lt;br /&gt;
== Closing processes that are not visible on the desktop or hidden ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on restart and no one has logged into the server. In this case it would be hidden. Secondly in the case of Windows 2008, the processes always are hidden.&lt;br /&gt;
&lt;br /&gt;
In these cases whenever there is a hung NEOSYS process - due to many reasons for eg low memory. In this case you should close all processes using the global.end method and then from the task manager kill any NTVDM processes and then restart NEOSYS. This should be done within 30 seconds from using the global.end method to avoid any inconvenience to the users. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS not updating NAGIOS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
You notice a problem on NAGIOS indicating that &#039;&#039;&#039;&#039;&#039;NEOSYS not checked in&#039;&#039;&#039; on a particular client server.&lt;br /&gt;
&lt;br /&gt;
=== Possible Causes &amp;amp; Solutions ===&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process is &#039;&#039;&#039;NOT&#039;&#039;&#039; running on the server====&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS process and wait for 10 mins for NEOSYS to check into NAGIOS.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process &#039;&#039;&#039;is&#039;&#039;&#039; running on the server but still cannot connect to NAGIOS====&lt;br /&gt;
&lt;br /&gt;
NEOSYS connects to NAGIOS using http. NEOSYS automatically detects and uses any http proxy configuration configured in Internet Explorer. If Internet Explorer can reach the internet then NEOSYS should be able to update to NAGIOS via the same proxy.&lt;br /&gt;
&lt;br /&gt;
First check if Internet Explorer can reach NAGIOS.&lt;br /&gt;
&lt;br /&gt;
If you are asked to login then the Internet Explorer is working OK. You do not need to login. Just cancel and move on to the next step.&lt;br /&gt;
&lt;br /&gt;
 http://monitor.neosys.com&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CANNOT connect to NAGIOS then resolving that fundamental issue will probably solve the NAGIOS connection issue too.&lt;br /&gt;
&lt;br /&gt;
View the Internet Explorer proxy configuration as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:ieproxy.png]]&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CAN connect to NAGIOS then check if there is an issue with NEOSYS&#039;s http proxy server configuration as follows:&lt;br /&gt;
&lt;br /&gt;
#Search for &#039;&#039;&#039;UPDATE.$WG&#039;&#039;&#039; file located in the neosys\neosys. folder and open it using notepad or wordpad.&lt;br /&gt;
#You should find a message similar to the following:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to 192.168.100.145:8080 failed: No such file or directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where the above appears to be some non-functional http proxy server ip/port number and is not the expected nagios server ip number.&lt;br /&gt;
&#039;&#039;&#039;A windows proxy command shows the same ip and port:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On Windows 2003/XP&lt;br /&gt;
&lt;br /&gt;
 proxycfg&lt;br /&gt;
&lt;br /&gt;
On Windows 2008/Win7&lt;br /&gt;
&lt;br /&gt;
 NetSH WinHTTP import Proxy ie&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Microsoft (R) WinHTTP Default Proxy Configuration Tool&lt;br /&gt;
Copyright (c) Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Current WinHTTP proxy settings under:&lt;br /&gt;
  HKEY_LOCAL_MACHINE\&lt;br /&gt;
    SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\&lt;br /&gt;
      WinHttpSettings :&lt;br /&gt;
&lt;br /&gt;
    Proxy Server(s) :  192.168.100.145:8080&lt;br /&gt;
    Bypass List     :  192.168.*.*;localhost;&amp;lt;local&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 1 - Remove the above setting to create a direct connection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#To remove the registry entries that ProxyCfg.exe creates,you must delete the WinHttpSettings value from the following registry key:&amp;lt;br&amp;gt;&amp;lt;PRE&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings&amp;lt;/PRE&amp;gt;&lt;br /&gt;
#After you do the above, confirm that the proxy details are deleted by running the proxycfg command &amp;lt;BR&amp;gt;&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2 - Configure a functioning proxy ip/port number&#039;&#039;&#039;&lt;br /&gt;
#Use the proxycfg command to enter a working proxy ip/port number/exclusion list: http://msdn.microsoft.com/en-us/library/aa384069%28VS.85%29.aspx&lt;br /&gt;
#After you do the above, confirm that the new proxy details are working by running the proxycfg command again&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; Note: Please refer to the link before you restart NEOSYS processes [[http://techwiki.neosys.com/index.php/Closing_NEOSYS_services#CLOSING_NEOSYS_SERVICES|Closing Hidden Processes]] &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “page not found” when downloading some file types after uploading them successfully ==&lt;br /&gt;
=== One by One ===&lt;br /&gt;
&lt;br /&gt;
Windows web server will not download file types that it is unaware of. You can enable the download of new file types one by one as follows.&lt;br /&gt;
&lt;br /&gt;
This process is tedious and error-prone if you have to add many type.&lt;br /&gt;
&lt;br /&gt;
#Computer Management&lt;br /&gt;
#Services and Applications&lt;br /&gt;
#IIS properties&lt;br /&gt;
#Mime Types&lt;br /&gt;
#Add&lt;br /&gt;
&lt;br /&gt;
=== Many ===&lt;br /&gt;
&lt;br /&gt;
Window Server 2003 is unaware of all the Office 2007+ file types. To add all Office 2007+ file types at once do the following:&lt;br /&gt;
&lt;br /&gt;
Stop IIS&lt;br /&gt;
&lt;br /&gt;
 iisreset /stop&lt;br /&gt;
&lt;br /&gt;
Open the list of mime types&lt;br /&gt;
&lt;br /&gt;
*Start, Run, notepad C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;br /&gt;
&lt;br /&gt;
Search the file for “xlsx” and quit the editor if already inserted.&lt;br /&gt;
&lt;br /&gt;
Otherwise, find the following line,&lt;br /&gt;
&lt;br /&gt;
  .xml,text/xml&lt;br /&gt;
&lt;br /&gt;
and insert after that line the following lines. They do not need to be indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.docm,application/vnd.ms-word.document.macroEnabled.12&lt;br /&gt;
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;br /&gt;
.dotm,application/vnd.ms-word.template.macroEnabled.12&lt;br /&gt;
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;br /&gt;
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12&lt;br /&gt;
.potx,application/vnd.openxmlformats-officedocument.presentationml.template&lt;br /&gt;
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;br /&gt;
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;br /&gt;
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;br /&gt;
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;br /&gt;
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;br /&gt;
.xlam,application/vnd.ms-excel.addin.macroEnabled.12&lt;br /&gt;
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;br /&gt;
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12&lt;br /&gt;
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;br /&gt;
.xltm,application/vnd.ms-excel.template.macroEnabled.12&lt;br /&gt;
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file with File and Exit&lt;br /&gt;
&lt;br /&gt;
Restart IIS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Handling Neosys Automatic Upgrade Error Messages ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
We will receive an email from the NEOSYS client installation with the following message:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;UPGRADEN.EXE&amp;quot; does not have expected exe MZ signature&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
This message is a note that the NEOSYS automatic update procedure failed to download an upgrade file correctly.&lt;br /&gt;
This happens sometimes due to network issues but can be ignored because the file will be probably be correctly downloaded on the next automatic update check.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This message is only informative to help with any problem with the automatic upgrade procedure and may be removed in a later version of neosys (currently Oct 2012)&lt;br /&gt;
&lt;br /&gt;
== Testing https connection ==&lt;br /&gt;
&lt;br /&gt;
The following procedure tests that the https server is operational and not blocked by firewall etc. It does not detect certificate errors.&lt;br /&gt;
&lt;br /&gt;
From a windows command prompt use the following telnet command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet clientname.hosts.neosys.com 4430&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#4430 is the usual NEOSYS http port but replace it by whatever port is actually used for NEOSYS https on the system being tested. If there are multiple https installations on a particular server then different ports are probably used&lt;br /&gt;
#Replace clientname.hosts.neosys.com with the normal https login domain name of the client for whom we want to check the https service&lt;br /&gt;
&lt;br /&gt;
Normal behavior is that it should open a black screen. Pressing Enter or any key returns the _ character. (Close the window using the [X] since there is no keyboard command to do so)&lt;br /&gt;
&lt;br /&gt;
Hanging means that there is some connectivity issue (firewall/ip/server not running/https not installed etc)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;quot;page not found&amp;quot; error while using https ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#The https service stops working and gives &amp;quot;Page not found&amp;quot; error.&lt;br /&gt;
#The https connection tests fine using telnet (see article above)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Reinstall https using the usual procedure (currently using selfssl)&lt;br /&gt;
#Email clients, requesting to reinstall the new security certificate by following the procedure given at [http://userwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Resolving_HTTPS_certificate_error_when_logging_in_from_an_external_link Resolving https certificate error].&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;quot;QUICKDEX&amp;quot; on some files ==&lt;br /&gt;
&amp;quot;Quickdex&amp;quot; is a type of index that keeps an alphabetical order on small files. In some maintenance procedures you may be asked to &amp;quot;install Quickdex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example to add a quickdex to the UNITS file.&lt;br /&gt;
&lt;br /&gt;
Maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 DICT UNITS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=================Dictionary=================┐&lt;br /&gt;
│                                            │&lt;br /&gt;
│  File name      UNITS                      │&lt;br /&gt;
│  Field name     .........................  │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Dict type                                 │&lt;br /&gt;
│  Single/Multi                              │&lt;br /&gt;
│  Data type                                 │&lt;br /&gt;
│  Output format                             │&lt;br /&gt;
│  Validation patterns                       │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Position              Key part            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Column heading                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Justification     Display length          │&lt;br /&gt;
│  Description                               │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
L============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Shift+F3.&lt;br /&gt;
&lt;br /&gt;
If it says &amp;quot;Do you want to remove ...&amp;quot; then Quickdex has already been installed and you should not continue. Press Esc to cancel, then Esc to quit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[B202]==================================┐&lt;br /&gt;
│                                         │&lt;br /&gt;
│               &amp;quot;UNITS&amp;quot; has               │&lt;br /&gt;
│          &amp;quot;QUICKDEX&amp;quot; installed.          │&lt;br /&gt;
│                                         │&lt;br /&gt;
│ Do you want to remove &amp;quot;QUICKDEX&amp;quot;? [Y/N] │&lt;br /&gt;
│                                         │&lt;br /&gt;
│&amp;lt;Y                                      &amp;gt;│&lt;br /&gt;
L=========================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise it should say &amp;quot;Do you want to install ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W963]============================┐&lt;br /&gt;
│                                   │&lt;br /&gt;
│     Do you want to install a      │&lt;br /&gt;
│ Quickdex or Rightdex index? [Q/R] │&lt;br /&gt;
│                                   │&lt;br /&gt;
│&amp;lt;Q                                &amp;gt;│&lt;br /&gt;
L===================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It should then say &amp;quot;Do you want to update ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W901]========================================┐&lt;br /&gt;
│                                               │&lt;br /&gt;
│           The &amp;quot;UNITS&amp;quot; file has had            │&lt;br /&gt;
│ the &amp;quot;QUICKDEX&amp;quot; modifying filing system added. │&lt;br /&gt;
│        There are 0 records in &amp;quot;UNITS&amp;quot;.        │&lt;br /&gt;
│                                               │&lt;br /&gt;
│    Do you want to update &amp;quot;QUICKDEX&amp;quot;? [Y/N]    │&lt;br /&gt;
│                                               │&lt;br /&gt;
│&amp;lt;Y                                            &amp;gt;│&lt;br /&gt;
L===============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards it should return to the initial screen. Press Esc to quit.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS smtp server failure ==&lt;br /&gt;
In case the neosys smtp server fails then we can just use the client&#039;s smtp server.&lt;br /&gt;
&lt;br /&gt;
The following information is required from the client&#039;s smtp server configuration:&lt;br /&gt;
#hostname&lt;br /&gt;
#username&lt;br /&gt;
#password&lt;br /&gt;
#port no. (most likely = 25)&lt;br /&gt;
&lt;br /&gt;
These details should be entered in the &#039;&#039;&#039;System Configuration File&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[image:SYSCFGFILE-SMTP.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Strange characters in maintenance mode ==&lt;br /&gt;
While in Maintenance mode, pressing keys on keyboard gives strange characters. Even Enter and Esc don’t work. &lt;br /&gt;
&lt;br /&gt;
This problem has been seen using RDP on:&lt;br /&gt;
*Window Server 2003 Web Edition&lt;br /&gt;
*Windows Server 2003 R2 SP2&lt;br /&gt;
&lt;br /&gt;
[[image:strangecharmaint.jpg]] &lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
#Go to Windows -&amp;gt; control panel&lt;br /&gt;
#Go to Regional and Language Options &lt;br /&gt;
#Click on Languages tab then click on Details &amp;lt;br&amp;gt; [[image:lang1.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Settings Tab and Change default input language to English (United States)&amp;lt;br&amp;gt;(or perhaps something else depending on rdp keyboard) &amp;lt;br&amp;gt; [[image:lang2.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NEOSYS processes do not start after Windows Update  ==&lt;br /&gt;
&lt;br /&gt;
Servers with Windows 2008 will not start the NEOSYS processes after Windows update. The user will have to be log into the server to start the processes.&lt;br /&gt;
&lt;br /&gt;
If one gets this message on the Schedule Task &amp;quot; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exit &amp;quot;.&lt;br /&gt;
Then they should tick the options Run whether user is logged on or not and Run with highest privileges in General settings of the Task.  &lt;br /&gt;
&lt;br /&gt;
[[image:sti.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Network Outages reflected in Nagios due to reassigning of router name or IP address ==&lt;br /&gt;
Nagios displays errors if a router name or the ip address it is monitoring have been reassigned. &lt;br /&gt;
&lt;br /&gt;
We can resolve this issue by trying to find the ISP router ip address just before the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
Steps:-&lt;br /&gt;
#Login to Nagios&lt;br /&gt;
#Click on Tactical Overview -&amp;gt; Network Outages and click on Blocking Outages to view &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-00.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You will now see the host/ISP which is down. Click on the status map icon to identify the host associated with the ISP, as shown below: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-01.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#From the Network Map displayed, identify the host associated with the ISP. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-02.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#If you already know the ip address of the host then skip to next step else, in Nagios, click on Host Detail, then on the hostname identified earlier and From the Host Details shown, save the host url. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-03.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-04.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Log onto www.network-tools.com:&lt;br /&gt;
#*Select Trace&lt;br /&gt;
#*Enter the host&#039;s ip address if already known or host url&lt;br /&gt;
#*Click on Go &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-05.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#The trace route should complete successfully revealing the IP address of the ISP just before the NEOSYS server. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-06.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You can now login to zoneedit and update the ip address of the host.&lt;br /&gt;
#Check Nagios.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NEOSYS remote support port forwarding ==&lt;br /&gt;
This assumes that you have already “port forwarded” tcp port 19580 from your public internet router to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
=== Tst 0 - Check if SSH is working on the NEOSYS Server ===&lt;br /&gt;
Type in the following command in command prompt:&lt;br /&gt;
 telnet 127.0.0.1 19580&lt;br /&gt;
&lt;br /&gt;
IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Test 1 - Check if SSH is basically working on NEOSYS server over the LAN ===&lt;br /&gt;
You must know and use the NEOSYS SERVER LAN IP to do this.&lt;br /&gt;
&lt;br /&gt;
 telnet ???.???.???.??? 19580&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-01.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you have the WRONG SERVER LAN IP or NEOSYS server SSH is NOT working then it will hang for about 15 seconds and then say “Could not open connection to host …”&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-02.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
OR IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to Exit&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-04.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test 2 - Check if can connect to the NEOSYS ssh from OUTSIDE the office  ===&lt;br /&gt;
From any internet connected computer OUTSIDE the office test if you can connect to NEOSYS ssh service. You cannot do this test from inside the office.&lt;br /&gt;
&lt;br /&gt;
You need to know the public ip or domain name of the router. If the router IP is dynamic then NEOSYS sets up dynamic name server so instead of a static ip number you will have a domain name something like clientxyz.redirectme.net.&lt;br /&gt;
&lt;br /&gt;
Enter the command .. using YOUR public internet IP number (NOT the LAN ip number) or the dynamic domain name.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-05.jpg]]  &lt;br /&gt;
&lt;br /&gt;
If everything is working OK you will get a black screen as follows. You will NOT get the “SSH-2.0-OpenSSH-4.7” banner” because NEOSYS ssh remote support is restricted to connect ONLY from LAN ip nos and NEOSYS office ip nos.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-06.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you press Enter a few times then the cursor will just go down. You have click the [X] to close the window.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-07.jpg]]  &lt;br /&gt;
&lt;br /&gt;
=== Test 3 - Check that the ssh connection from step 2 was rejected  ===&lt;br /&gt;
On the NEOSYS server, check the Windows Application log to verify that an SSH connection was rejected.&lt;br /&gt;
&lt;br /&gt;
The rejected ip number will be of the system outside the office that you performed the test from.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Sample Email: Solving port 19580 port forwarding issues ===&lt;br /&gt;
&lt;br /&gt;
Some IT people know how to trouble shoot port forwarding issues but others are more just power users who can configure a home router. If the IT person is in the second category then it is quicker for NEOSYS support to offer to configure their router from the NEOSYS server using Teamviewer. Here is a letter advising a more skilled person to check connections using telnet which is a low level test.&lt;br /&gt;
&lt;br /&gt;
You can usually determine the NEOSYS server LAN ip number from nagios. If so then adjust the email text appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear xyz,&lt;br /&gt;
&lt;br /&gt;
There is no connection from the internet via your router to the NEOSYS server because when we do the following:&lt;br /&gt;
&lt;br /&gt;
 telnet CLIENTNAME.support.neosys.com 19580&lt;br /&gt;
&lt;br /&gt;
We get no connection. Normally it should connect and presents a black screen  (saying SSH something after pressing Enter) which we close.&lt;br /&gt;
&lt;br /&gt;
Please check that you can connect to the NEOSYS server internally by using the NEOSYS server IP address in the following command on any&lt;br /&gt;
computer in your LAN.&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.?.? 19580&lt;br /&gt;
&lt;br /&gt;
If you can connect to the NEOSYS server internally then please check port forwarding.&lt;br /&gt;
&lt;br /&gt;
1. Has your router ip changed?&lt;br /&gt;
2. Has your server’s lan ip changed and are you forwarding to the correct LAN ip?&lt;br /&gt;
3. Is the configuration really correct?&lt;br /&gt;
&lt;br /&gt;
For further information, see http://techwiki.neosys.com/index.php&lt;br /&gt;
/Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding&lt;br /&gt;
&lt;br /&gt;
Until this is resolved we cannot resolve some types of user support issues.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “Cant login … INVALID DATA PATH … permission denied” ==&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
[[image:error-invalid-data-path-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error Text:&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 Cannot login because:&lt;br /&gt;
 ERROR: INVALID DATA PATH&lt;br /&gt;
 “D:\HOSTS\HOSTNAME\DATA\HOSTNAME\~8746345.1$” Permission Denied&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
When installing NEOSYS on an existing “non-clean” Windows installation, the standard NEOSYS installation procedure can result in failure to login if the standard windows folder permissions have been modified.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
The solution is to grant IIS permission to write in the \neosys\DATA folder and subfolders as follows:&lt;br /&gt;
#First add the IUSR_XXXXXXX user to the list of users. (XXXXXXXX is the server name and therefore varies per server) as follows:&lt;br /&gt;
#*Right Click on DATA Folder and click on Properties&lt;br /&gt;
#*Click on Security Tab -&amp;gt; Add -&amp;gt; Advanced&lt;br /&gt;
#*Click on Find Now, Select the IUSR_XXXXXXX user and Click on OK&amp;lt;br&amp;gt;[[image:error-invalid-data-path-2.jpg]]&amp;lt;br&amp;gt;[[image:error-invalid-data-path-3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Second, for the newly added IUSR (IIS user) change the permissions as follows:&lt;br /&gt;
#*&#039;&#039;&#039;REMOVE&#039;&#039;&#039; the read and execute permission (for security, IIS should be unable to execute things that it might have uploaded)&lt;br /&gt;
#*&#039;&#039;&#039;ADD&#039;&#039;&#039; the write permission &amp;lt;br&amp;gt;[[image:error-invalid-data-path-4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Login should now be possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NEOSYS process window displays message &amp;quot;Upgrade Downloading&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
[[image:upgradedownloading.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
NEOSYS thinks it sees an new neosys2.exe upgrade file on the location http://www.neosys.com/support/neosys2.exe which is accessed by http so attempts to download it.&lt;br /&gt;
&lt;br /&gt;
Http proxies and various internet issues can cause incorrect info to be sent and there is actually no upgrade available. In this case, eventually it realizes that it cant find an appropriate and it stops. &lt;br /&gt;
&lt;br /&gt;
You don’t have to worry about this case.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Upgradedownloading.jpg&amp;diff=1090</id>
		<title>File:Upgradedownloading.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Upgradedownloading.jpg&amp;diff=1090"/>
		<updated>2012-07-26T08:30:44Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1089</id>
		<title>Handling damaged files</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1089"/>
		<updated>2012-07-09T05:07:22Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symptoms ==&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;A Damaged file has been found..... ((the rest of this message to be completed)) &lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : BOOKING.TEXTS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
== Cause ==&lt;br /&gt;
Rare but nasty problem on server 99% caused by power failure, killing NEOSYS or server hardware or operating system failure.&lt;br /&gt;
&lt;br /&gt;
*Did somebody kill NEOSYS processes to reboot the server or any other reason?&lt;br /&gt;
*Was there a power cut?&lt;br /&gt;
*Any expected or unexpected reboots in the server log? (see Event Viewer &amp;gt; System Log)&lt;br /&gt;
*Enough disk free space especially on servers not dedicated to NEOSYS?&lt;br /&gt;
*Third party software running on NEOSYS server?&lt;br /&gt;
*RAID installed on the server?&lt;br /&gt;
*Did windows update happen?&lt;br /&gt;
&lt;br /&gt;
== Solution==&lt;br /&gt;
&lt;br /&gt;
Damaged files, when detected, cause an immediate termination of the currently executing program/user request and a restart of the process is involved. Some damaged files are automatically fixed during restart. Although the process &amp;quot;restarts&amp;quot; it may be internally corrupted in some way and it is advisable to close it completely and start or allow another process to start automatically.&amp;lt;br&amp;gt;&lt;br /&gt;
However, the solution always depends on the cause and usually often requires aggressive interrogation to discover the cause.&lt;br /&gt;
&lt;br /&gt;
Guidelines:&lt;br /&gt;
&lt;br /&gt;
#Identify the cause of the damaged file&lt;br /&gt;
#Depending on the type of damaged file follow the procedures mentioned below to handle Damaged Files:&lt;br /&gt;
#*[[Handling_damaged_files#Files_that_are_automatically_fixed|Damaged Files that are Automatically fixed]]&lt;br /&gt;
#*Damaged Files that Need fixing&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_file_that_have_a_process_to_recreate_them| Damaged Files that have a process to Recreate them]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_index_files_.28names_starting_with_.21.29| Damaged Index Files]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_files_that_have_no_process_for_recreating_them|Fixing damaged files that have no process for recreating them]]&lt;br /&gt;
#*[[ Handling_damaged_files#Dealing_with_damaged_files_that_cannot_be_fixed| Damaged Files that Cannot be fixed]]&lt;br /&gt;
#Verify if the damaged file is fixed in the database by following instructions at [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Recovery==&lt;br /&gt;
&lt;br /&gt;
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work.&lt;br /&gt;
&lt;br /&gt;
See the following sections how to patch the damaged files.&lt;br /&gt;
&lt;br /&gt;
== Files that are automatically fixed ==&lt;br /&gt;
&lt;br /&gt;
*LISTS&lt;br /&gt;
*LOCKS&lt;br /&gt;
*!INDEXING&lt;br /&gt;
&lt;br /&gt;
The above files are automatically checked for corruption (and initialised to empty if so) when you &lt;br /&gt;
startup a NEOSYS process and do not require any manual intervention apart from locating and eliminating the initial cause of the damage.&lt;br /&gt;
&lt;br /&gt;
If the !INDEXING file was damaged then you should also do REINDEXALL to reinstate any possibly missing index entries, but since this will take a long time&lt;br /&gt;
you should do this when everybody is off the system in the evening probably. A few missing index entries may only mean some records missing from some reports which may or may not be seriously inconvenient. It is a temporary file that should not hold any records for longer than it takes to update the various indexes immediately when the user saves any document.&lt;br /&gt;
&lt;br /&gt;
Each process has its own LISTS file, so damage is limited to one process for the LISTS file. The process number can be seen in the error message. for example:&lt;br /&gt;
&lt;br /&gt;
 Process=7&lt;br /&gt;
&lt;br /&gt;
You can also see the process number on the server screen. For example here is a process 2.&lt;br /&gt;
&lt;br /&gt;
 13:17:31 TESTDB NEOS0002 0 Listening 7 hours, 49 mins ...&lt;br /&gt;
&lt;br /&gt;
The LISTS file is a temporary file for sorting records into order for reports, popups etc. Therefore any damage usually causes no real inconvenience apart from the failed report or popup on which the user might receive the &amp;quot;damaged LISTS file&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
The error message would appear as follows :&lt;br /&gt;
&lt;br /&gt;
 SYSTEM ERROR:&lt;br /&gt;
 An internal file LISTS was found&lt;br /&gt;
 to be damaged and has been patched.&lt;br /&gt;
 INFORM YOUR TECHNICAL SUPPORT&amp;lt;br&amp;gt;&lt;br /&gt;
 SOME DATA HAS PROBABLY BEEN LOST&lt;br /&gt;
 AND THE NEOSYS SYSTEM MAY MALFUNCTION&amp;lt;br&amp;gt;&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
The error could also appear as follows :&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : LISTS&lt;br /&gt;
 Group # : 00000014&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : STATISTICS&lt;br /&gt;
 Group # : 00000005&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 114 files checked.&lt;br /&gt;
 Failed with 1 error&lt;br /&gt;
 !!!DANGER!!!&lt;br /&gt;
 !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
 !!!BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note - &#039;&#039; Statistics contains info about user usage as per support menu so loss of data is not critical and it will be rebuilt automatically&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We might also get errors related to Temporary Files as follows:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
DO NOT CONTINUE USING THE SYSTEM!&lt;br /&gt;
&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : MATDEL_MEDIALIN_3&lt;br /&gt;
 Group # : 13369375&lt;br /&gt;
 Wrong Overflow frame linked to group.&lt;br /&gt;
&lt;br /&gt;
Server=NEOSYS-SERVER&lt;br /&gt;
Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
Version=11:26:27  26 JUL 2010&lt;br /&gt;
Database=23BF2931 MEDIALIN&lt;br /&gt;
Process=3&lt;br /&gt;
Client=100_100_100_77&lt;br /&gt;
User=HAMADA&lt;br /&gt;
Request=MEDIADIARY&lt;br /&gt;
@Id=&lt;br /&gt;
Data=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since these are temporary files, we need not use FIXFILE. They get cleared automatically.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged file that have a process to recreate them ==&lt;br /&gt;
&lt;br /&gt;
Below files can be recreated from the maintenance mode.&lt;br /&gt;
&lt;br /&gt;
ADS file can be recreated with F5 CREATEADS&lt;br /&gt;
&lt;br /&gt;
ANALYSIS file can be recreated with F5 CREATEANALYSIS&lt;br /&gt;
&lt;br /&gt;
BRANDS files can be recreated with F5 CREATEBRANDS&lt;br /&gt;
&lt;br /&gt;
If the file is actually damaged it might be necessary to initialise it first using CLEARFILE filename.&lt;br /&gt;
&lt;br /&gt;
The following is an example of the error in the ADS File at the time of backup.&lt;br /&gt;
&lt;br /&gt;
  Group Format Error:&lt;br /&gt;
  OS File : ADS&lt;br /&gt;
  Group # : 00009543&lt;br /&gt;
  Record length incorrect or frame linkage error.&lt;br /&gt;
  217 files checked.&lt;br /&gt;
  Failed with 1 errors&lt;br /&gt;
  !!! DANGER !!!&lt;br /&gt;
  !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
  !!! BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
  Error while writing data.&lt;br /&gt;
  You have attempted to write to a read-only file.&lt;br /&gt;
                      - or -&lt;br /&gt;
  access to the file has been denied by the operating system.&lt;br /&gt;
  (operating system file name: &amp;quot;ADS&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Explanation: The last four lines are very rare and can be seen with the above error messages in the backup email.  The above message indicates that some external application is trying to access the backup files at the time of backup.&lt;br /&gt;
&lt;br /&gt;
Before doing the solution below, please check the number of damaged files on the database by running CHK.FILES in maintenance mode. [CHK.FILES can be done when users are online]&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Stop all the processes before doing the below procedure. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions)&lt;br /&gt;
&lt;br /&gt;
Procedure to run CREATEADS is as under &lt;br /&gt;
&lt;br /&gt;
Login to maintenance&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 CREATEXXXX&lt;br /&gt;
&lt;br /&gt;
(XXXX = ADS, ANALYSIS OR BRANDS)&lt;br /&gt;
&lt;br /&gt;
Select the option appropriate option and start the procedure and hit ENTER&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039; CREATEADS no longer asks to choose CREATE/CHECK/REINDEX and only does CREATE from now on. CHECK was never used and REINDEXADS command is available independently.&lt;br /&gt;
&lt;br /&gt;
To verify if the above is done successfully and check if the damage files is fixed in the database run CHK.FILES or CHK.FILES FILENAME (Recommended) from this link: [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged index files (names starting with !) ==&lt;br /&gt;
&lt;br /&gt;
Whilst backing up or using NEOSYS the following error message might appear:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;A Damaged file has been found.....&lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : !ADS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
#Ensure that no-one is using NEOSYS&lt;br /&gt;
#Log into NEOSYS on the server&lt;br /&gt;
#Press F5 to get a TCL command box&lt;br /&gt;
#Type REINDEXADS and press enter.&lt;br /&gt;
#Wait until it finishes and you get back to the command box&lt;br /&gt;
#Type OFF in the command box and you will quit NEOSYS.&lt;br /&gt;
&lt;br /&gt;
Other reindex commands are:&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;Note -&#039;&#039; You can save time when indexing very large files by indexing only selected indexes instead of all indexed for the file. You can select the field(s) that need to be reindexed from a list of indexed fields which REINDEX filename presents you after you enter the command.)&lt;br /&gt;
&lt;br /&gt;
*REINDEXACCOUNTS	recreates !ACCOUNTS, !BATCHES and !VOUCHERS&lt;br /&gt;
*REINDEXADDRESSES &lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXBOOKINGS	recreates !BOOKING.ORDERS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXINVS		recreates !INVOICES&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXPRODINVS	recreates !PRODUCTION.INVOICES&lt;br /&gt;
*REINDEXPRODORDERS	recreates !PRODUCTION.ORDERS&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
&lt;br /&gt;
REINDEXMEDIA does all the following&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXBOOKINGS&lt;br /&gt;
&lt;br /&gt;
REINDEXFILES does all the following&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
&lt;br /&gt;
REINDEXPRODUCTION does all the following&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXPRODORDERS&lt;br /&gt;
*REINDEXPRODINVS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
&lt;br /&gt;
REINDEXALL does all the following&lt;br /&gt;
*REINDEXMEDIA&lt;br /&gt;
*REINDEXPRODUCTION&lt;br /&gt;
*REINDEXFILES&lt;br /&gt;
*REINDEXINVS&lt;br /&gt;
*REINDEXACCOUNTS&lt;br /&gt;
*REINDEXADDRESSES&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged files that have no process for recreating them ==&lt;br /&gt;
&lt;br /&gt;
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files like &#039;&#039;LOG20xx&#039;&#039; can be “fixed” to prevent NEOSYS crashes as follows &amp;lt;i&amp;gt;but some records will most probably be lost&amp;lt;/i&amp;gt;. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;SHADOW&#039;&#039; is a type of log file that can lose some records without serious impact and can therefore can also be fixed with FIXFILE.&lt;br /&gt;
&lt;br /&gt;
FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down the processes for the dataset in question.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE -&#039;&#039; If there are multiple datasets running on the server. Shut down the particular dataset which has got the problem. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions). &lt;br /&gt;
&lt;br /&gt;
If you are trying to close processes during the day then please check if there are users that are actively working on that dataset in question. If yes, then please email the clients asking them to log off till the process is complete. If there are no users actively working then you may proceed to complete the fix quickly before users login so that users are not disturbed during their daily work.&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 FIXFILE filename&lt;br /&gt;
&lt;br /&gt;
(Select option 1 to update the file)&lt;br /&gt;
&lt;br /&gt;
In case you get any Overwrite messages – type YES, as these are the actual files being updated.&lt;br /&gt;
&lt;br /&gt;
The only alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact serial numbers of critical documents like orders, invoices, receipts and payments advices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using FIXFILE to repair corrupted files ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BEWARE:&#039;&#039;&#039; FIXFILE causes loss of data. If the data is critical then use of FIXFILE can be totally catastrophic without any warning. &lt;br /&gt;
Hence, in such situations it is advisable to talk to NEOSYS technical staff to see if they can provide any proper fix or provide any better comment about the impact of loss of data rather than implement FIXFILE directly.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; &lt;br /&gt;
# Using FIXFILE on some files is a guaranteed way to cause complete chaos for the users without them being aware of it until too late to do anything about it.&lt;br /&gt;
#Corrupt files will cause programs to abort every time they try to update that section of the file. Aborting programs causes possibly horrendous inconsistency in the database so it is important to stop all user activity and fix the corrupt file immediately.&lt;br /&gt;
#You can freely use FIXFILE on any file but it works by deleting any problematic data so cannot realistically be used on some files at all.&lt;br /&gt;
#FIXFILE cannot and does not recover any corrupted records therefore, for those files that have specific programs to rebuild them, FIXFILE is not the correct option.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Why use FIXFILE at all since it causes loss of data?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Many files do not have programs to rebuild them and for some of those files, using FIXFILE is a quick way to get the system back in operation BUT with missing records. Missing records causes various degrees of failure ranging from the odd document missing, totally misleading information like wrong account balances, or any kind of system failure.&lt;br /&gt;
#FIXFILE does not fix the consistency of information in the database. When the database is is being updated with a transaction, usually a series of files are updated for the one transaction. A damaged file causes the update program to abort in the middle of the series of updates. Therefore some of the updates are done and the remaining updates are not done. This means that the data in the database (even after fixing the corrupt file) is inconsistent.&lt;br /&gt;
#FIXFILE merely fixes the technical structure of the file so that any further program accesses to that portion of the file do not cause immediate program termination and consequent likely catastrophic database inconsistency.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;IMPORTANT :&#039;&#039;&#039; You must prevent anyone from accessing NEOSYS while FIXFILE is running.&lt;br /&gt;
&lt;br /&gt;
==== List of Files Impacted by FIXFILE ====&lt;br /&gt;
#&#039;&#039;&#039;USERS File :&#039;&#039;&#039; The main data of any lost records from the USERS file will be recreated any time the Authorisation File is saved, however only the information in the Authorisation File is recreated which means that all personal preferences, holiday records, login history etc will be lost.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Damaged DEFINITIONS file ===&lt;br /&gt;
 &lt;br /&gt;
==== Non-Solution ====&lt;br /&gt;
 &lt;br /&gt;
You will probably not be able to login if the DEFINITIONS FILE is damaged. You can press Alt+S and type EXECUTE to get a TCL command box but this still doesnt help because you cannot use FIXFILE on DEFINITIONS.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: DO NOT USE FIXFILE TO TRY AND FIX THE DEFINITIONS FILE.&lt;br /&gt;
 &lt;br /&gt;
DOUBLE CAUTION: IN CASE YOU DECIDE TO IGNORE THIS EXPECT ALL KINDS OF HORRIBLE PROBLEMS IN THE DATABASE REQUIRING A COMPLETE RESTORE FROM A GOOD BACKUP AFTER A FEW DAYS OF PAIN BECAUSE RANDOM OLD DATABASE UPGRADE/CONVERSIONS WILL BE PERFORMED *AGAIN* WITHOUT YOU KNOWING IT.&lt;br /&gt;
 &lt;br /&gt;
==== Partial Restore ====&lt;br /&gt;
 &lt;br /&gt;
You can copy recent DEFINITIONS.LK and DEFINITIONS.OV files from the DATA\datasetcode\GENERAL folder.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: All changes done in the Configuration File, Authorisation File, Users File and various other changes will be reverted to the date of the DEFINITIONS files being restored. If you are restoring from last nights backup or testdata then this will not be much but could cause serious confusion to people who have changed their passwords etc.&lt;br /&gt;
&lt;br /&gt;
==== Full Restore ====&lt;br /&gt;
&lt;br /&gt;
Restore from your latest backup losing all work done since that time and date.&lt;br /&gt;
&lt;br /&gt;
=== Preventing users from accessing NEOSYS in order to do maintenance or repairs ===&lt;br /&gt;
 &lt;br /&gt;
On most systems you can simply stop the NEOSYS processes. On other systems where NEOSYS processes are automatically started in response to requests from the web, you need to disable the autostart by one of the following methods&lt;br /&gt;
 &lt;br /&gt;
# Stop the autostart program/script&lt;br /&gt;
# Put a file called NET.CFG with a single line saying AUTOSTART=NO in the neosys\neosys folder&lt;br /&gt;
# Stop the IIS server&lt;br /&gt;
# Stop/Pause the particular web in question&lt;br /&gt;
&lt;br /&gt;
== Dealing with damaged files that cannot be fixed ==&lt;br /&gt;
&lt;br /&gt;
If programmers are unable to fix the damage in a reasonably period of time and the damage is caused due to matters beyond NEOSYS control such as non-dedicated servers and power failures then data must be restored and client advised why they are going to suffer loss of data.&lt;br /&gt;
 &lt;br /&gt;
THIS DOES NOT RELEASE NEOSYS SUPPORT STAFF FROM THE OBLIGATION TO PROACTIVELY INFORM THE CLIENT OF MEASURES TO PREVENT THE RECURRENCE OF THE EVENT.&lt;br /&gt;
&lt;br /&gt;
The following are the steps to follow:&lt;br /&gt;
# Ascertain the cause of the damage to the database by looking at the internal logs&lt;br /&gt;
# Create a new database from the damaged one as it will contain the up to date but damaged database.&lt;br /&gt;
# Restore the database from the backup media so that the database is in the last good known state. &lt;br /&gt;
# The client can see what work was done over the past couple of days from the damaged database and it will assist them to redo the work in the currently restored out of date main database.&lt;br /&gt;
# Next discuss with the client about the cause of the damage and (a) what to do to prevent the damage occurring again (b) to agree a procedure to perform a manual backup in case the automatic one is not performed for any reason overnight.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1086</id>
		<title>Troubleshooting NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1086"/>
		<updated>2012-07-05T06:26:49Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* The NEOSYS process is running on the server but still cannot connect to NAGIOS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Solving failure to start a NEOSYS server due to disk failure message ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
During a reboot process (which maybe due to a Windows update or even done by a support personnel) the NEOSYS server gets hung on the startup and shows a message &amp;quot;Boot Failure - Abort, Retry&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Temporary solution ===&lt;br /&gt;
This typically happens due to the USB being plugged into the server and the boot sequence being wrong - i.e. the server trying to boot from the USB first and fails. The immediate solution would be to unplug the USB and ask the client to reboot the server again and upon successfully rebooting the system, plug the USB back again.&lt;br /&gt;
&lt;br /&gt;
=== Permanent solution ===&lt;br /&gt;
The above problem will occur every time the computer is rebooted, so you need to immediately talk to the IT Administrator of the client and ask them to rectify the boot sequence to make it boot first from the CD ROM, then the HDD and last the USB.&lt;br /&gt;
&amp;lt;BR&amp;gt;Allowing &amp;quot;Boot from USB&amp;quot; causes a severe risk of infection by boot sector viruses since the first infected USB device inserted WILL infect the server immediately as anti-virus programs are not active during boot.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS process hung due to “Abort, Retry, Fail” ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
The following messages may come on older versions of NEOSYS if there is a some problem with the USB media inserted for backup.&lt;br /&gt;
&lt;br /&gt;
[[image:usberror.jpg]]&lt;br /&gt;
&lt;br /&gt;
This results in “NEOSYS has not checked in” message on Nagios since it hangs during the monitoring update and locks all other processes from monitoring too.&lt;br /&gt;
&lt;br /&gt;
General failure writing drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Not read reading drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Pressing A or F results in the problem happening again in about a minute, perhaps on a different process.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Temporary solution is to do “Safely remove hardware” from the windows notification area. Using “Eject” from My Computer will not work.&lt;br /&gt;
&lt;br /&gt;
Permanent solution is to replace the defective USB memory stick. Sometime reformatting is sufficient.&lt;br /&gt;
&lt;br /&gt;
Upgrading NEOSYS will probably stop the defective media from causing NEOSYS to hang but the USB will still be useless for backup.&lt;br /&gt;
&lt;br /&gt;
== Solving &amp;quot;Read error in the operating system file&amp;quot; ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
Nagios reports a hung process and on the server a process has the following message popup.&lt;br /&gt;
&lt;br /&gt;
 Read error in the operating system file &amp;quot;..\DATA\PT0833\ACCOUNTS\REV20049&lt;br /&gt;
 The file does not exist or the filename is&lt;br /&gt;
 not valid for the operating system.&lt;br /&gt;
&lt;br /&gt;
[[Image:readerrorintheoperatingsystemfile.png]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Some non-NEOSYS program is directly accessing the NEOSYS database files while NEOSYS processes are running and using the files as well.&lt;br /&gt;
&lt;br /&gt;
*Client IT staff using a backup program to perform backup without ensuring that NEOSYS processes are shutdown.&lt;br /&gt;
*A NEOSYS rsync process taking longer than expected due to new USB.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Kill the NEOSYS process eg with the X button. It is advisable NOT to let it run further while it cannot properly access one of its files.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
Remove the third party program or arrange for it to operate only while NEOSYS processes are shutdown eg from 3am-6am.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the &amp;quot;Database not available&amp;quot; error message == &lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
This error appears when you try to login to NEOSYS after you enter your username and password and click the Login button.&lt;br /&gt;
&lt;br /&gt;
[[image:database_unavailable.jpg]]&lt;br /&gt;
&lt;br /&gt;
Error message : &lt;br /&gt;
&lt;br /&gt;
 Cannot login because : &lt;br /&gt;
 Error :  The (database code) database is not available right now.&lt;br /&gt;
&lt;br /&gt;
=== Solution explained ===&lt;br /&gt;
# Determine if the processes are running. If they are running and you still get the same message that means that the proccesses have hung. Close them by hitting the X button on the window.&lt;br /&gt;
# If the processes are not visible, it is possible that they are running in the background and have hung for some reason. Check the windows task manager to see if any ‘ntvdm’ process is running. If so, use the End Process method to force close it.&lt;br /&gt;
# If there is no trace of any process running, that means the process probably did not start at the scheduled time. Refer to the &#039;Hung Process Reports&#039; to verify this claim. &lt;br /&gt;
# If the process had not hung, then the server might have restarted due to a power failure or a windows update and the administrator user had not logged in post the scheduled startup time of 6AM. To determine this cause, investigate in the Windows Event Viewer Log file.&lt;br /&gt;
# You can now start up the process by clicking on the respective desktop icons.&lt;br /&gt;
# Also check if the backup took place successfully or not. If not take a manual backup.&lt;br /&gt;
&lt;br /&gt;
== Handling damaged files ==&lt;br /&gt;
&lt;br /&gt;
[[Handling damaged files]]&lt;br /&gt;
&lt;br /&gt;
== Checking for corrupt database files ==&lt;br /&gt;
Login to NEOSYS Maintenance&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.FILES&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 CHK.FILES filename&lt;br /&gt;
&lt;br /&gt;
== Assessing Database Size per File ==&lt;br /&gt;
In NEOSYS maintenance mode&lt;br /&gt;
 &lt;br /&gt;
 LIST FILES BY BY-DSND SIZE VOLUME.NAME SIZE&lt;br /&gt;
 &lt;br /&gt;
This will include all files not just those in the actual dataset in DATA\* folders.&lt;br /&gt;
&lt;br /&gt;
== Resolving slow speed ==&lt;br /&gt;
=== [[Benchmarking NEOSYS]] ===&lt;br /&gt;
=== Investigating CPU 100% using Windows Task Manager ===&lt;br /&gt;
Email, to support, a screen-shot of task manager APPLICATIONS, PROCESSES and PERFORMANCE screens MAXIMIZED TO SHOW AS MUCH AS POSSIBLE. &lt;br /&gt;
&lt;br /&gt;
(Sort the processes to show ntvdm, waiting.exe and high cpu% processes clearly)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Steps:&#039;&#039;&#039;&lt;br /&gt;
#Right Click on Windows Taskbar and click on Start Task Manager &amp;lt;br&amp;gt; [[image:starttaskmanager.jpg]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Processes and then click on CPU &amp;lt;br&amp;gt;&#039;&#039;&#039;Note - The HIGH cpu% processes which should usually be the &amp;quot;process&amp;quot; called &amp;quot;System Idle Process&amp;quot; &#039;&#039;&#039;&amp;lt;br&amp;gt;[[image:cpu100percent1.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on the Performance Tab &amp;lt;br&amp;gt; &#039;&#039;&#039;Note - PF Usage should typically be much less than Physical Memory otherwise there is insufficient real memory in the server to handle the load&#039;&#039;&#039; &amp;lt;br&amp;gt; [[image:cpu100percent3.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on Application Tab then Right Click on a NEOSYS Process and Click on Bring to Front &amp;lt;br&amp;gt;&#039;&#039;&#039;See what the NEOSYS Process is doing &amp;lt;br&amp;gt; [[image:cpu100percent2.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Right Click on a NEOSYS Process and Click on Go to Processes &amp;lt;br&amp;gt;&#039;&#039;&#039;Note the cpu% ntvdm process &amp;lt;br&amp;gt;[[image:cpu100percent2_2.jpg]]&amp;lt;br&amp;gt;  &lt;br /&gt;
#Normally NEOSYS application screens say &amp;quot;LISTENING&amp;quot; in the bottom line and those applications should have very low cpu%&amp;lt;br&amp;gt;[[image:normalneosysprocess.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Look at the difference between the screen of running NEOSYS processes (applications actually) which are idle (listening for requests) and active (processing a request from a user)&lt;br /&gt;
#Note the number of cpus or cpu threads in the server from the performance screen graphics&amp;lt;br&amp;gt;[[image:performance-taskmgr-cputhread.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Take screen-shots of any and ALL hung or long running processes (NEOSYS application screens) and email them to support. Even small details on the screens and user names, the user names may give clues to what problem caused the hanging.A Typical Hung NEOSYS process will look like this: &amp;lt;br&amp;gt; [[image:hungneosysprocess.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Once all hung/long processes are closed then CPU should be low and not near 100%. If it is still 100% then check all high cpu% processes and send a screen-shot of processes sorted to show the high cpu% process names to support.&lt;br /&gt;
&lt;br /&gt;
=== Solving server CPU% is 100 and all users are extremely slow/stopped ===&lt;br /&gt;
==== Too few cpus/threads for the number of users ====&lt;br /&gt;
In Windows task manager normally, you should see one ntvdm.exe and one waiting.exe process per NEOSYS process (application). A standard installation has three NEOSYS processes per main database and plus one per test database. This is configured in Support Menu, Configuration File.&lt;br /&gt;
&lt;br /&gt;
If there are MORE ntvdm processes than you expect from the configuration file, then perhaps NEOSYS is auto starting new NEOSYS processes to try and cater for a high number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
If the number of concurrent NEOSYS processes significantly exceeds the number of cpus/hyperthreads available in the server then processing for everybody can become so slow for everybody and almost no work gets done.&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Stop NEOSYS creating new NEOSYS processes automatically. Create a text file with the first and only line as AUTOSTART=NO in the neosys\neosys folder something like this.&lt;br /&gt;
&lt;br /&gt;
notepad d:\neosys\neosys\NET.CFG&lt;br /&gt;
&lt;br /&gt;
AUTOSTART=NO&lt;br /&gt;
&lt;br /&gt;
== Handling failure and warning on nightly backup alerts ==&lt;br /&gt;
&lt;br /&gt;
[[Handling failure and warning messages on nightly backup alerts]]&lt;br /&gt;
&lt;br /&gt;
== Resolving permissions errors while logging in ==&lt;br /&gt;
 &lt;br /&gt;
=== Problem ===&lt;br /&gt;
 &lt;br /&gt;
While logging in, you get the following error message:&lt;br /&gt;
[[Image:login_error_message.jpg]]&lt;br /&gt;
 &lt;br /&gt;
=== Solution ===&lt;br /&gt;
 &lt;br /&gt;
Add the internet guest account to the security list of the data folder with the default permission of list/read/write&lt;br /&gt;
 &lt;br /&gt;
Make sure the read&amp;amp;execute permission is removed&lt;br /&gt;
[[Image:permissions_on_data.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;HTTP Error 500.0 - Internal Server Error&#039; while logging in on IE on a Windows Vista system ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
After configuring IIS on Windows Vista you will get this error message while trying to login into NEOSYS from Internet Explorer:&lt;br /&gt;
&lt;br /&gt;
 HTTP Error 500.0 - Internal Server Error&lt;br /&gt;
 Description: This application is running in an application pool that uses the Integrated .NET  &lt;br /&gt;
 mode. This is the preferred mode for running ASP.NET applications on the current and future &lt;br /&gt;
 version of IIS.&lt;br /&gt;
 &lt;br /&gt;
 In this mode, the application using client impersonation configured with &amp;lt;identity &lt;br /&gt;
 impersonate=&amp;quot;true&amp;quot; /&amp;gt; may not behave correctly. Client impersonation is not available in early &lt;br /&gt;
 ASP.NET request processing stages and may lead modules in those stages to execute with process &lt;br /&gt;
 identity instead.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
You can move the application to an application pool that uses the Classic .NET mode by using the following from a command line window (the window must be running as Administrator) &lt;br /&gt;
&lt;br /&gt;
 %systemroot%\system32\inetsrv\APPCMD.EXE set app &amp;quot;Default Web Site/neosys&amp;quot; /applicationPool:&amp;quot;Classic .NET AppPool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;Class Not Registered&#039; error message while logging in ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
While logging into NEOSYS, you will get a popup window giving an error message saying &#039;Class Not Registered - Server Error&#039;. Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there&#039;s way to solve it, however the root cause of this is still unknown.&lt;br /&gt;
&lt;br /&gt;
Anyway, you will get the proper message in the event log:&lt;br /&gt;
&lt;br /&gt;
 Event Type: Warning&lt;br /&gt;
 Event Source: W3SVC&lt;br /&gt;
 Event Category: None&lt;br /&gt;
 Event ID: 36&lt;br /&gt;
 Description: The server failed to load application &#039;/LM/W3SVC/1/ROOT/NEOSYS.&lt;br /&gt;
 The error was &#039;Class not registered&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB from Microsoft (PRB: Cannot Expand &amp;quot;My Computer&amp;quot; in Component Services MMC Snap-In http://support.microsoft.com/?id=301919):&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, reinstall Component Services as follows: WARNING: &lt;br /&gt;
# Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.  &lt;br /&gt;
# From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.  &lt;br /&gt;
# Click Add/Remove Windows Components. &lt;br /&gt;
# Proceed through the wizard, and accept all of the defaults (including IIS)&lt;br /&gt;
# Restart the computer.&lt;br /&gt;
&lt;br /&gt;
If the above didn&#039;t solve it, and you still receive the &#039;Class not registered&#039; error message, then you need to recreate the IIS packages in COM+, try&lt;br /&gt;
&lt;br /&gt;
# Delete IIS related package in Component Services MMC&lt;br /&gt;
# IIS In-Process Applications &lt;br /&gt;
# IIS Out-of-Process Pooled Applications &lt;br /&gt;
# IIS Utilities&lt;br /&gt;
&lt;br /&gt;
Next, if you still get the message, try following before re-install IIS if you can&#039;t find Distributed Transaction Coordinator in your Services console.&lt;br /&gt;
&lt;br /&gt;
Launch command prompt and run the following command.&lt;br /&gt;
# msdtc -install&lt;br /&gt;
# net start msdtc&lt;br /&gt;
&lt;br /&gt;
Then try re-install IIS.&lt;br /&gt;
&lt;br /&gt;
This should solve the problem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling File Security option on Win XP Professional ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
In the Properties of any folders, the Security option does not show, hence you cannot modify the Read, Write options.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution would be to untick the &#039;Simple File Sharing&#039; option from  Tools &amp;gt; Folder Options &amp;gt; View:&lt;br /&gt;
[[Image:simplefilesharingoff.jpg]]&lt;br /&gt;
&lt;br /&gt;
== B703 Errors ==&lt;br /&gt;
&lt;br /&gt;
The B703 error is usually always related to something too big for NEOSYS to handle. &lt;br /&gt;
&lt;br /&gt;
These are the only B errors that NEOSYS cant always permanently prevent by fixing the software.&lt;br /&gt;
&lt;br /&gt;
== Internet Explorer Menu, View, Text Size doesnt change font size as expected ==&lt;br /&gt;
&lt;br /&gt;
Cause: This is because the font size is now user definable in NEOSYS and View, Text Size does not override predefined font sizes.&lt;br /&gt;
&lt;br /&gt;
Solution: If you are using Internet Explorer 7 you can scale the screen (including the font size  using ctrl + and ctrl - keyboard shortcuts or the font size button on the bottom right hand side of the window. &lt;br /&gt;
&lt;br /&gt;
You can adjust the font size on the User Details form when you login although this permanently applies to all forms not just the one that you are on.&lt;br /&gt;
&lt;br /&gt;
== Error on process window &amp;quot;Not enough string space - Out of Memory&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
‘RTP27’ Line 1. [B29] Not enough string space – Out of Memory.&lt;br /&gt;
&lt;br /&gt;
Not enough memory to execute Debugger; current program aborted.&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&lt;br /&gt;
[[Image:out_of_memory.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Unknown perhaps related to some large document or report&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Ask users for any hanging transactions.&lt;br /&gt;
None other than closing and starting another process&lt;br /&gt;
&lt;br /&gt;
== Uploaded jpg files fail to display in internet explorer ==&lt;br /&gt;
&lt;br /&gt;
Some large jpg files &amp;gt; 2Mb cannot be viewed in internet explorer despite being viewable in image preview, ms paint and other viewers/editors. It is not an issue caused by uploading or downloading the files.&lt;br /&gt;
&lt;br /&gt;
These file appear to have been created on Photoshop CS Macintosh and may be a special type of uncompressed jpg used for production quality files.&lt;br /&gt;
&lt;br /&gt;
=== Partial solution ===&lt;br /&gt;
Before uploading the files, open them in some editor like MS Paint (right click, edit) and save them. However this results in a loss of quality. Perhaps there is some program that can convert these files to a format understandable by Internet explorer without any loss of quality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;You have attempted to write to a read-only file&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
Error while writing data.&lt;br /&gt;
You have attempted to write to a read-only file.&lt;br /&gt;
- or -&lt;br /&gt;
access to the file has been denied by the operating system.&lt;br /&gt;
(operating system file name: &amp;quot;..\DATA\ADLINEC\ADAGENCY\REV76467.OV00012618&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
It is almost certainly due to some third party backup or other maintenance software opening the NEOSYS database files when it shouldn&#039;t e.g. badly configured third party backup scheduled to backup NEOSYS while NEOSYS is still running. Note that the exact filename varies each time.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
This can be a serious error that causes damaged files in NEOSYS especially if the filename ends in .OV. Use the usual methods of checking for damaged files e.g. do a backup which also looks for damaged files BUT DO NOT OVERWRITE THE LATEST BACKUP SINCE IT MAY BE REQUIRED for restoration. Then fix the damaged files using the usual methods e.g. by rebuilding/using&lt;br /&gt;
FIXFILE or restoring databases.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
&lt;br /&gt;
Remove the third party backup or other maintenance software or reschedule it to run at a time that NEOSYS is shutdown. Removal of software may require hunting through the windows process list for unexpected programs running.&lt;br /&gt;
&lt;br /&gt;
== Resolving &amp;quot;Cannot backup/restore because PROCESS1 PROCESS2 (etc) is/are online&amp;quot; message ==&lt;br /&gt;
 &lt;br /&gt;
This can happen for a variety of reasons if all the NEOSYS processes fail to close down at backup time&lt;br /&gt;
 &lt;br /&gt;
# NEOSYS maintenance windows are left open.&lt;br /&gt;
# NEOSYS processes hang due to software error.&lt;br /&gt;
 &lt;br /&gt;
== How to kill hung NEOSYS processes ==&lt;br /&gt;
 &lt;br /&gt;
NOTE WELL: If you kill actively working NEOSYS processes (those which are &amp;quot;listening&amp;quot; and not hung/crashed) there is a reasonable chance that the database will be damaged and might need a restore losing possibly large amounts of work.&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are visible on the server desktop ====&lt;br /&gt;
 &lt;br /&gt;
Look for processes which don&#039;t have &amp;quot;Listening ...&amp;quot; on the last but one line. The times on the left hand side are frozen as at the time of the hang.&lt;br /&gt;
 &lt;br /&gt;
You can then click the X to kill the process and confirm that this is OK.&lt;br /&gt;
 &lt;br /&gt;
Example of a NEOSYS process that has hung due to a software error resulting in a failure to handle a complex query with a lot of brand codes.&lt;br /&gt;
&lt;br /&gt;
[[Image:hungprocess.jpg]]&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are not visible on the server desktop ====&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on computer restart and no one has logged into the server. In this case it would be running in the background. Secondly in the case of Windows 2008, the processes always are hidden. &lt;br /&gt;
&lt;br /&gt;
You can check if there are any hung processes from the NEOSYS Support Menu, List of Database Processes. &lt;br /&gt;
[[Image:databaseprocesseslist.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this case you should follow the below instructions - however all of them need to be done within 30 seconds of starting the first instruction to avoid inconvenience to the users. It is recommend that you keep relevant windows open before proceeding with the same:&lt;br /&gt;
&lt;br /&gt;
#Shutdown NEOSYS by TEMPORARILY putting a file called GLOBAL.END in the parent directory of NEOSYS (if there is already a GLOBAL.END.TEMP file then rename it to GLOBAL.END). Leaving the file there would prevent NEOSYS from starting up again. Shutting down NEOSYS from the Support menu will not work because of the hung processes.&lt;br /&gt;
#Use Windows Task Manager to kill all the NTVDM processes - assuming that you have closed all the visible NEOSYS processes, then the NTVDM processes in the task manager would be the hung one.&lt;br /&gt;
#Delete GLOBAL.END or rename it to GLOBAL.END.TEMP&lt;br /&gt;
#Restart the processes back again. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
#*Restarting a process is not noticed by users.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
=== Temporary workarounds for hung NEOSYS processes ===&lt;br /&gt;
Until the error in the software is fixed users can often get their results by simplifying their requirements. For example select individual clients instead of selecting all the brands for a particular client. If the user has repeated his request (in forlorn hope that it would work finally) then the number of NEOSYS working NEOSYS processes will drop causing severe slowdown for other users and complete stop if all the NEOSYS processes hang.&lt;br /&gt;
&lt;br /&gt;
== How to fix a NEOSYS process which opens up in a notepad instead of Microsoft Windows Based Script Host (i.e. DOS window)==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS process (cmd file) might open up in a notepad, instead of the usual black colour DOS window. This can be fixed by the following:&lt;br /&gt;
&lt;br /&gt;
# Download and install the Windows Script 5.6/5.7 from the Microsoft Website&lt;br /&gt;
# Go to any folder, click on Tools &amp;gt; Folder Options &amp;gt; File Types and find the .JS and .JSE and change the default program to wscript.exe (from windows&amp;gt;system32)&lt;br /&gt;
&lt;br /&gt;
== Resolving a &#039;Could not start&#039; error on Scheduled Tasks in Windows Server 2000 SP4 ==&lt;br /&gt;
&lt;br /&gt;
This error occurs because of a change that is made to the data that is stored in the credentials database when you install Windows 2000 SP4. Hence installing SP4 causes the the data that is stored in the credentials database to get converted to an SP4-compatible format. A registry key is configured to indicate that the data has been converted to the SP4 format.&lt;br /&gt;
&lt;br /&gt;
Hence the Scheduled Tasks do not work sometimes. However the Scheduled Tasks works fine sometimes, but when you uninstall SP4, it does not work.&lt;br /&gt;
&lt;br /&gt;
The best solution is to:&lt;br /&gt;
&lt;br /&gt;
# Incase Scheduled Tasks do not work after installing SP4, then uninstall SP4 and it should be fine.&lt;br /&gt;
# Incase Scheduled Tasks works after installing SP4, and later after uninstalling SP4, it does not work, then install SP4 and it should be fine.&lt;br /&gt;
&lt;br /&gt;
== Checking for server or NEOSYS crashes ==&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS Maintenance Mode&lt;br /&gt;
#General Menu, Setup, Processes&lt;br /&gt;
#Select the dates and the option Detailed&lt;br /&gt;
 &lt;br /&gt;
This report shows a list of dates and times that NEOSYS logged in but did not log out properly.&lt;br /&gt;
 &lt;br /&gt;
Ignore the very latest entries since they represent the current NEOSYS processes. For example, if you have four NEOSYS processes running at the time that you get the report (including any in maintenance mode) then you can ignore the last four entries.&lt;br /&gt;
 &lt;br /&gt;
The date and time shows for each process that has failed to shutdown correctly when the process logged in. Versions of NEOSYS from January 2008 will also show the date and time that each crashed NEOSYS process was last active (heartbeat) so that the time of failure can be known.&lt;br /&gt;
 &lt;br /&gt;
If you see a bunch of NEOSYS processes all started up at around the same time but all failed to shutdown correctly then the cause will be a server failure - usually power failure.&lt;br /&gt;
 &lt;br /&gt;
Isolated one-off failures will be related to individual NEOSYS process crashes - most commonly caused by one of the following:&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS hanging to due to software failure&lt;br /&gt;
#Manually exiting a NEOSYS process on the server either by pressing Ctrl+Alt+Del or clicking the &amp;quot;X&amp;quot; close icon/box and ignoring the warning&lt;br /&gt;
#Random server failures eg memory, disk etc&lt;br /&gt;
 &lt;br /&gt;
Example:&lt;br /&gt;
 &lt;br /&gt;
 LOGIN 22/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation &lt;br /&gt;
 LOGIN 23/12/2007 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:53 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 13:51 NEOSYS SERVER NEOSYS         Current user session  &lt;br /&gt;
&lt;br /&gt;
Interpretation:&lt;br /&gt;
 &lt;br /&gt;
The first four entries indicate that all four NEOSYS processes started at 06am were suddenly killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The next four entries indicate that NEOSYS was restarted at around 08:52 and all these processes were AGAIN killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The last four entries can be ignored because there were four NEOSYS processes running at the time that the report was generated&lt;br /&gt;
&lt;br /&gt;
== Searching for word/number in the database files using maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
You can search for any word/number in the database files of NEOSYS, using the following command line:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 FIND FILENAME WORDWITHOUTANYSPACES&lt;br /&gt;
 &lt;br /&gt;
 For eg:&lt;br /&gt;
 FIND CURRENCIES 1.1&lt;br /&gt;
 (here you are searching for the number 1.1 in the currencies file) You CANNOT search for a phrase ie include spaces like this.&lt;br /&gt;
 &lt;br /&gt;
 Or you can also type:&lt;br /&gt;
 FIND FILENAME &amp;lt;enter&amp;gt;&lt;br /&gt;
 and it will ask you what you want do to search. You can enter an exact phrase with spaces.&lt;br /&gt;
&lt;br /&gt;
Incase you do not know the filenames, you can enter the following command to see all the filenames in the system:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 LF&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the NTVDM Hard error when opening up NEOSYS processes ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears:&lt;br /&gt;
&lt;br /&gt;
[[Image:ntvdm.jpg]]&lt;br /&gt;
&lt;br /&gt;
 NTVDM encountered a hard error&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
This error is caused by missing or corrupt Windows system files (i.e. command.com, autoexec.nt and config.nt). The solution is to run a program called XP FIX which will reinstall these missing files. You can download it form http://www.visualtour.com/downloads/xp_fix.exe&lt;br /&gt;
&lt;br /&gt;
Sometimes even after running the XP FIX program the error still appears. Then you need to copy all the files under C:/windows/repair to C:/windows/system32 and in the autoexec.nt and config.nt put REM before any lines there which don&#039;t have it.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting a Service Unavailable message on Internet Explorer when opening up NEOSYS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears in Internet Explorer when you try to open up NEOSYS:&lt;br /&gt;
&lt;br /&gt;
 Service Unavailable&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
Open the IIS Manager, right click Web Sites and select properties:&lt;br /&gt;
[[Image:serviceunavailable1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Switch to the Service Tab and tick the &amp;quot;Run WWW Service in IIS 5.0 Isolation Mode&amp;quot;.&lt;br /&gt;
[[Image:serviceunavailable2.jpg]]&lt;br /&gt;
&lt;br /&gt;
You will be asked for Restart of IIS. Click yes to restart IIS. If you are not asked just restart IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inspecting IIS log files ==&lt;br /&gt;
&lt;br /&gt;
At a windows command prompt:&lt;br /&gt;
&lt;br /&gt;
 c:&lt;br /&gt;
 cd \Windows\system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 %SystemDrive%&lt;br /&gt;
 cd %SystemRoot%&lt;br /&gt;
 cd system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
then (substituting the ip number you are interested in)&lt;br /&gt;
&lt;br /&gt;
 find &amp;quot;192.168.1.55&amp;quot; *|sort&amp;gt;temp.log&lt;br /&gt;
&lt;br /&gt;
Open temp.log in Excel and use Tools, Data, Text to Columns to split into columns using options &amp;quot;Delimited&amp;quot; and check split on Space.&lt;br /&gt;
&lt;br /&gt;
Autowidth all columns by clicking on the top left box just outside the data to the left of column A and above column 1 then double click the column separator to the right of column &amp;quot;A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that times and dates are in UTC/GMT so you have to add/subtract your timezone offset to get local times.&lt;br /&gt;
&lt;br /&gt;
== Fixing NEOSYS processes that do not auto start / Recovering from incorrect advanced date or time ==&lt;br /&gt;
This solution is applicable to live database processes only. Test database processes don’t auto-start any other processes.&lt;br /&gt;
&lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
After starting up the 1st process, the rest of the processes don&#039;t start up.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The possible cause for this could be that the system date/time might have been changed - either manually or by the auto synchronization. Do the following checks in the sequence of order:&lt;br /&gt;
&lt;br /&gt;
# Check for any *.$* files (* after dollar sign should show a number, the highest being the latest one). If it shows OK, then proceed ahead.&lt;br /&gt;
# Check for any .end files and delete it to rename to .end.temp&lt;br /&gt;
# Check the System Event Viewer log for any 520 or 577 error message (refer http://128.175.24.251/forensics/timechange.htm). Also check for any out of sequence / ahead of today date or time.&lt;br /&gt;
# In case of no 520 or 577 error message, go to Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; Audit Policy &amp;gt; Audit Privilege use - make sure that Success and Failure are selected under this (this will ensure that future changes to the date/time are recorded in the System Log).&lt;br /&gt;
# In NEOSYS maintenance mode - F5 ED PROCESSES %UPDATE% - and see what it says, incase of any text (only text, not numbers) there, that means that for sure the system date has been changed. To fix this, exit the editor by pressing the ESCAPE key and then type DELETE PROCESSES &amp;quot;%UPDATE%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Recognising and Solving Low Memory Problems ==&lt;br /&gt;
&lt;br /&gt;
Quick Note: Installing a server class operating system on a workstation class computer with the intention of NEOSYS serving a heavy load is likely to cause problems with low memory.&lt;br /&gt;
&lt;br /&gt;
Quick Fix: Disable *ALL* non-essential features in the power-on setup menu.&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
It is speculated but not proven that low memory may cause NEOSYS to fail by hanging, causing damaged files etc.&lt;br /&gt;
&lt;br /&gt;
=== Checking ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 MEMORY&lt;br /&gt;
&lt;br /&gt;
On server class machines it should say somewhere around 350Kb to 370Kb Free&lt;br /&gt;
&lt;br /&gt;
Some server class machines have around 330Kb and sometimes even less with no reported problems&lt;br /&gt;
&lt;br /&gt;
The actual effect of low memory is supposed to make NEOSYS slower and perhaps cause hanging and damaged files however this has not been proven in an specific case so far.&lt;br /&gt;
&lt;br /&gt;
On workstation class machines it may often say around 280Kb to 300Kb.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
Although there is plenty of real memory in virtually all computers now, NEOSYS runs in the legacy 16 bit virtual memory space of a windows mode called NTVDM. This is limited to 1Mb plus 4Mb of EMS memory.&lt;br /&gt;
&lt;br /&gt;
The 1Mb memory space is shared with:&lt;br /&gt;
&lt;br /&gt;
#Various non-essential windows drivers which NEOSYS automatically disables them in autoexec.nt&lt;br /&gt;
#Various plug and play hardware device drivers for the various adapters in the computer like video, network adapters and various other items that NEOSYS is unable to disable.&lt;br /&gt;
&lt;br /&gt;
In a server class computer the hardware device drivers are usually minimally present in the 1Mb base memory and do not therefore DOESNT a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
In workstation class computers there are often many hardware device drivers present in the 1Mb base memory and this DOES causes a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
When NEOSYS is installed on workstation class computers with XP there is usually not a heavy load expectation and therefore the low memory does not cause a problem.&lt;br /&gt;
&lt;br /&gt;
If Windows Server OS is installed on a workstation class computer NEOSYS may well be expected to serve a heavy load with limited amounts of memory.&lt;br /&gt;
&lt;br /&gt;
Workstation class computers: hardware drivers present and EMS is installed in low memory (0000-9FFF) causing low memory for NEOSYS and possible inability to &lt;br /&gt;
&lt;br /&gt;
Server class computers: Usually few hardware drivers are present in high part (A000-FFFF) of the 1Mb base memory and EMS is able to occupy the high memory leaving the low part (0000-9FFFF) of the 1Mb memory free for NEOSYS. You can find out how much memory is available to NEOSYS and whether EMS is occuping high or low memory using the following sections.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Low Memory ===&lt;br /&gt;
&lt;br /&gt;
Start, Run, notepad c:\windows\system32\autoexec.nt&lt;br /&gt;
&lt;br /&gt;
Every time NEOSYS starts it tries to make some changes as follow:&lt;br /&gt;
&lt;br /&gt;
#replaces all lines in C:/WINDOWS/SYSTEM32/AUTOEXEC.NT starting with &#039;lh &#039; to start with &#039;rem NEOSYS LH &#039; instead.&lt;br /&gt;
#changes the line in C:/WINDOWS/SYSTEM32/CONFIG.NT &amp;quot;files=...&amp;quot; to &amp;quot;FILES=200&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The replacement is case sensitive triggered on &#039;lh&#039; and &#039;files&#039; so if you manually edit the files and remove the rem or change the number of files and leave the LH and FILES in uppercase then NEOSYS will NOT make further changes. This allows you to do manual amendments to the files without NEOSYS overwriting them.&lt;br /&gt;
&lt;br /&gt;
Check that NEOSYS has successfully disabled all the drivers in the lines starting with LH.&lt;br /&gt;
&lt;br /&gt;
They should be commented out (prefixed) with REM or REM NEOSYS as follows.&lt;br /&gt;
&lt;br /&gt;
After making changes reopen NEOSYS in maintenance mode to use the MEMORY and WHO commands again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REM Install CD ROM extensions&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\mscdexnt.exe&lt;br /&gt;
&lt;br /&gt;
REM Install network redirector (load before dosx.exe)&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\redir&lt;br /&gt;
&lt;br /&gt;
REM Install DPMI support&lt;br /&gt;
REM NEOSYS LH %SYSTEMROOT%\SYSTEM32\DOSX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Allowing DOS programs that require DOSX to run on the same computer as NEOSYS ===&lt;br /&gt;
&lt;br /&gt;
The automatic commenting out DOSX by NEOSYS will prevent some other DOS-like programs from running. If NEOSYS is on dedicated server then there should be no other such programs to fail. However, if you must allow DOS-like programs to work as well as NEOSYS you can do the following configuration:&lt;br /&gt;
&lt;br /&gt;
#leave or restore the original AUTOEXEC.NT and CONFIG.NT files where they are&lt;br /&gt;
#copy them to another folder eg neosys folder&lt;br /&gt;
#make the necessary REM changes there by hand&lt;br /&gt;
#right click the NEOSYS\NEOSYS\AREV.PIF and select properties&lt;br /&gt;
#change the location of the AUTOEXEC.NT and CONFIG.NT files in the following location&lt;br /&gt;
&lt;br /&gt;
[[image:pifsettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Checking EMS Memory Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Inspection ====&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 WHO&lt;br /&gt;
&lt;br /&gt;
 press the up arrow to get to the last part/page&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Server EMS Memory =====&lt;br /&gt;
[[image:serveremm.jpg]]&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Workstation EMS Memory =====&lt;br /&gt;
[[image:workstationemm.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Correction====&lt;br /&gt;
&lt;br /&gt;
No easy way&lt;br /&gt;
&lt;br /&gt;
Removal of hardware adapters designed for workstations instead of servers eg graphics cards and network cards.&lt;br /&gt;
&lt;br /&gt;
Many of the devices may be located on the motherboard and not relocatable except possibly by BIOS configuration or special manufacturer information.&lt;br /&gt;
&lt;br /&gt;
Use windows device manager, View: Resources by Connection, Open the Memory item and look for items between 000A0000 up to 000FFFFF that might give you a clue as to what hardware could be removed or reconfigured. Actually only 000C0000 to 000FFFFF is candidate for EMS memory since 000A000-000BFFFF is mandatory video memory in all systems.&lt;br /&gt;
&lt;br /&gt;
[[image:devicemanager.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Resolving issue where NEOSYS processes do not start-up at all or start-up and close immediately ==&lt;br /&gt;
&lt;br /&gt;
# Find if a file with the name global.end exists in the root directory of the NEOSYS installation. Eg D:\global.end . If you find such a file, rename it to global.end.temp - for more information on global.end and what it does refer to [[Closing NEOSYS services]]&lt;br /&gt;
# If the above didn&#039;t fix the problem and NEOSYS still does not start, do a windows search for the entire NEOSYS folder for *.end (i.e. any file ending with .end extension). You may find a (databasecode).end file in D:\neosys\neosys folder which is created by the NEOSYS program during backup at 1 am and later on removed automatically. In this case NEOSYS program might have crashed during the backup and left this file behind. (databasecode).end files prevent other other NEOSYS processes starting up on the database while exclusive processes (like backup) are being done.&lt;br /&gt;
&lt;br /&gt;
In case the above didn&#039;t fix the problem then escalate to the programmer immediately.&lt;br /&gt;
&lt;br /&gt;
== Handling Change Backup message if the client does not use a USB backup device ==&lt;br /&gt;
DO *NOT* FOLLOW THIS PROCEDURE SINCE IS IT IS TOTALLY UNACCEPTABLE FOR NEOSYS TO SEND OUT A &amp;quot;BACKUP SUCCESS&amp;quot; MESSAGE WHEN THE BACKUP IS NOT BEING DONE PROPERLY. IN GENERAL, TAKING SHORT CUTS THAT MAKE THINGS APPEAR SATISFACTORY WHEN THEY ARE NOT IS VERY POOR POLICY.&lt;br /&gt;
&lt;br /&gt;
IF THE CLIENT IS BACKING UP TO A NON-REMOVABLE DESTINATION THEN EITHER 1. LIVE WITH THE FAILURE MESSAGE OR 2. SUPPRESS THE BACKUP ENTIRELY IN WHICH CASE NO BACKUPS ARE BEING DONE AND PROBABLY THIS WILL SHOW ON NEOSYS PROACTIVE WARNING SYSTEMS LIKE NAGIOS.&lt;br /&gt;
&lt;br /&gt;
# Basically most of the client use USB for Neosys server but there are some clients who do not use USB but save their backups in hard drive. &lt;br /&gt;
# As we know that backup take place in Data.bak folder but it do a backup only for a week in a single USB. Over here client do not use USB but save their backup in hard drive in Data.bak folder, once the week is over  it will again give Change backup message.  &lt;br /&gt;
# In this case rename the Data.bak folder to Data1.bak this is done because system read only Data.bak folder as it is configured in the system. When you rename Data.bak to Data1.bak it automatically create a new folder Data.bak in Backup drive.&lt;br /&gt;
# This process is done so that the backup should not fail then next day morning and backups are done in Data.bak folder.&lt;br /&gt;
# In the third week we will again see the same message Chang backup USB message so you need to rename Data.bak folder to Data2.bak&lt;br /&gt;
# But in fourth week you rename the Data1.bak to Data.bak and change the Data2.bak to Data1.bak and Data.bak to Data2.bak &lt;br /&gt;
# Keep only three folders and Data.bak, Data1.bak, Data2.bak and keep on renaming these folders every week as shown above.&lt;br /&gt;
&lt;br /&gt;
== Closing processes that are not visible on the desktop or hidden ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on restart and no one has logged into the server. In this case it would be hidden. Secondly in the case of Windows 2008, the processes always are hidden.&lt;br /&gt;
&lt;br /&gt;
In these cases whenever there is a hung NEOSYS process - due to many reasons for eg low memory. In this case you should close all processes using the global.end method and then from the task manager kill any NTVDM processes and then restart NEOSYS. This should be done within 30 seconds from using the global.end method to avoid any inconvenience to the users. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS not updating NAGIOS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
You notice a problem on NAGIOS indicating that &#039;&#039;&#039;&#039;&#039;NEOSYS not checked in&#039;&#039;&#039; on a particular client server.&lt;br /&gt;
&lt;br /&gt;
=== Possible Causes &amp;amp; Solutions ===&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process is &#039;&#039;&#039;NOT&#039;&#039;&#039; running on the server====&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS process and wait for 10 mins for NEOSYS to check into NAGIOS.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process &#039;&#039;&#039;is&#039;&#039;&#039; running on the server but still cannot connect to NAGIOS====&lt;br /&gt;
&lt;br /&gt;
NEOSYS connects to NAGIOS using http. NEOSYS automatically detects and uses any http proxy configuration configured in Internet Explorer. If Internet Explorer can reach the internet then NEOSYS should be able to update to NAGIOS via the same proxy.&lt;br /&gt;
&lt;br /&gt;
First check if Internet Explorer can reach NAGIOS.&lt;br /&gt;
&lt;br /&gt;
If you are asked to login then the Internet Explorer is working OK. You do not need to login. Just cancel and move on to the next step.&lt;br /&gt;
&lt;br /&gt;
 http://monitor.neosys.com&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CANNOT connect to NAGIOS then resolving that fundamental issue will probably solve the NAGIOS connection issue too.&lt;br /&gt;
&lt;br /&gt;
View the Internet Explorer proxy configuration as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:ieproxy.png]]&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CAN connect to NAGIOS then check if there is an issue with NEOSYS&#039;s http proxy server configuration as follows:&lt;br /&gt;
&lt;br /&gt;
#Search for &#039;&#039;&#039;UPDATE.$WG&#039;&#039;&#039; file located in the neosys\neosys. folder and open it using notepad or wordpad.&lt;br /&gt;
#You should find a message similar to the following:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to 192.168.100.145:8080 failed: No such file or directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where the above appears to be some non-functional http proxy server ip/port number and is not the expected nagios server ip number.&lt;br /&gt;
&#039;&#039;&#039;A windows proxy command shows the same ip and port:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On Windows 2003/XP&lt;br /&gt;
&lt;br /&gt;
 proxycfg&lt;br /&gt;
&lt;br /&gt;
On Windows 2008/Win7&lt;br /&gt;
&lt;br /&gt;
 NetSH WinHTTP import Proxy ie&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Microsoft (R) WinHTTP Default Proxy Configuration Tool&lt;br /&gt;
Copyright (c) Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Current WinHTTP proxy settings under:&lt;br /&gt;
  HKEY_LOCAL_MACHINE\&lt;br /&gt;
    SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\&lt;br /&gt;
      WinHttpSettings :&lt;br /&gt;
&lt;br /&gt;
    Proxy Server(s) :  192.168.100.145:8080&lt;br /&gt;
    Bypass List     :  192.168.*.*;localhost;&amp;lt;local&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 1 - Remove the above setting to create a direct connection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#To remove the registry entries that ProxyCfg.exe creates,you must delete the WinHttpSettings value from the following registry key:&amp;lt;br&amp;gt;&amp;lt;PRE&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings&amp;lt;/PRE&amp;gt;&lt;br /&gt;
#After you do the above, confirm that the proxy details are deleted by running the proxycfg command &amp;lt;BR&amp;gt;&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2 - Configure a functioning proxy ip/port number&#039;&#039;&#039;&lt;br /&gt;
#Use the proxycfg command to enter a working proxy ip/port number/exclusion list: http://msdn.microsoft.com/en-us/library/aa384069%28VS.85%29.aspx&lt;br /&gt;
#After you do the above, confirm that the new proxy details are working by running the proxycfg command again&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; Note: Please refer to the link before you restart NEOSYS processes [[http://techwiki.neosys.com/index.php/Closing_NEOSYS_services#CLOSING_NEOSYS_SERVICES|Closing Hidden Processes]] &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “page not found” when downloading some file types after uploading them successfully ==&lt;br /&gt;
=== One by One ===&lt;br /&gt;
&lt;br /&gt;
Windows web server will not download file types that it is unaware of. You can enable the download of new file types one by one as follows.&lt;br /&gt;
&lt;br /&gt;
This process is tedious and error-prone if you have to add many type.&lt;br /&gt;
&lt;br /&gt;
#Computer Management&lt;br /&gt;
#Services and Applications&lt;br /&gt;
#IIS properties&lt;br /&gt;
#Mime Types&lt;br /&gt;
#Add&lt;br /&gt;
&lt;br /&gt;
=== Many ===&lt;br /&gt;
&lt;br /&gt;
Window Server 2003 is unaware of all the Office 2007+ file types. To add all Office 2007+ file types at once do the following:&lt;br /&gt;
&lt;br /&gt;
Stop IIS&lt;br /&gt;
&lt;br /&gt;
 iisreset /stop&lt;br /&gt;
&lt;br /&gt;
Open the list of mime types&lt;br /&gt;
&lt;br /&gt;
*Start, Run, notepad C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;br /&gt;
&lt;br /&gt;
Search the file for “xlsx” and quit the editor if already inserted.&lt;br /&gt;
&lt;br /&gt;
Otherwise, find the following line,&lt;br /&gt;
&lt;br /&gt;
  .xml,text/xml&lt;br /&gt;
&lt;br /&gt;
and insert after that line the following lines. They do not need to be indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.docm,application/vnd.ms-word.document.macroEnabled.12&lt;br /&gt;
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;br /&gt;
.dotm,application/vnd.ms-word.template.macroEnabled.12&lt;br /&gt;
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;br /&gt;
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12&lt;br /&gt;
.potx,application/vnd.openxmlformats-officedocument.presentationml.template&lt;br /&gt;
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;br /&gt;
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;br /&gt;
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;br /&gt;
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;br /&gt;
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;br /&gt;
.xlam,application/vnd.ms-excel.addin.macroEnabled.12&lt;br /&gt;
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;br /&gt;
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12&lt;br /&gt;
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;br /&gt;
.xltm,application/vnd.ms-excel.template.macroEnabled.12&lt;br /&gt;
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file with File and Exit&lt;br /&gt;
&lt;br /&gt;
Restart IIS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Handling Neosys Automatic Upgrade Error Messages ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
We will receive an email from the NEOSYS client installation with the following message:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;UPGRADEN.EXE&amp;quot; does not have expected exe MZ signature&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
This message is a note that the NEOSYS automatic update procedure failed to download an upgrade file correctly.&lt;br /&gt;
This happens sometimes due to network issues but can be ignored because the file will be probably be correctly downloaded on the next automatic update check.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This message is only informative to help with any problem with the automatic upgrade procedure and may be removed in a later version of neosys (currently Oct 2012)&lt;br /&gt;
&lt;br /&gt;
== Testing https connection ==&lt;br /&gt;
&lt;br /&gt;
The following procedure tests that the https server is operational and not blocked by firewall etc. It does not detect certificate errors.&lt;br /&gt;
&lt;br /&gt;
From a windows command prompt use the following telnet command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet clientname.hosts.neosys.com 4430&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#4430 is the usual NEOSYS http port but replace it by whatever port is actually used for NEOSYS https on the system being tested. If there are multiple https installations on a particular server then different ports are probably used&lt;br /&gt;
#Replace clientname.hosts.neosys.com with the normal https login domain name of the client for whom we want to check the https service&lt;br /&gt;
&lt;br /&gt;
Normal behavior is that it should open a black screen. Pressing Enter or any key returns the _ character. (Close the window using the [X] since there is no keyboard command to do so)&lt;br /&gt;
&lt;br /&gt;
Hanging means that there is some connectivity issue (firewall/ip/server not running/https not installed etc)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;quot;page not found&amp;quot; error while using https ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#The https service stops working and gives &amp;quot;Page not found&amp;quot; error.&lt;br /&gt;
#The https connection tests fine using telnet (see article above)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Reinstall https using the usual procedure (currently using selfssl)&lt;br /&gt;
#Email clients, requesting to reinstall the new security certificate by following the procedure given at [http://userwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Resolving_HTTPS_certificate_error_when_logging_in_from_an_external_link Resolving https certificate error].&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;quot;QUICKDEX&amp;quot; on some files ==&lt;br /&gt;
&amp;quot;Quickdex&amp;quot; is a type of index that keeps an alphabetical order on small files. In some maintenance procedures you may be asked to &amp;quot;install Quickdex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example to add a quickdex to the UNITS file.&lt;br /&gt;
&lt;br /&gt;
Maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 DICT UNITS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=================Dictionary=================┐&lt;br /&gt;
│                                            │&lt;br /&gt;
│  File name      UNITS                      │&lt;br /&gt;
│  Field name     .........................  │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Dict type                                 │&lt;br /&gt;
│  Single/Multi                              │&lt;br /&gt;
│  Data type                                 │&lt;br /&gt;
│  Output format                             │&lt;br /&gt;
│  Validation patterns                       │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Position              Key part            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Column heading                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Justification     Display length          │&lt;br /&gt;
│  Description                               │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
L============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Shift+F3.&lt;br /&gt;
&lt;br /&gt;
If it says &amp;quot;Do you want to remove ...&amp;quot; then Quickdex has already been installed and you should not continue. Press Esc to cancel, then Esc to quit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[B202]==================================┐&lt;br /&gt;
│                                         │&lt;br /&gt;
│               &amp;quot;UNITS&amp;quot; has               │&lt;br /&gt;
│          &amp;quot;QUICKDEX&amp;quot; installed.          │&lt;br /&gt;
│                                         │&lt;br /&gt;
│ Do you want to remove &amp;quot;QUICKDEX&amp;quot;? [Y/N] │&lt;br /&gt;
│                                         │&lt;br /&gt;
│&amp;lt;Y                                      &amp;gt;│&lt;br /&gt;
L=========================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise it should say &amp;quot;Do you want to install ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W963]============================┐&lt;br /&gt;
│                                   │&lt;br /&gt;
│     Do you want to install a      │&lt;br /&gt;
│ Quickdex or Rightdex index? [Q/R] │&lt;br /&gt;
│                                   │&lt;br /&gt;
│&amp;lt;Q                                &amp;gt;│&lt;br /&gt;
L===================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It should then say &amp;quot;Do you want to update ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W901]========================================┐&lt;br /&gt;
│                                               │&lt;br /&gt;
│           The &amp;quot;UNITS&amp;quot; file has had            │&lt;br /&gt;
│ the &amp;quot;QUICKDEX&amp;quot; modifying filing system added. │&lt;br /&gt;
│        There are 0 records in &amp;quot;UNITS&amp;quot;.        │&lt;br /&gt;
│                                               │&lt;br /&gt;
│    Do you want to update &amp;quot;QUICKDEX&amp;quot;? [Y/N]    │&lt;br /&gt;
│                                               │&lt;br /&gt;
│&amp;lt;Y                                            &amp;gt;│&lt;br /&gt;
L===============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards it should return to the initial screen. Press Esc to quit.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS smtp server failure ==&lt;br /&gt;
In case the neosys smtp server fails then we can just use the client&#039;s smtp server.&lt;br /&gt;
&lt;br /&gt;
The following information is required from the client&#039;s smtp server configuration:&lt;br /&gt;
#hostname&lt;br /&gt;
#username&lt;br /&gt;
#password&lt;br /&gt;
#port no. (most likely = 25)&lt;br /&gt;
&lt;br /&gt;
These details should be entered in the &#039;&#039;&#039;System Configuration File&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[image:SYSCFGFILE-SMTP.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Strange characters in maintenance mode ==&lt;br /&gt;
While in Maintenance mode, pressing keys on keyboard gives strange characters. Even Enter and Esc don’t work. &lt;br /&gt;
&lt;br /&gt;
This problem has been seen using RDP on:&lt;br /&gt;
*Window Server 2003 Web Edition&lt;br /&gt;
*Windows Server 2003 R2 SP2&lt;br /&gt;
&lt;br /&gt;
[[image:strangecharmaint.jpg]] &lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
#Go to Windows -&amp;gt; control panel&lt;br /&gt;
#Go to Regional and Language Options &lt;br /&gt;
#Click on Languages tab then click on Details &amp;lt;br&amp;gt; [[image:lang1.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Settings Tab and Change default input language to English (United States)&amp;lt;br&amp;gt;(or perhaps something else depending on rdp keyboard) &amp;lt;br&amp;gt; [[image:lang2.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NEOSYS processes do not start after Windows Update  ==&lt;br /&gt;
&lt;br /&gt;
Servers with Windows 2008 will not start the NEOSYS processes after Windows update. The user will have to be log into the server to start the processes.&lt;br /&gt;
&lt;br /&gt;
If one gets this message on the Schedule Task &amp;quot; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exit &amp;quot;.&lt;br /&gt;
Then they should tick the options Run whether user is logged on or not and Run with highest privileges in General settings of the Task.  &lt;br /&gt;
&lt;br /&gt;
[[image:sti.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Network Outages reflected in Nagios due to reassigning of router name or IP address ==&lt;br /&gt;
Nagios displays errors if a router name or the ip address it is monitoring have been reassigned. &lt;br /&gt;
&lt;br /&gt;
We can resolve this issue by trying to find the ISP router ip address just before the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
Steps:-&lt;br /&gt;
#Login to Nagios&lt;br /&gt;
#Click on Tactical Overview -&amp;gt; Network Outages and click on Blocking Outages to view &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-00.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You will now see the host/ISP which is down. Click on the status map icon to identify the host associated with the ISP, as shown below: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-01.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#From the Network Map displayed, identify the host associated with the ISP. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-02.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#If you already know the ip address of the host then skip to next step else, in Nagios, click on Host Detail, then on the hostname identified earlier and From the Host Details shown, save the host url. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-03.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-04.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Log onto www.network-tools.com:&lt;br /&gt;
#*Select Trace&lt;br /&gt;
#*Enter the host&#039;s ip address if already known or host url&lt;br /&gt;
#*Click on Go &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-05.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#The trace route should complete successfully revealing the IP address of the ISP just before the NEOSYS server. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-06.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You can now login to zoneedit and update the ip address of the host.&lt;br /&gt;
#Check Nagios.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NEOSYS remote support port forwarding ==&lt;br /&gt;
This assumes that you have already “port forwarded” tcp port 19580 from your public internet router to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
=== Tst 0 - Check if SSH is working on the NEOSYS Server ===&lt;br /&gt;
Type in the following command in command prompt:&lt;br /&gt;
 telnet 127.0.0.1 19580&lt;br /&gt;
&lt;br /&gt;
IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Test 1 - Check if SSH is basically working on NEOSYS server over the LAN ===&lt;br /&gt;
You must know and use the NEOSYS SERVER LAN IP to do this.&lt;br /&gt;
&lt;br /&gt;
 telnet ???.???.???.??? 19580&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-01.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you have the WRONG SERVER LAN IP or NEOSYS server SSH is NOT working then it will hang for about 15 seconds and then say “Could not open connection to host …”&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-02.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
OR IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to Exit&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-04.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test 2 - Check if can connect to the NEOSYS ssh from OUTSIDE the office  ===&lt;br /&gt;
From any internet connected computer OUTSIDE the office test if you can connect to NEOSYS ssh service. You cannot do this test from inside the office.&lt;br /&gt;
&lt;br /&gt;
You need to know the public ip or domain name of the router. If the router IP is dynamic then NEOSYS sets up dynamic name server so instead of a static ip number you will have a domain name something like clientxyz.redirectme.net.&lt;br /&gt;
&lt;br /&gt;
Enter the command .. using YOUR public internet IP number (NOT the LAN ip number) or the dynamic domain name.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-05.jpg]]  &lt;br /&gt;
&lt;br /&gt;
If everything is working OK you will get a black screen as follows. You will NOT get the “SSH-2.0-OpenSSH-4.7” banner” because NEOSYS ssh remote support is restricted to connect ONLY from LAN ip nos and NEOSYS office ip nos.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-06.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you press Enter a few times then the cursor will just go down. You have click the [X] to close the window.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-07.jpg]]  &lt;br /&gt;
&lt;br /&gt;
=== Test 3 - Check that the ssh connection from step 2 was rejected  ===&lt;br /&gt;
On the NEOSYS server, check the Windows Application log to verify that an SSH connection was rejected.&lt;br /&gt;
&lt;br /&gt;
The rejected ip number will be of the system outside the office that you performed the test from.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Sample Email: Solving port 19580 port forwarding issues ===&lt;br /&gt;
&lt;br /&gt;
Some IT people know how to trouble shoot port forwarding issues but others are more just power users who can configure a home router. If the IT person is in the second category then it is quicker for NEOSYS support to offer to configure their router from the NEOSYS server using Teamviewer. Here is a letter advising a more skilled person to check connections using telnet which is a low level test.&lt;br /&gt;
&lt;br /&gt;
You can usually determine the NEOSYS server LAN ip number from nagios. If so then adjust the email text appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear xyz,&lt;br /&gt;
&lt;br /&gt;
There is no connection from the internet via your router to the NEOSYS server because when we do the following:&lt;br /&gt;
&lt;br /&gt;
 telnet CLIENTNAME.support.neosys.com 19580&lt;br /&gt;
&lt;br /&gt;
We get no connection. Normally it should connect and presents a black screen  (saying SSH something after pressing Enter) which we close.&lt;br /&gt;
&lt;br /&gt;
Please check that you can connect to the NEOSYS server internally by using the NEOSYS server IP address in the following command on any&lt;br /&gt;
computer in your LAN.&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.?.? 19580&lt;br /&gt;
&lt;br /&gt;
If you can connect to the NEOSYS server internally then please check port forwarding.&lt;br /&gt;
&lt;br /&gt;
1. Has your router ip changed?&lt;br /&gt;
2. Has your server’s lan ip changed and are you forwarding to the correct LAN ip?&lt;br /&gt;
3. Is the configuration really correct?&lt;br /&gt;
&lt;br /&gt;
For further information, see http://techwiki.neosys.com/index.php&lt;br /&gt;
/Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding&lt;br /&gt;
&lt;br /&gt;
Until this is resolved we cannot resolve some types of user support issues.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “Cant login … INVALID DATA PATH … permission denied” ==&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
[[image:error-invalid-data-path-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error Text:&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 Cannot login because:&lt;br /&gt;
 ERROR: INVALID DATA PATH&lt;br /&gt;
 “D:\HOSTS\HOSTNAME\DATA\HOSTNAME\~8746345.1$” Permission Denied&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
When installing NEOSYS on an existing “non-clean” Windows installation, the standard NEOSYS installation procedure can result in failure to login if the standard windows folder permissions have been modified.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
The solution is to grant IIS permission to write in the \neosys\DATA folder and subfolders as follows:&lt;br /&gt;
#First add the IUSR_XXXXXXX user to the list of users. (XXXXXXXX is the server name and therefore varies per server) as follows:&lt;br /&gt;
#*Right Click on DATA Folder and click on Properties&lt;br /&gt;
#*Click on Security Tab -&amp;gt; Add -&amp;gt; Advanced&lt;br /&gt;
#*Click on Find Now, Select the IUSR_XXXXXXX user and Click on OK&amp;lt;br&amp;gt;[[image:error-invalid-data-path-2.jpg]]&amp;lt;br&amp;gt;[[image:error-invalid-data-path-3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Second, for the newly added IUSR (IIS user) change the permissions as follows:&lt;br /&gt;
#*&#039;&#039;&#039;REMOVE&#039;&#039;&#039; the read and execute permission (for security, IIS should be unable to execute things that it might have uploaded)&lt;br /&gt;
#*&#039;&#039;&#039;ADD&#039;&#039;&#039; the write permission &amp;lt;br&amp;gt;[[image:error-invalid-data-path-4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Login should now be possible.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1084</id>
		<title>Handling damaged files</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1084"/>
		<updated>2012-07-04T12:59:07Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symptoms ==&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;A Damaged file has been found..... ((the rest of this message to be completed)) &lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : BOOKING.TEXTS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
== Cause ==&lt;br /&gt;
Rare but nasty problem on server 99% caused by power failure, killing NEOSYS or server hardware or operating system failure.&lt;br /&gt;
&lt;br /&gt;
*Did somebody kill NEOSYS processes to reboot the server or any other reason?&lt;br /&gt;
*Was there a power cut?&lt;br /&gt;
*Any expected or unexpected reboots in the server log? (see Event Viewer &amp;gt; System Log)&lt;br /&gt;
*Enough disk free space especially on servers not dedicated to NEOSYS?&lt;br /&gt;
*Third party software running on NEOSYS server?&lt;br /&gt;
*RAID installed on the server?&lt;br /&gt;
*Did windows update happen?&lt;br /&gt;
&lt;br /&gt;
== Solution==&lt;br /&gt;
&lt;br /&gt;
Damaged files, when detected, cause an immediate termination of the currently executing program/user request and a restart of the process is involved. Some damaged files are automatically fixed during restart. Although the process &amp;quot;restarts&amp;quot; it may be internally corrupted in some way and it is advisable to close it completely and start or allow another process to start automatically.&amp;lt;br&amp;gt;&lt;br /&gt;
However, the solution always depends on the cause and usually often requires aggressive interrogation to discover the cause.&lt;br /&gt;
&lt;br /&gt;
Guidelines:&lt;br /&gt;
&lt;br /&gt;
#Identify the cause of the damaged file&lt;br /&gt;
#Depending on the type of damaged file follow the procedures mentioned below to handle Damaged Files:&lt;br /&gt;
#*[[Handling_damaged_files#Files_that_are_automatically_fixed|Damaged Files that are Automatically fixed]]&lt;br /&gt;
#*Damaged Files that Need fixing&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_file_that_have_a_process_to_recreate_them| Damaged Files that have a process to Recreate them]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_index_files_.28names_starting_with_.21.29| Damaged Index Files]]&lt;br /&gt;
#*#[[Handling_damaged_files#Fixing_damaged_files_that_have_no_process_for_recreating_them|Fixing damaged files that have no process for recreating them]]&lt;br /&gt;
#*[[ Handling_damaged_files#Dealing_with_damaged_files_that_cannot_be_fixed| Damaged Files that Cannot be fixed]]&lt;br /&gt;
#Verify if the damaged file is fixed in the database by following instructions at [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Recovery==&lt;br /&gt;
&lt;br /&gt;
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work.&lt;br /&gt;
&lt;br /&gt;
See the following sections how to patch the damaged files.&lt;br /&gt;
&lt;br /&gt;
== Files that are automatically fixed ==&lt;br /&gt;
&lt;br /&gt;
*LISTS&lt;br /&gt;
*LOCKS&lt;br /&gt;
*!INDEXING&lt;br /&gt;
&lt;br /&gt;
The above files are automatically checked for corruption (and initialised to empty if so) when you &lt;br /&gt;
startup a NEOSYS process and do not require any manual intervention apart from locating and eliminating the initial cause of the damage.&lt;br /&gt;
&lt;br /&gt;
If the !INDEXING file was damaged then you should also do REINDEXALL to reinstate any possibly missing index entries, but since this will take a long time&lt;br /&gt;
you should do this when everybody is off the system in the evening probably. A few missing index entries may only mean some records missing from some reports which may or may not be seriously inconvenient. It is a temporary file that should not hold any records for longer than it takes to update the various indexes immediately when the user saves any document.&lt;br /&gt;
&lt;br /&gt;
Each process has its own LISTS file, so damage is limited to one process for the LISTS file. The process number can be seen in the error message. for example:&lt;br /&gt;
&lt;br /&gt;
 Process=7&lt;br /&gt;
&lt;br /&gt;
You can also see the process number on the server screen. For example here is a process 2.&lt;br /&gt;
&lt;br /&gt;
 13:17:31 TESTDB NEOS0002 0 Listening 7 hours, 49 mins ...&lt;br /&gt;
&lt;br /&gt;
The LISTS file is a temporary file for sorting records into order for reports, popups etc. Therefore any damage usually causes no real inconvenience apart from the failed report or popup on which the user might receive the &amp;quot;damaged LISTS file&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
The error message would appear as follows :&lt;br /&gt;
&lt;br /&gt;
 SYSTEM ERROR:&lt;br /&gt;
 An internal file LISTS was found&lt;br /&gt;
 to be damaged and has been patched.&lt;br /&gt;
 INFORM YOUR TECHNICAL SUPPORT&amp;lt;br&amp;gt;&lt;br /&gt;
 SOME DATA HAS PROBABLY BEEN LOST&lt;br /&gt;
 AND THE NEOSYS SYSTEM MAY MALFUNCTION&amp;lt;br&amp;gt;&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
The error could also appear as follows :&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : LISTS&lt;br /&gt;
 Group # : 00000014&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : STATISTICS&lt;br /&gt;
 Group # : 00000005&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 114 files checked.&lt;br /&gt;
 Failed with 1 error&lt;br /&gt;
 !!!DANGER!!!&lt;br /&gt;
 !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
 !!!BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note - &#039;&#039; Statistics contains info about user usage as per support menu so loss of data is not critical and it will be rebuilt automatically&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We might also get errors related to Temporary Files as follows:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
DO NOT CONTINUE USING THE SYSTEM!&lt;br /&gt;
&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : MATDEL_MEDIALIN_3&lt;br /&gt;
 Group # : 13369375&lt;br /&gt;
 Wrong Overflow frame linked to group.&lt;br /&gt;
&lt;br /&gt;
Server=NEOSYS-SERVER&lt;br /&gt;
Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
Version=11:26:27  26 JUL 2010&lt;br /&gt;
Database=23BF2931 MEDIALIN&lt;br /&gt;
Process=3&lt;br /&gt;
Client=100_100_100_77&lt;br /&gt;
User=HAMADA&lt;br /&gt;
Request=MEDIADIARY&lt;br /&gt;
@Id=&lt;br /&gt;
Data=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since these are temporary files, we need not use FIXFILE. They get cleared automatically.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged file that have a process to recreate them ==&lt;br /&gt;
&lt;br /&gt;
Below files can be recreated from the maintenance mode.&lt;br /&gt;
&lt;br /&gt;
ADS file can be recreated with F5 CREATEADS&lt;br /&gt;
&lt;br /&gt;
ANALYSIS file can be recreated with F5 CREATEANALYSIS&lt;br /&gt;
&lt;br /&gt;
BRANDS files can be recreated with F5 CREATEBRANDS&lt;br /&gt;
&lt;br /&gt;
If the file is actually damaged it might be necessary to initialise it first using CLEARFILE filename.&lt;br /&gt;
&lt;br /&gt;
The following is an example of the error in the ADS File at the time of backup.&lt;br /&gt;
&lt;br /&gt;
  Group Format Error:&lt;br /&gt;
  OS File : ADS&lt;br /&gt;
  Group # : 00009543&lt;br /&gt;
  Record length incorrect or frame linkage error.&lt;br /&gt;
  217 files checked.&lt;br /&gt;
  Failed with 1 errors&lt;br /&gt;
  !!! DANGER !!!&lt;br /&gt;
  !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
  !!! BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
  Error while writing data.&lt;br /&gt;
  You have attempted to write to a read-only file.&lt;br /&gt;
                      - or -&lt;br /&gt;
  access to the file has been denied by the operating system.&lt;br /&gt;
  (operating system file name: &amp;quot;ADS&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Explanation: The last four lines are very rare and can be seen with the above error messages in the backup email.  The above message indicates that some external application is trying to access the backup files at the time of backup.&lt;br /&gt;
&lt;br /&gt;
Before doing the solution below, please check the number of damaged files on the database by running CHK.FILES in maintenance mode. [CHK.FILES can be done when users are online]&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Stop all the processes before doing the below procedure. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions)&lt;br /&gt;
&lt;br /&gt;
Procedure to run CREATEADS is as under &lt;br /&gt;
&lt;br /&gt;
Login to maintenance&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 CREATEXXXX&lt;br /&gt;
&lt;br /&gt;
(XXXX = ADS, ANALYSIS OR BRANDS)&lt;br /&gt;
&lt;br /&gt;
Select the option appropriate option and start the procedure and hit ENTER&lt;br /&gt;
&lt;br /&gt;
To verify if the above is done successfully and check if the damage files is fixed in the database run CHK.FILES or CHK.FILES FILENAME (Recommended) from this link: [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged index files (names starting with !) ==&lt;br /&gt;
&lt;br /&gt;
Whilst backing up or using NEOSYS the following error message might appear:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;A Damaged file has been found.....&lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : !ADS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
#Ensure that no-one is using NEOSYS&lt;br /&gt;
#Log into NEOSYS on the server&lt;br /&gt;
#Press F5 to get a TCL command box&lt;br /&gt;
#Type REINDEXADS and press enter.&lt;br /&gt;
#Wait until it finishes and you get back to the command box&lt;br /&gt;
#Type OFF in the command box and you will quit NEOSYS.&lt;br /&gt;
&lt;br /&gt;
Other reindex commands are:&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;Note -&#039;&#039; You can save time when indexing very large files by indexing only selected indexes instead of all indexed for the file. You can select the field(s) that need to be reindexed from a list of indexed fields which REINDEX filename presents you after you enter the command.)&lt;br /&gt;
&lt;br /&gt;
*REINDEXACCOUNTS	recreates !ACCOUNTS, !BATCHES and !VOUCHERS&lt;br /&gt;
*REINDEXADDRESSES &lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXBOOKINGS	recreates !BOOKING.ORDERS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXINVS		recreates !INVOICES&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXPRODINVS	recreates !PRODUCTION.INVOICES&lt;br /&gt;
*REINDEXPRODORDERS	recreates !PRODUCTION.ORDERS&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
&lt;br /&gt;
REINDEXMEDIA does all the following&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXBOOKINGS&lt;br /&gt;
&lt;br /&gt;
REINDEXFILES does all the following&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
&lt;br /&gt;
REINDEXPRODUCTION does all the following&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXPRODORDERS&lt;br /&gt;
*REINDEXPRODINVS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
&lt;br /&gt;
REINDEXALL does all the following&lt;br /&gt;
*REINDEXMEDIA&lt;br /&gt;
*REINDEXPRODUCTION&lt;br /&gt;
*REINDEXFILES&lt;br /&gt;
*REINDEXINVS&lt;br /&gt;
*REINDEXACCOUNTS&lt;br /&gt;
*REINDEXADDRESSES&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged files that have no process for recreating them ==&lt;br /&gt;
&lt;br /&gt;
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files like &#039;&#039;LOG20xx&#039;&#039; can be “fixed” to prevent NEOSYS crashes as follows &amp;lt;i&amp;gt;but some records will most probably be lost&amp;lt;/i&amp;gt;. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;SHADOW&#039;&#039; is a type of log file that can lose some records without serious impact and can therefore can also be fixed with FIXFILE.&lt;br /&gt;
&lt;br /&gt;
FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down the processes for the dataset in question.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE -&#039;&#039; If there are multiple datasets running on the server. Shut down the particular dataset which has got the problem. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions). &lt;br /&gt;
&lt;br /&gt;
If you are trying to close processes during the day then please check if there are users that are actively working on that dataset in question. If yes, then please email the clients asking them to log off till the process is complete. If there are no users actively working then you may proceed to complete the fix quickly before users login so that users are not disturbed during their daily work.&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 FIXFILE filename&lt;br /&gt;
&lt;br /&gt;
(Select option 1 to update the file)&lt;br /&gt;
&lt;br /&gt;
In case you get any Overwrite messages – type YES, as these are the actual files being updated.&lt;br /&gt;
&lt;br /&gt;
The only alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact serial numbers of critical documents like orders, invoices, receipts and payments advices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using FIXFILE to repair corrupted files ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BEWARE:&#039;&#039;&#039; FIXFILE causes loss of data. If the data is critical then use of FIXFILE can be totally catastrophic without any warning. &lt;br /&gt;
Hence, in such situations it is advisable to talk to NEOSYS technical staff to see if they can provide any proper fix or provide any better comment about the impact of loss of data rather than implement FIXFILE directly.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; &lt;br /&gt;
# Using FIXFILE on some files is a guaranteed way to cause complete chaos for the users without them being aware of it until too late to do anything about it.&lt;br /&gt;
#Corrupt files will cause programs to abort every time they try to update that section of the file. Aborting programs causes possibly horrendous inconsistency in the database so it is important to stop all user activity and fix the corrupt file immediately.&lt;br /&gt;
#You can freely use FIXFILE on any file but it works by deleting any problematic data so cannot realistically be used on some files at all.&lt;br /&gt;
#FIXFILE cannot and does not recover any corrupted records therefore, for those files that have specific programs to rebuild them, FIXFILE is not the correct option.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Why use FIXFILE at all since it causes loss of data?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Many files do not have programs to rebuild them and for some of those files, using FIXFILE is a quick way to get the system back in operation BUT with missing records. Missing records causes various degrees of failure ranging from the odd document missing, totally misleading information like wrong account balances, or any kind of system failure.&lt;br /&gt;
#FIXFILE does not fix the consistency of information in the database. When the database is is being updated with a transaction, usually a series of files are updated for the one transaction. A damaged file causes the update program to abort in the middle of the series of updates. Therefore some of the updates are done and the remaining updates are not done. This means that the data in the database (even after fixing the corrupt file) is inconsistent.&lt;br /&gt;
#FIXFILE merely fixes the technical structure of the file so that any further program accesses to that portion of the file do not cause immediate program termination and consequent likely catastrophic database inconsistency.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;IMPORTANT :&#039;&#039;&#039; You must prevent anyone from accessing NEOSYS while FIXFILE is running.&lt;br /&gt;
&lt;br /&gt;
==== List of Files Impacted by FIXFILE ====&lt;br /&gt;
#&#039;&#039;&#039;USERS File :&#039;&#039;&#039; The main data of any lost records from the USERS file will be recreated any time the Authorisation File is saved, however only the information in the Authorisation File is recreated which means that all personal preferences, holiday records, login history etc will be lost.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Damaged DEFINITIONS file ===&lt;br /&gt;
 &lt;br /&gt;
==== Non-Solution ====&lt;br /&gt;
 &lt;br /&gt;
You will probably not be able to login if the DEFINITIONS FILE is damaged. You can press Alt+S and type EXECUTE to get a TCL command box but this still doesnt help because you cannot use FIXFILE on DEFINITIONS.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: DO NOT USE FIXFILE TO TRY AND FIX THE DEFINITIONS FILE.&lt;br /&gt;
 &lt;br /&gt;
DOUBLE CAUTION: IN CASE YOU DECIDE TO IGNORE THIS EXPECT ALL KINDS OF HORRIBLE PROBLEMS IN THE DATABASE REQUIRING A COMPLETE RESTORE FROM A GOOD BACKUP AFTER A FEW DAYS OF PAIN BECAUSE RANDOM OLD DATABASE UPGRADE/CONVERSIONS WILL BE PERFORMED *AGAIN* WITHOUT YOU KNOWING IT.&lt;br /&gt;
 &lt;br /&gt;
==== Partial Restore ====&lt;br /&gt;
 &lt;br /&gt;
You can copy recent DEFINITIONS.LK and DEFINITIONS.OV files from the DATA\datasetcode\GENERAL folder.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: All changes done in the Configuration File, Authorisation File, Users File and various other changes will be reverted to the date of the DEFINITIONS files being restored. If you are restoring from last nights backup or testdata then this will not be much but could cause serious confusion to people who have changed their passwords etc.&lt;br /&gt;
&lt;br /&gt;
==== Full Restore ====&lt;br /&gt;
&lt;br /&gt;
Restore from your latest backup losing all work done since that time and date.&lt;br /&gt;
&lt;br /&gt;
=== Preventing users from accessing NEOSYS in order to do maintenance or repairs ===&lt;br /&gt;
 &lt;br /&gt;
On most systems you can simply stop the NEOSYS processes. On other systems where NEOSYS processes are automatically started in response to requests from the web, you need to disable the autostart by one of the following methods&lt;br /&gt;
 &lt;br /&gt;
# Stop the autostart program/script&lt;br /&gt;
# Put a file called NET.CFG with a single line saying AUTOSTART=NO in the neosys\neosys folder&lt;br /&gt;
# Stop the IIS server&lt;br /&gt;
# Stop/Pause the particular web in question&lt;br /&gt;
&lt;br /&gt;
== Dealing with damaged files that cannot be fixed ==&lt;br /&gt;
&lt;br /&gt;
If programmers are unable to fix the damage in a reasonably period of time and the damage is caused due to matters beyond NEOSYS control such as non-dedicated servers and power failures then data must be restored and client advised why they are going to suffer loss of data.&lt;br /&gt;
 &lt;br /&gt;
THIS DOES NOT RELEASE NEOSYS SUPPORT STAFF FROM THE OBLIGATION TO PROACTIVELY INFORM THE CLIENT OF MEASURES TO PREVENT THE RECURRENCE OF THE EVENT.&lt;br /&gt;
&lt;br /&gt;
The following are the steps to follow:&lt;br /&gt;
# Ascertain the cause of the damage to the database by looking at the internal logs&lt;br /&gt;
# Create a new database from the damaged one as it will contain the up to date but damaged database.&lt;br /&gt;
# Restore the database from the backup media so that the database is in the last good known state. &lt;br /&gt;
# The client can see what work was done over the past couple of days from the damaged database and it will assist them to redo the work in the currently restored out of date main database.&lt;br /&gt;
# Next discuss with the client about the cause of the damage and (a) what to do to prevent the damage occurring again (b) to agree a procedure to perform a manual backup in case the automatic one is not performed for any reason overnight.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1083</id>
		<title>Troubleshooting NEOSYS Generally</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Generally&amp;diff=1083"/>
		<updated>2012-07-04T10:29:41Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* If NEOSYS processes are not visible on the server desktop */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Solving failure to start a NEOSYS server due to disk failure message ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
During a reboot process (which maybe due to a Windows update or even done by a support personnel) the NEOSYS server gets hung on the startup and shows a message &amp;quot;Boot Failure - Abort, Retry&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
=== Temporary solution ===&lt;br /&gt;
This typically happens due to the USB being plugged into the server and the boot sequence being wrong - i.e. the server trying to boot from the USB first and fails. The immediate solution would be to unplug the USB and ask the client to reboot the server again and upon successfully rebooting the system, plug the USB back again.&lt;br /&gt;
&lt;br /&gt;
=== Permanent solution ===&lt;br /&gt;
The above problem will occur every time the computer is rebooted, so you need to immediately talk to the IT Administrator of the client and ask them to rectify the boot sequence to make it boot first from the CD ROM, then the HDD and last the USB.&lt;br /&gt;
&amp;lt;BR&amp;gt;Allowing &amp;quot;Boot from USB&amp;quot; causes a severe risk of infection by boot sector viruses since the first infected USB device inserted WILL infect the server immediately as anti-virus programs are not active during boot.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS process hung due to “Abort, Retry, Fail” ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
The following messages may come on older versions of NEOSYS if there is a some problem with the USB media inserted for backup.&lt;br /&gt;
&lt;br /&gt;
[[image:usberror.jpg]]&lt;br /&gt;
&lt;br /&gt;
This results in “NEOSYS has not checked in” message on Nagios since it hangs during the monitoring update and locks all other processes from monitoring too.&lt;br /&gt;
&lt;br /&gt;
General failure writing drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Not read reading drive F&lt;br /&gt;
Abort, Retry, Fail?&lt;br /&gt;
&lt;br /&gt;
Pressing A or F results in the problem happening again in about a minute, perhaps on a different process.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Temporary solution is to do “Safely remove hardware” from the windows notification area. Using “Eject” from My Computer will not work.&lt;br /&gt;
&lt;br /&gt;
Permanent solution is to replace the defective USB memory stick. Sometime reformatting is sufficient.&lt;br /&gt;
&lt;br /&gt;
Upgrading NEOSYS will probably stop the defective media from causing NEOSYS to hang but the USB will still be useless for backup.&lt;br /&gt;
&lt;br /&gt;
== Solving &amp;quot;Read error in the operating system file&amp;quot; ==&lt;br /&gt;
=== Problem ===&lt;br /&gt;
Nagios reports a hung process and on the server a process has the following message popup.&lt;br /&gt;
&lt;br /&gt;
 Read error in the operating system file &amp;quot;..\DATA\PT0833\ACCOUNTS\REV20049&lt;br /&gt;
 The file does not exist or the filename is&lt;br /&gt;
 not valid for the operating system.&lt;br /&gt;
&lt;br /&gt;
[[Image:readerrorintheoperatingsystemfile.png]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Some non-NEOSYS program is directly accessing the NEOSYS database files while NEOSYS processes are running and using the files as well.&lt;br /&gt;
&lt;br /&gt;
*Client IT staff using a backup program to perform backup without ensuring that NEOSYS processes are shutdown.&lt;br /&gt;
*A NEOSYS rsync process taking longer than expected due to new USB.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Kill the NEOSYS process eg with the X button. It is advisable NOT to let it run further while it cannot properly access one of its files.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
Remove the third party program or arrange for it to operate only while NEOSYS processes are shutdown eg from 3am-6am.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the &amp;quot;Database not available&amp;quot; error message == &lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
This error appears when you try to login to NEOSYS after you enter your username and password and click the Login button.&lt;br /&gt;
&lt;br /&gt;
[[image:database_unavailable.jpg]]&lt;br /&gt;
&lt;br /&gt;
Error message : &lt;br /&gt;
&lt;br /&gt;
 Cannot login because : &lt;br /&gt;
 Error :  The (database code) database is not available right now.&lt;br /&gt;
&lt;br /&gt;
=== Solution explained ===&lt;br /&gt;
# Determine if the processes are running. If they are running and you still get the same message that means that the proccesses have hung. Close them by hitting the X button on the window.&lt;br /&gt;
# If the processes are not visible, it is possible that they are running in the background and have hung for some reason. Check the windows task manager to see if any ‘ntvdm’ process is running. If so, use the End Process method to force close it.&lt;br /&gt;
# If there is no trace of any process running, that means the process probably did not start at the scheduled time. Refer to the &#039;Hung Process Reports&#039; to verify this claim. &lt;br /&gt;
# If the process had not hung, then the server might have restarted due to a power failure or a windows update and the administrator user had not logged in post the scheduled startup time of 6AM. To determine this cause, investigate in the Windows Event Viewer Log file.&lt;br /&gt;
# You can now start up the process by clicking on the respective desktop icons.&lt;br /&gt;
# Also check if the backup took place successfully or not. If not take a manual backup.&lt;br /&gt;
&lt;br /&gt;
== Handling damaged files ==&lt;br /&gt;
&lt;br /&gt;
[[Handling damaged files]]&lt;br /&gt;
&lt;br /&gt;
== Checking for corrupt database files ==&lt;br /&gt;
Login to NEOSYS Maintenance&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.FILES&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
 CHK.FILES filename&lt;br /&gt;
&lt;br /&gt;
== Assessing Database Size per File ==&lt;br /&gt;
In NEOSYS maintenance mode&lt;br /&gt;
 &lt;br /&gt;
 LIST FILES BY BY-DSND SIZE VOLUME.NAME SIZE&lt;br /&gt;
 &lt;br /&gt;
This will include all files not just those in the actual dataset in DATA\* folders.&lt;br /&gt;
&lt;br /&gt;
== Resolving slow speed ==&lt;br /&gt;
=== [[Benchmarking NEOSYS]] ===&lt;br /&gt;
=== Investigating CPU 100% using Windows Task Manager ===&lt;br /&gt;
Email, to support, a screen-shot of task manager APPLICATIONS, PROCESSES and PERFORMANCE screens MAXIMIZED TO SHOW AS MUCH AS POSSIBLE. &lt;br /&gt;
&lt;br /&gt;
(Sort the processes to show ntvdm, waiting.exe and high cpu% processes clearly)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Steps:&#039;&#039;&#039;&lt;br /&gt;
#Right Click on Windows Taskbar and click on Start Task Manager &amp;lt;br&amp;gt; [[image:starttaskmanager.jpg]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Processes and then click on CPU &amp;lt;br&amp;gt;&#039;&#039;&#039;Note - The HIGH cpu% processes which should usually be the &amp;quot;process&amp;quot; called &amp;quot;System Idle Process&amp;quot; &#039;&#039;&#039;&amp;lt;br&amp;gt;[[image:cpu100percent1.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on the Performance Tab &amp;lt;br&amp;gt; &#039;&#039;&#039;Note - PF Usage should typically be much less than Physical Memory otherwise there is insufficient real memory in the server to handle the load&#039;&#039;&#039; &amp;lt;br&amp;gt; [[image:cpu100percent3.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Click on Application Tab then Right Click on a NEOSYS Process and Click on Bring to Front &amp;lt;br&amp;gt;&#039;&#039;&#039;See what the NEOSYS Process is doing &amp;lt;br&amp;gt; [[image:cpu100percent2.jpg]] &amp;lt;br&amp;gt; &lt;br /&gt;
#Right Click on a NEOSYS Process and Click on Go to Processes &amp;lt;br&amp;gt;&#039;&#039;&#039;Note the cpu% ntvdm process &amp;lt;br&amp;gt;[[image:cpu100percent2_2.jpg]]&amp;lt;br&amp;gt;  &lt;br /&gt;
#Normally NEOSYS application screens say &amp;quot;LISTENING&amp;quot; in the bottom line and those applications should have very low cpu%&amp;lt;br&amp;gt;[[image:normalneosysprocess.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Look at the difference between the screen of running NEOSYS processes (applications actually) which are idle (listening for requests) and active (processing a request from a user)&lt;br /&gt;
#Note the number of cpus or cpu threads in the server from the performance screen graphics&amp;lt;br&amp;gt;[[image:performance-taskmgr-cputhread.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Take screen-shots of any and ALL hung or long running processes (NEOSYS application screens) and email them to support. Even small details on the screens and user names, the user names may give clues to what problem caused the hanging.A Typical Hung NEOSYS process will look like this: &amp;lt;br&amp;gt; [[image:hungneosysprocess.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Once all hung/long processes are closed then CPU should be low and not near 100%. If it is still 100% then check all high cpu% processes and send a screen-shot of processes sorted to show the high cpu% process names to support.&lt;br /&gt;
&lt;br /&gt;
=== Solving server CPU% is 100 and all users are extremely slow/stopped ===&lt;br /&gt;
==== Too few cpus/threads for the number of users ====&lt;br /&gt;
In Windows task manager normally, you should see one ntvdm.exe and one waiting.exe process per NEOSYS process (application). A standard installation has three NEOSYS processes per main database and plus one per test database. This is configured in Support Menu, Configuration File.&lt;br /&gt;
&lt;br /&gt;
If there are MORE ntvdm processes than you expect from the configuration file, then perhaps NEOSYS is auto starting new NEOSYS processes to try and cater for a high number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
If the number of concurrent NEOSYS processes significantly exceeds the number of cpus/hyperthreads available in the server then processing for everybody can become so slow for everybody and almost no work gets done.&lt;br /&gt;
&lt;br /&gt;
==== Solution ====&lt;br /&gt;
Stop NEOSYS creating new NEOSYS processes automatically. Create a text file with the first and only line as AUTOSTART=NO in the neosys\neosys folder something like this.&lt;br /&gt;
&lt;br /&gt;
notepad d:\neosys\neosys\NET.CFG&lt;br /&gt;
&lt;br /&gt;
AUTOSTART=NO&lt;br /&gt;
&lt;br /&gt;
== Handling failure and warning on nightly backup alerts ==&lt;br /&gt;
&lt;br /&gt;
[[Handling failure and warning messages on nightly backup alerts]]&lt;br /&gt;
&lt;br /&gt;
== Resolving permissions errors while logging in ==&lt;br /&gt;
 &lt;br /&gt;
=== Problem ===&lt;br /&gt;
 &lt;br /&gt;
While logging in, you get the following error message:&lt;br /&gt;
[[Image:login_error_message.jpg]]&lt;br /&gt;
 &lt;br /&gt;
=== Solution ===&lt;br /&gt;
 &lt;br /&gt;
Add the internet guest account to the security list of the data folder with the default permission of list/read/write&lt;br /&gt;
 &lt;br /&gt;
Make sure the read&amp;amp;execute permission is removed&lt;br /&gt;
[[Image:permissions_on_data.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;HTTP Error 500.0 - Internal Server Error&#039; while logging in on IE on a Windows Vista system ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
After configuring IIS on Windows Vista you will get this error message while trying to login into NEOSYS from Internet Explorer:&lt;br /&gt;
&lt;br /&gt;
 HTTP Error 500.0 - Internal Server Error&lt;br /&gt;
 Description: This application is running in an application pool that uses the Integrated .NET  &lt;br /&gt;
 mode. This is the preferred mode for running ASP.NET applications on the current and future &lt;br /&gt;
 version of IIS.&lt;br /&gt;
 &lt;br /&gt;
 In this mode, the application using client impersonation configured with &amp;lt;identity &lt;br /&gt;
 impersonate=&amp;quot;true&amp;quot; /&amp;gt; may not behave correctly. Client impersonation is not available in early &lt;br /&gt;
 ASP.NET request processing stages and may lead modules in those stages to execute with process &lt;br /&gt;
 identity instead.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
You can move the application to an application pool that uses the Classic .NET mode by using the following from a command line window (the window must be running as Administrator) &lt;br /&gt;
&lt;br /&gt;
 %systemroot%\system32\inetsrv\APPCMD.EXE set app &amp;quot;Default Web Site/neosys&amp;quot; /applicationPool:&amp;quot;Classic .NET AppPool&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Resolving the &#039;Class Not Registered&#039; error message while logging in ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
While logging into NEOSYS, you will get a popup window giving an error message saying &#039;Class Not Registered - Server Error&#039;. Typically, you will encounter this error with XP Pro IIS 5.1. As usual, there&#039;s way to solve it, however the root cause of this is still unknown.&lt;br /&gt;
&lt;br /&gt;
Anyway, you will get the proper message in the event log:&lt;br /&gt;
&lt;br /&gt;
 Event Type: Warning&lt;br /&gt;
 Event Source: W3SVC&lt;br /&gt;
 Event Category: None&lt;br /&gt;
 Event ID: 36&lt;br /&gt;
 Description: The server failed to load application &#039;/LM/W3SVC/1/ROOT/NEOSYS.&lt;br /&gt;
 The error was &#039;Class not registered&#039;. &lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
So, what do you do ? This problem is related to Component Services, and when you open Component Services MMC, you will most probably  get  Error Code 8004E00F COM + was unable to talk to Microsoft Distributed Transaction Coordinator. So, fix the COM+ services first by using the following KB from Microsoft (PRB: Cannot Expand &amp;quot;My Computer&amp;quot; in Component Services MMC Snap-In http://support.microsoft.com/?id=301919):&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, reinstall Component Services as follows: WARNING: &lt;br /&gt;
# Open registry editor, locate HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3, and then delete this key.  &lt;br /&gt;
# From the Start menu, point to Settings, click Control Panel, and then click Add/Remove Programs.  &lt;br /&gt;
# Click Add/Remove Windows Components. &lt;br /&gt;
# Proceed through the wizard, and accept all of the defaults (including IIS)&lt;br /&gt;
# Restart the computer.&lt;br /&gt;
&lt;br /&gt;
If the above didn&#039;t solve it, and you still receive the &#039;Class not registered&#039; error message, then you need to recreate the IIS packages in COM+, try&lt;br /&gt;
&lt;br /&gt;
# Delete IIS related package in Component Services MMC&lt;br /&gt;
# IIS In-Process Applications &lt;br /&gt;
# IIS Out-of-Process Pooled Applications &lt;br /&gt;
# IIS Utilities&lt;br /&gt;
&lt;br /&gt;
Next, if you still get the message, try following before re-install IIS if you can&#039;t find Distributed Transaction Coordinator in your Services console.&lt;br /&gt;
&lt;br /&gt;
Launch command prompt and run the following command.&lt;br /&gt;
# msdtc -install&lt;br /&gt;
# net start msdtc&lt;br /&gt;
&lt;br /&gt;
Then try re-install IIS.&lt;br /&gt;
&lt;br /&gt;
This should solve the problem&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enabling File Security option on Win XP Professional ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
In the Properties of any folders, the Security option does not show, hence you cannot modify the Read, Write options.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The solution would be to untick the &#039;Simple File Sharing&#039; option from  Tools &amp;gt; Folder Options &amp;gt; View:&lt;br /&gt;
[[Image:simplefilesharingoff.jpg]]&lt;br /&gt;
&lt;br /&gt;
== B703 Errors ==&lt;br /&gt;
&lt;br /&gt;
The B703 error is usually always related to something too big for NEOSYS to handle. &lt;br /&gt;
&lt;br /&gt;
These are the only B errors that NEOSYS cant always permanently prevent by fixing the software.&lt;br /&gt;
&lt;br /&gt;
== Internet Explorer Menu, View, Text Size doesnt change font size as expected ==&lt;br /&gt;
&lt;br /&gt;
Cause: This is because the font size is now user definable in NEOSYS and View, Text Size does not override predefined font sizes.&lt;br /&gt;
&lt;br /&gt;
Solution: If you are using Internet Explorer 7 you can scale the screen (including the font size  using ctrl + and ctrl - keyboard shortcuts or the font size button on the bottom right hand side of the window. &lt;br /&gt;
&lt;br /&gt;
You can adjust the font size on the User Details form when you login although this permanently applies to all forms not just the one that you are on.&lt;br /&gt;
&lt;br /&gt;
== Error on process window &amp;quot;Not enough string space - Out of Memory&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
‘RTP27’ Line 1. [B29] Not enough string space – Out of Memory.&lt;br /&gt;
&lt;br /&gt;
Not enough memory to execute Debugger; current program aborted.&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&lt;br /&gt;
[[Image:out_of_memory.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
Unknown perhaps related to some large document or report&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
Ask users for any hanging transactions.&lt;br /&gt;
None other than closing and starting another process&lt;br /&gt;
&lt;br /&gt;
== Uploaded jpg files fail to display in internet explorer ==&lt;br /&gt;
&lt;br /&gt;
Some large jpg files &amp;gt; 2Mb cannot be viewed in internet explorer despite being viewable in image preview, ms paint and other viewers/editors. It is not an issue caused by uploading or downloading the files.&lt;br /&gt;
&lt;br /&gt;
These file appear to have been created on Photoshop CS Macintosh and may be a special type of uncompressed jpg used for production quality files.&lt;br /&gt;
&lt;br /&gt;
=== Partial solution ===&lt;br /&gt;
Before uploading the files, open them in some editor like MS Paint (right click, edit) and save them. However this results in a loss of quality. Perhaps there is some program that can convert these files to a format understandable by Internet explorer without any loss of quality.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;quot;You have attempted to write to a read-only file&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
=== Message ===&lt;br /&gt;
&lt;br /&gt;
Error while writing data.&lt;br /&gt;
You have attempted to write to a read-only file.&lt;br /&gt;
- or -&lt;br /&gt;
access to the file has been denied by the operating system.&lt;br /&gt;
(operating system file name: &amp;quot;..\DATA\ADLINEC\ADAGENCY\REV76467.OV00012618&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
It is almost certainly due to some third party backup or other maintenance software opening the NEOSYS database files when it shouldn&#039;t e.g. badly configured third party backup scheduled to backup NEOSYS while NEOSYS is still running. Note that the exact filename varies each time.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
This can be a serious error that causes damaged files in NEOSYS especially if the filename ends in .OV. Use the usual methods of checking for damaged files e.g. do a backup which also looks for damaged files BUT DO NOT OVERWRITE THE LATEST BACKUP SINCE IT MAY BE REQUIRED for restoration. Then fix the damaged files using the usual methods e.g. by rebuilding/using&lt;br /&gt;
FIXFILE or restoring databases.&lt;br /&gt;
&lt;br /&gt;
=== Prevention ===&lt;br /&gt;
&lt;br /&gt;
Remove the third party backup or other maintenance software or reschedule it to run at a time that NEOSYS is shutdown. Removal of software may require hunting through the windows process list for unexpected programs running.&lt;br /&gt;
&lt;br /&gt;
== Resolving &amp;quot;Cannot backup/restore because PROCESS1 PROCESS2 (etc) is/are online&amp;quot; message ==&lt;br /&gt;
 &lt;br /&gt;
This can happen for a variety of reasons if all the NEOSYS processes fail to close down at backup time&lt;br /&gt;
 &lt;br /&gt;
# NEOSYS maintenance windows are left open.&lt;br /&gt;
# NEOSYS processes hang due to software error.&lt;br /&gt;
 &lt;br /&gt;
== How to kill hung NEOSYS processes ==&lt;br /&gt;
 &lt;br /&gt;
NOTE WELL: If you kill actively working NEOSYS processes (those which are &amp;quot;listening&amp;quot; and not hung/crashed) there is a reasonable chance that the database will be damaged and might need a restore losing possibly large amounts of work.&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are visible on the server desktop ====&lt;br /&gt;
 &lt;br /&gt;
Look for processes which don&#039;t have &amp;quot;Listening ...&amp;quot; on the last but one line. The times on the left hand side are frozen as at the time of the hang.&lt;br /&gt;
 &lt;br /&gt;
You can then click the X to kill the process and confirm that this is OK.&lt;br /&gt;
 &lt;br /&gt;
Example of a NEOSYS process that has hung due to a software error resulting in a failure to handle a complex query with a lot of brand codes.&lt;br /&gt;
&lt;br /&gt;
[[Image:hungprocess.jpg]]&lt;br /&gt;
 &lt;br /&gt;
==== If NEOSYS processes are not visible on the server desktop ====&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on computer restart and no one has logged into the server. In this case it would be running in the background. Secondly in the case of Windows 2008, the processes always are hidden. &lt;br /&gt;
&lt;br /&gt;
You can check if there are any hung processes from the NEOSYS Support Menu, List of Database Processes. &lt;br /&gt;
[[Image:databaseprocesseslist.jpg]]&lt;br /&gt;
&lt;br /&gt;
In this case you should follow the below instructions - however all of them need to be done within 30 seconds of starting the first instruction to avoid inconvenience to the users. It is recommend that you keep relevant windows open before proceeding with the same:&lt;br /&gt;
&lt;br /&gt;
#Shutdown NEOSYS by TEMPORARILY putting a file called GLOBAL.END in the parent directory of NEOSYS (if there is already a GLOBAL.END.TEMP file then rename it to GLOBAL.END). Leaving the file there would prevent NEOSYS from starting up again. Shutting down NEOSYS from the Support menu will not work because of the hung processes.&lt;br /&gt;
#Use Windows Task Manager to kill all the NTVDM processes - assuming that you have closed all the visible NEOSYS processes, then the NTVDM processes in the task manager would be the hung one.&lt;br /&gt;
#Delete GLOBAL.END or rename it to GLOBAL.END.TEMP&lt;br /&gt;
#Restart the processes back again. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
#*Restarting a process is not noticed by users.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
=== Temporary workarounds for hung NEOSYS processes ===&lt;br /&gt;
Until the error in the software is fixed users can often get their results by simplifying their requirements. For example select individual clients instead of selecting all the brands for a particular client. If the user has repeated his request (in forlorn hope that it would work finally) then the number of NEOSYS working NEOSYS processes will drop causing severe slowdown for other users and complete stop if all the NEOSYS processes hang.&lt;br /&gt;
&lt;br /&gt;
== How to fix a NEOSYS process which opens up in a notepad instead of Microsoft Windows Based Script Host (i.e. DOS window)==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS process (cmd file) might open up in a notepad, instead of the usual black colour DOS window. This can be fixed by the following:&lt;br /&gt;
&lt;br /&gt;
# Download and install the Windows Script 5.6/5.7 from the Microsoft Website&lt;br /&gt;
# Go to any folder, click on Tools &amp;gt; Folder Options &amp;gt; File Types and find the .JS and .JSE and change the default program to wscript.exe (from windows&amp;gt;system32)&lt;br /&gt;
&lt;br /&gt;
== Resolving a &#039;Could not start&#039; error on Scheduled Tasks in Windows Server 2000 SP4 ==&lt;br /&gt;
&lt;br /&gt;
This error occurs because of a change that is made to the data that is stored in the credentials database when you install Windows 2000 SP4. Hence installing SP4 causes the the data that is stored in the credentials database to get converted to an SP4-compatible format. A registry key is configured to indicate that the data has been converted to the SP4 format.&lt;br /&gt;
&lt;br /&gt;
Hence the Scheduled Tasks do not work sometimes. However the Scheduled Tasks works fine sometimes, but when you uninstall SP4, it does not work.&lt;br /&gt;
&lt;br /&gt;
The best solution is to:&lt;br /&gt;
&lt;br /&gt;
# Incase Scheduled Tasks do not work after installing SP4, then uninstall SP4 and it should be fine.&lt;br /&gt;
# Incase Scheduled Tasks works after installing SP4, and later after uninstalling SP4, it does not work, then install SP4 and it should be fine.&lt;br /&gt;
&lt;br /&gt;
== Checking for server or NEOSYS crashes ==&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS Maintenance Mode&lt;br /&gt;
#General Menu, Setup, Processes&lt;br /&gt;
#Select the dates and the option Detailed&lt;br /&gt;
 &lt;br /&gt;
This report shows a list of dates and times that NEOSYS logged in but did not log out properly.&lt;br /&gt;
 &lt;br /&gt;
Ignore the very latest entries since they represent the current NEOSYS processes. For example, if you have four NEOSYS processes running at the time that you get the report (including any in maintenance mode) then you can ignore the last four entries.&lt;br /&gt;
 &lt;br /&gt;
The date and time shows for each process that has failed to shutdown correctly when the process logged in. Versions of NEOSYS from January 2008 will also show the date and time that each crashed NEOSYS process was last active (heartbeat) so that the time of failure can be known.&lt;br /&gt;
 &lt;br /&gt;
If you see a bunch of NEOSYS processes all started up at around the same time but all failed to shutdown correctly then the cause will be a server failure - usually power failure.&lt;br /&gt;
 &lt;br /&gt;
Isolated one-off failures will be related to individual NEOSYS process crashes - most commonly caused by one of the following:&lt;br /&gt;
 &lt;br /&gt;
#NEOSYS hanging to due to software failure&lt;br /&gt;
#Manually exiting a NEOSYS process on the server either by pressing Ctrl+Alt+Del or clicking the &amp;quot;X&amp;quot; close icon/box and ignoring the warning&lt;br /&gt;
#Random server failures eg memory, disk etc&lt;br /&gt;
 &lt;br /&gt;
Example:&lt;br /&gt;
 &lt;br /&gt;
 LOGIN 22/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation &lt;br /&gt;
 LOGIN 23/12/2007 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:52 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 23/12/2007 08:53 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:00 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:01 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 06:02 NEOSYS SERVER ADAGENCY         Current workstation  &lt;br /&gt;
 LOGIN 8/1/2008 13:51 NEOSYS SERVER NEOSYS         Current user session  &lt;br /&gt;
&lt;br /&gt;
Interpretation:&lt;br /&gt;
 &lt;br /&gt;
The first four entries indicate that all four NEOSYS processes started at 06am were suddenly killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The next four entries indicate that NEOSYS was restarted at around 08:52 and all these processes were AGAIN killed probably by power failure&lt;br /&gt;
 &lt;br /&gt;
The last four entries can be ignored because there were four NEOSYS processes running at the time that the report was generated&lt;br /&gt;
&lt;br /&gt;
== Searching for word/number in the database files using maintenance mode ==&lt;br /&gt;
&lt;br /&gt;
You can search for any word/number in the database files of NEOSYS, using the following command line:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 FIND FILENAME WORDWITHOUTANYSPACES&lt;br /&gt;
 &lt;br /&gt;
 For eg:&lt;br /&gt;
 FIND CURRENCIES 1.1&lt;br /&gt;
 (here you are searching for the number 1.1 in the currencies file) You CANNOT search for a phrase ie include spaces like this.&lt;br /&gt;
 &lt;br /&gt;
 Or you can also type:&lt;br /&gt;
 FIND FILENAME &amp;lt;enter&amp;gt;&lt;br /&gt;
 and it will ask you what you want do to search. You can enter an exact phrase with spaces.&lt;br /&gt;
&lt;br /&gt;
Incase you do not know the filenames, you can enter the following command to see all the filenames in the system:&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 LF&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting the NTVDM Hard error when opening up NEOSYS processes ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears:&lt;br /&gt;
&lt;br /&gt;
[[Image:ntvdm.jpg]]&lt;br /&gt;
&lt;br /&gt;
 NTVDM encountered a hard error&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
This error is caused by missing or corrupt Windows system files (i.e. command.com, autoexec.nt and config.nt). The solution is to run a program called XP FIX which will reinstall these missing files. You can download it form http://www.visualtour.com/downloads/xp_fix.exe&lt;br /&gt;
&lt;br /&gt;
Sometimes even after running the XP FIX program the error still appears. Then you need to copy all the files under C:/windows/repair to C:/windows/system32 and in the autoexec.nt and config.nt put REM before any lines there which don&#039;t have it.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting a Service Unavailable message on Internet Explorer when opening up NEOSYS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
The following error message appears in Internet Explorer when you try to open up NEOSYS:&lt;br /&gt;
&lt;br /&gt;
 Service Unavailable&lt;br /&gt;
&lt;br /&gt;
=== Solution  ===&lt;br /&gt;
 &lt;br /&gt;
Open the IIS Manager, right click Web Sites and select properties:&lt;br /&gt;
[[Image:serviceunavailable1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Switch to the Service Tab and tick the &amp;quot;Run WWW Service in IIS 5.0 Isolation Mode&amp;quot;.&lt;br /&gt;
[[Image:serviceunavailable2.jpg]]&lt;br /&gt;
&lt;br /&gt;
You will be asked for Restart of IIS. Click yes to restart IIS. If you are not asked just restart IIS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Inspecting IIS log files ==&lt;br /&gt;
&lt;br /&gt;
At a windows command prompt:&lt;br /&gt;
&lt;br /&gt;
 c:&lt;br /&gt;
 cd \Windows\system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 %SystemDrive%&lt;br /&gt;
 cd %SystemRoot%&lt;br /&gt;
 cd system32\LogFiles\W3SVC1&lt;br /&gt;
&lt;br /&gt;
then (substituting the ip number you are interested in)&lt;br /&gt;
&lt;br /&gt;
 find &amp;quot;192.168.1.55&amp;quot; *|sort&amp;gt;temp.log&lt;br /&gt;
&lt;br /&gt;
Open temp.log in Excel and use Tools, Data, Text to Columns to split into columns using options &amp;quot;Delimited&amp;quot; and check split on Space.&lt;br /&gt;
&lt;br /&gt;
Autowidth all columns by clicking on the top left box just outside the data to the left of column A and above column 1 then double click the column separator to the right of column &amp;quot;A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note that times and dates are in UTC/GMT so you have to add/subtract your timezone offset to get local times.&lt;br /&gt;
&lt;br /&gt;
== Fixing NEOSYS processes that do not auto start / Recovering from incorrect advanced date or time ==&lt;br /&gt;
This solution is applicable to live database processes only. Test database processes don’t auto-start any other processes.&lt;br /&gt;
&lt;br /&gt;
=== Problem explained ===&lt;br /&gt;
After starting up the 1st process, the rest of the processes don&#039;t start up.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
The possible cause for this could be that the system date/time might have been changed - either manually or by the auto synchronization. Do the following checks in the sequence of order:&lt;br /&gt;
&lt;br /&gt;
# Check for any *.$* files (* after dollar sign should show a number, the highest being the latest one). If it shows OK, then proceed ahead.&lt;br /&gt;
# Check for any .end files and delete it to rename to .end.temp&lt;br /&gt;
# Check the System Event Viewer log for any 520 or 577 error message (refer http://128.175.24.251/forensics/timechange.htm). Also check for any out of sequence / ahead of today date or time.&lt;br /&gt;
# In case of no 520 or 577 error message, go to Administrative Tools &amp;gt; Local Security Policy &amp;gt; Local Policies &amp;gt; Audit Policy &amp;gt; Audit Privilege use - make sure that Success and Failure are selected under this (this will ensure that future changes to the date/time are recorded in the System Log).&lt;br /&gt;
# In NEOSYS maintenance mode - F5 ED PROCESSES %UPDATE% - and see what it says, incase of any text (only text, not numbers) there, that means that for sure the system date has been changed. To fix this, exit the editor by pressing the ESCAPE key and then type DELETE PROCESSES &amp;quot;%UPDATE%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Recognising and Solving Low Memory Problems ==&lt;br /&gt;
&lt;br /&gt;
Quick Note: Installing a server class operating system on a workstation class computer with the intention of NEOSYS serving a heavy load is likely to cause problems with low memory.&lt;br /&gt;
&lt;br /&gt;
Quick Fix: Disable *ALL* non-essential features in the power-on setup menu.&lt;br /&gt;
&lt;br /&gt;
=== Effects ===&lt;br /&gt;
&lt;br /&gt;
It is speculated but not proven that low memory may cause NEOSYS to fail by hanging, causing damaged files etc.&lt;br /&gt;
&lt;br /&gt;
=== Checking ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 MEMORY&lt;br /&gt;
&lt;br /&gt;
On server class machines it should say somewhere around 350Kb to 370Kb Free&lt;br /&gt;
&lt;br /&gt;
Some server class machines have around 330Kb and sometimes even less with no reported problems&lt;br /&gt;
&lt;br /&gt;
The actual effect of low memory is supposed to make NEOSYS slower and perhaps cause hanging and damaged files however this has not been proven in an specific case so far.&lt;br /&gt;
&lt;br /&gt;
On workstation class machines it may often say around 280Kb to 300Kb.&lt;br /&gt;
&lt;br /&gt;
=== Cause ===&lt;br /&gt;
&lt;br /&gt;
Although there is plenty of real memory in virtually all computers now, NEOSYS runs in the legacy 16 bit virtual memory space of a windows mode called NTVDM. This is limited to 1Mb plus 4Mb of EMS memory.&lt;br /&gt;
&lt;br /&gt;
The 1Mb memory space is shared with:&lt;br /&gt;
&lt;br /&gt;
#Various non-essential windows drivers which NEOSYS automatically disables them in autoexec.nt&lt;br /&gt;
#Various plug and play hardware device drivers for the various adapters in the computer like video, network adapters and various other items that NEOSYS is unable to disable.&lt;br /&gt;
&lt;br /&gt;
In a server class computer the hardware device drivers are usually minimally present in the 1Mb base memory and do not therefore DOESNT a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
In workstation class computers there are often many hardware device drivers present in the 1Mb base memory and this DOES causes a low memory situation for NEOSYS.&lt;br /&gt;
&lt;br /&gt;
When NEOSYS is installed on workstation class computers with XP there is usually not a heavy load expectation and therefore the low memory does not cause a problem.&lt;br /&gt;
&lt;br /&gt;
If Windows Server OS is installed on a workstation class computer NEOSYS may well be expected to serve a heavy load with limited amounts of memory.&lt;br /&gt;
&lt;br /&gt;
Workstation class computers: hardware drivers present and EMS is installed in low memory (0000-9FFF) causing low memory for NEOSYS and possible inability to &lt;br /&gt;
&lt;br /&gt;
Server class computers: Usually few hardware drivers are present in high part (A000-FFFF) of the 1Mb base memory and EMS is able to occupy the high memory leaving the low part (0000-9FFFF) of the 1Mb memory free for NEOSYS. You can find out how much memory is available to NEOSYS and whether EMS is occuping high or low memory using the following sections.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Low Memory ===&lt;br /&gt;
&lt;br /&gt;
Start, Run, notepad c:\windows\system32\autoexec.nt&lt;br /&gt;
&lt;br /&gt;
Every time NEOSYS starts it tries to make some changes as follow:&lt;br /&gt;
&lt;br /&gt;
#replaces all lines in C:/WINDOWS/SYSTEM32/AUTOEXEC.NT starting with &#039;lh &#039; to start with &#039;rem NEOSYS LH &#039; instead.&lt;br /&gt;
#changes the line in C:/WINDOWS/SYSTEM32/CONFIG.NT &amp;quot;files=...&amp;quot; to &amp;quot;FILES=200&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The replacement is case sensitive triggered on &#039;lh&#039; and &#039;files&#039; so if you manually edit the files and remove the rem or change the number of files and leave the LH and FILES in uppercase then NEOSYS will NOT make further changes. This allows you to do manual amendments to the files without NEOSYS overwriting them.&lt;br /&gt;
&lt;br /&gt;
Check that NEOSYS has successfully disabled all the drivers in the lines starting with LH.&lt;br /&gt;
&lt;br /&gt;
They should be commented out (prefixed) with REM or REM NEOSYS as follows.&lt;br /&gt;
&lt;br /&gt;
After making changes reopen NEOSYS in maintenance mode to use the MEMORY and WHO commands again.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
REM Install CD ROM extensions&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\mscdexnt.exe&lt;br /&gt;
&lt;br /&gt;
REM Install network redirector (load before dosx.exe)&lt;br /&gt;
REM NEOSYS LH %SystemRoot%\system32\redir&lt;br /&gt;
&lt;br /&gt;
REM Install DPMI support&lt;br /&gt;
REM NEOSYS LH %SYSTEMROOT%\SYSTEM32\DOSX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Allowing DOS programs that require DOSX to run on the same computer as NEOSYS ===&lt;br /&gt;
&lt;br /&gt;
The automatic commenting out DOSX by NEOSYS will prevent some other DOS-like programs from running. If NEOSYS is on dedicated server then there should be no other such programs to fail. However, if you must allow DOS-like programs to work as well as NEOSYS you can do the following configuration:&lt;br /&gt;
&lt;br /&gt;
#leave or restore the original AUTOEXEC.NT and CONFIG.NT files where they are&lt;br /&gt;
#copy them to another folder eg neosys folder&lt;br /&gt;
#make the necessary REM changes there by hand&lt;br /&gt;
#right click the NEOSYS\NEOSYS\AREV.PIF and select properties&lt;br /&gt;
#change the location of the AUTOEXEC.NT and CONFIG.NT files in the following location&lt;br /&gt;
&lt;br /&gt;
[[image:pifsettings.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Checking EMS Memory Configuration ===&lt;br /&gt;
&lt;br /&gt;
==== Inspection ====&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 WHO&lt;br /&gt;
&lt;br /&gt;
 press the up arrow to get to the last part/page&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Server EMS Memory =====&lt;br /&gt;
[[image:serveremm.jpg]]&lt;br /&gt;
&lt;br /&gt;
===== Example of Typical Workstation EMS Memory =====&lt;br /&gt;
[[image:workstationemm.jpg]]&lt;br /&gt;
&lt;br /&gt;
====Correction====&lt;br /&gt;
&lt;br /&gt;
No easy way&lt;br /&gt;
&lt;br /&gt;
Removal of hardware adapters designed for workstations instead of servers eg graphics cards and network cards.&lt;br /&gt;
&lt;br /&gt;
Many of the devices may be located on the motherboard and not relocatable except possibly by BIOS configuration or special manufacturer information.&lt;br /&gt;
&lt;br /&gt;
Use windows device manager, View: Resources by Connection, Open the Memory item and look for items between 000A0000 up to 000FFFFF that might give you a clue as to what hardware could be removed or reconfigured. Actually only 000C0000 to 000FFFFF is candidate for EMS memory since 000A000-000BFFFF is mandatory video memory in all systems.&lt;br /&gt;
&lt;br /&gt;
[[image:devicemanager.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Resolving issue where NEOSYS processes do not start-up at all or start-up and close immediately ==&lt;br /&gt;
&lt;br /&gt;
# Find if a file with the name global.end exists in the root directory of the NEOSYS installation. Eg D:\global.end . If you find such a file, rename it to global.end.temp - for more information on global.end and what it does refer to [[Closing NEOSYS services]]&lt;br /&gt;
# If the above didn&#039;t fix the problem and NEOSYS still does not start, do a windows search for the entire NEOSYS folder for *.end (i.e. any file ending with .end extension). You may find a (databasecode).end file in D:\neosys\neosys folder which is created by the NEOSYS program during backup at 1 am and later on removed automatically. In this case NEOSYS program might have crashed during the backup and left this file behind. (databasecode).end files prevent other other NEOSYS processes starting up on the database while exclusive processes (like backup) are being done.&lt;br /&gt;
&lt;br /&gt;
In case the above didn&#039;t fix the problem then escalate to the programmer immediately.&lt;br /&gt;
&lt;br /&gt;
== Handling Change Backup message if the client does not use a USB backup device ==&lt;br /&gt;
DO *NOT* FOLLOW THIS PROCEDURE SINCE IS IT IS TOTALLY UNACCEPTABLE FOR NEOSYS TO SEND OUT A &amp;quot;BACKUP SUCCESS&amp;quot; MESSAGE WHEN THE BACKUP IS NOT BEING DONE PROPERLY. IN GENERAL, TAKING SHORT CUTS THAT MAKE THINGS APPEAR SATISFACTORY WHEN THEY ARE NOT IS VERY POOR POLICY.&lt;br /&gt;
&lt;br /&gt;
IF THE CLIENT IS BACKING UP TO A NON-REMOVABLE DESTINATION THEN EITHER 1. LIVE WITH THE FAILURE MESSAGE OR 2. SUPPRESS THE BACKUP ENTIRELY IN WHICH CASE NO BACKUPS ARE BEING DONE AND PROBABLY THIS WILL SHOW ON NEOSYS PROACTIVE WARNING SYSTEMS LIKE NAGIOS.&lt;br /&gt;
&lt;br /&gt;
# Basically most of the client use USB for Neosys server but there are some clients who do not use USB but save their backups in hard drive. &lt;br /&gt;
# As we know that backup take place in Data.bak folder but it do a backup only for a week in a single USB. Over here client do not use USB but save their backup in hard drive in Data.bak folder, once the week is over  it will again give Change backup message.  &lt;br /&gt;
# In this case rename the Data.bak folder to Data1.bak this is done because system read only Data.bak folder as it is configured in the system. When you rename Data.bak to Data1.bak it automatically create a new folder Data.bak in Backup drive.&lt;br /&gt;
# This process is done so that the backup should not fail then next day morning and backups are done in Data.bak folder.&lt;br /&gt;
# In the third week we will again see the same message Chang backup USB message so you need to rename Data.bak folder to Data2.bak&lt;br /&gt;
# But in fourth week you rename the Data1.bak to Data.bak and change the Data2.bak to Data1.bak and Data.bak to Data2.bak &lt;br /&gt;
# Keep only three folders and Data.bak, Data1.bak, Data2.bak and keep on renaming these folders every week as shown above.&lt;br /&gt;
&lt;br /&gt;
== Closing processes that are not visible on the desktop or hidden ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS processes are most of the time visible on the desktop (i.e. the black dos windows) in Windows 2003 OS, except in the case that the process has been scheduled to start on restart and no one has logged into the server. In this case it would be hidden. Secondly in the case of Windows 2008, the processes always are hidden.&lt;br /&gt;
&lt;br /&gt;
In these cases whenever there is a hung NEOSYS process - due to many reasons for eg low memory. In this case you should close all processes using the global.end method and then from the task manager kill any NTVDM processes and then restart NEOSYS. This should be done within 30 seconds from using the global.end method to avoid any inconvenience to the users. If there are many datasets then you need to restart them all well within the 30 seconds period.&lt;br /&gt;
&lt;br /&gt;
In case of Patsalides, where we have a thousand datasets which start &amp;quot;on demand&amp;quot; i.e. usually on login; all you need to do is start one dataset which will restart all the other datasets &amp;quot;on demand&amp;quot;. If there is no response within 30 seconds then one of the running datasets will start it up so there appears to be a 30 second delay when you login to one of the thousand datasets the first time on any one day.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS not updating NAGIOS ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
You notice a problem on NAGIOS indicating that &#039;&#039;&#039;&#039;&#039;NEOSYS not checked in&#039;&#039;&#039; on a particular client server.&lt;br /&gt;
&lt;br /&gt;
=== Possible Causes &amp;amp; Solutions ===&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process is &#039;&#039;&#039;NOT&#039;&#039;&#039; running on the server====&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS process and wait for 10 mins for NEOSYS to check into NAGIOS.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====The NEOSYS process &#039;&#039;&#039;is&#039;&#039;&#039; running on the server but still cannot connect to NAGIOS====&lt;br /&gt;
&lt;br /&gt;
NEOSYS connects to NAGIOS using http. NEOSYS automatically detects and uses any http proxy configuration configured in Internet Explorer. If Internet Explorer can reach the internet then NEOSYS should be able to update to NAGIOS via the same proxy.&lt;br /&gt;
&lt;br /&gt;
First check if Internet Explorer can reach NAGIOS.&lt;br /&gt;
&lt;br /&gt;
If you are asked to login then the Internet Explorer is working OK. You do not need to login. Just cancel and move on to the next step.&lt;br /&gt;
&lt;br /&gt;
 http://monitor.neosys.com&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CANNOT connect to NAGIOS then resolving that fundamental issue will probably solve the NAGIOS connection issue too.&lt;br /&gt;
&lt;br /&gt;
View the Internet Explorer proxy configuration as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:ieproxy.png]]&lt;br /&gt;
&lt;br /&gt;
If Internet Explorer CAN connect to NAGIOS then check if there is an issue with NEOSYS&#039;s http proxy server configuration as follows:&lt;br /&gt;
&lt;br /&gt;
#Search for &#039;&#039;&#039;UPDATE.$WG&#039;&#039;&#039; file located in the neosys\neosys. folder and open it using notepad or wordpad.&lt;br /&gt;
#You should find a message similar to the following:   &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to 192.168.100.145:8080 failed: No such file or directory.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Where the above appears to be some non-functional http proxy server ip/port number and is not the expected nagios server ip number.&lt;br /&gt;
&#039;&#039;&#039;A windows proxy command shows the same ip and port:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
On Windows 2003/XP&lt;br /&gt;
&lt;br /&gt;
 proxycfg&lt;br /&gt;
&lt;br /&gt;
On Windows 2008/Win7&lt;br /&gt;
&lt;br /&gt;
 NetSH WinHTTP import Proxy ie&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Microsoft (R) WinHTTP Default Proxy Configuration Tool&lt;br /&gt;
Copyright (c) Microsoft Corporation. All rights reserved.&lt;br /&gt;
&lt;br /&gt;
Current WinHTTP proxy settings under:&lt;br /&gt;
  HKEY_LOCAL_MACHINE\&lt;br /&gt;
    SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\&lt;br /&gt;
      WinHttpSettings :&lt;br /&gt;
&lt;br /&gt;
    Proxy Server(s) :  192.168.100.145:8080&lt;br /&gt;
    Bypass List     :  192.168.*.*;localhost;&amp;lt;local&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 1 - Remove the above setting to create a direct connection&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#To remove the registry entries that ProxyCfg.exe creates,you must delete the WinHttpSettings value from the following registry key:&amp;lt;br&amp;gt;&amp;lt;PRE&amp;gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings&amp;lt;/PRE&amp;gt;&lt;br /&gt;
#After you do the above, confirm that the proxy details are deleted by running the proxycfg command &amp;lt;BR&amp;gt;&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution 2 - Configure a functioning proxy ip/port number&#039;&#039;&#039;&lt;br /&gt;
#Use the proxycfg command to enter a working proxy ip/port number/exclusion list: http://msdn.microsoft.com/en-us/library/aa384069%28VS.85%29.aspx&lt;br /&gt;
#After you do the above, confirm that the new proxy details are working by running the proxycfg command again&lt;br /&gt;
#Next, restart the NEOSYS processes for the changes to be affected&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;B&amp;gt; Note: Please refer to the link before you restart NEOSYS processes [[Troubleshooting_NEOSYS_Generally#Closing_processes_that_are_not_visible_on_the_desktop_or_hidden| Closing Hidden Processes]] &amp;lt;/B&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “page not found” when downloading some file types after uploading them successfully ==&lt;br /&gt;
=== One by One ===&lt;br /&gt;
&lt;br /&gt;
Windows web server will not download file types that it is unaware of. You can enable the download of new file types one by one as follows.&lt;br /&gt;
&lt;br /&gt;
This process is tedious and error-prone if you have to add many type.&lt;br /&gt;
&lt;br /&gt;
#Computer Management&lt;br /&gt;
#Services and Applications&lt;br /&gt;
#IIS properties&lt;br /&gt;
#Mime Types&lt;br /&gt;
#Add&lt;br /&gt;
&lt;br /&gt;
=== Many ===&lt;br /&gt;
&lt;br /&gt;
Window Server 2003 is unaware of all the Office 2007+ file types. To add all Office 2007+ file types at once do the following:&lt;br /&gt;
&lt;br /&gt;
Stop IIS&lt;br /&gt;
&lt;br /&gt;
 iisreset /stop&lt;br /&gt;
&lt;br /&gt;
Open the list of mime types&lt;br /&gt;
&lt;br /&gt;
*Start, Run, notepad C:\WINDOWS\system32\inetsrv\MetaBase.xml&lt;br /&gt;
&lt;br /&gt;
Search the file for “xlsx” and quit the editor if already inserted.&lt;br /&gt;
&lt;br /&gt;
Otherwise, find the following line,&lt;br /&gt;
&lt;br /&gt;
  .xml,text/xml&lt;br /&gt;
&lt;br /&gt;
and insert after that line the following lines. They do not need to be indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
.docm,application/vnd.ms-word.document.macroEnabled.12&lt;br /&gt;
.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document&lt;br /&gt;
.dotm,application/vnd.ms-word.template.macroEnabled.12&lt;br /&gt;
.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template&lt;br /&gt;
.potm,application/vnd.ms-powerpoint.template.macroEnabled.12&lt;br /&gt;
.potx,application/vnd.openxmlformats-officedocument.presentationml.template&lt;br /&gt;
.ppam,application/vnd.ms-powerpoint.addin.macroEnabled.12&lt;br /&gt;
.ppsm,application/vnd.ms-powerpoint.slideshow.macroEnabled.12&lt;br /&gt;
.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow&lt;br /&gt;
.pptm,application/vnd.ms-powerpoint.presentation.macroEnabled.12&lt;br /&gt;
.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation&lt;br /&gt;
.xlam,application/vnd.ms-excel.addin.macroEnabled.12&lt;br /&gt;
.xlsb,application/vnd.ms-excel.sheet.binary.macroEnabled.12&lt;br /&gt;
.xlsm,application/vnd.ms-excel.sheet.macroEnabled.12&lt;br /&gt;
.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet&lt;br /&gt;
.xltm,application/vnd.ms-excel.template.macroEnabled.12&lt;br /&gt;
.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file with File and Exit&lt;br /&gt;
&lt;br /&gt;
Restart IIS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Handling Neosys Automatic Upgrade Error Messages ==&lt;br /&gt;
&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
We will receive an email from the NEOSYS client installation with the following message:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;UPGRADEN.EXE&amp;quot; does not have expected exe MZ signature&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
This message is a note that the NEOSYS automatic update procedure failed to download an upgrade file correctly.&lt;br /&gt;
This happens sometimes due to network issues but can be ignored because the file will be probably be correctly downloaded on the next automatic update check.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; This message is only informative to help with any problem with the automatic upgrade procedure and may be removed in a later version of neosys (currently Oct 2012)&lt;br /&gt;
&lt;br /&gt;
== Testing https connection ==&lt;br /&gt;
&lt;br /&gt;
The following procedure tests that the https server is operational and not blocked by firewall etc. It does not detect certificate errors.&lt;br /&gt;
&lt;br /&gt;
From a windows command prompt use the following telnet command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet clientname.hosts.neosys.com 4430&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
#4430 is the usual NEOSYS http port but replace it by whatever port is actually used for NEOSYS https on the system being tested. If there are multiple https installations on a particular server then different ports are probably used&lt;br /&gt;
#Replace clientname.hosts.neosys.com with the normal https login domain name of the client for whom we want to check the https service&lt;br /&gt;
&lt;br /&gt;
Normal behavior is that it should open a black screen. Pressing Enter or any key returns the _ character. (Close the window using the [X] since there is no keyboard command to do so)&lt;br /&gt;
&lt;br /&gt;
Hanging means that there is some connectivity issue (firewall/ip/server not running/https not installed etc)&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting &amp;quot;page not found&amp;quot; error while using https ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Problem:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#The https service stops working and gives &amp;quot;Page not found&amp;quot; error.&lt;br /&gt;
#The https connection tests fine using telnet (see article above)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Reinstall https using the usual procedure (currently using selfssl)&lt;br /&gt;
#Email clients, requesting to reinstall the new security certificate by following the procedure given at [http://userwiki.neosys.com/index.php/Troubleshooting_NEOSYS_Generally#Resolving_HTTPS_certificate_error_when_logging_in_from_an_external_link Resolving https certificate error].&lt;br /&gt;
&lt;br /&gt;
== Installing &amp;quot;QUICKDEX&amp;quot; on some files ==&lt;br /&gt;
&amp;quot;Quickdex&amp;quot; is a type of index that keeps an alphabetical order on small files. In some maintenance procedures you may be asked to &amp;quot;install Quickdex&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
For example to add a quickdex to the UNITS file.&lt;br /&gt;
&lt;br /&gt;
Maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 DICT UNITS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=================Dictionary=================┐&lt;br /&gt;
│                                            │&lt;br /&gt;
│  File name      UNITS                      │&lt;br /&gt;
│  Field name     .........................  │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Dict type                                 │&lt;br /&gt;
│  Single/Multi                              │&lt;br /&gt;
│  Data type                                 │&lt;br /&gt;
│  Output format                             │&lt;br /&gt;
│  Validation patterns                       │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Position              Key part            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Column heading                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
│  Justification     Display length          │&lt;br /&gt;
│  Description                               │&lt;br /&gt;
│                                            │&lt;br /&gt;
│                                            │&lt;br /&gt;
L============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Shift+F3.&lt;br /&gt;
&lt;br /&gt;
If it says &amp;quot;Do you want to remove ...&amp;quot; then Quickdex has already been installed and you should not continue. Press Esc to cancel, then Esc to quit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[B202]==================================┐&lt;br /&gt;
│                                         │&lt;br /&gt;
│               &amp;quot;UNITS&amp;quot; has               │&lt;br /&gt;
│          &amp;quot;QUICKDEX&amp;quot; installed.          │&lt;br /&gt;
│                                         │&lt;br /&gt;
│ Do you want to remove &amp;quot;QUICKDEX&amp;quot;? [Y/N] │&lt;br /&gt;
│                                         │&lt;br /&gt;
│&amp;lt;Y                                      &amp;gt;│&lt;br /&gt;
L=========================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Otherwise it should say &amp;quot;Do you want to install ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W963]============================┐&lt;br /&gt;
│                                   │&lt;br /&gt;
│     Do you want to install a      │&lt;br /&gt;
│ Quickdex or Rightdex index? [Q/R] │&lt;br /&gt;
│                                   │&lt;br /&gt;
│&amp;lt;Q                                &amp;gt;│&lt;br /&gt;
L===================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It should then say &amp;quot;Do you want to update ...&amp;quot;. Press Enter to accept.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
г=[W901]========================================┐&lt;br /&gt;
│                                               │&lt;br /&gt;
│           The &amp;quot;UNITS&amp;quot; file has had            │&lt;br /&gt;
│ the &amp;quot;QUICKDEX&amp;quot; modifying filing system added. │&lt;br /&gt;
│        There are 0 records in &amp;quot;UNITS&amp;quot;.        │&lt;br /&gt;
│                                               │&lt;br /&gt;
│    Do you want to update &amp;quot;QUICKDEX&amp;quot;? [Y/N]    │&lt;br /&gt;
│                                               │&lt;br /&gt;
│&amp;lt;Y                                            &amp;gt;│&lt;br /&gt;
L===============================================-&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Afterwards it should return to the initial screen. Press Esc to quit.&lt;br /&gt;
&lt;br /&gt;
== Solving NEOSYS smtp server failure ==&lt;br /&gt;
In case the neosys smtp server fails then we can just use the client&#039;s smtp server.&lt;br /&gt;
&lt;br /&gt;
The following information is required from the client&#039;s smtp server configuration:&lt;br /&gt;
#hostname&lt;br /&gt;
#username&lt;br /&gt;
#password&lt;br /&gt;
#port no. (most likely = 25)&lt;br /&gt;
&lt;br /&gt;
These details should be entered in the &#039;&#039;&#039;System Configuration File&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
[[image:SYSCFGFILE-SMTP.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Strange characters in maintenance mode ==&lt;br /&gt;
While in Maintenance mode, pressing keys on keyboard gives strange characters. Even Enter and Esc don’t work. &lt;br /&gt;
&lt;br /&gt;
This problem has been seen using RDP on:&lt;br /&gt;
*Window Server 2003 Web Edition&lt;br /&gt;
*Windows Server 2003 R2 SP2&lt;br /&gt;
&lt;br /&gt;
[[image:strangecharmaint.jpg]] &lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
#Go to Windows -&amp;gt; control panel&lt;br /&gt;
#Go to Regional and Language Options &lt;br /&gt;
#Click on Languages tab then click on Details &amp;lt;br&amp;gt; [[image:lang1.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Settings Tab and Change default input language to English (United States)&amp;lt;br&amp;gt;(or perhaps something else depending on rdp keyboard) &amp;lt;br&amp;gt; [[image:lang2.jpg]] &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== NEOSYS processes do not start after Windows Update  ==&lt;br /&gt;
&lt;br /&gt;
Servers with Windows 2008 will not start the NEOSYS processes after Windows update. The user will have to be log into the server to start the processes.&lt;br /&gt;
&lt;br /&gt;
If one gets this message on the Schedule Task &amp;quot; The operation being requested was not performed because the user has not logged on to the network. The specified service does not exit &amp;quot;.&lt;br /&gt;
Then they should tick the options Run whether user is logged on or not and Run with highest privileges in General settings of the Task.  &lt;br /&gt;
&lt;br /&gt;
[[image:sti.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting Network Outages reflected in Nagios due to reassigning of router name or IP address ==&lt;br /&gt;
Nagios displays errors if a router name or the ip address it is monitoring have been reassigned. &lt;br /&gt;
&lt;br /&gt;
We can resolve this issue by trying to find the ISP router ip address just before the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
Steps:-&lt;br /&gt;
#Login to Nagios&lt;br /&gt;
#Click on Tactical Overview -&amp;gt; Network Outages and click on Blocking Outages to view &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-00.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You will now see the host/ISP which is down. Click on the status map icon to identify the host associated with the ISP, as shown below: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-01.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#From the Network Map displayed, identify the host associated with the ISP. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-02.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#If you already know the ip address of the host then skip to next step else, in Nagios, click on Host Detail, then on the hostname identified earlier and From the Host Details shown, save the host url. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-03.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-04.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Log onto www.network-tools.com:&lt;br /&gt;
#*Select Trace&lt;br /&gt;
#*Enter the host&#039;s ip address if already known or host url&lt;br /&gt;
#*Click on Go &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-05.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#The trace route should complete successfully revealing the IP address of the ISP just before the NEOSYS server. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tracert-06.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#You can now login to zoneedit and update the ip address of the host.&lt;br /&gt;
#Check Nagios.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NEOSYS remote support port forwarding ==&lt;br /&gt;
This assumes that you have already “port forwarded” tcp port 19580 from your public internet router to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
=== Tst 0 - Check if SSH is working on the NEOSYS Server ===&lt;br /&gt;
Type in the following command in command prompt:&lt;br /&gt;
 telnet 127.0.0.1 19580&lt;br /&gt;
&lt;br /&gt;
IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
=== Test 1 - Check if SSH is basically working on NEOSYS server over the LAN ===&lt;br /&gt;
You must know and use the NEOSYS SERVER LAN IP to do this.&lt;br /&gt;
&lt;br /&gt;
 telnet ???.???.???.??? 19580&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-01.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
If you have the WRONG SERVER LAN IP or NEOSYS server SSH is NOT working then it will hang for about 15 seconds and then say “Could not open connection to host …”&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-02.jpg]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
OR IF ALL OK you will see the following:&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-03.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press Enter to Exit&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-04.jpg]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test 2 - Check if can connect to the NEOSYS ssh from OUTSIDE the office  ===&lt;br /&gt;
From any internet connected computer OUTSIDE the office test if you can connect to NEOSYS ssh service. You cannot do this test from inside the office.&lt;br /&gt;
&lt;br /&gt;
You need to know the public ip or domain name of the router. If the router IP is dynamic then NEOSYS sets up dynamic name server so instead of a static ip number you will have a domain name something like clientxyz.redirectme.net.&lt;br /&gt;
&lt;br /&gt;
Enter the command .. using YOUR public internet IP number (NOT the LAN ip number) or the dynamic domain name.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-05.jpg]]  &lt;br /&gt;
&lt;br /&gt;
If everything is working OK you will get a black screen as follows. You will NOT get the “SSH-2.0-OpenSSH-4.7” banner” because NEOSYS ssh remote support is restricted to connect ONLY from LAN ip nos and NEOSYS office ip nos.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-06.jpg]]  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you press Enter a few times then the cursor will just go down. You have click the [X] to close the window.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-07.jpg]]  &lt;br /&gt;
&lt;br /&gt;
=== Test 3 - Check that the ssh connection from step 2 was rejected  ===&lt;br /&gt;
On the NEOSYS server, check the Windows Application log to verify that an SSH connection was rejected.&lt;br /&gt;
&lt;br /&gt;
The rejected ip number will be of the system outside the office that you performed the test from.&lt;br /&gt;
&lt;br /&gt;
[[image:tr-pf-08.jpg]]&lt;br /&gt;
&lt;br /&gt;
=== Sample Email: Solving port 19580 port forwarding issues ===&lt;br /&gt;
&lt;br /&gt;
Some IT people know how to trouble shoot port forwarding issues but others are more just power users who can configure a home router. If the IT person is in the second category then it is quicker for NEOSYS support to offer to configure their router from the NEOSYS server using Teamviewer. Here is a letter advising a more skilled person to check connections using telnet which is a low level test.&lt;br /&gt;
&lt;br /&gt;
You can usually determine the NEOSYS server LAN ip number from nagios. If so then adjust the email text appropriately.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Dear xyz,&lt;br /&gt;
&lt;br /&gt;
There is no connection from the internet via your router to the NEOSYS server because when we do the following:&lt;br /&gt;
&lt;br /&gt;
 telnet CLIENTNAME.support.neosys.com 19580&lt;br /&gt;
&lt;br /&gt;
We get no connection. Normally it should connect and presents a black screen  (saying SSH something after pressing Enter) which we close.&lt;br /&gt;
&lt;br /&gt;
Please check that you can connect to the NEOSYS server internally by using the NEOSYS server IP address in the following command on any&lt;br /&gt;
computer in your LAN.&lt;br /&gt;
&lt;br /&gt;
 telnet 192.168.?.? 19580&lt;br /&gt;
&lt;br /&gt;
If you can connect to the NEOSYS server internally then please check port forwarding.&lt;br /&gt;
&lt;br /&gt;
1. Has your router ip changed?&lt;br /&gt;
2. Has your server’s lan ip changed and are you forwarding to the correct LAN ip?&lt;br /&gt;
3. Is the configuration really correct?&lt;br /&gt;
&lt;br /&gt;
For further information, see http://techwiki.neosys.com/index.php&lt;br /&gt;
/Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding&lt;br /&gt;
&lt;br /&gt;
Until this is resolved we cannot resolve some types of user support issues.&lt;br /&gt;
&lt;br /&gt;
Best Regards,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Solving “Cant login … INVALID DATA PATH … permission denied” ==&lt;br /&gt;
=== Error Message ===&lt;br /&gt;
&lt;br /&gt;
[[image:error-invalid-data-path-1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Error Text:&#039;&#039;&#039;&lt;br /&gt;
 &lt;br /&gt;
 Cannot login because:&lt;br /&gt;
 ERROR: INVALID DATA PATH&lt;br /&gt;
 “D:\HOSTS\HOSTNAME\DATA\HOSTNAME\~8746345.1$” Permission Denied&lt;br /&gt;
&lt;br /&gt;
=== Problem Explained ===&lt;br /&gt;
When installing NEOSYS on an existing “non-clean” Windows installation, the standard NEOSYS installation procedure can result in failure to login if the standard windows folder permissions have been modified.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
The solution is to grant IIS permission to write in the \neosys\DATA folder and subfolders as follows:&lt;br /&gt;
#First add the IUSR_XXXXXXX user to the list of users. (XXXXXXXX is the server name and therefore varies per server) as follows:&lt;br /&gt;
#*Right Click on DATA Folder and click on Properties&lt;br /&gt;
#*Click on Security Tab -&amp;gt; Add -&amp;gt; Advanced&lt;br /&gt;
#*Click on Find Now, Select the IUSR_XXXXXXX user and Click on OK&amp;lt;br&amp;gt;[[image:error-invalid-data-path-2.jpg]]&amp;lt;br&amp;gt;[[image:error-invalid-data-path-3.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Second, for the newly added IUSR (IIS user) change the permissions as follows:&lt;br /&gt;
#*&#039;&#039;&#039;REMOVE&#039;&#039;&#039; the read and execute permission (for security, IIS should be unable to execute things that it might have uploaded)&lt;br /&gt;
#*&#039;&#039;&#039;ADD&#039;&#039;&#039; the write permission &amp;lt;br&amp;gt;[[image:error-invalid-data-path-4.jpg]]&amp;lt;br&amp;gt;&lt;br /&gt;
#Login should now be possible.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1082</id>
		<title>Handling damaged files</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1082"/>
		<updated>2012-07-04T10:19:58Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symptoms ==&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;A Damaged file has been found..... ((the rest of this message to be completed)) &lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : BOOKING.TEXTS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
== Cause ==&lt;br /&gt;
Rare but nasty problem on server 99% caused by power failure, killing NEOSYS or server hardware or operating system failure.&lt;br /&gt;
&lt;br /&gt;
*Did somebody kill NEOSYS processes to reboot the server or any other reason?&lt;br /&gt;
*Was there a power cut?&lt;br /&gt;
*Any expected or unexpected reboots in the server log? (see Event Viewer &amp;gt; System Log)&lt;br /&gt;
*Enough disk free space especially on servers not dedicated to NEOSYS?&lt;br /&gt;
*Third party software running on NEOSYS server?&lt;br /&gt;
*RAID installed on the server?&lt;br /&gt;
*Did windows update happen?&lt;br /&gt;
&lt;br /&gt;
== Solution==&lt;br /&gt;
&lt;br /&gt;
Damaged files, when detected, cause an immediate termination of the currently executing program/user request and a restart of the process is involved. Some damaged files are automatically fixed during restart. Although the process &amp;quot;restarts&amp;quot; it may be internally corrupted in some way and it is advisable to close it completely and start or allow another process to start automatically.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
However, the solution always depends on the cause and usually often requires aggressive interrogation to discover the cause.&lt;br /&gt;
&lt;br /&gt;
== Recovery==&lt;br /&gt;
&lt;br /&gt;
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work.&lt;br /&gt;
&lt;br /&gt;
See the following sections how to patch the damaged files.&lt;br /&gt;
&lt;br /&gt;
== Files that are automatically fixed ==&lt;br /&gt;
&lt;br /&gt;
*LISTS&lt;br /&gt;
*LOCKS&lt;br /&gt;
*!INDEXING&lt;br /&gt;
&lt;br /&gt;
The above files are automatically checked for corruption (and initialised to empty if so) when you &lt;br /&gt;
startup a NEOSYS process and do not require any manual intervention apart from locating and eliminating the initial cause of the damage.&lt;br /&gt;
&lt;br /&gt;
If the !INDEXING file was damaged then you should also do REINDEXALL to reinstate any possibly missing index entries, but since this will take a long time&lt;br /&gt;
you should do this when everybody is off the system in the evening probably. A few missing index entries may only mean some records missing from some reports which may or may not be seriously inconvenient. It is a temporary file that should not hold any records for longer than it takes to update the various indexes immediately when the user saves any document.&lt;br /&gt;
&lt;br /&gt;
Each process has its own LISTS file, so damage is limited to one process for the LISTS file. The process number can be seen in the error message. for example:&lt;br /&gt;
&lt;br /&gt;
 Process=7&lt;br /&gt;
&lt;br /&gt;
You can also see the process number on the server screen. For example here is a process 2.&lt;br /&gt;
&lt;br /&gt;
 13:17:31 TESTDB NEOS0002 0 Listening 7 hours, 49 mins ...&lt;br /&gt;
&lt;br /&gt;
The LISTS file is a temporary file for sorting records into order for reports, popups etc. Therefore any damage usually causes no real inconvenience apart from the failed report or popup on which the user might receive the &amp;quot;damaged LISTS file&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
The error message would appear as follows :&lt;br /&gt;
&lt;br /&gt;
 SYSTEM ERROR:&lt;br /&gt;
 An internal file LISTS was found&lt;br /&gt;
 to be damaged and has been patched.&lt;br /&gt;
 INFORM YOUR TECHNICAL SUPPORT&amp;lt;br&amp;gt;&lt;br /&gt;
 SOME DATA HAS PROBABLY BEEN LOST&lt;br /&gt;
 AND THE NEOSYS SYSTEM MAY MALFUNCTION&amp;lt;br&amp;gt;&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
The error could also appear as follows :&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : LISTS&lt;br /&gt;
 Group # : 00000014&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : STATISTICS&lt;br /&gt;
 Group # : 00000005&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 114 files checked.&lt;br /&gt;
 Failed with 1 error&lt;br /&gt;
 !!!DANGER!!!&lt;br /&gt;
 !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
 !!!BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note - &#039;&#039; Statistics contains info about user usage as per support menu so loss of data is not critical and it will be rebuilt automatically&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We might also get errors related to Temporary Files as follows:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
DO NOT CONTINUE USING THE SYSTEM!&lt;br /&gt;
&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : MATDEL_MEDIALIN_3&lt;br /&gt;
 Group # : 13369375&lt;br /&gt;
 Wrong Overflow frame linked to group.&lt;br /&gt;
&lt;br /&gt;
Server=NEOSYS-SERVER&lt;br /&gt;
Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
Version=11:26:27  26 JUL 2010&lt;br /&gt;
Database=23BF2931 MEDIALIN&lt;br /&gt;
Process=3&lt;br /&gt;
Client=100_100_100_77&lt;br /&gt;
User=HAMADA&lt;br /&gt;
Request=MEDIADIARY&lt;br /&gt;
@Id=&lt;br /&gt;
Data=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since these are temporary files, we need not use FIXFILE. They get cleared automatically.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged file that have a process to recreate them ==&lt;br /&gt;
&lt;br /&gt;
Below files can be recreated from the maintenance mode.&lt;br /&gt;
&lt;br /&gt;
ADS file can be recreated with F5 CREATEADS&lt;br /&gt;
&lt;br /&gt;
ANALYSIS file can be recreated with F5 CREATEANALYSIS&lt;br /&gt;
&lt;br /&gt;
BRANDS files can be recreated with F5 CREATEBRANDS&lt;br /&gt;
&lt;br /&gt;
If the file is actually damaged it might be necessary to initialise it first using CLEARFILE filename.&lt;br /&gt;
&lt;br /&gt;
The following is an example of the error in the ADS File at the time of backup.&lt;br /&gt;
&lt;br /&gt;
  Group Format Error:&lt;br /&gt;
  OS File : ADS&lt;br /&gt;
  Group # : 00009543&lt;br /&gt;
  Record length incorrect or frame linkage error.&lt;br /&gt;
  217 files checked.&lt;br /&gt;
  Failed with 1 errors&lt;br /&gt;
  !!! DANGER !!!&lt;br /&gt;
  !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
  !!! BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
  Error while writing data.&lt;br /&gt;
  You have attempted to write to a read-only file.&lt;br /&gt;
                      - or -&lt;br /&gt;
  access to the file has been denied by the operating system.&lt;br /&gt;
  (operating system file name: &amp;quot;ADS&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Explanation: The last four lines are very rare and can be seen with the above error messages in the backup email.  The above message indicates that some external application is trying to access the backup files at the time of backup.&lt;br /&gt;
&lt;br /&gt;
Before doing the solution below, please check the number of damaged files on the database by running CHK.FILES in maintenance mode. [CHK.FILES can be done when users are online]&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Stop all the processes before doing the below procedure. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions)&lt;br /&gt;
&lt;br /&gt;
Procedure to run CREATEADS is as under &lt;br /&gt;
&lt;br /&gt;
Login to maintenance&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 CREATEXXXX&lt;br /&gt;
&lt;br /&gt;
(XXXX = ADS, ANALYSIS OR BRANDS)&lt;br /&gt;
&lt;br /&gt;
Select the option appropriate option and start the procedure and hit ENTER&lt;br /&gt;
&lt;br /&gt;
To verify if the above is done successfully and check if the damage files is fixed in the database run CHK.FILES or CHK.FILES FILENAME (Recommended) from this link: [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged index files (names starting with !) ==&lt;br /&gt;
&lt;br /&gt;
Whilst backing up or using NEOSYS the following error message might appear:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;A Damaged file has been found.....&lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : !ADS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
#Ensure that no-one is using NEOSYS&lt;br /&gt;
#Log into NEOSYS on the server&lt;br /&gt;
#Press F5 to get a TCL command box&lt;br /&gt;
#Type REINDEXADS and press enter.&lt;br /&gt;
#Wait until it finishes and you get back to the command box&lt;br /&gt;
#Type OFF in the command box and you will quit NEOSYS.&lt;br /&gt;
&lt;br /&gt;
Other reindex commands are:&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;Note -&#039;&#039; You can save time when indexing very large files by indexing only selected indexes instead of all indexed for the file. You can select the field(s) that need to be reindexed from a list of indexed fields which REINDEX filename presents you after you enter the command.)&lt;br /&gt;
&lt;br /&gt;
*REINDEXACCOUNTS	recreates !ACCOUNTS, !BATCHES and !VOUCHERS&lt;br /&gt;
*REINDEXADDRESSES &lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXBOOKINGS	recreates !BOOKING.ORDERS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXINVS		recreates !INVOICES&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXPRODINVS	recreates !PRODUCTION.INVOICES&lt;br /&gt;
*REINDEXPRODORDERS	recreates !PRODUCTION.ORDERS&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
&lt;br /&gt;
REINDEXMEDIA does all the following&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXBOOKINGS&lt;br /&gt;
&lt;br /&gt;
REINDEXFILES does all the following&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
&lt;br /&gt;
REINDEXPRODUCTION does all the following&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXPRODORDERS&lt;br /&gt;
*REINDEXPRODINVS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
&lt;br /&gt;
REINDEXALL does all the following&lt;br /&gt;
*REINDEXMEDIA&lt;br /&gt;
*REINDEXPRODUCTION&lt;br /&gt;
*REINDEXFILES&lt;br /&gt;
*REINDEXINVS&lt;br /&gt;
*REINDEXACCOUNTS&lt;br /&gt;
*REINDEXADDRESSES&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged files that have no process for recreating them ==&lt;br /&gt;
&lt;br /&gt;
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files like &#039;&#039;LOG20xx&#039;&#039; can be “fixed” to prevent NEOSYS crashes as follows &amp;lt;i&amp;gt;but some records will most probably be lost&amp;lt;/i&amp;gt;. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;SHADOW&#039;&#039; is a type of log file that can lose some records without serious impact and can therefore can also be fixed with FIXFILE.&lt;br /&gt;
&lt;br /&gt;
FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down the processes for the dataset in question.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;NOTE -&#039;&#039; If there are multiple datasets running on the server. Shut down the particular dataset which has got the problem. (see [[Closing_NEOSYS_services|Closing NEOSYS Services]] for instructions). &lt;br /&gt;
&lt;br /&gt;
If you are trying to close processes during the day then please check if there are users that are actively working on that dataset in question. If yes, then please email the clients asking them to log off till the process is complete. If there are no users actively working then you may proceed to complete the fix quickly before users login so that users are not disturbed during their daily work.&lt;br /&gt;
&lt;br /&gt;
Press F5&lt;br /&gt;
&lt;br /&gt;
 FIXFILE filename&lt;br /&gt;
&lt;br /&gt;
(Select option 1 to update the file)&lt;br /&gt;
&lt;br /&gt;
In case you get any Overwrite messages – type YES, as these are the actual files being updated.&lt;br /&gt;
&lt;br /&gt;
The only alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact serial numbers of critical documents like orders, invoices, receipts and payments advices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using FIXFILE to repair corrupted files ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BEWARE:&#039;&#039;&#039; FIXFILE causes loss of data. If the data is critical then use of FIXFILE can be totally catastrophic without any warning. &lt;br /&gt;
Hence, in such situations it is advisable to talk to NEOSYS technical staff to see if they can provide any proper fix or provide any better comment about the impact of loss of data rather than implement FIXFILE directly.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; &lt;br /&gt;
# Using FIXFILE on some files is a guaranteed way to cause complete chaos for the users without them being aware of it until too late to do anything about it.&lt;br /&gt;
#Corrupt files will cause programs to abort every time they try to update that section of the file. Aborting programs causes possibly horrendous inconsistency in the database so it is important to stop all user activity and fix the corrupt file immediately.&lt;br /&gt;
#You can freely use FIXFILE on any file but it works by deleting any problematic data so cannot realistically be used on some files at all.&lt;br /&gt;
#FIXFILE cannot and does not recover any corrupted records therefore, for those files that have specific programs to rebuild them, FIXFILE is not the correct option.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Why use FIXFILE at all since it causes loss of data?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Many files do not have programs to rebuild them and for some of those files, using FIXFILE is a quick way to get the system back in operation BUT with missing records. Missing records causes various degrees of failure ranging from the odd document missing, totally misleading information like wrong account balances, or any kind of system failure.&lt;br /&gt;
#FIXFILE does not fix the consistency of information in the database. When the database is is being updated with a transaction, usually a series of files are updated for the one transaction. A damaged file causes the update program to abort in the middle of the series of updates. Therefore some of the updates are done and the remaining updates are not done. This means that the data in the database (even after fixing the corrupt file) is inconsistent.&lt;br /&gt;
#FIXFILE merely fixes the technical structure of the file so that any further program accesses to that portion of the file do not cause immediate program termination and consequent likely catastrophic database inconsistency.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;IMPORTANT :&#039;&#039;&#039; You must prevent anyone from accessing NEOSYS while FIXFILE is running.&lt;br /&gt;
&lt;br /&gt;
==== List of Files Impacted by FIXFILE ====&lt;br /&gt;
#&#039;&#039;&#039;USERS File :&#039;&#039;&#039; The main data of any lost records from the USERS file will be recreated any time the Authorisation File is saved, however only the information in the Authorisation File is recreated which means that all personal preferences, holiday records, login history etc will be lost.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Damaged DEFINITIONS file ===&lt;br /&gt;
 &lt;br /&gt;
==== Non-Solution ====&lt;br /&gt;
 &lt;br /&gt;
You will probably not be able to login if the DEFINITIONS FILE is damaged. You can press Alt+S and type EXECUTE to get a TCL command box but this still doesnt help because you cannot use FIXFILE on DEFINITIONS.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: DO NOT USE FIXFILE TO TRY AND FIX THE DEFINITIONS FILE.&lt;br /&gt;
 &lt;br /&gt;
DOUBLE CAUTION: IN CASE YOU DECIDE TO IGNORE THIS EXPECT ALL KINDS OF HORRIBLE PROBLEMS IN THE DATABASE REQUIRING A COMPLETE RESTORE FROM A GOOD BACKUP AFTER A FEW DAYS OF PAIN BECAUSE RANDOM OLD DATABASE UPGRADE/CONVERSIONS WILL BE PERFORMED *AGAIN* WITHOUT YOU KNOWING IT.&lt;br /&gt;
 &lt;br /&gt;
==== Partial Restore ====&lt;br /&gt;
 &lt;br /&gt;
You can copy recent DEFINITIONS.LK and DEFINITIONS.OV files from the DATA\datasetcode\GENERAL folder.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: All changes done in the Configuration File, Authorisation File, Users File and various other changes will be reverted to the date of the DEFINITIONS files being restored. If you are restoring from last nights backup or testdata then this will not be much but could cause serious confusion to people who have changed their passwords etc.&lt;br /&gt;
&lt;br /&gt;
==== Full Restore ====&lt;br /&gt;
&lt;br /&gt;
Restore from your latest backup losing all work done since that time and date.&lt;br /&gt;
&lt;br /&gt;
=== Preventing users from accessing NEOSYS in order to do maintenance or repairs ===&lt;br /&gt;
 &lt;br /&gt;
On most systems you can simply stop the NEOSYS processes. On other systems where NEOSYS processes are automatically started in response to requests from the web, you need to disable the autostart by one of the following methods&lt;br /&gt;
 &lt;br /&gt;
# Stop the autostart program/script&lt;br /&gt;
# Put a file called NET.CFG with a single line saying AUTOSTART=NO in the neosys\neosys folder&lt;br /&gt;
# Stop the IIS server&lt;br /&gt;
# Stop/Pause the particular web in question&lt;br /&gt;
&lt;br /&gt;
== Dealing with damaged files that cannot be fixed ==&lt;br /&gt;
&lt;br /&gt;
If programmers are unable to fix the damage in a reasonably period of time and the damage is caused due to matters beyond NEOSYS control such as non-dedicated servers and power failures then data must be restored and client advised why they are going to suffer loss of data.&lt;br /&gt;
 &lt;br /&gt;
THIS DOES NOT RELEASE NEOSYS SUPPORT STAFF FROM THE OBLIGATION TO PROACTIVELY INFORM THE CLIENT OF MEASURES TO PREVENT THE RECURRENCE OF THE EVENT.&lt;br /&gt;
&lt;br /&gt;
The following are the steps to follow:&lt;br /&gt;
# Ascertain the cause of the damage to the database by looking at the internal logs&lt;br /&gt;
# Create a new database from the damaged one as it will contain the up to date but damaged database.&lt;br /&gt;
# Restore the database from the backup media so that the database is in the last good known state. &lt;br /&gt;
# The client can see what work was done over the past couple of days from the damaged database and it will assist them to redo the work in the currently restored out of date main database.&lt;br /&gt;
# Next discuss with the client about the cause of the damage and (a) what to do to prevent the damage occurring again (b) to agree a procedure to perform a manual backup in case the automatic one is not performed for any reason overnight.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Procedures&amp;diff=1077</id>
		<title>Procedures</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Procedures&amp;diff=1077"/>
		<updated>2012-07-03T06:57:55Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are procedures to be followed by Support Staff in respect to various technical matters in day to day operations of client issues.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS Support Policies ==&lt;br /&gt;
In order to maintain good payment speed by clients NEOSYS needs to restrict support to clients that dont pay their bills on time, however the degree of restriction needs to depend on an intimate knowledge of the client which cannot be expected from all NEOSYS support staff. Therefore we will use a simple escalation policy as follows:&lt;br /&gt;
&lt;br /&gt;
=== Stop Support List ===&lt;br /&gt;
NEOSYS SUPPORT MANAGERS WILL maintain an overdue/stop list on a whiteboard visible to all support staff. Generally clients will go on the list immediately when their invoice is overdue and come off only after satisfactory commitment to pay have been obtained.&lt;br /&gt;
&lt;br /&gt;
NEOSYS SUPPORT STAFF WILL discretely refer any calls for support from client on the overdue/stop list to support managers for handling.&lt;br /&gt;
&lt;br /&gt;
Managers may well instruct support to provide support on a case by case basis even if clients are on the stop list. Being on the stop list does not necessarily indicate a major issue with accounts&lt;br /&gt;
&lt;br /&gt;
In case clients pressurize neosys staff to provide support then the support staff must inform them that there is an issue with their account and that their request had been forwarded to the manager.&lt;br /&gt;
&lt;br /&gt;
This policy excludes dealing with server failures, backup failures and measures required to be taken to fix these failures.&lt;br /&gt;
&lt;br /&gt;
== Client Password Policy ==&lt;br /&gt;
All client user passwords, including their initial one, are to be obtained via the user&#039;s email address using the password reminder/reset button on the login screen.&lt;br /&gt;
&lt;br /&gt;
NEOSYS staff should never know users passwords therefore NEOSYS will not obtain and grant user passwords.&lt;br /&gt;
&lt;br /&gt;
=== Support requests from ordinary client users ===&lt;br /&gt;
Any support requests concerning inability to obtain passwords will be forwarded to known skilled users on the client staff since this is the most efficient (not fastest) way to handle such issues.&lt;br /&gt;
&lt;br /&gt;
=== Support requests from senior client management ===&lt;br /&gt;
Any support requests concerning inability to obtain passwords by senior client management users shall be handled directly by NEOSYS support staff in any way convenient to resolve the issue in the quickest possible time rather than the most efficient.&lt;br /&gt;
&lt;br /&gt;
Bearing in mind that NEOSYS staff should never know user&#039;s passwords this will probably involve NEOSYS staff using the Password Reminder/Reset button to send a new password to the user.&lt;br /&gt;
&lt;br /&gt;
=== User Defined Passwords ===&lt;br /&gt;
NEOSYS will provide user defined passwords in very special cases which must be pre-approved case by case by NEOSYS management. For many reasons, NEOSYS will not approve.&lt;br /&gt;
&lt;br /&gt;
Currently this permission has only been granted to one NEOSYS client with several hundred of databases.&lt;br /&gt;
&lt;br /&gt;
== Handling client issues ==&lt;br /&gt;
=== Handling error messages ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Before Attempting to resolve client issues, please ensure that we have secure access to the NEOSYS server.&lt;br /&gt;
&lt;br /&gt;
#The very first step is understanding client problem.&lt;br /&gt;
#Ask the client what error does he gets on the screen.&lt;br /&gt;
#If error seems to be familiar then resolve it over the phone.&lt;br /&gt;
#If error is unknown then ask user to send a screenshot of the error displayed along with the options used (basically you need to know HOW to replicate the error)&lt;br /&gt;
#Upon receipt of the error, check in all the wikis for a solution.&lt;br /&gt;
#If the issue is unknown or you don’t understand it clearly ask the user then use remote support to gain access to the users desktop to view how to replicate the error. &lt;br /&gt;
&lt;br /&gt;
If it is new issue then report by escalation the same issue to your manager with a brief explanation.&lt;br /&gt;
&lt;br /&gt;
=== NEOSYS support for resolving issues with totals on reports ===&lt;br /&gt;
&lt;br /&gt;
If a client has a problem with any total output by NEOSYS software then NEOSYS support will advise them which other NEOSYS report or reports provide a complete breakdown of the total (if necessary, to individual transactions) and ask the client to locate any offending transactions themselves.&lt;br /&gt;
&lt;br /&gt;
NEOSYS support staff will handle any issues where the total on the breakdown report does not add up to the total on the summary report.&lt;br /&gt;
&lt;br /&gt;
Reconciling totals can be hard if there are many transactions involved. Regardless of how hard it may be, reconciliation is an operational task for users not for support staff since NEOSYS support staff will not get involved in understanding client transactions or data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using Support Tools ==&lt;br /&gt;
&lt;br /&gt;
=== NEOSYS Software ===&lt;br /&gt;
&lt;br /&gt;
The NEOSYS Software is currently supported on the following Operating Systems (OS) and browsers:&lt;br /&gt;
&lt;br /&gt;
* For Media &amp;amp; Finance modules, Internet Explorer 6+ on Windows&lt;br /&gt;
* For Jobs &amp;amp; Timesheets modules, Internet Explorer 6+ on Windows or Safari 5+ on Mac&lt;br /&gt;
&lt;br /&gt;
Users are to ensure that pop-up blockers and any 3rd party toolbars are deactivated/switched off or else certain pages and alert messages while using NEOSYS do not appear as a result of blocking from either the pop-up blocker or toolbars with built-in pop-up blockers.&lt;br /&gt;
&lt;br /&gt;
NEOSYS Support personnel should additionally ensure that under Internet Explorer &amp;gt; Tools &amp;gt; Internet Options &amp;gt; Advanced &amp;gt; Browsing - the items Disable script debugging (Internet Explorer) and Disable script debugging (Other) are &#039;&#039;&#039;UNTICKED&#039;&#039;&#039;. This is because if NEOSYS generates any javascript error message, the same would disappear in the bottom left corner of a window, which in turn helps the programmer fix the error.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note-&#039;&#039; The above mentioned process must be carried out after every Factory Reset.&lt;br /&gt;
&lt;br /&gt;
=== Website Live Support ===&lt;br /&gt;
www.neosys.com is equipped with a Live Support software and clients can visit the website, click on this link and chat with any of our support staff, without the need for any installation. The client has to fill in their name and email address to connect to an available support personnel. During non-working hours, the Live Support icon on the website automatically displays &amp;quot;offline&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
NEOSYS Support personnel who are authorised to provide such support, need to download a software called Kayako Live Support from http://hotfix.kayako.com/latest.php?product=lr&amp;amp;platform=win32&amp;amp;buildtype=stable&lt;br /&gt;
&lt;br /&gt;
Once downloaded the account needs to be setup as follows:&lt;br /&gt;
&lt;br /&gt;
* Account Name: (as provided by NEOSYS IT)&lt;br /&gt;
* SupportSuite URL: http://support.neosys.com/&lt;br /&gt;
* User Name: (as provided by NEOSYS IT and usually same as Account Name)&lt;br /&gt;
* Password: (as provided by NEOSYS IT)&lt;br /&gt;
&lt;br /&gt;
The first time the account is setup, you need to close Kayako Live Support completely and restart for it to login and work properly.&lt;br /&gt;
&lt;br /&gt;
=== Teamviewer ===&lt;br /&gt;
Since teamviewer allows no restriction on access once a fixed pass is installed, we cannot install fixed pass on teamviewer however convenient it might be.&lt;br /&gt;
&lt;br /&gt;
RULE: NO FIXED PASS TO BE INSTALLED ON TEAMVIEWER IN ANY NEOSYS OR NEOSYS CLIENT COMPUTER&lt;br /&gt;
&lt;br /&gt;
Running teamviewer live from a web link is fine because it does not allow installation of a permanent password&lt;br /&gt;
&lt;br /&gt;
=== Documenting Processes in Wiki ===&lt;br /&gt;
[[How to create templates in wiki]]&lt;br /&gt;
&lt;br /&gt;
== Handling Nagios Client Monitoring system ==&lt;br /&gt;
Nagios is configured to display information pertaining to all NEOSYS client&#039;s server statuses which include multiple services such as:&lt;br /&gt;
# HTTPS: Most of NEOSYS clients are configured to have external web access via secure HTTP protocol (port 4430) from outside office. Nagios is configured to check port 4430 on a regular interval of 10 minutes and display any issues in accessing the same.&lt;br /&gt;
# SSH: As part of the support contract, NEOSYS should have external secure access to the client server usually over port 19580. Nagios is configured to check this port on a regular interval of 10 minutes and display any issues in accessing the same.&lt;br /&gt;
# Ping: Nagios is also configured to ping the client router as a measure to check if router responds incase the NEOSYS server is down.&lt;br /&gt;
# NEOSYS: This service works in a reverse direction, and the NEOSYS installation on the client server sends information such as databases running, current backup status, internal and internet IP addressess etc to Nagios on a regular interval of 10 minutes.&lt;br /&gt;
&lt;br /&gt;
Some key information about Nagios is as follows:&lt;br /&gt;
* Nagios is also configured to display information related to internal servers. &lt;br /&gt;
* Clients hosted on a NEOSYS cloud server might not have services such as SSH or PING as this is monitored as part of the internal server service.&lt;br /&gt;
* Nagios sends out email alerts to support2@neosys.com (which is forwarded to support@neosys.com) from 8 am to 12 midnight on all Dubai working days (Sun-Thu). No alerts are sent out on Fri and Sat, unless they are for NEOSYS internal servers.&lt;br /&gt;
&lt;br /&gt;
NEOSYS support staff on duty has to follow the below outlined procedures in case of any Nagios items showing a critical or warning message for any service: &lt;br /&gt;
# Nagios is required to be checked first thing in the morning and any critical or warning messages need to be dealth with to resolve the same at the earliest. &lt;br /&gt;
# Some of the messages could be related to backup failures and the usual procedure as stated in #Backup Procedures needs to be followed. In case the backup issue isn&#039;t resolved by 9:30 am, the Nagios service needs to be scheduled with downtime for a minimum of 2 hours and maximum until 1 am next day if the issue cannot be solved. &lt;br /&gt;
# In case any HTTPS, SSH or PING service is down, immediate action is required and the relevant IT people at the client side needs to be contacted to get this resolved. A downtime of 2 hours is required to be scheduled with further intervals of 2 hours incase this is not resolved. Support staff shouldn&#039;t schedule downtime till 1 am next day, just to get rid of the alerts for the day. Proactive follow up with the client is required to get this resolved before the business day - more so, if there is a weekend ahead. &lt;br /&gt;
# In case the HTTPS, SSH or PING service goes down during the day, a grace period of 20 minutes is given before the issue is reported to the client IT. This helps incase there is any temporary internet connection issue at the client or along the internet route. &lt;br /&gt;
# In case of &amp;quot;Backup not changed&amp;quot; warning status which occurs if the client has not interchanged the USB before 12 noon on that day, no action is required from the support staff and a downtime until 1 am next day needs to be scheduled.&lt;br /&gt;
 &lt;br /&gt;
**&#039;&#039;&#039;PLEASE NOTE&#039;&#039;&#039;: Failure to schedule appropriate downtime will lead to REDUNDANT ALERTS from NAGIOS every hour.&lt;br /&gt;
&lt;br /&gt;
== What happens if there is no remote access to NEOSYS server based in client’s premises ? ==&lt;br /&gt;
&lt;br /&gt;
If access to the NEOSYS server is lost then we must determine the root cause by: &lt;br /&gt;
&lt;br /&gt;
# Checking if the server is UP and running&lt;br /&gt;
# If yes, please check internet connectivity on the server&lt;br /&gt;
# If there is connectivity, please check the router for connectivity issues&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
Please note that we have currently lost access to the NEOSYS server. The server seems to be down at the moment and it seems that neosys processes are not running on the server.&lt;br /&gt;
Kindly check if the server is UP and running. If yes, please check internet connectivity on the server.&lt;br /&gt;
Do keep us posted on the server status so we can test connectivity from our side as well.0&lt;br /&gt;
&lt;br /&gt;
== New Router (Port Forwarding) ==&lt;br /&gt;
&lt;br /&gt;
If you have changed your router then you may notice that external access to NEOSYS is unavailable. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Setup a permanent access for NEOSYS by reconfiguring the Router / Firewall for Port Forwarding from Router to the NEOSYS Server as follows: &lt;br /&gt;
# Port 19580 &amp;gt; 19580 for SSH &lt;br /&gt;
# Port 4430 &amp;gt; 4430 for HTTPS&lt;br /&gt;
&lt;br /&gt;
You can see [http://portforward.com/ Set Up Port Forwarding] to learn how to configure your Router.&lt;br /&gt;
&lt;br /&gt;
To see how to test/ troubleshoot port forwarding settings, go to [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting Port Forwarding]].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
You are requested to kindly setup a permanent access for NEOSYS by reconfiguring the Router / Firewall for Port Forwarding from Router to the NEOSYS Server,i.e.  port 19580 for SSH and port 4430 for HTTPS.&lt;br /&gt;
&lt;br /&gt;
Once this is complete, kindly send me an email to confirm the same so that we could test connectivity from our end as well.&lt;br /&gt;
&lt;br /&gt;
== Backup Procedures ==&lt;br /&gt;
=== Preparing daily backup report ===&lt;br /&gt;
# Note the success, failure and other error of the clients backup mail in an excel sheet and forward the same to your manager.&lt;br /&gt;
# If there is a backup failure or backup is not available, check wiki to take necessary steps.&lt;br /&gt;
# If there is any unknown error, forward the same to your manager.&lt;br /&gt;
&lt;br /&gt;
=== Updating Nagios incase of failures ===&lt;br /&gt;
# If the backup failure is unsolved, schedule downtime Neosys service in Nagios till 01 am.&lt;br /&gt;
# If the backup did not happen because of server down. Call the IT person; ask him to re-boot the server and check wiki to do necessary step ahead and schedule downtime to Nagios for 2hours.&lt;br /&gt;
# If there is an error &amp;quot;Backup-&amp;gt;Impossible&amp;quot; on Nagios check wiki and schedule downtime to Nagios for 2hours.&lt;br /&gt;
&lt;br /&gt;
=== Interchange backup USB mail reminder ===&lt;br /&gt;
# Basically all the clients have different days to change their backup USB. All the notification can be seen on Nagios at 12.00 pm every day.&lt;br /&gt;
# When you see the change backup notification on Nagios at 12.00 pm, send a mail to the IT person or the person who changes the USB. As you send the mail schedule downtime for Neosys services for two hours.&lt;br /&gt;
# Check the Nagios at 2.00 pm if the backup USB is changed, don&#039;t send another mail and stop there. But if backup is still not yet changed, send a another mail and this time cc the mail to your manager. After sending the mail, schedule downtime for Neosys service for more two hours.&lt;br /&gt;
# Now at 4.00 pm if you still find the backup USB not changed. Call the IT person and ask him to change the USB ASAP and schedule downtime for Neosys services for one hour.&lt;br /&gt;
# Now at 5.00 pm check Nagios and see if the backup USB is changed and if not changed. Send the mail to everyone from the backup mail.&lt;br /&gt;
# If the backup is still not changed, escalate the issue to your manager.&lt;br /&gt;
&lt;br /&gt;
==== Importance of interchanging backup USBs ====&lt;br /&gt;
If the backup USB is not interchanged on the scheduled day then the NEOSYS automated backup fails. This happens because traditionally, each USB holds backup of 7 days and using 3 different USBs we can store backups for the last 21 days enabling us to restore the system unto a time period beginning 21 days prior.&lt;br /&gt;
If the USB is not changed then the first backup on the current USB is replaced with the new or latest backup leading to inconsistencies within the backups. Hence we must interchange the USB on schedule to avoid a backup failure the next morning.&lt;br /&gt;
&lt;br /&gt;
The reasons for using multiple USBs for backup are:&lt;br /&gt;
#We can keep other USBs out of the office for safety purposes since theft or office fire/water hazards could damage the computer and the USB keys if they are all in the same place.&lt;br /&gt;
#Having multiple USBs provide safety against corrupt USBs which cannot be used to restore any backup data. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Sample Response:&#039;&#039;&#039;&lt;br /&gt;
The NEOSYS backup has failed today as the USB was not interchanged on the scheduled day.&lt;br /&gt;
Please interchange the USB immediately today to avoid a backup failure tomorrow morning.&lt;br /&gt;
Also note that your scheduled day to interchange the USB next week and hence forth remains unchanged to &#039;&#039;&#039;(Scheduled Day)&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Finding out which USB is inserted into the server ===&lt;br /&gt;
As we ask the client to have 3 USB&#039;s and interchange them weekly, we also need to sometimes track which one of these 3 USB&#039;s are inserted into the server. USB&#039;s can be tracked using their volume serial number in most cases. To find this out either go to the command prompt and type VOL or in the nightly backup message check for the 2nd line (which looks like this - 14/12/2009 2:45pm Media: 705B-5B5F). However serial numbers can be the same even for different USB&#039;s.&lt;br /&gt;
&lt;br /&gt;
== Client relocating operations to a new premises == &lt;br /&gt;
&lt;br /&gt;
Ensure that the following procedure is followed by the clients IT staff prior to relocation:&lt;br /&gt;
&lt;br /&gt;
# Login to the NEOSYS server and shut down all the processes by hitting the ESC button on each of the window three times or until they close&lt;br /&gt;
# Take a backup of the D drive on another system or network / external drive&lt;br /&gt;
# Remove the USB plugged in and secure the same along with the other two USB’s in a safe location&lt;br /&gt;
# The NEOSYS server may now be shutdown and moved to the new premises&lt;br /&gt;
&lt;br /&gt;
Post relocation, the clients IT staff must ensure the following immediately:&lt;br /&gt;
&lt;br /&gt;
# Connect the server to the local network and complete all setup required for users to be able to access the system internally&lt;br /&gt;
# Configure the firewall and/or port settings to enable NEOSYS support staff to connect to the server externally &lt;br /&gt;
# Provide NEOSYS support with the new fixed IP address so that the connection can be tested.&lt;br /&gt;
&lt;br /&gt;
== Creating and Handling passwords ==&lt;br /&gt;
Passwords made out of a pass phrase should be at least 10 characters since using initials results in a lot of i&#039;s and a&#039;s etc which reduces the effectiveness of the password and allows hacking via brute force guessing especially since windows doesnt slow down logins even if it sees thousands of password attempts.&lt;br /&gt;
&lt;br /&gt;
=== Creating a password ===&lt;br /&gt;
Passwords are generated from a pass phrase and it is important to create a very difficult to guess pass phrase.&lt;br /&gt;
&lt;br /&gt;
For example, a good pass phrase would be: &#039;&#039;&#039;Today is a good day and it is the best time to go for a holiday&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The password for this would be &#039;&#039;&#039;Tiagdaiitbt2g4ah&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The important instructions for the above are:&lt;br /&gt;
#You have to take the first letter of each word and that makes your password (i.e. by using initials)&lt;br /&gt;
#Wherever any word starts with a capital, then you have to take first letter as a capital (eg. For Today you will take T)&lt;br /&gt;
#Replace &#039;&#039;&#039;and&#039;&#039;&#039; with &#039;&#039;&#039;&amp;amp;&#039;&#039;&#039;&lt;br /&gt;
#Replace &#039;&#039;&#039;to&#039;&#039;&#039; with &#039;&#039;&#039;2&#039;&#039;&#039;&lt;br /&gt;
#Replace &#039;&#039;&#039;for&#039;&#039;&#039; with &#039;&#039;&#039;4&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Handling passwords ===&lt;br /&gt;
#Never send the actual password - always send the pass phrase&lt;br /&gt;
#Make sure that the password created out of the pass phrase is at least 10 characters long since using initials results in a lot of i&#039;s and a&#039;s etc which reduces the effectiveness of the password and allows hacking via brute force guessing especially since windows doesnt slow down logins even if it sees thousands of password attempts&lt;br /&gt;
#Pass phrases are never to be sent by email, whatever the case maybe.&lt;br /&gt;
#Pass phrases can be sent by chat - however they have to be broken down in two parts and sent separately over two different messengers or if you are using Gtalk then use the &#039;off the record&#039; mode.&lt;br /&gt;
#Using SMS to send pass phrases is the best known way as of now.&lt;br /&gt;
#If you save the passwords on your system as a file, make sure the file is encrypted with a master password.&lt;br /&gt;
&lt;br /&gt;
== NEOSYS Maintenance Window ==&lt;br /&gt;
&lt;br /&gt;
The NEOSYS server is functional from 6am – 1am. There is a 5hr window gap for the system to perform updates &amp;amp; backups.&lt;br /&gt;
&lt;br /&gt;
The 5hr maintenance window:-&lt;br /&gt;
&lt;br /&gt;
1. At 1am – The server performs a data backup on a USB (for the respective clients) &amp;amp; once the backup has been completed, the system automatically generates an email addressed to the neosys staff &amp;amp; the respective clients.&lt;br /&gt;
&lt;br /&gt;
2. At 2:45am – The main data over writes the test data on the server.&lt;br /&gt;
&lt;br /&gt;
3. At 3:00am – The server by itself performs an update for Windows.&lt;br /&gt;
&lt;br /&gt;
4. At 4:00am – The server performs a backup to the headquarters for clients, and then automatically generates an email addressed to the NEOSYS staff &amp;amp; the respective clients. This process is followed by only two clients i.e. Adline &amp;amp; Farouk.&lt;br /&gt;
&lt;br /&gt;
5. At 6:00am – The server starts up NEOSYS.&lt;br /&gt;
&lt;br /&gt;
==Switching to a backup server==&lt;br /&gt;
&lt;br /&gt;
As NEOSYS provides clients with option of backing up their data to a remote NEOSYS server in case of emergencies or server problems, it is crucial you understand the below procedure on how to switch to a backup server in the event of such a situation. Extreme care must be taken when switching over to using a backup server otherwise unnecessary data loss is very likely.&lt;br /&gt;
&lt;br /&gt;
Backup servers are normally switched off and should not be started automatically otherwise there is a serious risk of the client’s staff working on two systems. It is not possible to merge two databases into one database. Before the backup server is enabled the main server must be disabled, and before the main server is re-enabled, the backup  server must be disabled again. This can be managed technically without requiring any decision from senior non-technical staff.&lt;br /&gt;
&lt;br /&gt;
However, there are also some potentially hard decisions about unavoidable loss of data versus continued system availability. *** Backup servers should therefore only be started with the written approval of the clients senior staff. A suitable email requesting approval follows.&lt;br /&gt;
&lt;br /&gt;
The following case assumes that the main server has gone down sometime during the working day and that therefore the data on the backup server is out of date. Allowing them to use the backup server therefore implies some loss of data. They may wish to lose the data. They may wish to work on the backup server data and then try to redo the work on the main server once it is restored. There are a variety of options depending on the situation.&lt;br /&gt;
&lt;br /&gt;
If the main server is still functioning AND you are reasonably sure that the database is not damaged (which is perhaps an unlikely situation if you need to use the backup server!), it may be sensible to trigger an additional “backup/sync” process to bring the backup server database up to date with the main server. Before you do this, it is advisable that you take a backup copy of the backup system on the backup  server. In this case there would be no data loss in using the backup.&lt;br /&gt;
&lt;br /&gt;
An additional option of providing usage of the backup server in read-only mode so that people can at least access some data is being developed. The backup server could be available continuously at any time in read-only mode. This article would then be related to switching a backup server into main operational mode.&lt;br /&gt;
&lt;br /&gt;
 Dear {senior staff} cc {IT staff}&lt;br /&gt;
 &lt;br /&gt;
 Please note that we can enable the backup server if you wish.&lt;br /&gt;
 &lt;br /&gt;
 However the data on the backup server is out of date since it is a copy of your main database as at 11/22/33 99:99.&lt;br /&gt;
 &lt;br /&gt;
 If you wish to allow work to be done on the backup server then any data entered on your main server since the above date will be lost if we &lt;br /&gt;
 subsequently copy the data on the backup server to the main server.&lt;br /&gt;
 &lt;br /&gt;
 If, after using the backup server, we do NOT copy the data on the back server to the main server then any data you have entered on the backup &lt;br /&gt;
 server/database will be lost.&lt;br /&gt;
 &lt;br /&gt;
 Please confirm a) you want to work on HOSTS2 database and that we should therefore enable it and b) you have disconnected your main server &lt;br /&gt;
 for the duration.&lt;br /&gt;
 &lt;br /&gt;
 Best Regards,&lt;br /&gt;
 xxxxxx xxxxxxx&lt;br /&gt;
 NEOSYS Support&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description of Backup Procedure for the NEOSYS Client Hosting Server ==&lt;br /&gt;
&lt;br /&gt;
NEOSYS backup is a two phase process. It is mandatory that both phases are complete for the process to be considered a backup.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#On the main NEOSYS server host(Schuberg Philis in Amsterdam as of Dec 2010)&amp;lt;br&amp;gt;Every night, the NEOSYS process for selected databases stops serving users at around 1:00 AM to 5:00 AM (local time of the client&#039;s main office) and performs the following procedure: &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; - All the database files are checked for physical corruption.&amp;lt;br&amp;gt; - All the database files are zipped into a file who&#039;s path would be something like C:\DATA.BAK\CLIENTX\MONDAY\BACKUP.ZIP file.&amp;lt;br&amp;gt; - The file having the same name as that of the corresponding day of the week as last week is overwritten.A &amp;quot;backup alert&amp;quot; email indicating success or failure is sent to senior managers at the client, the client’s IT manager and backups@neosys.com.&amp;lt;br&amp;gt; - An internal log (accessible on each database&#039;s Support Menu) is maintained as a record and in case the emails cannot be sent out for some reason.&amp;lt;br&amp;gt; - NEOSYS support staff in Dubai check the emails every morning Sunday through Thursday.&amp;lt;br&amp;gt; - In the case of failure, NEOSYS support staff in Dubai take appropriate action and send an email (to the same people who receive the automated backup alert emails) indicating what action has been taken.&amp;lt;br&amp;gt; - The above does not by itself constitute a proper backup because the backup is stored on the same server and physical disk as the actual data.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#On the NEOSYS backup server host (in NEOSYS Dubai Office as of Dec 2010 but could be changed without notice to EvoSwitch in Amsterdam).&amp;lt;br&amp;gt; - At around 02:00-02:30 AM GMT daily, NEOSYS&#039;s backup server copies (replicates) all the BACKUP.ZIP files from the main NEOSYS server host to itself.&amp;lt;br&amp;gt; - An email indicating success or failure is sent to NEOSYS support staff (only) who deal with it in a similar way to phase 1, except that only NEOSYS management are updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Cutting and Pasting NEOSYS Maintenance Mode Messages into Wiki ==&lt;br /&gt;
&lt;br /&gt;
Error messages expressed as images are not searchable.&lt;br /&gt;
&lt;br /&gt;
Therefore SELECT THE TEXT OF MAINTENANCE MODE WINDOWS using right click on window heading, Edit, Mark, Copy .. not graphical copy.&lt;br /&gt;
 &lt;br /&gt;
Then paste the text into wiki and surround with &amp;quot;&amp;lt; pre&amp;gt;&amp;quot; and &amp;quot;&amp;lt; /pre&amp;gt;&amp;quot; tags (without the space) as follows:&lt;br /&gt;
&lt;br /&gt;
[[image:loginmessage.jpg]]&lt;br /&gt;
&lt;br /&gt;
the result is searchable text as follows ...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔════════════════════════════╗&lt;br /&gt;
║      NEOSYS SECURITY       ║&lt;br /&gt;
║    What is your name ?     ║&lt;br /&gt;
║                            ║&lt;br /&gt;
║   [                    ]   ║&lt;br /&gt;
║                            ║&lt;br /&gt;
║  Please enter your name,   ║&lt;br /&gt;
║   or press Esc to exit.    ║&lt;br /&gt;
╚════════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Amending/Reposting Journal Entries ==&lt;br /&gt;
In certain exceptional cases, amending/reposting of journal entries is allowed for a brief period of time to enable clients to present reports in an alternative manner. This would be subject to NEOSYS would requiring a written LETTER OF APPROVAL duly signed and stamped by the highest management of the company.&lt;br /&gt;
&lt;br /&gt;
In case the client management decides to allow editing/reposting of journal entries, the following procedure is to be followed:&lt;br /&gt;
# Client must de-allocate vouchers which need to be amended&lt;br /&gt;
# NEOSYS support staff must wait for a day so that de-allocated vouchers are copied into Test database&lt;br /&gt;
# Authorise required users to amend and repost (without record) &#039;&#039;&#039;in Test database only&#039;&#039;&#039; &amp;lt;br&amp;gt;( While reposting, we have 2 options i.e. with record and without record. The &#039;with record&#039; option causes the system to maintain a history of edits made. Hence, we want to repost without record so that there is no trace of the edit in the system)&lt;br /&gt;
# Amend a substantial number of vouchers in Test and verify them.&amp;lt;br&amp;gt;To verify if the edits made are reflected:&lt;br /&gt;
# *Print all ledgers for the whole year&lt;br /&gt;
# *Cross-check all balances&lt;br /&gt;
# Once you verify the balances are correct in Test database, grant users permission to amend and repost in the Live database.&lt;br /&gt;
# Ask users to amend and repost vouchers in the Live database.&lt;br /&gt;
# Cross-check all balances for the current year.&lt;br /&gt;
# If you successfully verify the balances, revoke permissions immediately. Else, wait for 24 hours and revoke permissions irrespectively.&lt;br /&gt;
&lt;br /&gt;
== Removal of unauthorized third-party software on client servers ==&lt;br /&gt;
&lt;br /&gt;
Rule: Any third party software that is discovered by NEOSYS support staff on client servers that has been installed without the agreement of NEOSYS should be uninstalled immediately on discovery.&lt;br /&gt;
&lt;br /&gt;
However purposeful a software is, NEOSYS is contractually responsible for support and there are too many opportunities for poorly installed software to cause unpredictable damage to the NEOSYS database so NEOSYS has to have a clear and safe and simple policy to ensure the integrity of client data. Installing software without prior discussion with NEOSYS by itself indicates that insufficient care and consideration as been given to possible issues.&lt;br /&gt;
&lt;br /&gt;
Any software required by client IT for some purpose may only be installed after discussion and agreement from NEOSYS support staff concerning the configuration and operation of the software.&lt;br /&gt;
&lt;br /&gt;
The NEOSYS Software Licence and Support agreement requires that where NEOSYS software is installed on client servers that a dedicated server is provided and dedicated implies that no other software may be installed without the agreement of NEOSYS support.&lt;br /&gt;
&lt;br /&gt;
== Configuring tunnelier to autologin on opening tlp files ==&lt;br /&gt;
If you have many tunnelier tlp files in a directory and connect by opening the desired tlp file the, instead of opening the file and then clicking Login you can also right click the file and select Connect.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can configure tunnelier to login (connect) automatically by following the procedure mentioned below. (Even if you configure automatic login, you can still open and not login by right clicking and choosing Open)&lt;br /&gt;
#Go to My Computer&lt;br /&gt;
#Click on Tools -&amp;gt; Folder Options &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tunnauto-1.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on File Types&lt;br /&gt;
#*Select TLP (Bitvise Tunnelier Profile) [Type &amp;quot;TLP&amp;quot; to find it quickly]&lt;br /&gt;
#*Click on Advanced &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;[[image:tunnauto-2.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
#Click on Connect and Click on Set Default &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; [[image:tunnauto-3.jpg]]&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Tunnauto-3.jpg&amp;diff=1076</id>
		<title>File:Tunnauto-3.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Tunnauto-3.jpg&amp;diff=1076"/>
		<updated>2012-07-03T06:56:51Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Tunnauto-2.jpg&amp;diff=1075</id>
		<title>File:Tunnauto-2.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Tunnauto-2.jpg&amp;diff=1075"/>
		<updated>2012-07-03T06:56:33Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Tunnauto-1.jpg&amp;diff=1074</id>
		<title>File:Tunnauto-1.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Tunnauto-1.jpg&amp;diff=1074"/>
		<updated>2012-07-03T06:52:55Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1073</id>
		<title>Checklists</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1073"/>
		<updated>2012-06-28T05:11:55Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Windows 2003 Installtion ==&lt;br /&gt;
&lt;br /&gt;
[[Media:Windows 2003_New_Installation_Checklist_with_remote_support.doc]]&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_(Finance_only)_&amp;amp;_without_remote_support.doc]]&lt;br /&gt;
&lt;br /&gt;
== Windows 2008 Installation ==&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc]]&lt;br /&gt;
&lt;br /&gt;
[[Media:Windows 2008_New_Installation_Checklist_Virtual_Server.doc]] &lt;br /&gt;
&lt;br /&gt;
== Shifting Servers ==&lt;br /&gt;
[[Media:Shifting_servers_Checklist.doc‎]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Windows_2008_New_Installation_Checklist_Virtual_Server.doc&amp;diff=1072</id>
		<title>File:Windows 2008 New Installation Checklist Virtual Server.doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Windows_2008_New_Installation_Checklist_Virtual_Server.doc&amp;diff=1072"/>
		<updated>2012-06-28T05:11:29Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1071</id>
		<title>Checklists</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1071"/>
		<updated>2012-06-28T04:53:54Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Media:Windows 2003_New_Installation_Checklist_with_remote_support.doc]]&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc]] - Windows 2008&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_(Finance_only)_&amp;amp;_without_remote_support.doc]] - Windows 2003&lt;br /&gt;
&lt;br /&gt;
[[Media:Shifting_servers_Checklist.doc‎]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Windows_2003_New_Installation_Checklist_with_remote_support.doc&amp;diff=1070</id>
		<title>File:Windows 2003 New Installation Checklist with remote support.doc</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Windows_2003_New_Installation_Checklist_with_remote_support.doc&amp;diff=1070"/>
		<updated>2012-06-28T04:53:38Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1069</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1069"/>
		<updated>2012-06-26T12:58:45Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading SSHD / Cygwin */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Procedure To Upgrade Cygwin remotely using TeamViewer:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
&lt;br /&gt;
Note the Teamviewer number and password during installation.&lt;br /&gt;
&lt;br /&gt;
Logout of tunnelier.&lt;br /&gt;
&lt;br /&gt;
Connect on teamviewer using the number and password&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net stop sshd&lt;br /&gt;
net stop cygwinrsync&lt;br /&gt;
net stop exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
&lt;br /&gt;
Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
&lt;br /&gt;
If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [[Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”]])&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkpasswd -l &amp;gt; /etc/passwd&lt;br /&gt;
mkgroup -l &amp;gt; /etc/group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net start sshd&lt;br /&gt;
net start cygwinrsync&lt;br /&gt;
net start exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the version of the packages you installed using the cygcheck command mentioned below to ensure that they have been upgraded.&lt;br /&gt;
&lt;br /&gt;
For eg - To check the version of the openssh package you will have to type the following command in cygwin:&lt;br /&gt;
&lt;br /&gt;
 cygcheck -c openssh&lt;br /&gt;
&lt;br /&gt;
The output should be as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package           Version           Status&lt;br /&gt;
 openssh           6.0p1-2             OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login using tunnelier. If successful, close your Teamviewer on the server&lt;br /&gt;
&lt;br /&gt;
Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation. Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
Finally, check the version of the packages you installed using the cygcheck command mentioned below to ensure that they have been upgraded.&lt;br /&gt;
&lt;br /&gt;
For eg - To check the version of the openssh package you will have to type the following command in cygwin:&lt;br /&gt;
&lt;br /&gt;
 cygcheck -c openssh&lt;br /&gt;
&lt;br /&gt;
The output should be as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package           Version           Status&lt;br /&gt;
 openssh           6.0p1-2             OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
===== How to check Cygwin version ?  =====&lt;br /&gt;
&lt;br /&gt;
If you are looking for the version number for the whole Cygwin release, there is none. &lt;br /&gt;
&lt;br /&gt;
Each package in the Cygwin release has its own version.&lt;br /&gt;
&lt;br /&gt;
To find the version of the Cygwin Package installed, you can use &lt;br /&gt;
&lt;br /&gt;
 cygcheck -c PACKAGE_NAME&lt;br /&gt;
&lt;br /&gt;
eg - To check the version of the openssh package you will have to type the following command in cygwin:&lt;br /&gt;
&lt;br /&gt;
 cygcheck -c openssh&lt;br /&gt;
&lt;br /&gt;
The output should be as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package           Version           Status&lt;br /&gt;
 openssh           6.0p1-2             OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1068</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1068"/>
		<updated>2012-06-26T10:19:47Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Installing and configuring SSH */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Procedure To Upgrade Cygwin remotely using TeamViewer:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
&lt;br /&gt;
Note the Teamviewer number and password during installation.&lt;br /&gt;
&lt;br /&gt;
Logout of tunnelier.&lt;br /&gt;
&lt;br /&gt;
Connect on teamviewer using the number and password&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net stop sshd&lt;br /&gt;
net stop cygwinrsync&lt;br /&gt;
net stop exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
&lt;br /&gt;
Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
&lt;br /&gt;
If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [[Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”]])&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkpasswd -l &amp;gt; /etc/passwd&lt;br /&gt;
mkgroup -l &amp;gt; /etc/group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net start sshd&lt;br /&gt;
net start cygwinrsync&lt;br /&gt;
net start exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check the version of the packages you installed using the cygcheck command mentioned below to ensure that they have been upgraded.&lt;br /&gt;
&lt;br /&gt;
Login using tunnelier. If successful, close your Teamviewer on the server&lt;br /&gt;
&lt;br /&gt;
Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation. Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
Finally, check the version of the packages you installed using the cygcheck command mentioned below to ensure that they have been upgraded.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
===== How to check Cygwin version ?  =====&lt;br /&gt;
&lt;br /&gt;
If you are looking for the version number for the whole Cygwin release, there is none. &lt;br /&gt;
&lt;br /&gt;
Each package in the Cygwin release has its own version.&lt;br /&gt;
&lt;br /&gt;
To find the version of the Cygwin Package installed, you can use &lt;br /&gt;
&lt;br /&gt;
 cygcheck -c PACKAGE_NAME&lt;br /&gt;
&lt;br /&gt;
eg - To check the version of the openssh package you will have to type the following command in cygwin:&lt;br /&gt;
&lt;br /&gt;
 cygcheck -c openssh&lt;br /&gt;
&lt;br /&gt;
The output should be as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package           Version           Status&lt;br /&gt;
 openssh           6.0p1-2             OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Finance_System&amp;diff=1067</id>
		<title>Troubleshooting NEOSYS Finance System</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Troubleshooting_NEOSYS_Finance_System&amp;diff=1067"/>
		<updated>2012-06-26T10:07:45Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Fixing &amp;quot;Cross Check Balance&amp;quot; warning using CHK.VINDEX */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Cross-Year Cross Check Balance Warnings ==&lt;br /&gt;
&lt;br /&gt;
When you use Opening Balance Journals, NEOSYS does not guarantee that the opening balances of one year match the closing balance of a prior year. This occurs quite normally and commonly occurs in two situations described below.&lt;br /&gt;
&lt;br /&gt;
Regardless of the cause, in such cases, any statement or ledger account of movements (not open items) that crosses the disjoint years will have a &amp;quot;cross check balance&amp;quot; note at the bottom of the account. A cross check balance warning is just a warning that the closing balance of the account (as calculated from a simple total of the opening balance in the old year plus all transactions) does not agree with the actual account balance according to the trial balance in the new year.&lt;br /&gt;
&lt;br /&gt;
If the opening balance of the account in the second year is not equal to the closing balance in the prior year then logically the two years cannot be viewed as a single continuous account and agree with the trial balance.&lt;br /&gt;
&lt;br /&gt;
=== Producing Historical Accounts ===&lt;br /&gt;
&lt;br /&gt;
When you start up a company in one year using Opening Balance Journals then the closing balances of the prior years remain zero. If you thereafter start to post into prior years, the closing balances of those years will remain in disagreement with the opening balance of the following years.&lt;br /&gt;
&lt;br /&gt;
=== Opening Balance Journals ===&lt;br /&gt;
&lt;br /&gt;
If you post Opening Balance Journals into one year for any reason, they are not posted into prior years. Therefore the opening balances of the amended year become different from the prior year.&lt;br /&gt;
&lt;br /&gt;
In this respect, auditors amendments to opening balances should be posted as normal journals in the final period of the prior year and not as Opening Balance Journals in the current year.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
If you wish to obtain cross-year accounts between years, and you wish such account&#039;s balances to agree with the later year trial balance, then you must arrange for the closing balances of the prior years to agree with the opening balances of the following years.&lt;br /&gt;
&lt;br /&gt;
To do this, ensure that any Opening Balance Journals that are posted into any particular year are also posted into all prior financial years of interest.&lt;br /&gt;
&lt;br /&gt;
== Editing and Reposting Vouchers ==&lt;br /&gt;
&lt;br /&gt;
WARNING: Can cause effectively irreversible damage to the finance database requiring restoration of a suitable backup causing loss of data and/or total loss of database if backup not available.&lt;br /&gt;
&lt;br /&gt;
It is almost impossible to edit and repost vouchers and keep the audit trail correct so this procedure is of limited use. The stages are UNPOST, EDIT, REPOST.&lt;br /&gt;
&lt;br /&gt;
Must be done on test data and advisable to run CHK.VOUCHERS afterwards.&lt;br /&gt;
&lt;br /&gt;
=== UNPOST ===&lt;br /&gt;
 F5&lt;br /&gt;
 UNPOST XXX*YYYYY*ZZZ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
*XXX is the voucher type/journal code&lt;br /&gt;
*YYY is the voucher number&lt;br /&gt;
*ZZZ is the company code&lt;br /&gt;
&lt;br /&gt;
Any problems with the voucher might generate messages but the problems will be reverse the problems which must have occurred when posting the voucher in the first place.&lt;br /&gt;
&lt;br /&gt;
=== EDIT ===&lt;br /&gt;
 F5&lt;br /&gt;
 ED VOUCHERS XXX*YYYYY*ZZZ&lt;br /&gt;
&lt;br /&gt;
For example, if due to a neosys system error, the ZZZ999 suspense account has been used instead of some missing internal system accounts like exchange gain/loss accounts then you can insert the correct account.&lt;br /&gt;
&lt;br /&gt;
Change line 8 (which contains the account numbers) from:&lt;br /&gt;
&lt;br /&gt;
 REZO²REZO²BMDI²BMDI²²&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
 REZO²REZO²BMDI²BMDI²EXDI²EXDI&lt;br /&gt;
&lt;br /&gt;
where EXDI is the A/c No. of the Exchange Difference A/c.&lt;br /&gt;
&lt;br /&gt;
F9, ESC to save and exit&lt;br /&gt;
&lt;br /&gt;
=== REPOST ===&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 REPOST XXX*YYYYY*ZZZ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=red&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Using Finance Maintenance Mode fixing tools ==&lt;br /&gt;
Do not do mass fixes eg “Add/Delete ALL xyz” options from a year in the past eg 2007 while only checking accounts for 2009. You must CHECK EVERYTHING THAT YOU REQUEST TO BE FIXED.&lt;br /&gt;
&lt;br /&gt;
The various fixing tools like CHK.ALLOC etc are impossible to make safe in all circumstances so if you don’t really know what you are doing you assume the WORST not the BEST with these fixing tools. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;CHECK EVERYTHING YOU “FIX”!!!&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
IF YOU DO NOT FOLLOW INSTRUCTIONS CAREFULLY YOU CAN END UP MODIFYING AUDITED ACCOUNTS AND IT WILL TAKE DAYS FOR PROGRAMMERS TO TRY AND CORRECT THE DAMAGE YOU CAUSE OR EVEN REQUIRE A RESTORE OF A BACKUP CAUSING LOSS OF MANY DAYS WORK TO THE CLIENT&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Fixing &amp;quot;Cross Check Balance&amp;quot; warnings using CHK.ALLOC ==&lt;br /&gt;
&lt;br /&gt;
Cross Check Balance Message on an account means the total of the outstanding items in an account does not match the balance as in the movement - typically the outstanding shows a higher balance than the balance in the movement, but might not always be the case. The reasons why this may happen is because of the following:&lt;br /&gt;
&lt;br /&gt;
*Reposting journals containing allocated items (which NEOSYS doesnt handle in all circumstances)&lt;br /&gt;
*Failing to clear open item accounts on a regular basis where the number of postings is high&lt;br /&gt;
&lt;br /&gt;
This procedure only applies to CCB on the outstanding item type statements which are the more common problem. CCB on movement accounts are rarer, more serious and cannot be fixed by this procedure.&lt;br /&gt;
&lt;br /&gt;
This might not always fix the CCB warnings and hence you will need to escalate to the programmer.&lt;br /&gt;
&lt;br /&gt;
!!! WARNING This is a dangerous procedure. IF YOU DO NOT FOLLOW INSTRUCTIONS CAREFULLY YOU CAN END UP MODIFYING AUDITED ACCOUNTS AND AUDITORS/ACCOUNTANTS AND IT WILL TAKE DAYS FOR PROGRAMMERS TO TRY AND CORRECT THE DAMAGE YOU CAUSE!&lt;br /&gt;
&lt;br /&gt;
This can be run while other users are online.&lt;br /&gt;
&lt;br /&gt;
DO THIS ON TESTDATA FIRST&lt;br /&gt;
&lt;br /&gt;
This exact procedure restores vouchers missing from open item accounts. This can be caused by:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 UTIL (nothing happens at this stage as its a background process and gives you access to the next command)&lt;br /&gt;
 CHK.ALLOC&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Minimum voucher year.period?&lt;br /&gt;
&lt;br /&gt;
Generally go back as little as possible to cover vouchers that might be missing from O/I accounts.&lt;br /&gt;
&lt;br /&gt;
 Which account do you want or blank for all?&lt;br /&gt;
&lt;br /&gt;
You MUST press Esc to search for all accounts. Entering one account WILL NOT WORK since it will only check vouchers already on the open item accounts and we are looking for those that are missing.&lt;br /&gt;
&lt;br /&gt;
IGNORE OR RESPOND NEGATIVELY to all messages or questions EXCEPT the following:&lt;br /&gt;
&lt;br /&gt;
 Missing from O/I index?&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Yes&amp;quot; or &amp;quot;Yes to all&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Meaning of other messages ===&lt;br /&gt;
&lt;br /&gt;
The following message pair does not usually cause cross check balances and indicates that they have cancelled some foreign currency allocation since allocation should not cause and change in rate.&lt;br /&gt;
&lt;br /&gt;
 IN*175510*C 20/01/08 ALMA 4/2 REC*4440*C allocation base outstanding -7326.15 expected -6762.60 (-563.550,.08333333)&lt;br /&gt;
 IN*175510*C 20/01/08 ALMA 4/2 REC*4440*C allocation changed exchange rate from .08333333 to .07692308&lt;br /&gt;
&lt;br /&gt;
Following MUST choose &amp;quot;Leave all&amp;quot; otherwise risk damage to closed audited prior year accounts:&lt;br /&gt;
&lt;br /&gt;
 Account numbers do not agree. Delete the allocation?&lt;br /&gt;
&lt;br /&gt;
Following MUST choose &amp;quot;Leave all&amp;quot; otherwise risk damage to closed audited prior year accounts:&lt;br /&gt;
&lt;br /&gt;
 Allocation is missing ?&lt;br /&gt;
&lt;br /&gt;
Choose &amp;quot;Skip further Warnings&amp;quot; for the following message:&lt;br /&gt;
&lt;br /&gt;
 Amounts do not agree - please fix manually&lt;br /&gt;
&lt;br /&gt;
=== Re-enabling CCB warning mail notifications ===&lt;br /&gt;
NEOSYS is pre-configured to send out email notifications (to the same group of people who receive the backup alerts) when a Cross Check Balance (CCB) warning is found for the first time on an account. That means there will be only 1 email notification irrespective of the times the warning occurs until it is fixed.&lt;br /&gt;
&lt;br /&gt;
After the CCB is fixed or after clearing or otherwise eliminating the same, you need to delete the CCB file in D:\neosys\neosys to re-enable NEOSYS to resend notification by email after it discovers CCB warnings on that account again in the future.&lt;br /&gt;
&lt;br /&gt;
== Fixing &amp;quot;Cross Check Balance&amp;quot; warning using CHK.VINDEX ==&lt;br /&gt;
&lt;br /&gt;
YOU MUST READ AND APPLY THE GENERAL INSTRUCTIONS WRITTEN FOR CHK.ALLOC AS WELL FOR CHK.VINDEX&lt;br /&gt;
&lt;br /&gt;
This program can fix a few CCB warnings that CHK.ALLOC cannot - including some in balance forward type accounts (ie not open item/outstanding item accounts) .&lt;br /&gt;
&lt;br /&gt;
Not all the possible fixes are described here and any messages which are not described here should be responded to NEGATIVELY!&lt;br /&gt;
&lt;br /&gt;
=== Different account - Delete the index entry?===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  &amp;quot;*MEVEJ*FZ&amp;quot;  L=232 V=REC*461*FZ 05/07/09 B=447 &amp;quot;MEVEJ&amp;quot;&lt;br /&gt;
  different account &amp;quot;ADVOPME&amp;quot;&lt;br /&gt;
                     Delete the index entry?&lt;br /&gt;
───┬─────────────────────────────────────────────────────────────&lt;br /&gt;
  1&amp;gt;No&lt;br /&gt;
  2│None&lt;br /&gt;
  3│Yes&lt;br /&gt;
  4│All&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Yes.&lt;br /&gt;
&lt;br /&gt;
=== Missing Voucher - Delete the index entry?===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔═════════════════════════════════════════════════════════════════╗&lt;br /&gt;
║  &amp;quot;*VIV*N&amp;quot;  L=458 V=IN*2012/1170*N 29/05/12 missing voucher      ║&lt;br /&gt;
║                     Delete the index entry?                     ║&lt;br /&gt;
║───┬─────────────────────────────────────────────────────────────║&lt;br /&gt;
║  1&amp;gt;No                                                           ║&lt;br /&gt;
║  2│Yes                                                          ║&lt;br /&gt;
║  3│None                                                         ║&lt;br /&gt;
║  4│All                                                          ║&lt;br /&gt;
╚═════════════════════════════════════════════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select Yes.&lt;br /&gt;
&lt;br /&gt;
== Using CHK.POST to fix some types of Cross Check Balance (CCB) errors ==&lt;br /&gt;
&lt;br /&gt;
This program adjusts the balances in the trial balance reports (which also show in the “Cross Check Balance phrase on the Detailed Ledger Accounts) to match the vouchers found in the voucher file. Note that CHK.ALLOC and CHK.VINDEX have no effect on these figures and instead amend the transactions shown on the Detailed Ledger Account - and thereby the totals on the same report so that they agree with the CCB amount and thereby the conflict is resolved.&lt;br /&gt;
&lt;br /&gt;
Most CCB in NEOSYS are related to problems on outstanding item accounts and are fixed with the CHK.ALLOC program. More rarely, problems occur in the movement accounts and are fixed with the CHK.VINDEX program - although this can also fix some errors in outstanding item statements. Even more rarely will the problem be on the Trial Balances/CCB balances and can be fixed with this CHK.POST procedure&lt;br /&gt;
&lt;br /&gt;
WARNING! This solution may make things worse so don’t use on live data unless EXHAUSTIVELY checked that everything is ok on test data first.&lt;br /&gt;
&lt;br /&gt;
WARNING! Don’t go back and “correct” previous years which have been closed because auditors expect them never to change (EVEN IF THEY ARE WRONG!) and it can be impossible to put them back “wrong” if you “correct” them.&lt;br /&gt;
&lt;br /&gt;
WARNING! If you correct previous years then you must rerun the Open New Year procedure for all prior years and this procedure is not documented and can only be run by programmers at the moment.&lt;br /&gt;
&lt;br /&gt;
#In maintenance mode press Alt+1&lt;br /&gt;
#Enter the range of periods that you want to check/adjust the trial balance for e.g. 1/9-7/9 for 1st Period of 2009 up to the 7th period of 2009.&lt;br /&gt;
#Press F9 and Esc&lt;br /&gt;
#Press F5 and type CHK.POST&lt;br /&gt;
#What stage to start at? Choose “Select Vouchers”&lt;br /&gt;
#Clear the updated balances file? Choose “Clear it”&lt;br /&gt;
#OK to Start? … OK&lt;br /&gt;
#If there are any discrepancies found between the Trial Balance Balances/CCB balances … and the Vouchers in the file you will get some fairly cryptic questions asking you, one by one, if you want to fix the balances.&lt;br /&gt;
&lt;br /&gt;
IMPORTANT&lt;br /&gt;
#It is advised that you only fix the balances which refer to the accounts that you are concerned about. You will find the account number buried in the cryptic questions referred to above.&lt;br /&gt;
#If you fix subsidiary account balances then MAKE SURE that you also fix the control accounts balances (if you are prompted).&lt;br /&gt;
&lt;br /&gt;
== B10 &amp;amp; B12 Errors ==&lt;br /&gt;
&lt;br /&gt;
The error might be displayed as follows :&lt;br /&gt;
&lt;br /&gt;
 ERROR NO: B10 IN DAYBOOK.SUBSX AT 133&lt;br /&gt;
 Variable has not been assigned a value. Zero used.&lt;br /&gt;
&lt;br /&gt;
This error should have said something like : &amp;quot;The ledgers are closed up to the period you have just tried to post&amp;quot; OR &amp;quot;Financial Year 2011 must be opened before you post into it.&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Try again and you would see the exact message if you have not opened the new year as yet.&lt;br /&gt;
&lt;br /&gt;
== Reinstating Open Item Statements after Clear Open Items ==&lt;br /&gt;
&lt;br /&gt;
WARNING: DO THIS PROCESS ON TEST DATA FIRST TO VERIFY THAT IT DOES NOT CAUSE CROSS CHECK BALANCE ERRORS&lt;br /&gt;
&lt;br /&gt;
WARNING: THIS PROCESS MAY CAUSE CROSS CHECK BALANCE ERRORS BY REINSTATING &amp;quot;ANCIENT CORRUPT VOUCHERS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;CHECK BACK&amp;quot; AS FEW YEARS AS NEEDED TO INCLUDE ALL VOUCHERS THAT COULD BE OPEN/OUTSTANDING AT THE DESIRED PERIOD.&lt;br /&gt;
&lt;br /&gt;
It is not easy to know how far to &amp;quot;check back&amp;quot; for open items so go back two years initially unless it is known that there may be items outstanding from even earlier years.&lt;br /&gt;
&lt;br /&gt;
=== 1. Check, solve, record all existing cross check balances ===&lt;br /&gt;
&lt;br /&gt;
Restoring open items may create cross check balance errors so first you need to fix all EXISTING cross check balance errors in the database.&lt;br /&gt;
&lt;br /&gt;
Do not proceed to the next step until this step is complete otherwise you will have no idea what problems were created by CHK.ALLOC and what problems were in the database before.&lt;br /&gt;
&lt;br /&gt;
Expect no sympathy from programmers if you ignore this or fail to work on testdata first.&lt;br /&gt;
&lt;br /&gt;
First print ***ALL*** open item ledger accounts to check for existing cross check balances in open item accounts.&lt;br /&gt;
&lt;br /&gt;
Correct all &amp;quot;cross check balances&amp;quot; using the usual procedures to do so.&lt;br /&gt;
&lt;br /&gt;
Note that cross check balances are unavoidable on some *extremely large* open item accounts. This does not mean that you can ignore cross check balances on merely large accounts. They must be fixed.&lt;br /&gt;
&lt;br /&gt;
Save copies of the detailed ledger accounts of any *extremely large&amp;quot; open items accounts that you have not fixed their cross check balances.&lt;br /&gt;
&lt;br /&gt;
=== 2. Edit back the Company File &amp;quot;cleared-upto period&amp;quot; ===&lt;br /&gt;
&lt;br /&gt;
Complete this step quickly if users are working online - in order not to lock the company file for longer than it takes to change the &amp;quot;cleared upto period&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
In maintenance mode,  press F5. example company code X. Do this for all companies that need to.&lt;br /&gt;
&lt;br /&gt;
 ED COMPANIES X&lt;br /&gt;
&lt;br /&gt;
change line 17 to be the last period (YYMM) desired to have been cleared.&lt;br /&gt;
&lt;br /&gt;
DONT add or delete any lines!&lt;br /&gt;
&lt;br /&gt;
F9, Esc&lt;br /&gt;
&lt;br /&gt;
=== 3. Run CHK.ALLOC ===&lt;br /&gt;
&lt;br /&gt;
This process can be run while users are working since there is a only a very slight chance that they will be posting the same account at the time that the program is updating its open item voucher index.&lt;br /&gt;
&lt;br /&gt;
In maintenance mode press F5&lt;br /&gt;
&lt;br /&gt;
 CHK.ALLOC&lt;br /&gt;
&lt;br /&gt;
Minimum is how far to go back. See explanation above.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔═══════════════════════════════════════╗&lt;br /&gt;
║ Minimum voucher year.period to check? ║&lt;br /&gt;
║              (0 for all)              ║&lt;br /&gt;
║&amp;lt;200801                               &amp;gt;║&lt;br /&gt;
╚═══════════════════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Which account do you want? PRESS ESC (or Enter+Esc)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔═════════════════════════════════════════╗&lt;br /&gt;
║       Which account do you want ?       ║&lt;br /&gt;
║                                         ║&lt;br /&gt;
║    Give the account number or name,     ║&lt;br /&gt;
║     or press [Enter] if not known.      ║&lt;br /&gt;
║ (separate multiple entries with spaces) ║&lt;br /&gt;
║&amp;lt;                                       &amp;gt;║&lt;br /&gt;
╚═════════════════════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Add it? ... Choose &amp;quot;Yes to All&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
╔═══════════════════════════╗&lt;br /&gt;
║  Missing from O/I index   ║&lt;br /&gt;
║      Add it? (1.1KB)      ║&lt;br /&gt;
║───┬───────────────────────║&lt;br /&gt;
║  1│Yes                    ║&lt;br /&gt;
║  2│No                     ║&lt;br /&gt;
║  3&amp;gt;Yes to all &amp;lt;-THIS ONE  ║&lt;br /&gt;
║  4│No to all              ║&lt;br /&gt;
║  5│Yes to all *HAEX*FZ    ║&lt;br /&gt;
║  6│No to all *HAEX*FZ     ║&lt;br /&gt;
╚═══════════════════════════╝&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 4. Check for cross check balances ===&lt;br /&gt;
&lt;br /&gt;
Print ***ALL*** open item ledger accounts to check for any additional cross check balances in open item accounts.&lt;br /&gt;
&lt;br /&gt;
If you have any ADDITIONAL cross check balances compared to those recorded in step 1, then you can rerun step 3 and &amp;quot;check back&amp;quot; a little earlier. Try one year earlier at a time - to avoid the problem of reinstating &amp;quot;ancient corrupt vouchers&amp;quot;.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1066</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1066"/>
		<updated>2012-06-26T06:06:18Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading Cygwin remotely */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Procedure To Upgrade Cygwin remotely using TeamViewer:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
&lt;br /&gt;
Note the Teamviewer number and password during installation.&lt;br /&gt;
&lt;br /&gt;
Logout of tunnelier.&lt;br /&gt;
&lt;br /&gt;
Connect on teamviewer using the number and password&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net stop sshd&lt;br /&gt;
net stop cygwinrsync&lt;br /&gt;
net stop exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
&lt;br /&gt;
Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
&lt;br /&gt;
If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [[Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”]])&lt;br /&gt;
&lt;br /&gt;
In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkpasswd -l &amp;gt; /etc/passwd&lt;br /&gt;
mkgroup -l &amp;gt; /etc/group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net start sshd&lt;br /&gt;
net start cygwinrsync&lt;br /&gt;
net start exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Login using tunnelier. If successful, close your Teamviewer on the server&lt;br /&gt;
&lt;br /&gt;
Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation. Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Finally, check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1065</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1065"/>
		<updated>2012-06-25T05:44:13Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading Cygwin remotely */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
Procedure To Upgrade Cygwin remotely using TeamViewer:&lt;br /&gt;
&lt;br /&gt;
1. Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
&lt;br /&gt;
2. Note the Teamviewer number and password during installation.&lt;br /&gt;
&lt;br /&gt;
3. Logout of tunnelier.&lt;br /&gt;
&lt;br /&gt;
4. Connect on teamviewer using the number and password&lt;br /&gt;
&lt;br /&gt;
5. In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net stop sshd&lt;br /&gt;
net stop cygwinrsync&lt;br /&gt;
net stop exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
&lt;br /&gt;
7. Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
&lt;br /&gt;
8. If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [[Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”]])&lt;br /&gt;
&lt;br /&gt;
9. In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkpasswd -l &amp;gt; /etc/passwd&lt;br /&gt;
mkgroup -l &amp;gt; /etc/group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
10. Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net start sshd&lt;br /&gt;
net start cygwinrsync&lt;br /&gt;
net start exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
11. Login using tunnelier&lt;br /&gt;
*If successful, close your Teamviewer on the server&lt;br /&gt;
&lt;br /&gt;
12. Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation&lt;br /&gt;
*Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Finally, check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1064</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1064"/>
		<updated>2012-06-25T05:42:48Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading Cygwin remotely */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
Procedure To Upgrade Cygwin remotely using TeamViewer:&lt;br /&gt;
1. Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
2. Note the Teamviewer number and password during installation.&lt;br /&gt;
3. Logout of tunnelier.&lt;br /&gt;
4. Connect on teamviewer using the number and password&lt;br /&gt;
5. In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net stop sshd&lt;br /&gt;
net stop cygwinrsync&lt;br /&gt;
net stop exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
6. In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
7. Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
8. If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”])&lt;br /&gt;
9. In command console type the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkpasswd -l &amp;gt; /etc/passwd&lt;br /&gt;
mkgroup -l &amp;gt; /etc/group&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
10. Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
net start sshd&lt;br /&gt;
net start cygwinrsync&lt;br /&gt;
net start exim&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
11. Login using tunnelier&lt;br /&gt;
*If successful, close your Teamviewer on the server&lt;br /&gt;
12. Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation&lt;br /&gt;
*Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Finally, check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1063</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1063"/>
		<updated>2012-06-24T13:52:12Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading Cygwin Without requiring a server reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin remotely =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
Procedure To Upgrade Cygwin remotely using TeamViewer:&lt;br /&gt;
#Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
#Note the Teamviewer number and password during installation.&lt;br /&gt;
#Logout of tunnelier.&lt;br /&gt;
#Connect on teamviewer using the number and password&lt;br /&gt;
#In command console type the following commands:&amp;lt;pre&amp;gt;net stop sshd&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net stop cygwinrsync&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net stop exim&amp;lt;/pre&amp;gt;&lt;br /&gt;
#In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
#Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
#If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”])&lt;br /&gt;
#In command console type the following commands:&amp;lt;pre&amp;gt;mkpasswd -l &amp;gt; /etc/passwd&amp;lt;/pre&amp;gt; &amp;lt;pre&amp;gt;mkgroup -l &amp;gt; /etc/group&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&amp;lt;pre&amp;gt;net start sshd&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net start cygwinrsync&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net start exim&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Login using tunnelier&lt;br /&gt;
#*If successful, close your Teamviewer on the server&lt;br /&gt;
#Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation&lt;br /&gt;
#*Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Finally, check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1062</id>
		<title>Setting up and using remote support</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Setting_up_and_using_remote_support&amp;diff=1062"/>
		<updated>2012-06-24T06:12:46Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Upgrading Cygwin Without requiring a server reboot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Getting agreement of client IT staff to provide remote support ==&lt;br /&gt;
&lt;br /&gt;
[[Letter to obtain agreement of client IT staff to provide remote support]]&lt;br /&gt;
&lt;br /&gt;
== Installing and configuring the server ==&lt;br /&gt;
&lt;br /&gt;
=== Initial Connection to the server before setting up permanent remote connection ===&lt;br /&gt;
&lt;br /&gt;
In case of a remote installation you need to get an initial connection to the server before you can setup Cygwin for a permanent remote connection. For this purpose you can either use your customised reverse connect UltraVNC SC file or the one-time run Teamviewer utility.&lt;br /&gt;
&lt;br /&gt;
Do not use Microsoft Remote Desktop Client (RDP/RDC) on port 3389 at anytime to access the server from the internet since IT suppliers not aware of the situation often setup the initial administrator password to something obvious like &amp;quot;password&amp;quot; or even blank and in this case there is a good chance internet worms will discover the &amp;quot;open door&amp;quot; and install themselves before you get the chance to put a strong password.&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring SSH ===&lt;br /&gt;
==== Installing Cygwin with OPENSSH ====&lt;br /&gt;
&lt;br /&gt;
These instruction are only for installing in a server NOT part of a domain. For installing in a server that is part of a domain, see http://cygwin.com/faq-nochunks.html#faq.using.sshd-in-domain&lt;br /&gt;
&lt;br /&gt;
Watch out for non-intuitive steps like clicking &amp;quot;skip&amp;quot; to install something.&lt;br /&gt;
&lt;br /&gt;
# Read [[Avoiding Corrupt Cygwin Installations]]&lt;br /&gt;
# ENSURE that you are logged in as the local (NOT DOMAIN) administrator&lt;br /&gt;
# Download/Run/Install http://www.cygwin.com/setup.exe&amp;lt;br&amp;gt;(you might have to go to the home page http://www.cygwin.com and click the link to setup.exe)&lt;br /&gt;
# Download source: &#039;&#039;&#039;Install from Internet&#039;&#039;&#039;&lt;br /&gt;
# Root Directory: &#039;&#039;&#039;c:\cygwin&#039;&#039;&#039;&lt;br /&gt;
# Local Package Directory: &#039;&#039;&#039;c:\cygwin.lib&#039;&#039;&#039;&lt;br /&gt;
# Internet Connection: &#039;&#039;&#039;Direct Connection&#039;&#039;&#039;&lt;br /&gt;
# Download Site: &#039;&#039;&#039;http://mirrors.kernel.org&#039;&#039;&#039; (near the bottom)&amp;lt;br&amp;gt;(If this does not show in the list, key in the URL in the field &#039;&#039;&#039;User URL&#039;&#039;&#039; and click on Add)&lt;br /&gt;
# Select Packages: Maximise window then click &#039;&#039;&#039;View&#039;&#039;&#039; once to get &#039;&#039;&#039;Full&#039;&#039;&#039;. You can then enter the name of the desired packages in the Search box to speed up location of the desired packages.&lt;br /&gt;
# Next to the package &#039;&#039;&#039;OPENSSH&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get version 4.4p1-1 or later&lt;br /&gt;
# Next to the package &#039;&#039;&#039;NANO&#039;&#039;&#039;, click the word &#039;&#039;&#039;Skip&#039;&#039;&#039; (once!) to get the latest version available&lt;br /&gt;
# Check the NEOSYS INSTALLATION CHECKLIST for any other packages to install like the above.&lt;br /&gt;
# Click Next and complete the installation&lt;br /&gt;
&lt;br /&gt;
==== Win32 Error ====&lt;br /&gt;
&lt;br /&gt;
The Win32 Error occur when the bad file is cached in internet explorer cache. You can try clearing the internet explorer cache and redownloading or you can try to download from cygwin.com instead of www.cygwin.com so it doesnt look in the cache or www.cygwin.com if your original download was from cygwin.com. All else failing, you can simply upload the setup.exe file from your own pc to the server. &lt;br /&gt;
&lt;br /&gt;
All this relates to win32 error when running a downloaded file. Any downloaded file and not just cygwin.com/setup.exe&lt;br /&gt;
&lt;br /&gt;
==== Configuring and starting SSHD ====&lt;br /&gt;
Open the Cygwin icon to get a linux/bash command line and type:&lt;br /&gt;
&lt;br /&gt;
Run the following commands:&lt;br /&gt;
&lt;br /&gt;
 chmod +r /etc/passwd&lt;br /&gt;
 chmod +r /etc/group&lt;br /&gt;
 chmod 777 /var&lt;br /&gt;
&lt;br /&gt;
Thereafter start with the ssh configuration:&lt;br /&gt;
&lt;br /&gt;
 ssh-host-config&lt;br /&gt;
&lt;br /&gt;
Then on the following options type:&lt;br /&gt;
&lt;br /&gt;
 Privilege                   –   YES&lt;br /&gt;
 New local sshd account      -   YES&lt;br /&gt;
 Install SSHD as a service   -   YES&lt;br /&gt;
 Enter value of daemon       -   ntsec&lt;br /&gt;
 Different name              -   NO&lt;br /&gt;
 Create new privileged user  -   YES&lt;br /&gt;
 Enter a password now        -   Set any random password and should not be the same as the neosys server (8 characters min)&lt;br /&gt;
&lt;br /&gt;
At the command prompt type&lt;br /&gt;
&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
==== Configuring SSHD to use a non-standard port number ====&lt;br /&gt;
This is necessary if the router cannot forward port 19580 --&amp;gt; 22 and we don’t want to open port 22 directly.&lt;br /&gt;
&lt;br /&gt;
Capitalization is signification in cygwin/linux commands&lt;br /&gt;
&lt;br /&gt;
open cygwin command prompt&lt;br /&gt;
 cd /etc&lt;br /&gt;
 chown administrator sshd_config&lt;br /&gt;
 nano sshd_config (assuming that you have installed the NANO editor)&lt;br /&gt;
 notepad sshd_config (incase you havent installed the NANO editor)&lt;br /&gt;
Move your cursor to &#039;&#039;&#039;Port 22&#039;&#039;&#039; and change 22 to 19580. ctrl+x to save. On the confirmation type Y and on the next prompt hit enter.&lt;br /&gt;
 chown system sshd_config&lt;br /&gt;
 net stop sshd&lt;br /&gt;
 net start sshd&lt;br /&gt;
&lt;br /&gt;
To check that the connection to port 19580 is successful you can run the following test:&lt;br /&gt;
 ssh -p 19580 administrator@localhost&lt;br /&gt;
&lt;br /&gt;
You will be prompted to confirm the connection (say yes)&lt;br /&gt;
&lt;br /&gt;
Now enter the system password to complete the procedure.&lt;br /&gt;
&lt;br /&gt;
==== Changing ssh login from “Administrator” to “administrator” ====&lt;br /&gt;
Current NEOSYS policy to cater for recent versions of Cygwin is to rename the windows Administrator user to administrator to keep a consistent ssh login across all installations.&lt;br /&gt;
&lt;br /&gt;
If you forget to do this before installing or upgrading Cygwin then you must to the following:&lt;br /&gt;
&lt;br /&gt;
#Rename “Administrator” to “administrator” in Windows&lt;br /&gt;
#*If you cannot rename Administrator to administrator, follow the procedure mentioned at [[Changing username from Administrator to administrator]]&lt;br /&gt;
#In a Cygwin console do:&lt;br /&gt;
&lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
&lt;br /&gt;
It should come back with nothing&lt;br /&gt;
&lt;br /&gt;
==== Error while changing Cygwin port 22 to 19580 ====&lt;br /&gt;
&lt;br /&gt;
Error Message:&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;Could not open file for writing: permission denied&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Occurrence:&lt;br /&gt;
Sometimes when you edit the sshd_config file through NANO.&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
In SSH shell, follow these commands:&lt;br /&gt;
&lt;br /&gt;
 cp sshd_config ashwin_temp #copies sshd_config to a new file ashwin_temp&lt;br /&gt;
 rm sshd_config             #deletes sshd_config&lt;br /&gt;
 cp ashwin_temp sshd_config #copies ashwin_temp to sshd_config&lt;br /&gt;
&lt;br /&gt;
In case it does not copy sshd_config to ashwin_temp, than check whether an ashwin_temp filename exists and delete it using the rm command.&lt;br /&gt;
&lt;br /&gt;
==== Opening up ssh connections to additional source ip nos ====&lt;br /&gt;
&lt;br /&gt;
Starting a NEOSYS process will automatically restrict cygwin ssh to accept connections from known NEOSYS company static ip numbers.&lt;br /&gt;
&lt;br /&gt;
In the cygwin command line, insert a line in the list of allowable hosts&lt;br /&gt;
&lt;br /&gt;
DO NOT ALLOW ALL OR GENERAL SSH ACCESS TO NEOSYS CLIENTS SERVERS WITHOUT GETTING PERMISSION *AND* INSTALLING EMAIL ALERTS FOR LOGINS AS DESCRIBED BELOW&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
 sshd: ALL&lt;br /&gt;
&lt;br /&gt;
or a ip numbers or CIDR format&lt;br /&gt;
&lt;br /&gt;
 sshd 12.34.56.78&lt;br /&gt;
 sshd 12.34.0.0/16&lt;br /&gt;
&lt;br /&gt;
==== Setting up email alerts for cygwin ssh logins  ====&lt;br /&gt;
&lt;br /&gt;
Use http://www.cygwin.com/setup.exe to install &amp;quot;email&amp;quot; and &amp;quot;whois&amp;quot; packages&lt;br /&gt;
&lt;br /&gt;
Insert the following script using cygwin command prompt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;NOTE! it@neosys.com to whatever you want.&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano sshrc&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
#you configure this&lt;br /&gt;
&lt;br /&gt;
ALERTEMAILADDRESS=it@neosys.com&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the ip number without the ipv6 prefix&lt;br /&gt;
FROMIPNO=`echo $SSH_CLIENT|cut -f 1 -d &amp;quot; &amp;quot;|sed &#039;s/::ffff://&#039;`&lt;br /&gt;
#&lt;br /&gt;
#quit with no message if from a known host&lt;br /&gt;
&lt;br /&gt;
if grep -x $FROMIPNO /etc/trustedipnos&lt;br /&gt;
then exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get the host name by reverse lookup&lt;br /&gt;
&lt;br /&gt;
FROMHOST=`nslookup $FROMIPNO|grep &amp;quot;name =&amp;quot;`&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
#get whois info about the login ip number&lt;br /&gt;
&lt;br /&gt;
#and pipe it into the mail program&lt;br /&gt;
#&amp;quot;&amp;amp;&amp;quot; on the end creates a new process in order not to delay login&lt;br /&gt;
&lt;br /&gt;
whois $FROMIPNO|\&lt;br /&gt;
email -q -f nl1@neosys.com -s &amp;quot;login $USER $FROMIPNO $FROMHOST&amp;quot; -r \&lt;br /&gt;
mailout.neosys.com -p 2500 $ALERTEMAILADDRESS&amp;amp;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
Inserted trusted ip nos.&lt;br /&gt;
&lt;br /&gt;
 cd /etc&lt;br /&gt;
 nano trustedipnos&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#sorry, ip ranges and cidr etc not accepted yet&lt;br /&gt;
&lt;br /&gt;
#vm1.neosys.com for remote checking&lt;br /&gt;
85.17.154.105&lt;br /&gt;
&lt;br /&gt;
#nl1.neosys.com&lt;br /&gt;
83.149.104.167&lt;br /&gt;
&lt;br /&gt;
#nl2.neosys.com&lt;br /&gt;
85.17.154.66&lt;br /&gt;
&lt;br /&gt;
#uk.neosys.com&lt;br /&gt;
78.143.212.191&lt;br /&gt;
&lt;br /&gt;
#nl3.neosys.com&lt;br /&gt;
94.75.233.2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you configure the file permissions&lt;br /&gt;
&lt;br /&gt;
 chmod a+x sshrc&lt;br /&gt;
&lt;br /&gt;
==== Testing SSH connection to the NEOSYS server over port 19580 ====&lt;br /&gt;
&lt;br /&gt;
In you cannot connect to the server using SSH, see [[Troubleshooting_NEOSYS_Generally#Troubleshooting_NEOSYS_remote_support_port_forwarding|Troubleshooting NEOSYS remote support port forwarding]]&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting SSH: If SSH connects and then disconnects immediately without exchanging keys ====&lt;br /&gt;
 &lt;br /&gt;
The first time that NEOSYS runs, it automatically adds source ip number restrictions to the sshd remote support configuration in /etc/hosts.allow and /etc/hosts.deny. This is an important security procedure to allow connection to clients systems from NEOSYS ip numbers only. This process allows only local and known NEOSYS ip numbers to connect using SSH. Upgrading NEOSYS will add and/or remove allowable ip numbers as NEOSYS configuration changes.&lt;br /&gt;
&lt;br /&gt;
It is possible that in some client network configurations incoming ssh connections will appear to be from the clients internal routers with an ip unknown to NEOSYS due to NAT configurations. Therefore ssh connections will be blocked unless specifically allow the local ip number or it is added into an upgraded version of NEOSYS.&lt;br /&gt;
&lt;br /&gt;
NOTE: Therefore you must check that remote support via ssh works AFTER you have run NEOSYS once (maintenance mode). &lt;br /&gt;
 &lt;br /&gt;
#Look in the Windows, Computer Management, System Tools, Event Viewer, Application&lt;br /&gt;
#Search for entries from source &amp;quot;sshd&amp;quot;, double click and look in the Event Properties, Description for ip numbers&lt;br /&gt;
#Information type sshd entries will give the ip number of successful sshd connections.&lt;br /&gt;
#Warning type sshd entries will give the ip number of failed sshd connections.&lt;br /&gt;
#Find the ip number of failed connections.&lt;br /&gt;
&lt;br /&gt;
===== Possible Problem 1 - Port mapping in router is using NAT =====&lt;br /&gt;
&lt;br /&gt;
If the ip number of failed connections is some local ip number (of the router for example) then possibly the inbound port forwarding has been done with NAT and the source ip number has been lost. Therefore the NEOSYS ip restrictions are blocking ssh connections because they appear to be coming from an unknown ip number (ie that of the router)&lt;br /&gt;
&lt;br /&gt;
===== Solution 1A =====&lt;br /&gt;
&lt;br /&gt;
Change the router configuration to not use NAT and leave the genuine original source IP number&lt;br /&gt;
&lt;br /&gt;
===== Solution 1B =====&lt;br /&gt;
&lt;br /&gt;
DO NOT USE THIS PROCEDURE TO BREAK NEOSYS SECURITY. DO NOT GRANT ACCESS TO ANY IP OTHER THAN CLIENTS ROUTER IPS&lt;br /&gt;
&lt;br /&gt;
Add the routers IP number to the list of authorised ip numbers in the cygwin hosts.allow file as follows:&lt;br /&gt;
&lt;br /&gt;
 nano /etc/hosts.allow&lt;br /&gt;
&lt;br /&gt;
and add the line as follows ... but put the ip number of your router&lt;br /&gt;
&lt;br /&gt;
 sshd: allow 192.168.0.99&lt;br /&gt;
&lt;br /&gt;
#router - sadly using NAT instead of plain old port forwarding&lt;br /&gt;
#if the router ip changes then neosys remote support will fail until this line is changed&lt;br /&gt;
#NB do not grant access to 192.168.* etc since this allows local LAN viruses to attack&lt;br /&gt;
&lt;br /&gt;
==== Troubleshooting sshd ====&lt;br /&gt;
&lt;br /&gt;
You can run the sshd service interactively to see all messages instead of having to search logs/events etc.&lt;br /&gt;
&lt;br /&gt;
Unfortunately this will not work the same as the normal windows sshd service unless you assume the identity of the sshd_server user. To assume the identity of the sshd_server user you will have to reset its password to something new (since we dont take a record of it during sshd-host-setup) AND ALSO place the new password in the logon properties of the sshd windows service.&lt;br /&gt;
&lt;br /&gt;
 su sshd_server&lt;br /&gt;
 /usr/sbin/sshd -D -p 19580&lt;br /&gt;
&lt;br /&gt;
==== Reinstalling SSHD if service fails to startup ====&lt;br /&gt;
&lt;br /&gt;
Sometimes reinstallation isnt necessary and sshd can be made to restart by doing&lt;br /&gt;
 &lt;br /&gt;
 mkpasswd &amp;gt; /etc/passwd&lt;br /&gt;
 mkgroup &amp;gt; /etc/group&lt;br /&gt;
&lt;br /&gt;
If all else fails:&lt;br /&gt;
&lt;br /&gt;
#Look in &#039;&#039;&#039;/var/log/sshd.log&#039;&#039;&#039; for errors&lt;br /&gt;
#Delete the following users: &#039;&#039;&#039;sshd&#039;&#039;&#039; and &#039;&#039;&#039;sshd_server&#039;&#039;&#039;&lt;br /&gt;
#Remove the sshd service at the cygwin prompt type &#039;&#039;&#039;cygrunsrv –R sshd&#039;&#039;&#039;&lt;br /&gt;
#Do the above Configuration and starting SSHD step again&lt;br /&gt;
&lt;br /&gt;
Note that you don&#039;t have to reinstall cygwin entirely, just sshd with the above steps.&lt;br /&gt;
&lt;br /&gt;
==== Upgrading SSHD / Cygwin ====&lt;br /&gt;
NEOSYS relies on cygwin to provide secure network access and support various linux/unix services under Windows, mainly rsync for interoffice consolidation.&lt;br /&gt;
&lt;br /&gt;
Just like MS Windows update, cygwin should be updated at regular intervals to close security holes discovered in the software by its authors. This is particularly important for cygwin&#039;s remote access service sshd since it is exposed to the internet although on a non-standard port.&lt;br /&gt;
&lt;br /&gt;
TO DO: Find a simple way to learn about when cygwin upgrades sshd and/or when there are issues generally with sshd. Join the cygwin and sshd security news email lists.&lt;br /&gt;
&lt;br /&gt;
To find out what versions of cygwin/sshd are installed at NEOSYS clients, look at Nagios, last column &amp;quot;Status Information&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
http://vm1.neosys.com/nagios3/cgi-bin/status.cgi?servicegroup=neosys-ssh&amp;amp;style=detail%22SSH%20OK%20-%20OpenSSH_5.9%20%28protocol%202.0%29%22&lt;br /&gt;
&lt;br /&gt;
eg&lt;br /&gt;
&lt;br /&gt;
 SSH OK - OpenSSH_5.9 (protocol 2.0) &lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin Without requiring a server reboot =====&lt;br /&gt;
NEOSYS normal remote server support connection uses cygwin/ssh. Cygwin can be upgraded while in use but only if a reboot is performed and perhaps some cygwin packages reinstalled. &lt;br /&gt;
&lt;br /&gt;
You can use:&lt;br /&gt;
*vnc server&lt;br /&gt;
*direct rdp connection&lt;br /&gt;
*directly on the server&lt;br /&gt;
*teamviewer started manually on the server&lt;br /&gt;
&lt;br /&gt;
You cannot use:&lt;br /&gt;
*standard NEOSYS remote support connection using rdp/cygwin/sshd&lt;br /&gt;
*teamviewer started using a standard NEOSYS remote support connection.&lt;br /&gt;
&lt;br /&gt;
Since cygwin cannot be upgraded while using tunnelier+cygwin/sshd, we can use tunnelier to setup Teamviewer *temporarily* to do the upgrade.&lt;br /&gt;
&lt;br /&gt;
Teamviewer must be uninstalled afterwards because it is not secure because NEOSYS has no way to manage TV to limit connections by ip number like cygwin sshd in the same way.&lt;br /&gt;
&lt;br /&gt;
Procedure To Upgrade Cygwin remotely using TeamViewer:&lt;br /&gt;
#Install Teamviewer (will be commercial on server) and allow unattended access.&lt;br /&gt;
#Note the Teamviewer number and password during installation.&lt;br /&gt;
#Logout of tunnelier.&lt;br /&gt;
#Connect on teamviewer using the number and password&lt;br /&gt;
#In command console type the following commands:&amp;lt;pre&amp;gt;net stop sshd&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net stop cygwinrsync&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net stop exim&amp;lt;/pre&amp;gt;&lt;br /&gt;
#In task viewer, ensure no bash or ssh processes and kill any such processes.&lt;br /&gt;
#Run the cygwin upgrade procedure starting with http://www.cygwin.com and setup.exe etc. If you get any message about file in use, do not ignore, make sure you kill all cygwin related processes in task manager. If necessary find and kill the process holding the files open. For example using sysinternal’s process explorer “find file handle”&lt;br /&gt;
#If not already done, rename Administrator to administrator and run mkpasswd/mkgroup in Cygwin console. (See [Setting_up_and_using_remote_support#Changing_ssh_login_from_.E2.80.9CAdministrator.E2.80.9D_to_.E2.80.9Cadministrator.E2.80.9D|Changing ssh login from “Administrator” to “administrator”])&lt;br /&gt;
#In command console type the following commands:&amp;lt;pre&amp;gt;mkpasswd -l &amp;gt; /etc/passwd&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;mkgroup -l &amp;gt; /etc/group&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Start the NEOSYS remote connection service - cygwin/sshd, and any cygwin services stopped:&amp;lt;pre&amp;gt;net start sshd&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net start cygwinrsync&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;net start exim&amp;lt;/pre&amp;gt;&lt;br /&gt;
#Login using tunnelier&lt;br /&gt;
#*If successful, close your Teamviewer on the server&lt;br /&gt;
#Uninstall Teamviewer and REMOVE SETTINGS to avoid accidental reinstallation&lt;br /&gt;
#*Teamviewer must NOT BE LEFT with permanent login by number and password! Teamviewer options, security, REMOVE &amp;quot;Predefined password (For unattended access)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===== Upgrading Cygwin with server reboot =====&lt;br /&gt;
If not already done, rename Windows “Administrator” user to “administrator” before upgrading&lt;br /&gt;
&lt;br /&gt;
Connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
Follow the usual cygwin installation procedure.&lt;br /&gt;
&lt;br /&gt;
If and when cygwin &amp;quot;says files in use&amp;quot; then at console command prompt then click &amp;quot;continue&amp;quot;. NB &amp;quot;retry&amp;quot; will not work because your NEOSYS  remote support uses files like cygwin1.dll that are being updated by cygwin.&lt;br /&gt;
&lt;br /&gt;
If you have used the &amp;quot;continue&amp;quot; option then, towards the end of the cygwin installation process, you may get error messages similar to the one below.&lt;br /&gt;
You can ignore them.&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;the procedure point __ctype_ptr__ could not be located in the dynamic link library cygwin1.dll&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Finally, you may get a message &amp;quot;postinstall script errors&amp;quot;. Copy this message so you know what packages have to be reinstalled.&lt;br /&gt;
&lt;br /&gt;
Your list may vary! The list of packages is longer if the cygwin1.dll file has to be upgraded as this is an essential library file for all cygwin programs.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 Package: base-cygwin&lt;br /&gt;
 Package: coreutils&lt;br /&gt;
 Package: bash&lt;br /&gt;
 Package: terminfo&lt;br /&gt;
 Package: _update-info-dir&lt;br /&gt;
 Package: base-files&lt;br /&gt;
 Package: colordiff&lt;br /&gt;
 Package: man&lt;br /&gt;
 Package: terminfo0&lt;br /&gt;
 Package: vim&lt;br /&gt;
 Package: wget&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reboot the server&lt;br /&gt;
&lt;br /&gt;
Reinstall Bash and check that you can connect using usual NEOSYS remote support.&lt;br /&gt;
&lt;br /&gt;
*The login user name might be changed to &amp;quot;Administrator&amp;quot; instead of &amp;quot;administrator&amp;quot;.&lt;br /&gt;
*If you cannot reconnect after rebooting then the following steps (in particular the cygwin sshd package) may have to be performed directly on the server directly or using the usual initial NEOSYS remote installation procedures that do not rely on cygwin/sshd.&lt;br /&gt;
&lt;br /&gt;
Reinstall any problematic Cygwin packages&lt;br /&gt;
#Select View: &amp;quot;Up to date&amp;quot;&lt;br /&gt;
#&amp;quot;Keep&amp;quot; to &amp;quot;Reinstall&amp;quot; for the packages listed in the previous section.&lt;br /&gt;
&lt;br /&gt;
Finally, check that you can run the ls command in a cygwin command prompt window.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note -&#039;&#039;  If you dont reinstall bash after rebooting then the bash prompt will be abbreviated to something different and there will be no response to any command entered.&lt;br /&gt;
&lt;br /&gt;
==== How to uninstall/reinstall cygwin ====&lt;br /&gt;
&lt;br /&gt;
With setup.exe (the installer file of cygwin) you can uninstall individual packages but not Cygwin.&lt;br /&gt;
&lt;br /&gt;
Before you do this, make sure you have stopped the cygwin service (NET STOP SSHD), removed the sshd server (cygrunsrv -R sshd), deleted the sshd &amp;amp; sshd_server users (net user sshd/DELETE)&lt;br /&gt;
&lt;br /&gt;
To uninstall Cygwin you have to run the following in DOS prompt:&lt;br /&gt;
&lt;br /&gt;
 rmdir /s /q C:\cygwin&lt;br /&gt;
&lt;br /&gt;
You cannot delete the cygwin folder from Windows explorer due to a Access Denied error and this is the best way to uninstall cygwin.&lt;br /&gt;
&lt;br /&gt;
==== Getting Ownership and Permissions Correct ====&lt;br /&gt;
&lt;br /&gt;
Installation of cygrin under domain administrator account needs to be fixed as follows:&lt;br /&gt;
&lt;br /&gt;
#c:\cygin Properties, Security, Advanced&lt;br /&gt;
#Change owner to: Administrators&lt;br /&gt;
#Tick: Replace owner on subcontainers&lt;br /&gt;
&lt;br /&gt;
After changing ownership of all cygwin folders to Administrators all ssh login will be blocked and you will get a windows application event log message. &amp;quot;root&amp;quot; actually means sshd&#039;s user which is sshd_server by default or can be found in the cygwin ssh windows services properties under log on&lt;br /&gt;
&lt;br /&gt;
 fatal: /var/empty must be owned by root and not group or world-writable.&lt;br /&gt;
&lt;br /&gt;
Fix this in cygwin console as follows:&lt;br /&gt;
&lt;br /&gt;
 chown sshd_server /var/empty&lt;br /&gt;
&lt;br /&gt;
==== Configuring Firewall/Router ====&lt;br /&gt;
&lt;br /&gt;
You will have to port forward 19580 on the router to port 19580 on the neosys server. Some routers call port forwarding “port mapping” or “virtual servers”&lt;br /&gt;
&lt;br /&gt;
It is BAD idea to simply open port 22 since an open port 22 attracts scanners/hackers like flies.&lt;br /&gt;
&lt;br /&gt;
Also configure port forwarding of port 4430 to port 4430. This is for remote access via https if desired at a later date.&lt;br /&gt;
&lt;br /&gt;
==== Configuring Specific Client Routers ====&lt;br /&gt;
&lt;br /&gt;
[[Adline Dubai - CISCO PIX Firewall]]&lt;br /&gt;
&lt;br /&gt;
[[Sonicwall Firewall Configuration]]&lt;br /&gt;
&lt;br /&gt;
==== How to install ssh on port 19580 over vnc on port 19580 ====&lt;br /&gt;
&lt;br /&gt;
Install vnc on port 19580&lt;br /&gt;
 &lt;br /&gt;
connect on vnc&lt;br /&gt;
 &lt;br /&gt;
setup cygwin sshd on port 22&lt;br /&gt;
 &lt;br /&gt;
test you can login on port 22&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1&lt;br /&gt;
 &lt;br /&gt;
change sshd port to 19580 (but it wont start)&lt;br /&gt;
 &lt;br /&gt;
schedule a windows system reboot in 10 mins at windows command prompt&lt;br /&gt;
 &lt;br /&gt;
 shutdown -t 600&lt;br /&gt;
 &lt;br /&gt;
change vnc port to 5900 (if will disconnect you)&lt;br /&gt;
 &lt;br /&gt;
wait for 10 mins and try to ssh login on port 19580&lt;br /&gt;
&lt;br /&gt;
==== Changing user on Cygwin ====&lt;br /&gt;
&lt;br /&gt;
On SSH command line:&lt;br /&gt;
&lt;br /&gt;
 ssh neosys@127.0.0.1 (where &#039;neosys&#039; is the username)&lt;br /&gt;
&lt;br /&gt;
=== Installing and configuring UltraVNC ===&lt;br /&gt;
&lt;br /&gt;
VNC/Putty is not typically used for NEOSYS remote support anymore and has been replaced by tunnelier/rdp&lt;br /&gt;
&lt;br /&gt;
[[Installing and configuring UltraVNC]]&lt;br /&gt;
&lt;br /&gt;
== Remote Desktop Connection ==&lt;br /&gt;
&lt;br /&gt;
Servers are normally not exposed to the internet so IT staff and suppliers are often not careful to use strong passwords and use things like &amp;quot;password&amp;quot; or blank.&lt;br /&gt;
&lt;br /&gt;
Given the above, it is NEOSYS policy NOT to use remote desktop via direct access from the internet at all and especially not long term. This is to prevent worms from instantly discovering possible entry points - typically before NEOSYS can even begin to enforce strong administrator password.&lt;br /&gt;
&lt;br /&gt;
If it is otherwise IMPOSSIBLE (difficult or inconvenient does NOT count as impossible!) to avoid using remote desktop protocol to the public internet then a simple and effective way of significantly increasing security is to change the remote desktop port from 3389 to something else e.g. 33890 as per NEOSYS convention.&lt;br /&gt;
&lt;br /&gt;
=== Changing RDC port from standard to nonstandard ===&lt;br /&gt;
&lt;br /&gt;
# Start Registry Editor.&lt;br /&gt;
# Locate and then click the following registry subkey:&lt;br /&gt;
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber&lt;br /&gt;
# On the Edit menu, click Modify, and then click Decimal.&lt;br /&gt;
# Type the new port number, and then click OK.&lt;br /&gt;
# Quit Registry Editor.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1059</id>
		<title>Checklists</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1059"/>
		<updated>2012-06-18T14:08:00Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Media:New_Installation_Checklist_with_remote_support.doc]] - Windows 2003&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc]] - Windows 2008&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_(Finance_only)_&amp;amp;_without_remote_support.doc]] - Windows 2003&lt;br /&gt;
&lt;br /&gt;
[[Media:Shifting_servers_Checklist.doc‎]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1046</id>
		<title>Checklists</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Checklists&amp;diff=1046"/>
		<updated>2012-06-18T13:24:21Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Media:New_Installation_Checklist_with_remote_support.doc]] - Windows 2003&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_with_remote_support_(Windows_Server_2008).doc]] - Windows 2008&lt;br /&gt;
&lt;br /&gt;
[[Media:New_Installation_Checklist_(Finance_only)_&amp;amp;_without_remote_support.doc]] - Windows 2003&lt;br /&gt;
&lt;br /&gt;
[[Media:Shifting_servers_Checklist.doc‎]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Completed Checklists=&lt;br /&gt;
&lt;br /&gt;
[[Asha Advertising 2010]]&lt;br /&gt;
&lt;br /&gt;
[[Adline Bahrain 2010]]&lt;br /&gt;
&lt;br /&gt;
[[Adline Cairo - New Server - 2012]]&lt;br /&gt;
&lt;br /&gt;
[[Bates Timesheets - New Server - 2012]]&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Moving_NEOSYS&amp;diff=1041</id>
		<title>Moving NEOSYS</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Moving_NEOSYS&amp;diff=1041"/>
		<updated>2012-06-10T08:26:37Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Moving NEOSYS to new servers ===&lt;br /&gt;
&lt;br /&gt;
Make sure you disable old systems BEFORE you enable new systems.&lt;br /&gt;
&lt;br /&gt;
You cannot count on users to pay attention to WHICH system they are using so its up to you to prevent access to the old system PRIOR to opening a new system for them.&lt;br /&gt;
&lt;br /&gt;
Failure to follow this procedure OFTEN results in chaos in the clients procedures. Missing invoices, etc etc etc.&lt;br /&gt;
&lt;br /&gt;
==== Export Server Certificate from Old Server and Import Certificate on New Server ====&lt;br /&gt;
While trying to access NEOSYS from the new server, you will come across the error page shown below. &lt;br /&gt;
&lt;br /&gt;
The solution is to export the certificate from the old server and import the certificate in the new server. Instructions at [[Setting_up_HTTPS#Re-installing_Certificates|Reinstalling Server Certificates]]&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[image:server-certificatepage.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Changing drive letter to match old drive letter ====&lt;br /&gt;
&lt;br /&gt;
[[Image:changepartitiondriveletter.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Backup and restore of IIS configuration ====&lt;br /&gt;
&lt;br /&gt;
[[Image:backupiis.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== How to deauthorisation a NEOSYS installation ====&lt;br /&gt;
 &lt;br /&gt;
Deauthorisation removes the authorisation and gives a pair of &amp;quot;authorisation numbers&amp;quot; that can be run through a check to prove that deauthorisation has been done.&lt;br /&gt;
 &lt;br /&gt;
After deauthorisation you cannot use NEOSYS. If you try then it will ask for authorisation again and you cannot use the original authorisation number to reauthorise it.&lt;br /&gt;
 &lt;br /&gt;
In NEOSYS Maintenance mode press F5 then type&lt;br /&gt;
 &lt;br /&gt;
 DEAUTHORISE&lt;br /&gt;
 &lt;br /&gt;
... and answer all the questions properly.&lt;br /&gt;
 &lt;br /&gt;
At the final stage it will give you the &amp;quot;deauthorisation numbers&amp;quot; which consist of the original computer number plus another number. These numbers should not be lost and should be given to NEOSYS who will verify they are correct.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reinstating live system from backup system and shifting back ===&lt;br /&gt;
&lt;br /&gt;
This process should be done only when all the users are offline.&lt;br /&gt;
&lt;br /&gt;
To move the data from live to backup server and to restore it back, follow the steps mentioned below:&lt;br /&gt;
&lt;br /&gt;
Before restoring the data from live server to backup server and vice versa, do a manual backup (this will not be required if you are doing this procedure after the nightly backup has taken place; and before the users have logged in) and run the &#039;&#039;&#039;backup.hostname&#039;&#039;&#039; task on backup server.&lt;br /&gt;
&lt;br /&gt;
====Steps to stop neosys process to start:====&lt;br /&gt;
&lt;br /&gt;
# Un-tick automatic backup from the configuration file at host server.&lt;br /&gt;
# Rename Global.end.temp to Global.end&lt;br /&gt;
# Disable schedule task (Copy livedatatotest &amp;amp; start host)&lt;br /&gt;
# Disable backup.hostname task at backup server to avoid backup of host server &amp;gt; backup server&lt;br /&gt;
# After doing this start neosys processes at backup server and tick the automatic backup option in the configure file. &lt;br /&gt;
# Email client giving the new URL to access NEOSYS.&lt;br /&gt;
# Ask the IT guy to plug-in the backup USB to the server &lt;br /&gt;
# Configure the drive letter on the configuration file in neosys.&lt;br /&gt;
&lt;br /&gt;
====Steps to restore backup dataset to Live server====&lt;br /&gt;
&lt;br /&gt;
ATTENTION: Send a mail to the client staff, saying NEOSYS will be down from XXXX hours and they should logout from neosys before the mentioned time and save their work.&lt;br /&gt;
 &lt;br /&gt;
If possible co-ordinate with IT guy (or the person responsible) to follow up and make sure that users logout by the decided time. Once all the users are offline, Block all users from accessing NEOSYS.&lt;br /&gt;
&lt;br /&gt;
# Take a manual backup of the dataset you want to move to a removable drive (Flash/USB drive)&lt;br /&gt;
# Once the backup is complete, go to the configuration file and un-tick the automatic backup from there.&lt;br /&gt;
# Now request the IT guy to unplug the USB from the backup server and plug it into the main server.&lt;br /&gt;
# Before doing a restore read the &#039;&#039;&#039;NOTE&#039;&#039;&#039; that follows very carefully.&lt;br /&gt;
# Now log in to maintenance process and go to &#039;&#039;&#039;General &amp;gt; Backup &amp;amp; Data Management&#039;&#039;&#039;, select &#039;&#039;&#039;Restore from disk or diskette&#039;&#039;&#039; (i.e. option 4), select the backup drive and follow the prompts that follow.&lt;br /&gt;
# Now enable all the tasks that were disabled earlier on the live server and then enable the backup.hostname schedule task on backup server.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
REMEMBER THAT RESTORE = first DELETE! and then RESTORE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Chat for reference:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
DELETE MEANS YOU SHOULD BE FRIGHTENED &amp;gt;&amp;gt; AND THEREFORE TAKE A COPY&lt;br /&gt;
&lt;br /&gt;
In this case you KNOW you have a good working copy of the data on the backup server so DELETING+RESTORE on the main server is not very frightening .. but STILL .. play SAFE .. take a COPY OF WHAT YOU DELETE DURING RESTORE&lt;br /&gt;
&lt;br /&gt;
=== Moving NEOSYS server to a new/another client office location ===&lt;br /&gt;
&lt;br /&gt;
This is done by the client IT responsible and we just have to provide this checklist for them to follow. Typically this needs to be emailed out to them.&lt;br /&gt;
&lt;br /&gt;
 Please ensure the following procedures are followed on the day of the move:&lt;br /&gt;
 &lt;br /&gt;
 # Login to the NEOSYS server and shut down all the processes by hitting the ESC button on each of the window three times or until they close&lt;br /&gt;
 # Take a backup of the D drive on another system or network / external drive&lt;br /&gt;
 # Remove the USB plugged in and secure the same along with the other two USB’s in a safe location&lt;br /&gt;
 # You can shut down the server now and move it to your new office&lt;br /&gt;
 &lt;br /&gt;
 After the move is completed, please ensure the following immediately:&lt;br /&gt;
 &lt;br /&gt;
 # Connect the server to your local network and complete all setup required for users to be able to access the system internally&lt;br /&gt;
 # Configure the firewall and/or port settings to enable us to connect to the server externally (i.e. 19580 external to 19580 internal)&lt;br /&gt;
 # Configure the firewall and/or port settings to your staff for external access (i.e. 4430 external to 4430 internal)&lt;br /&gt;
 # Provide us with the new fixed IP address so that we can test the connection&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=File:Server-certificatepage.jpg&amp;diff=1040</id>
		<title>File:Server-certificatepage.jpg</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=File:Server-certificatepage.jpg&amp;diff=1040"/>
		<updated>2012-06-10T08:23:47Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Installing_NEOSYS_Service&amp;diff=1038</id>
		<title>Installing NEOSYS Service</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Installing_NEOSYS_Service&amp;diff=1038"/>
		<updated>2012-06-05T07:26:00Z</updated>

		<summary type="html">&lt;p&gt;Vineet: /* Differences for Pure Accounts Module Only Installations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= INSTALLING NEOSYS SERVICE =&lt;br /&gt;
&lt;br /&gt;
Reference to X:\ in the notes below denotes the actual drive letter and needs to be replaced (eg D:\)&lt;br /&gt;
&lt;br /&gt;
== Main installation: ==&lt;br /&gt;
&lt;br /&gt;
 Make sure NOT TO COPY an existing NEOSYS installation to another location and ONLY do a &lt;br /&gt;
 completely new install with a fresh database, because copying a folder will copy a variety of &lt;br /&gt;
 hidden configurations. &lt;br /&gt;
&lt;br /&gt;
=== Installing NEOSYS on partitions ===&lt;br /&gt;
Good server management practice is to have separate partitions for operating system (C:) and data partitions (D:)&lt;br /&gt;
 &lt;br /&gt;
In the case of operating system reinstallation (which causes the loss of the C: partition) if NEOSYS programs and data were installed on D: can be preserved. If there is only one partition then NEOSYS programs and data will have to be backed up and restored.&lt;br /&gt;
&lt;br /&gt;
==== Multiple Partitions ====&lt;br /&gt;
NEOSYS should be installed on a different partition rather than the C drive for reasons already explained above (eg. D drive)&lt;br /&gt;
&lt;br /&gt;
==== Single Partition ====&lt;br /&gt;
If there is only one partition then you have to inform the client to take the effort to reinstall the operating system or using third party repartitioning tools to create separate partitions.&lt;br /&gt;
 &lt;br /&gt;
=== Downloading and running installation files ===&lt;br /&gt;
# http://www.neosys.com/support/neosys.exe	... and unzip/install to X:\neosys (or to X:\hosts\clientcd for multi-installation on one server)&lt;br /&gt;
# http://www.neosys.com/support/neosys2.exe	... and install same as previous step.&lt;br /&gt;
&lt;br /&gt;
=== Creating shortcuts ===&lt;br /&gt;
In x:\neosys (or x:\hosts\clientcd), make a shortcut called ‘Maintenance’ and link it to&lt;br /&gt;
&lt;br /&gt;
x:\neosys\neosys\adagency.bat (for Adagency install)&lt;br /&gt;
&lt;br /&gt;
or &lt;br /&gt;
&lt;br /&gt;
x:\neosys\neosys\accounts.bat (for Accounts install)&lt;br /&gt;
&lt;br /&gt;
=== Activating NEOSYS using authorization number ===&lt;br /&gt;
&lt;br /&gt;
Start NEOSYS Maintenance, select Initial Backup and it will give a “Computer Number” and ask for an “Authorisation No”&lt;br /&gt;
&lt;br /&gt;
Send the computer number to NEOSYS admin to get the authorization no. Do not leave the authorization no. promt page open for a long time. This will cause the CPU usage to go to 100%. &lt;br /&gt;
&lt;br /&gt;
If you cannot get the authorization number immediately then you can close NEOSYS and when you reopen NEOSYS it will still give the same computer number and accept the same authorization number.&lt;br /&gt;
&lt;br /&gt;
=== Installing initial Database ===&lt;br /&gt;
For standard NEOSYS Installations, copy the BACKUP.ZIP file from NL1 server (C:\DATA.BAK\STARTUP1\&amp;quot;Day of week&amp;quot;) and place it on the D drive of the server where we wish to install NEOSYS. You may choose any other drive also but make sure that this file exists in the root folder e.g. D:\BACKUP.ZIP&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Follow the steps below:&lt;br /&gt;
#Click on the Maintenance icon.&lt;br /&gt;
#Select BASIC DATA SET and type in the NEOSYS username and password. (If the system does not prompt for a username and password,then go to Quit &amp;gt; Quit to next user and type the same in. If you do not enter with a username and password then NEOSYS will not allow you to restore the database). The first time when you enter maintenance you will get a command box (like when you do F5). If you do not get a command box, hit the F5 key and get it on the screen and hit ESC after you get it. &lt;br /&gt;
#Now restore the BACKUP.ZIP (STARTUP DATABASE), to do so go to General &amp;gt; Backup &amp;amp; Data Management, select (the 4th option) Restore from disk or diskette. select D drive (or whichever drive you put the backup.zip file in) and follow the prompts ahead.&lt;br /&gt;
#On every successful restore or creation of dataset, system will give you a message to switch to new database always &#039;&#039;&#039;say NO&#039;&#039;&#039; to this,because the switch to database option brings you back to the BASIC DATA SET. Hence press the ESC button, type EXIT on the F5 prompt.&lt;br /&gt;
#Now startup maintenance again and you will find a new database &amp;quot;STARTUP DATABASE&amp;quot; select it and login with NEOSYS username and password. Once you enter you may find a prompt &amp;quot;TASK ADDED&amp;quot; follow the prompt and continue.&lt;br /&gt;
#After you have logged in, go to General &amp;gt; Backup &amp;amp; Data Management &amp;gt; Delete a dataset and select the &amp;quot;BASIC DATASET&amp;quot; to delete, to confirm the delete system will ask you to enter the dataset code. Enter the code and delete the basis dataset.&lt;br /&gt;
#Now create a new dataset for the client, go to general &amp;gt; Backup &amp;amp; Data management&amp;gt; Create a new dataset, select (6th option) and follow the instruction on how to setup database code from the following link [[Installing_NEOSYS_Service#Assigning_database_codes|Assigning database codes]]&lt;br /&gt;
#Once the client dataset is created,login to the clientdataset and follow the steps in above point6 and delete the STARTUP DATABASE. (while logging in to the client dataset, it ask &amp;quot; This database hsa been copied or the database name or code has been changed. Is this going to be a unique new master database?&amp;quot; select first option YES - Going to be a new independent database.&lt;br /&gt;
#To check the list of dataset on the computer, go to go to General &amp;gt; Backup &amp;amp; Data Management &amp;gt; See a list of dataset in the computer(8th option).&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
#Sometimes it may tell you that you cannot use FILEMAN as you are logged in as MASTER. Hence you need to hit the ESC key, go to General &amp;gt; Backup &amp;amp; Data Management &amp;gt; Restore from disk or diskette, select C drive or whichever drive you put the backup.zip file in and follow the prompts ahead.&lt;br /&gt;
#While doing the step no.2 if you get a message as below just hit enter or space and continue.&lt;br /&gt;
&lt;br /&gt;
[[File:Message while installing.jpg]]&lt;br /&gt;
&lt;br /&gt;
==== Assigning database codes ====&lt;br /&gt;
It is necessary to make sure that the following guidelines are met while creating database codes:&lt;br /&gt;
&lt;br /&gt;
#The code must be within 8 letters&lt;br /&gt;
#The client should instantly recognisable or as recognisable as possible from the main database code&lt;br /&gt;
#The test database code MUST END with the word &amp;quot;TEST&amp;quot; and it is not necessary that it must be recognisable.&amp;lt;br/&amp;gt;The system needs to know if a database is &amp;quot;test&amp;quot; or not.&amp;lt;br/&amp;gt;Otherwise test documents like invoices appear like real live documents potentially causing serious confusion. Many other internal problems will also occur.&lt;br /&gt;
#The test database code should sort alphabetically after the main database code at login. Prefixing with code with the letter X may achieve this.&lt;br /&gt;
&lt;br /&gt;
Examples of wrong and right database codes:&lt;br /&gt;
&lt;br /&gt;
 ALTO VISTA ADVERTISING&lt;br /&gt;
 ALTOVIST and XALTTEST - right      AVISTA and AVTEST - wrong   (AVISTA not &amp;quot;as recognisable as possible&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 CONTEXTURE ASSOCIATES&lt;br /&gt;
 CONTEXT and XCONTEST - right       CONTEXT and CONTEST - wrong (CONTEST alphabetically first in the login screen database drop down)&lt;br /&gt;
&lt;br /&gt;
=== Creating a .CMD file to start NEOSYS Service: ===&lt;br /&gt;
(Note: change x to the correct drive you have installed NEOSYS on)&lt;br /&gt;
&lt;br /&gt;
In x:\neosys create a file start MAIN-DATABASE-CODE.cmd (eg start ALTOVIST.cmd)&lt;br /&gt;
&lt;br /&gt;
 x:&lt;br /&gt;
 cd \neosys\neosys&lt;br /&gt;
 Start neosys.js /system ADAGENCY /database &amp;lt;b&amp;gt;databasecode&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(where &amp;lt;b&amp;gt;databasecode&amp;lt;/b&amp;gt; is the code of the database)&lt;br /&gt;
(also you need to replace ADAGENCY with ACCOUNTS if this is an accounts only installation)&lt;br /&gt;
&lt;br /&gt;
In x:\neosys create a file start TEST-DATABASE-CODE.cmd (eg start AVTEST.cmd)&lt;br /&gt;
&lt;br /&gt;
 x:&lt;br /&gt;
 cd \neosys\neosys&lt;br /&gt;
 Start neosys.js /system ADAGENCY /database &amp;lt;b&amp;gt;testdatabasecode&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(where &amp;lt;b&amp;gt;testdatabasecode&amp;lt;/b&amp;gt; is the code of the testdatabase)&lt;br /&gt;
(also you need to replace ADAGENCY with ACCOUNTS if this is an accounts only installation)&lt;br /&gt;
&lt;br /&gt;
TEST THAT THE FILES YOU HAVE CREATED CAN RUN SUCCESSFULLY&lt;br /&gt;
&lt;br /&gt;
ENSURE THAT YOU DO NOT CLOSE THE PROCESS WINDOWS BY USING THE X BUTTON. HIT ESC 3 TIMES ON EACH WINDOW.&lt;br /&gt;
&lt;br /&gt;
=== Differences for Pure Accounts Module Only Installations ===&lt;br /&gt;
Accounts module only has a slightly different startup command. In the above, replace &#039;&#039;&#039;/system adagency&#039;&#039;&#039; with &#039;&#039;&#039;/system accounts&#039;&#039;&#039; to startup a service and use &#039;&#039;&#039;accounts.bat&#039;&#039;&#039; instead of &#039;&#039;&#039;adagency.bat&#039;&#039;&#039; to start up maintenance. Other than that, accounts module setup is identical. Pure accounts clients are very few and tend not to upgrade often so care needs to be taken when upgrading. Upgrade is done using the usual neosys2.exe file.&lt;br /&gt;
&lt;br /&gt;
=== Creating a .CMD file to copy maindata to testdata ===&lt;br /&gt;
&lt;br /&gt;
In x:\neosys create a file &amp;lt;B&amp;gt;copy MAINDATABASECODE to TESTDABASECODE.cmd&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you put the same xcopy command TWICE so that the time elapsed between the start of the copy and the end of the copy is minimal. The /d option copies only unchanged files so the second xcopy should complete in minimal or even close to zero time.&lt;br /&gt;
&lt;br /&gt;
Copying in the minimum time (by not copying unchanged files) reduces the chance that updates will occur during the copy resulting in the test database containing a mix of pre-update and post-update information. This risk only occurs if copying live data to test data during the day while NEOSYS live database is operational. Normally live data is copied to test data during the night while the live database is shutdown and therefore is not being updated. Note that if the live system is not updated during the first copy then the second xcopy will do precisely nothing since all files will be identical (have the same &amp;quot;last modified&amp;quot; date and time).&lt;br /&gt;
&lt;br /&gt;
 @rem put nearly the same command twice!&lt;br /&gt;
 xcopy x:\neosys\data\&amp;lt;i&amp;gt;maindatabasecode&amp;lt;/i&amp;gt; x:\neosys\data\&amp;lt;i&amp;gt;testdatabasecode&amp;lt;/i&amp;gt; /s /y /m&lt;br /&gt;
 xcopy x:\neosys\data\&amp;lt;i&amp;gt;maindatabasecode&amp;lt;/i&amp;gt; x:\neosys\data\&amp;lt;i&amp;gt;testdatabasecode&amp;lt;/i&amp;gt; /s /y /d&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
 @rem put nearly the same command twice!&lt;br /&gt;
 xcopy c:\neosys\data\&amp;lt;i&amp;gt;ALTOVIST&amp;lt;/i&amp;gt; x:\neosys\data\&amp;lt;i&amp;gt;AVTEST&amp;lt;/i&amp;gt; /s /y /m&lt;br /&gt;
 xcopy c:\neosys\data\&amp;lt;i&amp;gt;ALTOVIST&amp;lt;/i&amp;gt; x:\neosys\data\&amp;lt;i&amp;gt;AVTEST&amp;lt;/i&amp;gt; /s /y /d&lt;br /&gt;
&lt;br /&gt;
Run this file to test that it works fine.&lt;br /&gt;
&lt;br /&gt;
=== Setting up daily scheduled tasks ===&lt;br /&gt;
NEOSYS is normally configured to backup and shutdown at 1am. All the processes shutdown except one which performs the backup and then closes.&lt;br /&gt;
&lt;br /&gt;
A Windows Scheduled Task must be created to startup NEOSYS every day typically at 6am. It can startup one live database process and that process will startup all other required database processes. Test databases will not startup other database processes automatically.&lt;br /&gt;
&lt;br /&gt;
On Windows 2008 Standard, untick highest privileges and untick run whether user is logged in or not. This means that NEOSYS processes will be visible on the desktop when you login BUT the windows schedules tasks to startup NEOSYS will FAIL to run if the server is rebooted for any reason including power failure or when the monthly Windows Update procedure reboots.&lt;br /&gt;
&lt;br /&gt;
Alternatively, for clients which cannot tolerate manual intervention after server reboots for any reason (eg need to start work before NEOSYS support is available or on NEOSYS support weekends), tick &amp;quot;highest privileges&amp;quot; and &amp;quot;run whether the user is logged in or not&amp;quot;. This approach means that NEOSYS processes which are started by the windows scheduled task are not visible on the desktop and run hidden in the background and only listed in task manager.&lt;br /&gt;
&lt;br /&gt;
1. Create a task to start one Main database process at 6:00 am daily.&lt;br /&gt;
&lt;br /&gt;
[[File:start1.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:start2.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:start3.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Create a second task to Copy Maindata to Testdata at 2:45 am daily.&lt;br /&gt;
&lt;br /&gt;
[[File:copy1.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:copy2.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:copy3.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(For multiple sites on the same computer put the second site starting five minutes later at 6:05am, third site starting five minutes earlier at 5:55am, the third site starting five minutes later at 6:10am and so on.)&lt;br /&gt;
&lt;br /&gt;
Once created, test them to see that they are working correctly by running them directly using right click- Run.&lt;br /&gt;
&lt;br /&gt;
[[File:task1.jpg]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(Use web access and go to Support Menu, System Configuration File to request 3 processes for main database and 1 for test database).&lt;br /&gt;
&lt;br /&gt;
Please note that test running “copy test data” should be avoided while users are online but there is no problem testing the “daily 6am startup task” at any time since it will just add an additional process.&lt;br /&gt;
&lt;br /&gt;
=== Configuring NEOSYS to start automatically on server start-up / reboot ===&lt;br /&gt;
We no longer configure NEOSYS processes to start on reboot as we would like to know of the failures at the client side and hence whenever the server reboots we expect the client to inform us and we will start the process - or NEOSYS will start automatically next day at 6 am&lt;br /&gt;
&lt;br /&gt;
Unfortunately using this method the NEOSYS processes are not visible when you login as a user. &lt;br /&gt;
&lt;br /&gt;
[[Image:win_sch_task.jpg]]&lt;br /&gt;
&lt;br /&gt;
Schedule a task to run the main database file whenever the computer starts. In Windows 2008 you need to tick the options - Run whether user logged in or not and Run with highest privilege.&lt;br /&gt;
&lt;br /&gt;
Additional in Windows 2008: Tick Highest Priviledges and Run whether user logged in or not&lt;br /&gt;
&lt;br /&gt;
== Installing and upgrading NEOSYS pure accounting systems ==&lt;br /&gt;
&lt;br /&gt;
Basic installation using NEOSYS.EXE and upgrades using NEOSYS2.EXE are identical to the normal adagency installation process.&lt;br /&gt;
&lt;br /&gt;
Differences are as follows:&lt;br /&gt;
&lt;br /&gt;
# Maintenance shortcut to ACCOUNTS.BAT&lt;br /&gt;
# Process startup file contains &amp;quot;/system ACCOUNTS&amp;quot; instead of &amp;quot;/system ADAGENCY&amp;quot;&lt;br /&gt;
# Internet address is http://server/neosys/accounts.htm although it auto converts to http://server/neosys/default.htm??ACCOUNTS. Although not to be relied upon, the login page stores a cookie so even plain http://server/neosys or http://server/neosys/default.htm works thereafter until the cookie is lost. To get back to adagency login you use http://server/neosys/default.htm??ADAGENCY&lt;br /&gt;
# BACKUP.ZIP files created by ADAGENCY systems and ACCOUNTS systems are slightly incompatible with the result that restoring one in the other type of system will not work. NEOSYS programmers can convert from one type to the other but it is almost never required since any ad agency that only requires accounts only module is given the adagency version of NEOSYS and accounting only clients becoming ad agencies never happened.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
	<entry>
		<id>https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1037</id>
		<title>Handling damaged files</title>
		<link rel="alternate" type="text/html" href="https://techwiki.neosys.com/index.php?title=Handling_damaged_files&amp;diff=1037"/>
		<updated>2012-05-29T06:22:38Z</updated>

		<summary type="html">&lt;p&gt;Vineet: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Symptoms ==&lt;br /&gt;
&lt;br /&gt;
 &amp;quot;A Damaged file has been found..... ((the rest of this message to be completed)) &lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : BOOKING.TEXTS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
== Cause ==&lt;br /&gt;
Rare but nasty problem on server 99% caused by power failure, killing NEOSYS or server hardware or operating system failure.&lt;br /&gt;
&lt;br /&gt;
*Did somebody kill NEOSYS processes to reboot the server or any other reason?&lt;br /&gt;
*Was there a power cut?&lt;br /&gt;
*Any expected or unexpected reboots in the server log? (see Event Viewer &amp;gt; System Log)&lt;br /&gt;
*Enough disk free space especially on servers not dedicated to NEOSYS?&lt;br /&gt;
*Third party software running on NEOSYS server?&lt;br /&gt;
*RAID installed on the server?&lt;br /&gt;
*Did windows update happen?&lt;br /&gt;
&lt;br /&gt;
== Solution==&lt;br /&gt;
&lt;br /&gt;
Damaged files, when detected, cause an immediate termination of the currently executing program/user request and a restart of the process is involved. Some damaged files are automatically fixed during restart. Although the process &amp;quot;restarts&amp;quot; it may be internally corrupted in some way and it is advisable to close it completely and start or allow another process to start automatically.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
However, the solution always depends on the cause and usually often requires aggressive interrogation to discover the cause.&lt;br /&gt;
&lt;br /&gt;
== Recovery==&lt;br /&gt;
&lt;br /&gt;
It is URGENT to stop using NEOSYS and fix the damaged file because it will cause NEOSYS to crash everytime it happens to update that part of the file. NEOSYS crashing while updating often produces unrecoverable inconsistencies in the database that can only be fixed by programmers sitting for hours trying to edit the database .... or by restoring from a backup causing loss of work.&lt;br /&gt;
&lt;br /&gt;
See the following sections how to patch the damaged files.&lt;br /&gt;
&lt;br /&gt;
== Files that are automatically fixed ==&lt;br /&gt;
&lt;br /&gt;
*LISTS&lt;br /&gt;
*LOCKS&lt;br /&gt;
*!INDEXING&lt;br /&gt;
&lt;br /&gt;
The above files are automatically checked for corruption (and initialised to empty if so) when you &lt;br /&gt;
startup a NEOSYS process and do not require any manual intervention apart from locating and eliminating the initial cause of the damage.&lt;br /&gt;
&lt;br /&gt;
If the !INDEXING file was damaged then you should also do REINDEXALL to reinstate any possibly missing index entries, but since this will take a long time&lt;br /&gt;
you should do this when everybody is off the system in the evening probably. A few missing index entries may only mean some records missing from some reports which may or may not be seriously inconvenient. It is a temporary file that should not hold any records for longer than it takes to update the various indexes immediately when the user saves any document.&lt;br /&gt;
&lt;br /&gt;
Each process has its own LISTS file, so damage is limited to one process for the LISTS file. The process number can be seen in the error message. for example:&lt;br /&gt;
&lt;br /&gt;
 Process=7&lt;br /&gt;
&lt;br /&gt;
You can also see the process number on the server screen. For example here is a process 2.&lt;br /&gt;
&lt;br /&gt;
 13:17:31 TESTDB NEOS0002 0 Listening 7 hours, 49 mins ...&lt;br /&gt;
&lt;br /&gt;
The LISTS file is a temporary file for sorting records into order for reports, popups etc. Therefore any damage usually causes no real inconvenience apart from the failed report or popup on which the user might receive the &amp;quot;damaged LISTS file&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
The error message would appear as follows :&lt;br /&gt;
&lt;br /&gt;
 SYSTEM ERROR:&lt;br /&gt;
 An internal file LISTS was found&lt;br /&gt;
 to be damaged and has been patched.&lt;br /&gt;
 INFORM YOUR TECHNICAL SUPPORT&amp;lt;br&amp;gt;&lt;br /&gt;
 SOME DATA HAS PROBABLY BEEN LOST&lt;br /&gt;
 AND THE NEOSYS SYSTEM MAY MALFUNCTION&amp;lt;br&amp;gt;&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
The error could also appear as follows :&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : LISTS&lt;br /&gt;
 Group # : 00000014&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 Server=NEOSYS-SERVER&lt;br /&gt;
 Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
 Version=17:16:04  23 JAN 2011&lt;br /&gt;
 Database=1D68EE63 ADLINED&lt;br /&gt;
 Process=2&lt;br /&gt;
&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
 A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
 YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
 DO NOT CONTINUE USING THE SYSTEM!&amp;lt;br&amp;gt;&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : STATISTICS&lt;br /&gt;
 Group # : 00000005&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
 114 files checked.&lt;br /&gt;
 Failed with 1 error&lt;br /&gt;
 !!!DANGER!!!&lt;br /&gt;
 !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
 !!!BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note - &#039;&#039; Statistics contains info about user usage as per support menu so loss of data is not critical and it will be rebuilt automatically&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We might also get errors related to Temporary Files as follows:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A DAMAGED FILE HAS BEEN FOUND.&lt;br /&gt;
YOU MUST GIVE THE FOLLOWING MESSAGE TO TECHNICAL SUPPORT NOW.&lt;br /&gt;
DO NOT CONTINUE USING THE SYSTEM!&lt;br /&gt;
&lt;br /&gt;
 Group Format Error:&lt;br /&gt;
 File    : MATDEL_MEDIALIN_3&lt;br /&gt;
 Group # : 13369375&lt;br /&gt;
 Wrong Overflow frame linked to group.&lt;br /&gt;
&lt;br /&gt;
Server=NEOSYS-SERVER&lt;br /&gt;
Install=D:\NEOSYS\NEOSYS\&lt;br /&gt;
Version=11:26:27  26 JUL 2010&lt;br /&gt;
Database=23BF2931 MEDIALIN&lt;br /&gt;
Process=3&lt;br /&gt;
Client=100_100_100_77&lt;br /&gt;
User=HAMADA&lt;br /&gt;
Request=MEDIADIARY&lt;br /&gt;
@Id=&lt;br /&gt;
Data=&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Since these are temporary files, we need not use FIXFILE. They get cleared automatically.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged file that have a process to recreate them ==&lt;br /&gt;
&lt;br /&gt;
Below files can be recreated from the maintenance mode.&lt;br /&gt;
&lt;br /&gt;
ADS file can be recreated with F5 CREATEADS&lt;br /&gt;
&lt;br /&gt;
ANALYSIS file can be recreated with F5 CREATEANALYSIS&lt;br /&gt;
&lt;br /&gt;
BRANDS files can be recreated with F5 CREATEBRANDS&lt;br /&gt;
&lt;br /&gt;
If the file is actually damaged it might be necessary to initialise it first using CLEARFILE filename.&lt;br /&gt;
&lt;br /&gt;
The following is an example of the error in the ADS File at the time of backup.&lt;br /&gt;
&lt;br /&gt;
  Group Format Error:&lt;br /&gt;
  OS File : ADS&lt;br /&gt;
  Group # : 00009543&lt;br /&gt;
  Record length incorrect or frame linkage error.&lt;br /&gt;
  217 files checked.&lt;br /&gt;
  Failed with 1 errors&lt;br /&gt;
  !!! DANGER !!!&lt;br /&gt;
  !!! DAMAGED FILES HAVE BEEN FOUND IN THE NEOSYS SYSTEM !!!&lt;br /&gt;
  !!! BACKUP NOT DONE !!!&lt;br /&gt;
&lt;br /&gt;
  Error while writing data.&lt;br /&gt;
  You have attempted to write to a read-only file.&lt;br /&gt;
                      - or -&lt;br /&gt;
  access to the file has been denied by the operating system.&lt;br /&gt;
  (operating system file name: &amp;quot;ADS&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
Explanation: The last four lines are very rare and can be seen with the above error messages in the backup email.  The above message indicates that some external application is trying to access the backup files at the time of backup.&lt;br /&gt;
&lt;br /&gt;
Before doing the solution below, please check the number of damaged files on the database by running CHK.FILES in maintenance mode. [CHK.FILES can be done when users are online]&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; Stop all the processes before doing the below procedure.&lt;br /&gt;
&lt;br /&gt;
Procedure to run CREATEADS is as under &lt;br /&gt;
&lt;br /&gt;
Login to maintenance&lt;br /&gt;
&lt;br /&gt;
 F5&lt;br /&gt;
 CREATEXXXX&lt;br /&gt;
&lt;br /&gt;
(XXXX = ADS, ANALYSIS OR BRANDS)&lt;br /&gt;
&lt;br /&gt;
Select the option appropriate option and start the procedure and hit ENTER&lt;br /&gt;
&lt;br /&gt;
To verify if the above is done successfully and check if the damage files is fixed in the database run CHK.FILES or CHK.FILES FILENAME (Recommended) from this link: [[Troubleshooting_NEOSYS_Generally#Checking_for_corrupt_database_files|Checking for corrupt database files]]&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged index files (names starting with !) ==&lt;br /&gt;
&lt;br /&gt;
Whilst backing up or using NEOSYS the following error message might appear:&lt;br /&gt;
 &lt;br /&gt;
 &amp;quot;A Damaged file has been found.....&lt;br /&gt;
 Group format Error:&lt;br /&gt;
 OS File : !ADS&lt;br /&gt;
 Group# : 00000932&lt;br /&gt;
 Record length incorrect or frame linkage error.&lt;br /&gt;
&lt;br /&gt;
#Ensure that no-one is using NEOSYS&lt;br /&gt;
#Log into NEOSYS on the server&lt;br /&gt;
#Press F5 to get a TCL command box&lt;br /&gt;
#Type REINDEXADS and press enter.&lt;br /&gt;
#Wait until it finishes and you get back to the command box&lt;br /&gt;
#Type OFF in the command box and you will quit NEOSYS.&lt;br /&gt;
&lt;br /&gt;
Other reindex commands are:&lt;br /&gt;
&lt;br /&gt;
(&#039;&#039;Note -&#039;&#039; You can save time when indexing very large files by indexing only selected indexes instead of all indexed for the file. You can select the field(s) that need to be reindexed from a list of indexed fields which REINDEX filename presents you after you enter the command.)&lt;br /&gt;
&lt;br /&gt;
*REINDEXACCOUNTS	recreates !ACCOUNTS, !BATCHES and !VOUCHERS&lt;br /&gt;
*REINDEXADDRESSES &lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXBOOKINGS	recreates !BOOKING.ORDERS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXINVS		recreates !INVOICES&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXPRODINVS	recreates !PRODUCTION.INVOICES&lt;br /&gt;
*REINDEXPRODORDERS	recreates !PRODUCTION.ORDERS&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
&lt;br /&gt;
REINDEXMEDIA does all the following&lt;br /&gt;
*REINDEXPLANS&lt;br /&gt;
*REINDEXSCHEDULES&lt;br /&gt;
*REINDEXADS&lt;br /&gt;
*REINDEXMATERIALS&lt;br /&gt;
*REINDEXBOOKINGS&lt;br /&gt;
&lt;br /&gt;
REINDEXFILES does all the following&lt;br /&gt;
*REINDEXCLIENTS&lt;br /&gt;
*REINDEXBRANDS&lt;br /&gt;
*REINDEXSUPPLIERS&lt;br /&gt;
*REINDEXVEHICLES&lt;br /&gt;
*REINDEXRATECARDS&lt;br /&gt;
&lt;br /&gt;
REINDEXPRODUCTION does all the following&lt;br /&gt;
*REINDEXJOBS&lt;br /&gt;
*REINDEXPRODORDERS&lt;br /&gt;
*REINDEXPRODINVS&lt;br /&gt;
*REINDEXTIMESHEETS&lt;br /&gt;
&lt;br /&gt;
REINDEXALL does all the following&lt;br /&gt;
*REINDEXMEDIA&lt;br /&gt;
*REINDEXPRODUCTION&lt;br /&gt;
*REINDEXFILES&lt;br /&gt;
*REINDEXINVS&lt;br /&gt;
*REINDEXACCOUNTS&lt;br /&gt;
*REINDEXADDRESSES&lt;br /&gt;
&lt;br /&gt;
== Fixing damaged files that have no process for recreating them ==&lt;br /&gt;
&lt;br /&gt;
Some damaged files can be rebuilt using NEOSYS utilities especially index files with filenames starting with !. Other damaged files like &#039;&#039;LOG20xx&#039;&#039; can be “fixed” to prevent NEOSYS crashes as follows &amp;lt;i&amp;gt;but some records will most probably be lost&amp;lt;/i&amp;gt;. Depending on the file loss of a few records may not be too bad compared to restoring a database but the client should be informed and make the decision. Depending on the file it is usually best to lose the records. We can make a list of files that one can afford to lose records and those files that can be rebuilt programmatically from other files. Booking order texts they can lose records but inform them and especially the numbers mentioned in FIXFILE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;SHADOW&#039;&#039; is a type of log file that can lose some records without serious impact and can therefore can also be fixed with FIXFILE.&lt;br /&gt;
&lt;br /&gt;
FIXFILE will not run if there are neosys services still running so before doing the FIXFILE command, shut down services from the Support menu or with the Global command:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE:&#039;&#039;&#039; If there are multiple datasets running on the server. Shut down the particular dataset which has got the problem:&lt;br /&gt;
&lt;br /&gt;
F5&lt;br /&gt;
&lt;br /&gt;
 FIXFILE filename&lt;br /&gt;
&lt;br /&gt;
(Select option 1 to update the file)&lt;br /&gt;
&lt;br /&gt;
In case you get any Overwrite messages – type YES, as these are the actual files being updated.&lt;br /&gt;
&lt;br /&gt;
The only alternative is restore from a previous backup in this case losing a days work. Nasty, and even worse, it will be impossible to reproduce the days work and especially the exact serial numbers of critical documents like orders, invoices, receipts and payments advices.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using FIXFILE to repair corrupted files ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;BEWARE:&#039;&#039;&#039; FIXFILE causes loss of data. If the data is critical then use of FIXFILE can be totally catastrophic without any warning. &lt;br /&gt;
Hence, in such situations it is advisable to talk to NEOSYS technical staff to see if they can provide any proper fix or provide any better comment about the impact of loss of data rather than implement FIXFILE directly.&lt;br /&gt;
&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Please Note:&#039;&#039;&#039; &lt;br /&gt;
# Using FIXFILE on some files is a guaranteed way to cause complete chaos for the users without them being aware of it until too late to do anything about it.&lt;br /&gt;
#Corrupt files will cause programs to abort every time they try to update that section of the file. Aborting programs causes possibly horrendous inconsistency in the database so it is important to stop all user activity and fix the corrupt file immediately.&lt;br /&gt;
#You can freely use FIXFILE on any file but it works by deleting any problematic data so cannot realistically be used on some files at all.&lt;br /&gt;
#FIXFILE cannot and does not recover any corrupted records therefore, for those files that have specific programs to rebuild them, FIXFILE is not the correct option.&lt;br /&gt;
&amp;lt;BR&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;Why use FIXFILE at all since it causes loss of data?&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#Many files do not have programs to rebuild them and for some of those files, using FIXFILE is a quick way to get the system back in operation BUT with missing records. Missing records causes various degrees of failure ranging from the odd document missing, totally misleading information like wrong account balances, or any kind of system failure.&lt;br /&gt;
#FIXFILE does not fix the consistency of information in the database. When the database is is being updated with a transaction, usually a series of files are updated for the one transaction. A damaged file causes the update program to abort in the middle of the series of updates. Therefore some of the updates are done and the remaining updates are not done. This means that the data in the database (even after fixing the corrupt file) is inconsistent.&lt;br /&gt;
#FIXFILE merely fixes the technical structure of the file so that any further program accesses to that portion of the file do not cause immediate program termination and consequent likely catastrophic database inconsistency.&lt;br /&gt;
 &lt;br /&gt;
&#039;&#039;&#039;IMPORTANT :&#039;&#039;&#039; You must prevent anyone from accessing NEOSYS while FIXFILE is running.&lt;br /&gt;
&lt;br /&gt;
==== List of Files Impacted by FIXFILE ====&lt;br /&gt;
#&#039;&#039;&#039;USERS File :&#039;&#039;&#039; The main data of any lost records from the USERS file will be recreated any time the Authorisation File is saved, however only the information in the Authorisation File is recreated which means that all personal preferences, holiday records, login history etc will be lost.&lt;br /&gt;
&lt;br /&gt;
=== Fixing Damaged DEFINITIONS file ===&lt;br /&gt;
 &lt;br /&gt;
==== Non-Solution ====&lt;br /&gt;
 &lt;br /&gt;
You will probably not be able to login if the DEFINITIONS FILE is damaged. You can press Alt+S and type EXECUTE to get a TCL command box but this still doesnt help because you cannot use FIXFILE on DEFINITIONS.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: DO NOT USE FIXFILE TO TRY AND FIX THE DEFINITIONS FILE.&lt;br /&gt;
 &lt;br /&gt;
DOUBLE CAUTION: IN CASE YOU DECIDE TO IGNORE THIS EXPECT ALL KINDS OF HORRIBLE PROBLEMS IN THE DATABASE REQUIRING A COMPLETE RESTORE FROM A GOOD BACKUP AFTER A FEW DAYS OF PAIN BECAUSE RANDOM OLD DATABASE UPGRADE/CONVERSIONS WILL BE PERFORMED *AGAIN* WITHOUT YOU KNOWING IT.&lt;br /&gt;
 &lt;br /&gt;
==== Partial Restore ====&lt;br /&gt;
 &lt;br /&gt;
You can copy recent DEFINITIONS.LK and DEFINITIONS.OV files from the DATA\datasetcode\GENERAL folder.&lt;br /&gt;
 &lt;br /&gt;
CAUTION: All changes done in the Configuration File, Authorisation File, Users File and various other changes will be reverted to the date of the DEFINITIONS files being restored. If you are restoring from last nights backup or testdata then this will not be much but could cause serious confusion to people who have changed their passwords etc.&lt;br /&gt;
&lt;br /&gt;
==== Full Restore ====&lt;br /&gt;
&lt;br /&gt;
Restore from your latest backup losing all work done since that time and date.&lt;br /&gt;
&lt;br /&gt;
=== Preventing users from accessing NEOSYS in order to do maintenance or repairs ===&lt;br /&gt;
 &lt;br /&gt;
On most systems you can simply stop the NEOSYS processes. On other systems where NEOSYS processes are automatically started in response to requests from the web, you need to disable the autostart by one of the following methods&lt;br /&gt;
 &lt;br /&gt;
# Stop the autostart program/script&lt;br /&gt;
# Put a file called NET.CFG with a single line saying AUTOSTART=NO in the neosys\neosys folder&lt;br /&gt;
# Stop the IIS server&lt;br /&gt;
# Stop/Pause the particular web in question&lt;br /&gt;
&lt;br /&gt;
== Dealing with damaged files that cannot be fixed ==&lt;br /&gt;
&lt;br /&gt;
If programmers are unable to fix the damage in a reasonably period of time and the damage is caused due to matters beyond NEOSYS control such as non-dedicated servers and power failures then data must be restored and client advised why they are going to suffer loss of data.&lt;br /&gt;
 &lt;br /&gt;
THIS DOES NOT RELEASE NEOSYS SUPPORT STAFF FROM THE OBLIGATION TO PROACTIVELY INFORM THE CLIENT OF MEASURES TO PREVENT THE RECURRENCE OF THE EVENT.&lt;br /&gt;
&lt;br /&gt;
The following are the steps to follow:&lt;br /&gt;
&lt;br /&gt;
# Ascertain the cause of the damage to the database by looking at the internal logs&lt;br /&gt;
# Create a new database from the damaged one as it will contain the up to date but damaged database.&lt;br /&gt;
# Restore the database from the backup media so that the database is in the last good known state. &lt;br /&gt;
# The client can see what work was done over the past couple of days from the damaged database and it will assist them to redo the work in the currently restored out of date main database.&lt;br /&gt;
# Next discuss with the client about the cause of the damage and (a) what to do to prevent the damage occurring again (b) to agree a procedure to perform a manual backup in case the automatic one is not performed for any reason overnight.&lt;/div&gt;</summary>
		<author><name>Vineet</name></author>
	</entry>
</feed>