donnie.tucker Posted July 24, 2023 Share Posted July 24, 2023 Getting the below error when import a report./opt/jasperreports-server-8.1.1/buildomatic# ./js-import.sh --input-dir /opt/backup/imptmp --organization OSIResult: 128Validating JasperServer database connection at jdbc:postgresql://127.0.0.1:5432/jasperserver. Phase: [import-export-test]Connection OKKeystore OKVALIDATION COMPLETEDTotal time: 10 secondsExecuting Pro versionUsing Bundled version of JavaFirst resource path: /opt/jasperreports-server-8.1.1/buildomatic/conf_source/ieProLoading configuration resourcesInitialization completeProcessing startedImport of the root to an organization is not allowed. Link to comment Share on other sites More sharing options...
rpachipu Posted July 24, 2023 Share Posted July 24, 2023 This issue will happen when you export a path in an organization or whole organization as a URI in buildomatic without the --organization flag. This will generate you a regular export archive that contains all the resources under certain URI starting from the root. Then you try to import that archive with the --organization flag. This is incorrect, you need to have consistency with these flags since --organization flag expects an archive in certain format that contains only organization data.To correctly export and import organization using buildomatic or web services make sure you're always providing the --organization flag. Link to comment Share on other sites More sharing options...
andy.coan Posted August 14 Share Posted August 14 This answer is not helpful if you are trying to upgrade from Community Edition and import into Pro Edition. There are no organizations in the Community Edition. How to import from Community to Pro? Link to comment Share on other sites More sharing options...
rpachipu Posted August 15 Share Posted August 15 Please find the below document to migrate from community to pro. https://community.jaspersoft.com/documentation/jasperreports-server/tibco-jasperreports-server-upgrade-guide/v900/jrs-upgrade-guide-_-upgrade-ce-to-pro/ Link to comment Share on other sites More sharing options...
Badr Draifi Posted August 20 Share Posted August 20 Hi Andy, You can also check our Dr. Jaspersoft session about upgrading from Community to Commercial: Link to comment Share on other sites More sharing options...
andy.coan Posted August 23 Share Posted August 23 On 8/14/2024 at 9:45 PM, rpachipu said: Please find the below document to migrate from community to pro. https://community.jaspersoft.com/documentation/jasperreports-server/tibco-jasperreports-server-upgrade-guide/v900/jrs-upgrade-guide-_-upgrade-ce-to-pro/ Unknown argument: --secret-key='0xdd... Perhaps the video will be of more help. I do wonder sometimes if you test any of your documented processes before you publish them. Link to comment Share on other sites More sharing options...
andy.coan Posted August 23 Share Posted August 23 And any of the old ways of importing still result in the "you cannot import into the root of an organization" error. Why would you make the process so ornerous for a customer who is switching from community to a paid license? Link to comment Share on other sites More sharing options...
andy.coan Posted August 24 Share Posted August 24 Video seemed helpful and yet: 2024-08-23T21:31:25,463 ERROR BaseExportImportCommand:45 - org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext when running ./js-import.sh --input-zip {path}/export.zip --keyalias deprecatedImportExportEncSecret --skip-themes --update I've loaded my reports manually now, since I needed it done. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now