Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-86436

Copying a bundle to `bundles/deploy`, uninstalling it via gogo, then copying again to `bundles/deploy` does not reinstall the bundle



      When the liferay portal is running, and a bundle is copied to the bundles/deploy folder the first time, the bundle is installed correctly and it shows up on the gogo shell `lb -s`,

      and in the log I see:
      2018-10-16 15:54:14.467 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing com.liferay.blade.npm.angular.portlet-1.0.0.jar
      2018-10-16 15:54:22.280 INFO  [fileinstall-/home/cboyd/repos/bundles/osgi/modules][BundleStartStopLogger:39] STARTED com.liferay.blade.npm.angular.portlet_1.0.0 [885]


      I then uninstall this bundle via the gogo shell, `uninstall 855`, and it correctly uninstalls and in the log I see:

      2018-10-16 15:54:30.488 INFO  [Thread-787][BundleStartStopLogger:42] STOPPED com.liferay.blade.npm.angular.portlet_1.0.0 [885]

      The problem is, if I copy the same bundle again back into the bundles/deploy folder, it never gets installed / started again, it doesn't show up on gogo shell again, and the only message I see in the server log is:

      2018-10-16 15:54:38.480 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:261] Processing com.liferay.blade.npm.angular.portlet-1.0.0.jar

      If I manually delete the file from `bundles/osgi/modules/`, it works correctly.

      If this is a use case we can't support, we should print an error message to the log explaining to the user that they must manually delete the file from `bundles/ogi/modules/` before attempting to redeploy.

      The complication seems to come from uninstalling the bundle via gogo shell prior to re-deploying it.


      Steps to reproduce:

      1. Start liferay portal
      2. Copy a bundle jar file to the `bundles/deploy` folder
      3. You will see it on gogo shell `lb -s`
      4. Uninstall that bundle's ID with the gogo shell
      5. Copy the same bundle jar file back to `bundles/deploy` 
      6. This time you will not see it on gogo shell `lb -s`




            support-lep@liferay.com SE Support
            christopher.boyd Christopher Boyd (Inactive)
            Recent user:
            Lester Pi (Inactive)
            Participants of an Issue:
            0 Vote for this issue
            0 Start watching this issue




                Version Package