I wanted to share an interesting issue I had with a customer. Hopefully if somebody has the same problem this will help you out too.
Customer was on 14.3.0 and Jaspersoft 6.1, fresh install.
When they attempted to import the content after copying the keystore, they had the following error message:
10/8/16 11:57 AM (admin) Importing....
10/8/16 11:57 AM (admin) Content import failed.No export task with id e574bffa-f0ae-4e04-9df0-0499928fc898.
10/8/16 11:57 AM (admin) Failed to import content for tenant
com.ca.jasper.restAdapter.JasperException: No export task with id e574bffa-f0ae-4e04-9df0-0499928fc898.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
In jasperserver.log we had the following message:
2016-10-21 09:37:44,078 ERROR ImportRunnable,Thread-54:62 - Import failed:
com.jaspersoft.jasperserver.export.service.ImportFailedException: Import failed. Reason: provided zip file is not valid JasperReports Server export file.
at java.lang.Thread.run(Unknown Source)
What we did when troubleshooting:
Tried recreating the organization and keystore, replacing the jaspersoft_csk.zip by another copy of the file, same error.
Tried full Jaspersoft reinstall, same error
With some advanced debug we found that the issue is caused by the extracted zip file created by the command. Upon examining we saw that some of reports do not get extracted, and this is what fails it. So this was an OS issue, not PPM/content one.
On call with customer I noticed the length of the file that doesn't get unzipped is the biggest one in the folder, that, combined with their deep TEMP path in C:\Users folder. (They were using C:\Users\*********\AppData\Local\Temp\8)
Go to Environmental variables - System and set the TEMP/TMP variable to point to something short such as D:\TEMP
Then open a new Command Prompt and retry the import command (do not use the same cmd window)
If the JVM is still not picking it try the following:
Modify the $clarity\bin\admin.bat file on line 28 (for Linux it will be admin.sh):
to include, together with the other arguments, the following (leading to an existing -short- path):
Save and run admin content-jaspersoft csk, this should import all the content successfully.