<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Install%2FUpdate_Issues</id>
	<title>Install/Update Issues - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Install%2FUpdate_Issues"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Install/Update_Issues&amp;action=history"/>
	<updated>2026-05-15T15:13:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Install/Update_Issues&amp;diff=276&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Install/Update_Issues&amp;diff=276&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:50Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Install/Update_Issues&amp;diff=275&amp;oldid=prev</id>
		<title>Pmorey: /* Keystone database upgrade fails (version 4.0.1+) */</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Install/Update_Issues&amp;diff=275&amp;oldid=prev"/>
		<updated>2022-01-11T13:34:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Keystone database upgrade fails (version 4.0.1+)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Install/Update Issues ==&lt;br /&gt;
&lt;br /&gt;
=== Keystone database upgrade fails (version 4.0.1+) ===&lt;br /&gt;
&lt;br /&gt;
Sometimes when updating Keystone, a database upgrade error message may appear (an example is shown below:)&lt;br /&gt;
&lt;br /&gt;
[[File:DBUpgradeError.png|400px]]&lt;br /&gt;
&lt;br /&gt;
As of Keystone 4.0.1, new handling has been added when upgrading Keystone databases. Keystone now keeps track of the last successfully executed SQL statement within the upgrade script. This provides the ability to resume the upgrade script at a later time starting at the SQL statement within the script that failed.&lt;br /&gt;
&lt;br /&gt;
The new procedure to follow when you see a database upgrade error is:&lt;br /&gt;
* Note the error message (screenshot is best)&lt;br /&gt;
* Click the Cancel button&lt;br /&gt;
* Stop all Keystone services (Device Server, Device Aggregator, Keystone REST Server, Borland Socket Server)&lt;br /&gt;
* Using the InterBase Server Manager, stop InterBase&lt;br /&gt;
* Restart InterBase&lt;br /&gt;
* Restart ONLY the following Keystone services: Keystone REST Server, Borland Socket Server&lt;br /&gt;
* Start Keystone and login to the company where the failure occurred&lt;br /&gt;
* You will be prompted to upgrade the database, which will resume at the exact SQL statement that initially failed&lt;br /&gt;
* When all companies have been upgraded, restart the Device Server and Device Aggregator services&lt;br /&gt;
&lt;br /&gt;
=== Web Update releases successfully but will not install ===&lt;br /&gt;
&lt;br /&gt;
The normal web update process succeeds but when Keystone is restarted the update does not install, even though it was released.&lt;br /&gt;
&lt;br /&gt;
Explanation: As of Keystone 3.x, users are no longer automatically logged off when the Application Server starts. On many Keystone server-based systems, users do not log out at the end of the day. In the past, the easy solution was to reboot the main server. This would force the Application Server to shutdown, and then all users would be logged out when it started back up.&lt;br /&gt;
&lt;br /&gt;
Solution: From Keystone 3.x forward, since the users are no longer automatically logged off, they must be logged off manually. Customers can do this by using the &amp;quot;User Maintenance&amp;quot; function on the System Maintenance menu. Support personnel can use a quicker method: run the following query while logged in to the CCWSYS.IB database:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;UPDATE CCTUSER SET IN_USE_FLAG='N'&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will log all users out of Keystone at once and allow the update to install when Keystone is started on the server. &amp;lt;b&amp;gt;Verify that users are not active in Keystone when you run this query or they may lose data and/or corrupt the database!&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Web Update will not install on Windows Server Essentials/Small Business Server ===&lt;br /&gt;
&lt;br /&gt;
The normal web update process fails on a server running either Windows Server Essentials or Small Business Server. The reason is that these versions of Windows include the &amp;quot;Terminal Server&amp;quot; component. Keystone detects that the update is being run on a Terminal Server and issues the following message:&lt;br /&gt;
&lt;br /&gt;
[[File:WebUpdateTerminalServer.jpg]]&lt;br /&gt;
&lt;br /&gt;
To complete the installation of the update:&lt;br /&gt;
&lt;br /&gt;
# Use the &amp;quot;Copy Update&amp;quot; function on the System Maintenance menu to copy the update to a temporary folder.&lt;br /&gt;
# Rename the UPDATE.DAT file to UPDATE.EXE.&lt;br /&gt;
# Execute the UPDATE.EXE file. This will update Keystone on the server.&lt;br /&gt;
# Open IBConsole and do the following:&lt;br /&gt;
## Open the CCWSYS database.&lt;br /&gt;
## Open the CCTUPD table.&lt;br /&gt;
## Change the value of the PENDING_FLAG field to Y.&lt;br /&gt;
## Post the update.&lt;br /&gt;
## Commit the update.&lt;br /&gt;
## Close IBConsole.&lt;br /&gt;
# Now proceed to update the workstations normally.&lt;br /&gt;
&lt;br /&gt;
=== Exception running database upgrade scripts when updating to Keystone 2.5 ===&lt;br /&gt;
If an exception occurs that mentions the TMP$ATTACHMENTS table (or any table beginning with TMP$) during a system or company database upgrade when updating to Keystone 2.5, this indicates that the database being upgraded was originally created with InterBase 6 and was never restored from a backup. &lt;br /&gt;
&lt;br /&gt;
To proceed with a &amp;lt;b&amp;gt;system&amp;lt;/b&amp;gt; database upgrade:&lt;br /&gt;
#Click the Cancel button on the error dialog&lt;br /&gt;
#Start IBConsole and open the system database&lt;br /&gt;
#Open the CCTDBVER table and click on the Data tab&lt;br /&gt;
#Edit the RELEASE_NO field and increase the value by 1&lt;br /&gt;
#Save the record and click the &amp;quot;Commit &amp;amp; Refresh&amp;quot; button&lt;br /&gt;
#Restart Keystone&lt;br /&gt;
&lt;br /&gt;
To proceed with a &amp;lt;b&amp;gt;company&amp;lt;/b&amp;gt; database upgrade:&lt;br /&gt;
#Click the Cancel button on the error dialog&lt;br /&gt;
#Start IBConsole and open the company database&lt;br /&gt;
#Open the CCTDBVER table and click on the Data tab&lt;br /&gt;
#Edit the RELEASE_NO field and increase the value by 1&lt;br /&gt;
#Save the record and click the &amp;quot;Commit &amp;amp; Refresh&amp;quot; button&lt;br /&gt;
#If you changed the RELEASE_NO field to &amp;quot;5&amp;quot;, execute the following SQL statements (one at a time) in the company database:&lt;br /&gt;
##GRANT SELECT ON ARVPRICE_EXCEPTION TO CCWVIEW;&lt;br /&gt;
##GRANT SELECT ON ARVTCKHD_NONVOID TO CCWVIEW;&lt;br /&gt;
##GRANT SELECT ON ARVTCKHD_VOID TO CCWVIEW;&lt;br /&gt;
##Select the Transactions-&amp;gt;Commit menu option&lt;br /&gt;
#Restart Keystone&lt;br /&gt;
&lt;br /&gt;
=== Cannot replace file: xxxxxx ===&lt;br /&gt;
If an error comes up saying &amp;quot;Cannot replace file: xxxxx&amp;quot; during the update, it means that the file is in use. If the filename is &amp;lt;b&amp;gt;ccasib6.exe&amp;lt;/b&amp;gt;, this indicates that the Application Server is still running. You can terminate the Application Server by doing the following series of commands on the PC where the Application Server is running:&lt;br /&gt;
#Start a Command Prompt&lt;br /&gt;
#Type: &amp;lt;tt&amp;gt;TELNET 127.0.0.1 6600&amp;lt;/tt&amp;gt;&lt;br /&gt;
#You will see a startup message from the Application Server&lt;br /&gt;
#Type: &amp;lt;tt&amp;gt;KILLSERVER&amp;lt;/tt&amp;gt;&lt;br /&gt;
#If you are asked to &amp;quot;Terminate Application Server?&amp;quot;, type: &amp;lt;tt&amp;gt;Y&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the filename is &amp;lt;b&amp;gt;ccdevsv.exe&amp;lt;/b&amp;gt;, this indicates that the Device Server is still running. You can terminate the Device Server by doing the following series of commands on the PC where the Device Server is running:&lt;br /&gt;
#Start a Command Prompt&lt;br /&gt;
#Type: &amp;lt;tt&amp;gt;TELNET 127.0.0.1 6000&amp;lt;/tt&amp;gt;&lt;br /&gt;
#You will see a startup message from the Device Server&lt;br /&gt;
#Type: &amp;lt;tt&amp;gt;KILLSERVER&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[serach key  - kill app server appserver stop]&lt;br /&gt;
&lt;br /&gt;
If the filename is anything else, this indicates that a user may still be logged in, or did not properly log out of CompuCrete. The first thing to check would be if there is a Remote Desktop session active. These can be terminated by using the Windows Terminal Services Manager. If this does not terminate the program, you can use the Windows Task Manager on the server to terminate it.&lt;br /&gt;
&lt;br /&gt;
Once the program is no longer listed in Task Manager, you can select the &amp;lt;b&amp;gt;Retry&amp;lt;/b&amp;gt; option to proceed with the update.&lt;br /&gt;
&lt;br /&gt;
=== CompuCrete Activation Screen appears after update ===&lt;br /&gt;
After installing the update, CompuCrete restarts but then the Activation Screen appears. This may indicate that the Socket Server service is not running. To check this, look for the &amp;lt;b&amp;gt;scktsrvr.exe&amp;lt;/b&amp;gt; process in the Task Manager on the server. If you do not see this process listed, do the following:&lt;br /&gt;
#Start the Control Panel&lt;br /&gt;
#Select Administrative Tools&lt;br /&gt;
#Select Services&lt;br /&gt;
#Find the entry for &amp;lt;b&amp;gt;Borland Socket Server&amp;lt;/b&amp;gt;&lt;br /&gt;
#Verify that the Startup Type is listed as &amp;lt;b&amp;gt;Automatic&amp;lt;/b&amp;gt;&lt;br /&gt;
##If not, right-click the Borland Socket Server entry&lt;br /&gt;
##Select Properties&lt;br /&gt;
##For Startup type, select &amp;lt;b&amp;gt;Automatic&amp;lt;/b&amp;gt;&lt;br /&gt;
##Click OK&lt;br /&gt;
#Verify that the Status is &amp;lt;b&amp;gt;Started&amp;lt;/b&amp;gt;&lt;br /&gt;
##If not, right-click the Borland Socket Server entry&lt;br /&gt;
##Select &amp;lt;b&amp;gt;Start&amp;lt;/b&amp;gt;&lt;br /&gt;
#Close the Services window&lt;br /&gt;
#Close the Administrative Tools window&lt;br /&gt;
#Restart CompuCrete&lt;/div&gt;</summary>
		<author><name>Pmorey</name></author>
	</entry>
</feed>