cancel
Showing results for 
Search instead for 
Did you mean: 

Can't install Nuxeo studio package on Nuxeo 2019 LTS

Samuel_VISCAPI
Champ on-the-rise
Champ on-the-rise

Dear all,

A colleague of mine gave me a Nuxeo Studio package to install on a production Nuxeo 2019 LTS server but the installation process fails thus:

1/ nuxeoctl mp-install /path/to/package.zip

Cannot execute command. entry
java.lang.NullPointerException: entry
        at java.util.Objects.requireNonNull(Objects.java:246) ~[?:?]
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:372) ~[?:?]
        at org.nuxeo.connect.update.standalone.StandaloneUpdateService.loadPackageFromZip(StandaloneUpdateService.java:260) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.getLocalPackageFileId(ConnectBroker.java:345) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.checkLocalPackagesAndAddLocalFiles(ConnectBroker.java:1519) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1308) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1278) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.pkgRequest(NuxeoLauncher.java:2796) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1219) ~[nuxeo-launcher-6883.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1113) ~[nuxeo-launcher-6883.jar:?]

2/ unzip /path/to/package.zip -d /path/to/nuxeo/packages/store

nuxeoctl mp-list

Local packages:
studio  installing      package (id: package-0.0.0-SNAPSHOT)

3/ nuxeoctl mp-install package

The following SNAPSHOT package(s) will be replaced in local cache (if available): [package-0.0.0-SNAPSHOT]
Do you want to continue (yes/no)? [yes] yes
Uninstalling package-0.0.0-SNAPSHOT
Failed to uninstall package: package-0.0.0-SNAPSHOT
java.util.regex.PatternSyntaxException: Unknown character property name {In/Isr} near index 18
nxserver\bundles\package-master-SNAPSHOT-(r?[0-9]+.*)\.jar
                  ^
        at java.util.regex.Pattern.error(Pattern.java:2027) ~[?:?]
        at java.util.regex.Pattern.family(Pattern.java:2916) ~[?:?]
        at java.util.regex.Pattern.sequence(Pattern.java:2155) ~[?:?]
        at java.util.regex.Pattern.expr(Pattern.java:2068) ~[?:?]
        at java.util.regex.Pattern.compile(Pattern.java:1782) ~[?:?]
        at java.util.regex.Pattern.<init>(Pattern.java:1428) ~[?:?]
        at java.util.regex.Pattern.compile(Pattern.java:1068) ~[?:?]
        at org.nuxeo.common.utils.FileMatcher.getMatcher(FileMatcher.java:50) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.update.JarUtils.find(JarUtils.java:70) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.update.JarUtils.findJar(JarUtils.java:63) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.update.UpdateManager.findInstalledJar(UpdateManager.java:488) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.update.UpdateManager.getRollbackTarget(UpdateManager.java:248) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.update.Rollback.doRun(Rollback.java:116) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.standalone.commands.AbstractCommand.run(AbstractCommand.java:115) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.standalone.CommandsTask.doRun(CommandsTask.java:121) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.standalone.UninstallTask.doRun(UninstallTask.java:59) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.connect.update.task.standalone.AbstractTask.run(AbstractTask.java:245) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.performTask(ConnectBroker.java:533) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgUninstall(ConnectBroker.java:630) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1327) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1278) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.pkgRequest(NuxeoLauncher.java:2796) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1219) ~[nuxeo-launcher-17133.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1113) ~[nuxeo-launcher-17133.jar:?]
The SNAPSHOT package package-0.0.0-SNAPSHOT is not available remotely, local cache will be used.

Dependency resolution:
  Unchanged packages (3):        nuxeo-web-ui:2.4.0, nuxeo-jsf-ui:10.10.0, package:0.0.0-SNAPSHOT


Failed commands:
* uninstall (package-0.0.0-SNAPSHOT)

I just checked and there's no JAR archive related to this package in nxserver/bundles...

I did manage to install this package once, but updating it to a newer version did not work, so I removed it (rm -rf packages/store/package because nuxeoctl mp-remove / mp-uninstall did not work) and tried to install it again, but to no avail. I also had to remove its JAR file from nxserver/bundles by hand.

Other packages from the Nuxeo Marketplace (WebUI, JSF) did not exhibit the same issue.

What am I doing wrong ?

Best regards,

Samuel

1 ACCEPTED ANSWER

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

It doesn't look like a proper Studio project package.

In any case, if you have a Studio package in "installing" status, then try to remove it with nuxeoctl, delete the jar file in the bundles directory and edit the /packages/.package file with the line referencing your package.

Regards

View answer in original post

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

It doesn't look like a proper Studio project package.

In any case, if you have a Studio package in "installing" status, then try to remove it with nuxeoctl, delete the jar file in the bundles directory and edit the /packages/.package file with the line referencing your package.

Regards

Samuel_VISCAPI
Champ on-the-rise
Champ on-the-rise

Dear Gregory Carlin ,

Thank you very much for your quick reply, really appreciated 🙂

Removing the package from packages/.package did the trick. I unzipped the archive in packages/store, then ./nuxeoctl mp-list listed the package as "remote". Then I ran ./nuxeoctl mp-install package, I think the process failed but ./nuxeoctl mp-list listed the package as "started":

Do you want to continue (yes/no)? [yes] yes
Update of 'package-0.0.0-SNAPSHOT' requires being registered.
Installing package-0.0.0-SNAPSHOT

Failed commands:
* add (package-0.0.0-SNAPSHOT)
        Could not find a remote or local (relative to current directory or to NUXEO_HOME) package with name or ID package-0.0.0-SNAPSHOT

What would be the required steps to make sure this package is a valid Nuxeo Studio one ? I believe the developer is reading this thread, so don't be afraid to go into details 😉

Best regards,

Samuel

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.