Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-21573

Don't fail the local install if a SNAPSHOT package is remotely unavailable

    XMLWordPrintable

    Details

      Description

      [To reproduce, you can use nuxeo-labs, available in CI)
      Have a 8.10 Nuxeo server running.
      From the Admin Center:

      • Upload a local package, nuxeo-labs-mp-8.10-SNAPSHOT.zip
      • Install it, click the button to install
      • Click the restart button

      The server fails to restart. It just stops.

      Starting it at the command line does not work:

      ./nuxeoctl start
      Detected Tomcat server.
      Nuxeo home:          /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor
      Nuxeo configuration: /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor/bin/nuxeo.conf
      Include template: /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor/templates/common-base
      Include template: /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor/templates/common
      Include template: /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor/templates/default
      Include template: /Applications/nuxeo-server-8.10-TEST-TEMP-Technicolor/templates/drive
      Configuration files generation (nuxeo.force.generation=true)...
      Configuration files generated.
      Relax mode changed from 'ask' to 'false' for executing the pending actions.
      The following SNAPSHOT package(s) will be replaced in local cache : [nuxeo-labs-8.10.0-SNAPSHOT, nuxeo-s3-utils-8.10.0-SNAPSHOT]
      Download of 'nuxeo-labs-8.10.0-SNAPSHOT' will replace the one already in local cache.
      Downloading [nuxeo-labs-8.10.0-SNAPSHOT]...
      Cannot execute command. null
      java.lang.NullPointerException
      	at org.nuxeo.launcher.connect.ConnectBroker.downloadPackages(ConnectBroker.java:1123)
      	at org.nuxeo.launcher.connect.ConnectBroker.pkgAdd(ConnectBroker.java:807)
      	at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1275)
      	at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1226)
      	at org.nuxeo.launcher.connect.ConnectBroker.executePending(ConnectBroker.java:1053)
      	at org.nuxeo.launcher.NuxeoLauncher.doStart(NuxeoLauncher.java:2101)
      	at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1950)
      	at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1909)
      	at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1158)
      	at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1103)
      

      ./nuxeoctl status shows:

       addon  downloaded	nuxeo-labs (id: nuxeo-labs-8.10.0-SNAPSHOT)
       addon  downloaded	nuxeo-s3-utils (id: nuxeo-s3-utils-8.10.0-SNAPSHOT)
      

      ./nuxeoctl mp-install nuxeo-labs-8.10.0-SNAPSHOT
      => Same error

      ./nuxeoctl mp-remove nuxeo-labs-8.10.0-SNAPSHOT
      => Same error

      Workaround: Remove and install with no dependencies:

      ./nuxeoctl mp-remove --nodeps nuxeo-labs-8.10.0-SNAPSHOT
      ./nuxeoctl mp-install --nodeps nuxeo-labs-8.10.0-SNAPSHOT
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 5 hours, 10 minutes
                  2d 5h 10m