Posted on 08-23-2013 02:38 AM
After migration from JAMFSERVEROLD to JAMFSERVERNEW (different hostnames) i get an error "Error creating Certificate Authority" after the import of data via the database import tool. I cannot see any options into the webinterface to create new certificates. etc.. just the error and the message to contact Jamf support. For your info: I exported the old data and import into the new server. I use CasperSuite 9. Any idea?
Solved! Go to Solution.
Posted on 08-23-2013 07:31 AM
Hey guys,
This is a known issue when restoring an 8.x database over the top of a 9 database. Since some of the new tables from 9 still exist after the restore, it causes some upgrade steps not to launch and some data mismatches. Could you give this a try to see if resolves the issue?
1.) Stop Tomcat
2.) Log into MySQL and run the following: drop database jamfsoftware; create database jamfsoftware;
3.) Restore the 8.x database with the Database Utility
4.) Start Tomcat
Running the drop and create will completely remove the database from within MySQL, ensuring that we don't have any stray tables in there and that we are restoring on a clean slate.
Hope this helps!
Posted on 08-23-2013 04:49 AM
I had the same issue. I had created a backup of my one location's 8.71 JSS database (prodserver.domain.com) with the database utility tool and imported it over into a new Casper 9 test box (casper.domain.com). Everything on the test box was a fresh install (OS X 10.8.4, Server.app 2.2.1, MySQL Community Server 5.6.13, Casper 9.0, latest Java 6 from Apple).
After importing the 8.71 database from prodserver, Tomcat on casper was restarted by the database utility. It got partway through the JSS startup process, then I received the error shown below.
Posted on 08-23-2013 07:31 AM
Hey guys,
This is a known issue when restoring an 8.x database over the top of a 9 database. Since some of the new tables from 9 still exist after the restore, it causes some upgrade steps not to launch and some data mismatches. Could you give this a try to see if resolves the issue?
1.) Stop Tomcat
2.) Log into MySQL and run the following: drop database jamfsoftware; create database jamfsoftware;
3.) Restore the 8.x database with the Database Utility
4.) Start Tomcat
Running the drop and create will completely remove the database from within MySQL, ensuring that we don't have any stray tables in there and that we are restoring on a clean slate.
Hope this helps!
Posted on 08-23-2013 09:55 AM
Yup, that fixed it on my end. Thanks!
Posted on 08-23-2013 01:04 PM
I just ran into this as well. If this is a known issue when restoring a 8.x database to 9, why isn't it documented anywhere? I just looked at the 9.0 release notes and this is not listed in the known issues.
Posted on 08-23-2013 04:46 PM
I think it would be good to add a note to the “Upgrading the JSS” section of the JSS Installation and Configuration Guide for Linux 9.0.pdf document (page 17 currently). I'd suggest adding a callout saying something like this:
Ensure that the MySQL service is properly configured with the jamfsoftware database from version 8.2 or later before running Casper 9 for the first time. If migrating the jamfsoftware database via SQL dump, be sure import the SQL dump BEFORE starting the JSS Tomcat Application.
When version 9 of the JSS starts up, it begins upgrading the jamfsoftware database to which it has been configured to connect (as defined in <tomcat home>/webapps/ROOT/WEB-INF/xml/Database.xml)
--Gerrit DeWitt
Amazon.com
Posted on 08-26-2013 04:39 AM
Thx David, that is the solution!
Posted on 08-26-2013 12:07 PM
hi... i might be off topic but how do you stop tomcat and also acces mysql commands ?
Posted on 08-28-2013 03:53 PM
@ jmercier
Here is a link on Tomcat:
https://jamfnation.jamfsoftware.com/article.html?id=117
For my MySQL, once you login to mysql the commands are available to use. The MySQL web page has resources to answer any other MySQL questions you may have.
Posted on 09-18-2013 12:11 PM
Just ran into this problem but not related to a migration. If you are running 9.x and upgrade Java then you need to re-add the Oracle JCE files to /Library/JavaVirtualMachines/jdkversion/Contents/Home/jre/lib/security
JCE files for Java 1.7 can be found at http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
Posted on 09-27-2013 08:11 AM
David, we ran into this on two servers. Thanks for the fix. This might make a good knowledge base article. ;)
Don
Posted on 09-27-2013 08:11 AM
Need. Delete. Button. :)
Posted on 07-22-2014 03:46 PM
David - solved it for me too. Thanks!
if you need to stop Tomcat - try this link:
https://jamfnation.jamfsoftware.com/article.html?id=117