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

Registration failures using nuxeoctl should provide some feedback

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.10-HF15, 9.3, 9.10, 10.10
    • Fix Version/s: None
    • Component/s: User Registration

      Description

      When the registration renewal fails the default behaviour is to output nothing:

      $ bash nuxeo-server-9.10-tomcat/bin/nuxeoctl register --renew
      Detected Tomcat server.
      Nuxeo home:          /jenkins_data/jenkins/workspace/nco-renew-nuxeo-registration@3/nuxeo-server-9.10-tomcat
      Nuxeo configuration: /jenkins_data/jenkins/workspace/nco-renew-nuxeo-registration@3/nuxeo-server-9.10-tomcat/bin/nuxeo.conf
      Include template: /jenkins_data/jenkins/workspace/nco-renew-nuxeo-registration@3/nuxeo-server-9.10-tomcat/templates/common-base
      Include template: /jenkins_data/jenkins/workspace/nco-renew-nuxeo-registration@3/nuxeo-server-9.10-tomcat/templates/common
      Include template: /jenkins_data/jenkins/workspace/nco-renew-nuxeo-registration@3/nuxeo-server-9.10-tomcat/templates/default
      $ echo $?
      1
      $ 

      When using the debug mode, there some meaningful message:

      14:53:47,522 DEBUG [org.nuxeo.launcher.NuxeoLauncher.registerRenew(NuxeoLauncher.java:1527)] org.nuxeo.connect.registration.RegistrationException: Instance registration failed. Connect server refused authentication (returned 401)
      org.nuxeo.connect.registration.RegistrationException: Instance registration failed. Connect server refused authentication (returned 401)
              at org.nuxeo.launcher.connect.ConnectRegistrationBroker.remoteRenewRegistration(ConnectRegistrationBroker.java:79)
              at org.nuxeo.launcher.NuxeoLauncher.registerRenew(NuxeoLauncher.java:1525)
              at org.nuxeo.launcher.NuxeoLauncher.register(NuxeoLauncher.java:1512)
              at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1258)
              at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1110)

      Ref: https://github.com/nuxeo/nuxeo/blob/c29d25597a04b0da994973b02605419ca4b89354/nuxeo-distribution/nuxeo-launcher/src/main/java/org/nuxeo/launcher/NuxeoLauncher.java#L1509

      The failure message should be a warn and output to the user.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: