Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

upgrade to MR2 failed 'cos of SQL error message

Updated: 23 May 2010 | 26 comments
RHS's picture
0 0 Votes
Login to vote
I did a upgrade to MR2. After upgrade the "Management Server Upgrade Wizard" started and during initializing procedure the wizard stopped (10% done). Log file error message : (Violation of PRIMARY KEY constraint 'PK_DATA_HANDLER'. Cannot insert duplicate key in object 'dbo.DATA_HANDLER')
I use a SQL 2005 DB.
 
Has anybody the same error massage or the same problems with SQL DB and upgrading to MR2 ?
 
Thank you !
Rudolf

Comments

Burnin.Ape's picture
15
Apr
2008
0 Votes 0
Login to vote

Hi All
 
Similiar problem here.
1. I stopped the service
2. Did the Upgrade to MR2
3. The Upgrade Wizard stopped at 10% givin' me the following Log
 
Server HomeE:\Symantec\Symantec Endpoint Protection Manager\tomcat
Config schema format is upgraded from: 11.0.0.3
Launch FRame
net stop semsrv
E:\Symantec\Symantec Endpoint Protection Manager\bin\ODBCUtil.exe SQLServer null sepdbuser passwordxxxx MSSQLServer
Has valid SAV license
Info>> No SNAC license file in E:\Symantec\Symantec Endpoint Protection Manager\tomcat\etc\license
SQL Exception:
SQL Command: ALTER TABLE ANOMALYDETECTIONS ADD ID CHAR(32) NOT NULL DEFAULT upper(replace(newid(),'-',''))
SQLState:  S1000
Message:  Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
Vendor:  2705
java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364)
 at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2754)
 at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2195)
 at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:620)
 at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:483)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:445)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:623)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(JtdsStatement.java:1042)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(JtdsStatement.java:999)
 at com.sygate.scm.server.db.util.DbHelper.execCommandFromScript(DbHelper.java:152)
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:237)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: Failed to upgrade schema in execCommandFromScript: java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at com.sygate.scm.server.db.util.DbHelper.execCommandFromScript(DbHelper.java:163)
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:237)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: Failed to upgrade schema: java.sql.SQLException: Failed to upgrade schema in execCommandFromScript: java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:249)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
Launching log file ...
 
Any ideas?
 
Thanks
B.A.
Daniel B's picture
15
Apr
2008
0 Votes 0
Login to vote

I am getting the exact same error as Burnin.Ape.

Stuck at 10%.. can anyone from Symantec advise as to how to fix this?

Thanks
Daniel

Burnin.Ape's picture
15
Apr
2008
0 Votes 0
Login to vote

Now i'm really confused.
The Upgrade Wizard stopped at 10% with the error above. And i'm getting no error in the event viewer. The only thing there is, is a message from the MSI Installer telling me to reboot the system to complete the installation.
After the reboot, i'm able to log in to the console.
The About button telling me, Version 11.0.2000.1567 is installed. And also the Virus Definition Bar is now working.
 
Does it now work or do i expect major problems in the future, cause of the Upgrade error?
Burnin.Ape's picture
15
Apr
2008
0 Votes 0
Login to vote

How can i check, if the update of the database scheme worked for me?
In my testlab, the upgrade to mr2 worked fine. But in production env. i'm getting the error above.
Turned back to earlier snapshot and did the update again. Same result...

Ideas...?
Thanks

SKlassen's picture
15
Apr
2008
0 Votes 0
Login to vote

During the update, there should have been a box that gave status as it went along.  One of the items was schema update.  You may be able to find this information in the SEP_INST.log.
 
New to MR2 is the DBValidator tool, but I haven't tried it.  Look in the DOCUMENTATION directory of CD2 for info.
mk_sep_admin's picture
15
Apr
2008
0 Votes 0
Login to vote

I ran the upgrade on our test server (which has the embedded database - production uses SQL 2005).  I had the same error at 10% complete about the SQL duplicate.  I clicked 'OK' on the box and the install appears to finish.  However, when I look at the SEPM_INST.LOG file, it says that the configuration failed. 
 
I restarted the SEPM services and can login fine, the product shows the new version and "things" appear to be alright.  Very confusing!
 
I'll try a repair to see if that runs through without an error message.  I am not at all pleased on how the upgrade went in our test environment.  I am hesitant to try it in production without hearing what the duplicate ID SQL message is all about.
 
Thanks,
MK_SEP_Admin
Burnin.Ape's picture
16
Apr
2008
0 Votes 0
Login to vote

Ok, now i'm stuck.
Everything i tried failed.
I moved the DB to my virtual environment for testing. Getting the same error.
The dbvalidator tool is not working. If i start it, i get a "the system cannot find the path specified".
So i changed the Java_Home to the full path. Now i'm getting a "Exception in thread "main" java.lang.NoClassDefFoundError: com/sygate/scm/tools/ludbfix/XmlValidator" message.
 
If i do a fresh install of MR1 using the old DB, but create a new site, the complete DB gets erased. After that, i updated to MR2 and this works.
If i do a fresh install of MR1 using the old DB and keep my site, the DB holds every information. After that, i update to MR2 and the error comes back.
 
So it has to do something with our database. When its full, i'm getting those errors, if it's empty, everything works.
 
What else can i try??
 
Thanks for any further help
Burnin.Ape's picture
16
Apr
2008
0 Votes 0
Login to vote

Just an Idea.
We got 2 SEPM MR1 for LoadBalancing. What would happen, if i delete one in the SEPM Console under Admin->Servers, stop the service on both SEPM, uninstall MR1 on the deleted SEPM and reinstall with MR2 linking to the old DB. Then delete the other SEPM, again stop the service, uninstall MR1 and reinstall with MR2.
What would be the behavior of the Clients? Will they connect again? Or does the certificate change and no one would be able to connect to the new MR2 SEPMs? We do not use secure communication.
 
PhilC's picture
17
Apr
2008
0 Votes 0
Login to vote

Hi All,
I have the same problem, the upgrade fails at 10% when upgrading the database with the following error:
 
Primary Key for table 'DATA_Handler' is not unique.
 
I am waiting for a call back from support at the moment, its only been a mere 3 hours and counting!
 
Burnin.Ape's picture
17
Apr
2008
0 Votes 0
Login to vote

did anyone had luck? or a hint what else can be tried?

Rafael DAuria's picture
17
Apr
2008
0 Votes 0
Login to vote

Exactly same problem here.. I also have a case with support, no replies till now.

Anyone lucky here?
Burnin.Ape's picture
18
Apr
2008
0 Votes 0
Login to vote

I tried my idea and it works actually. All test clients reconnect to the SEPM. Also, i can open the console and navigate through the tabs. But under Admin->Servers i receive an error message in the field, where the liveupdate writes his log.
*****
Make sure that the server is running and your session has not timed out.
If you can reach the server but cannot log on, make sure that you provided the correct parameters.
If you are experiencing network issues, contact your system administrator. ErrorCode: 0x80020000  [Site: Symantec EndPoint Security]  [Server: blackpearl]
*****
 
What does that mean? I do not have a connection to the Internet. So i'm not sure if this is an error from liveupdate...
 
Here the scm-server-0.log
*****
2008-04-18 08:45:27.093 SCHWERWIEGEND: ================== Server Environment ===================
2008-04-18 08:45:27.093 SCHWERWIEGEND: os.name = Windows 2003
2008-04-18 08:45:27.093 SCHWERWIEGEND: os.version = 5.2
2008-04-18 08:45:27.093 SCHWERWIEGEND: os.arch = x86
2008-04-18 08:45:27.093 SCHWERWIEGEND: java.version = 1.5.0_14
2008-04-18 08:45:27.093 SCHWERWIEGEND: java.vendor = Sun Microsystems Inc.
2008-04-18 08:45:27.093 SCHWERWIEGEND: java.vm.name = Java HotSpot(TM) Server VM
2008-04-18 08:45:27.093 SCHWERWIEGEND: java.vm.version = 1.5.0_14-b03
2008-04-18 08:45:27.109 SCHWERWIEGEND: java.home = C:\Program Files\Symantec\Symantec Endpoint Protection Manager\jdk\jre
2008-04-18 08:45:27.109 SCHWERWIEGEND: catalina.home = C:\Program Files\Symantec\Symantec Endpoint Protection Manager\tomcat
2008-04-18 08:45:27.109 SCHWERWIEGEND: java.user = null
2008-04-18 08:45:27.109 SCHWERWIEGEND: user.language = **
2008-04-18 08:45:27.109 SCHWERWIEGEND: user.country = **
2008-04-18 08:45:27.109 SCHWERWIEGEND: scm.server.version = 11.0.2000.1567
2008-04-18 08:45:32.468 SCHWERWIEGEND: ================== StartClientTransport ===================
2008-04-18 08:45:33.750 SCHWERWIEGEND: Schedule is started!
2008-04-18 08:45:35.062 SCHWERWIEGEND: StateCheckpointTask connect to secars failed: SERVICE NOT AVAILABLE
2008-04-18 08:45:35.578 SCHWERWIEGEND: IISCacheTask connect to secars failed: SERVICE NOT AVAILABLE
2008-04-18 08:46:33.781 SCHWERWIEGEND: Unknown Exception in: com.sygate.scm.server.task.SecurityDataTask
java.net.UnknownHostException: securityresponse.symantec.com
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
 at java.net.Socket.connect(Socket.java:520)
 at java.net.Socket.connect(Socket.java:470)
 at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
 at sun.net.www.http.HttpClient.<init>(HttpClient.java:231)
 at sun.net.www.http.HttpClient.New(HttpClient.java:304)
 at sun.net.www.http.HttpClient.New(HttpClient.java:321)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
 at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
 at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
 at com.sygate.scm.common.communicate.Communicator.getRequestInputStream(Communicator.java:531)
 at com.sygate.scm.common.communicate.Communicator.getRequestInputStreamWithAuthProxy(Communicator.java:512)
 at com.sygate.scm.server.util.securitydata.ThreatData.download(ThreatData.java:91)
 at com.sygate.scm.server.util.securitydata.ThreatData.refresh(ThreatData.java:53)
 at com.sygate.scm.server.task.SecurityDataTask.processThreats(SecurityDataTask.java:123)
 at com.sygate.scm.server.task.SecurityDataTask.run(SecurityDataTask.java:91)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)
com.sygate.scm.common.communicate.CommunicationException: Failed to connect to the server.
Make sure that the server is running and your session has not timed out.
If you can reach the server but cannot log on, make sure that you provided the correct parameters.
If you are experiencing network issues, contact your system administrator. ErrorCode: 0x80020000
 at com.sygate.scm.common.communicate.Communicator.getRequestInputStream(Communicator.java:564)
 at com.sygate.scm.common.communicate.Communicator.getRequestInputStreamWithAuthProxy(Communicator.java:512)
 at com.sygate.scm.server.util.securitydata.ThreatData.download(ThreatData.java:91)
 at com.sygate.scm.server.util.securitydata.ThreatData.refresh(ThreatData.java:53)
 at com.sygate.scm.server.task.SecurityDataTask.processThreats(SecurityDataTask.java:123)
 at com.sygate.scm.server.task.SecurityDataTask.run(SecurityDataTask.java:91)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)
*****
 
If i open h**p://localhost/secars/secars?hello,secars
i receive an OK.
 
Any ideas what went wrong?
 
tilallr1's picture
18
Apr
2008
0 Votes 0
Login to vote

So I have the same problem. Upgrade stops at 10%. The weird thing is I decided to just ignored it, since the manager has been clearly upgraded and everything appears to be working as it should. Improved access time and haven't had any issues really. I wonder if its even necessary. Curious if anyone has a fix for it though. Make me feel a little better.
Rafael Mellone's picture
18
Apr
2008
0 Votes 0
Login to vote

I did the upgrade, then i got the same error.
I was trying to install by remote session when this error happend.
Today, the symantec's employe said me to install by console session.
I installed with 100% success.
Abhishek Pradhan's picture
19
Apr
2008
0 Votes 0
Login to vote

Yes. This happens in because the ODBC connector is not able to parse a successful connection query if you are in a remote session. Dont know the exact reason for that.
 
To find out that you are installing in which session, open command prompt and typr command "set" without the quotes, and then hit enter.
 
Look for the 11th line from the bottom when the data pops up - It's show session name+ console or session name=RDP - TCP # , and whatever the session number may be.
 
If this is the case, log off completely, and then from the computer where you are remoting in, Click on Start -> Run -> and type in "mstsc /console" without the quotes, and click OK. Now when the RDP prompt comes up, remote to the server. The /console switch actually forces the remote session into console session, or a virtual console session.
 
Try to install after this. You will be successful, since the ODBC test connection command was parsed successfully.
 
 

Abhishek Pradhan, PMP, MCT
Consultant | Microsoft Corp.
Blog: http://blog.abhishekpradhan.net | SIG Lead - Pune IT Pro (Microsoft Pune User Group) | http://www.puneusergroup.org

Daniel B's picture
20
Apr
2008
0 Votes 0
Login to vote

Is there a way to run the database upgrade wizard again without going through the entire installation?

I can't really uninstall and reinstall the entire SEPM.

Burnin.Ape's picture
20
Apr
2008
0 Votes 0
Login to vote

Hi Abhishek Pradhan
 
The funny thing is, i always do a rdp connection with /console. And it didn't help.
For testing reasons, i detached my SQL DB, copied to my VMWare environment and reatached it. So, when i work im my VMs, i do a local login...
 
I also tried to create a new site with the existing DB. It then clears every entry in the DB, so i'm having an empty DB. When i try to migrate the new "empty" DB, it works fine. But when i add the testing server (in VM) to the existing site, the migration fail at 10%.
 
Any other ideas??
 
Thank for the help
Abhishek Pradhan's picture
21
Apr
2008
0 Votes 0
Login to vote

DO you use any proxy server or ISA server to connect to the internet. If its ISA server, you may need to manually add LiveUpdate to the list of allowed apps / protocols to connect to the internet.
 
I'd recommend trying the following - Uninstall live update from Add/Remove Programs, go to
 
ftp://ftp.symantec.com/public/english_us_canada/liveupdate/3.4 <this is the latest version of LiveUpdate>
 
and download the file LUSETUP.exe, and run the Liveupdate setup and install it.
 
 
Then run Liveupdate manually on the SEPM and let us know what happens

Abhishek Pradhan, PMP, MCT
Consultant | Microsoft Corp.
Blog: http://blog.abhishekpradhan.net | SIG Lead - Pune IT Pro (Microsoft Pune User Group) | http://www.puneusergroup.org

Burnin.Ape's picture
21
Apr
2008
0 Votes 0
Login to vote

Well, my testing environment isn't connected to any other networks. So i do not have a connection to the internet in VMWare. It's a standalone network.
The other thing is, under MR1 (still in testing environment) LUALL.EXE has version 3.3.0.61 and i'm not getting this error. I only receive the normal error: LiveUpdate failed.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
This is normal because i do not have any internet connection.
 
As soon as i install MR2 (in testing environment), the upgrade wizard stops at 10% givin' me the error (see my first message). But im still able to login to the console. The console version is 11.0.2000.1567. Under the Admin->Servers i receive the new error:
21. April 2008 10:45:58 CEST:  Failed to connect to the server.
Make sure that the server is running and your session has not timed out.
If you can reach the server but cannot log on, make sure that you provided the correct parameters.
If you are experiencing network issues, contact your system administrator. ErrorCode: 0x80020000  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:44:44 CEST:  Management server started up successfully  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:44:34 CEST:  Management server shut down gracefully  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LUALL.EXE finished running.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LiveUpdate failed.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LiveUpdate encountered one or more errors. Return code = 4.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LiveUpdate will start next on Montag, 21. April 2008 14:42:57 CEST on blackpearl.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LiveUpdate started.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
21. April 2008 10:42:57 CEST:  LUALL.EXE has been launched.  [Site: Symantec EndPoint Security]  [Server: blackpearl]
 
And it doesn't matter, if i use the new LUALL.EXE 3.4.1.234. Same error.
 
Regards
Abhishek Pradhan's picture
21
Apr
2008
0 Votes 0
Login to vote

OK, got it. Could you try to do a fresh install of MR-2 on a test system, and then restore the old DB and check if the same error persists ?

You may follow the steps given below to do so -

ON THE OLD INSTALLATION
Copy the "Server Private Key Backup folder" from:
\\ProgramFiles\Symantec\ Symantec Endpoint Protection Manager\Server Private Key Backup


Paste it to another storage area (as it will be deleted during Symantec Endpoint protection Manager uninstall)
Copy the "Data folder" from:
\\ProgramFiles\Symantec\ Symantec Endpoint Protection Manager\Data


Paste it to another storage area.
Copy the "sem5.db" database file from:
\\ProgramFiles\Symantec\ Symantec Endpoint Protection Manager\db


Paste it to another storage area.
Make a note of the "Encryption Password" used during the install.



ON THE NEW INSTALLATION AFTER THE DISASTER RECOVERY  OF OPERATING SYSTEM (OS)
Ensure that the server has the same IP Address and Host Name the Operating System has been Installed.
Install the "Symantec Endpoint Protection Manager" with the "Embedded Database."
Enter the "Encryption Password" that was used on the old "Symantec Endpoint Protection Manager" installation.
Log in to the Console
Click Admin.
Select Tasks> Servers.
Under "View Servers", expand Local Site.
Click the <computer name> that identifies the local site.
Select Tasks.
Click Manage Server Certificate.
In the "Welcome panel", click Next.
In the "Manage Server Certificate panel", select Update the Server Certificate
Click Next.
Under "Select the type of certificate to import", select JKS keystore.
Click Next.
Note: If one of the other certificate types has been implemented, select that type.


In the "JKS Keystore panel", click Browse.
Locate and select the backed up "keystore_<timestamp>.jks" keystore file.
Click OK
Open the "server_<timestamp>.xml" file
Select and copy the "keystore password."
Activate the "JKS Keystore" dialog box.
Paste the "keystore password" into the "Keystore" and "Key boxes."
Note: The only supported paste mechanism is Ctrl + V.


Click Next
Note: If you get an error message that says you have an invalid keystore file, you probably entered invalid passwords. Retry the password copy and paste. (This error message is misleading.)


In the "Complete panel", click Finish.
Stop the services for the "Symantec Embedded database" and the "Symantec Endpoint Protection Manager"
Go to:
\Program Files\Symantec Endpoint Protection Manager\

on the new "Symantec Endpoint Protection Manager" and remove the "Data folder."


Move the "old Data folder" under:
\Program Files\Symantec Endpoint Protection Manager\Data

from the old "Symantec Endpoint Protection Manager" install directory to the new "Symantec Endpoint Protection Manager" install directory.


Create a new folder named "db1" in:
\Program Files\Symantec Endpoint Protection Manager\


Move the "sem5.db" from the old "Symantec Endpoint Protection Manager" install directory.
Click Start>Run.
Type regedit
Navigate to:
HKey_Local_Machine\System\CurrentControlSet\services\ASANYs_sem5\Parameters


Open the value name Parameters and the original database:
\Program Files\Symantec Endpoint Protection Manager\db\sem5.db


Change it to:
\Program Files\Symantec Endpoint Protection Manager\db1\sem5.db


Move the "sem5.db" database:
\Program Files\Symantec Endpoint Protection Manager\db

from the old "Symantec Endpoint Protection Manager"  install directory to the new "Symantec Endpoint Protection Manager" install directory.


Go to Administrative Tools> Data Sources ODBC
Ensure the database connectivity after the changing the database file location to:
\Program Files\Symantec Endpoint Protection Manager\db1\sem5.db


Run the "Migration Server Configuration Wizard."
Click Yes to replace the database after entering the password
Login to the "Symantec Endpoint Protection Manager" using the old password.
Ensure that the Domain ID is same as it was on the old clients.
If it not, follow the direction in the below document to restore the Domain ID.  This will enable client communication http://service1.symantec.com/SUPPORT/ent-security.nsf/docid/2007082112135948



This is Kedar's KB - so feel free to ask him or me any questions in case you face any issues on the same.

Abhishek Pradhan, PMP, MCT
Consultant | Microsoft Corp.
Blog: http://blog.abhishekpradhan.net | SIG Lead - Pune IT Pro (Microsoft Pune User Group) | http://www.puneusergroup.org

Burnin.Ape's picture
21
Apr
2008
0 Votes 0
Login to vote

...hmm, i'll give it a try. Except the thing with the embedded DB. We are using SQL 2005 SP2 on a different Server.
Thanks for any hint you gave...
Burnin.Ape's picture
21
Apr
2008
0 Votes 0
Login to vote

Ok, i tried two sceanrios.

1. Uninstall MR1, install MR2 and restore the keystore.
Same effect.

2. Did a fresh install of MR2 on new empty Server (W2k3) linking to the old DB.
Again, getting "Failed to connect to the server.
Make sure that the server is running and your session has not timed out.
If you can reach the server but cannot log on, make sure that you provided the correct parameters.
If you are experiencing network issues, contact your system administrator. ErrorCode: 0x80020000  [Site: Symantec EndPoint Security]  [Server: blackpearl]"

Why do i get this message? I'm already logged in. I can navigate through the console.

 

Burnin.Ape's picture
21
Apr
2008
0 Votes 0
Login to vote

...hmmm, now it's getting weird.
I tried an upgrade to MP1 so i'm might be able to upgrade later to MR2. But as you can think, no luck here.
Getting the same error as described in my first post. The upgrade wizard stops at 10%.
I'm able to log in to the console. And this time, i do not get the error "Failed to connect to the server" under Admin->Servers.
So i then tried to migrate to MR2.
And again, the upgrade wizard stops at 10%. And when i log in to the console, under Admin->Servers i receive the old error again.
What happend to my DB? I think this is the big problem i have. Something corrupted my DB and i do not know what.
 
 
Burnin.Ape's picture
22
Apr
2008
0 Votes 0
Login to vote

Everything i try ends in error. And its always the same error.
What does the table ANOMALYDETECTIONS stands for?
 
Just for testing reasons: I tried my very first DB Backup. On this, i had about 10 clients in the DB, only a few policies, nothing special.
But in the upgrade wizard log file, i'm getting the old error again.
****************************************************************************
SQL Exception:
SQL Command: ALTER TABLE ANOMALYDETECTIONS ADD ID CHAR(32) NOT NULL DEFAULT upper(replace(newid(),'-',''))
SQLState:  S1000
Message:  Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
Vendor:  2705
java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364)
 at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2754)
 at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2195)
 at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:620)
 at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:483)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:445)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:623)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(JtdsStatement.java:1042)
 at net.sourceforge.jtds.jdbc.JtdsStatement.executeUpdate(JtdsStatement.java:999)
 at com.sygate.scm.server.db.util.DbHelper.execCommandFromScript(DbHelper.java:152)
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:237)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: Failed to upgrade schema in execCommandFromScript: java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at com.sygate.scm.server.db.util.DbHelper.execCommandFromScript(DbHelper.java:163)
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:237)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
java.sql.SQLException: Failed to upgrade schema: java.sql.SQLException: Failed to upgrade schema in execCommandFromScript: java.sql.SQLException: Column names in each table must be unique. Column name 'ID' in table 'ANOMALYDETECTIONS' is specified more than once.
 at com.sygate.scm.server.db.util.SqlDbHelper.upgrade(SqlDbHelper.java:249)
 at com.sygate.scm.server.upgrade.Upgrade.upgradeDatabaseSchema(Upgrade.java:708)
 at com.sygate.scm.server.upgrade.Upgrade.doUpgrade(Upgrade.java:198)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$ActualTask.<init>(UpgradeTask.java:190)
 at com.sygate.scm.server.upgrade.ui.UpgradeTask$1.construct(UpgradeTask.java:95)
 at com.sygate.scm.server.upgrade.ui.SwingWorker$2.run(SwingWorker.java:121)
 at java.lang.Thread.run(Thread.java:595)
Launching log file ...
****************************************************************************
If i try with a new fresh install, new DB, everything new. I don't get this message...
 
If i view the table ANOMALYDETECTIONS in the SQL Management Studio, there's no entry. No entry in the fresh DB and no entry in my original DB. It's just NULL.

RHS's picture
23
Apr
2008
0 Votes 0
Login to vote

I reinstalled my test environment with two SEPM (11.0.1000) and a SQL 2005 DB. Now the upgrade to 11.0.2000 was successful without any errors. At first trial I had only problems with upgrading from 11.0.1800 which was a MR2-beta.
 
By the way:
If anyone wants to upgrade an environment of two or more SEPM in his site, do not forget to stop the service "Symantec Endpoint Protection Manager" at ALL the SEPM-servers before upgrade. And do not restart earlier then you upgraded ALL the SEPM-servers to MR2. After the last SEPM is upgraded then you should restart that service at all the SEPM-servers.
 
Rudolf
onlinegal's picture
17
Apr
2009
0 Votes 0
Login to vote

resolution?

Was this ever resolved? I have the exact same problem!

Thanks!