Cannot redeploy theme after it is removed

Description

I have Theme (material-design-theme.war) deployed into Liferay DXP. Now I want to redeploy it. To make it "clean" first, I went to Control Panel -> App Manager -> found my theme -> Actions -> Delete.

Now I want to deploy new version - to do it I've placed theme into deploy folder - but it was not deployed:

16:27:56,650 INFO [http-nio-8080-exec-9][PluginPackageUtil:1007] Reading plugin package for material-design-theme
16:27:56,732 INFO [http-nio-8080-exec-9][BundleStartStopLogger:38] STOPPED material-design-theme_1.0.0 [546]
16:29:39,752 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:252] Processing material-design-theme.war
16:29:45,615 WARN [fileinstall-/Volumes/disk/work/liferay/liferay-dxp-sp2/osgi/war][org_apache_felix_fileinstall:103] Failed to update bundle: /Volumes/disk/work/liferay/liferay-dxp-sp2/osgi/war/material-design-theme.war with ID 546. The bundle has been uninstalled

Activity

Show:

Albert LeeMay 4, 2018 at 3:15 PM

The UI now only has the option to "Deactivate" or "Uninstall". Delete has been removed so I am closing this ticket as fixed.

milen.dyankovSeptember 6, 2017 at 5:35 AM

Reopening as a result of discussion with PM regarding consistent install/uninstall strategy. Dave, please reassign accordingly. 

preston.craryAugust 30, 2017 at 4:52 PM

This is not a bug. There are some bugs that we've found as a result of testing this but even after we fix them this behavior will still be present. The problem is that "delete" only uninstalls the bundle, it doesn't actually delete. The bundle must be deleted manually or you can run "clean deploy" for your custom bundle and it will work.

Jose BalsasJune 29, 2017 at 2:52 AM

I think this is probably related to the OSGi support for wars, so I'm moving it to Core Infra for a better assessment.

Raven SongMay 2, 2017 at 2:07 AM

Here are my steps for this ticket :

  1. Start a bundle.

  2. Control Panel -> App Manager -> select a theme -> Actions -> Delete.

  3. Redeploy the theme.
    Result:
    Can't redeploy the theme and have an WARN. Can't find the theme in gogo console.

  4. Go to gogo console and select all theme, choose a theme and stop it.

  5. Redeploy the theme.
    Result:
    Can't redeploy the theme and stay in Processing.

Reproduced on:

Tomcat 8.0.32 + MySQL 5.6. Portal master GIT ID: 5d714eee20b88c5e0f8d22b0346557c0040ad1a6.
Tomcat 8.0.32 + MySQL 5.6. Portal ee-7.0.x GIT ID: 296e2bf694a59088a50bdce23427d40dd812f6b0.
Tomcat 8.0.32 + MySQL 5.6. Portal dxp-de-7.0-ga1 + fp-de-13-7010.
Tomcat 8.0.32 + MySQL 5.6. Portal dxp-de-7.0-sp2.

Cannot redeploy theme after it is stopped.

Fixed

Details

Assignee

Reporter

Labels

Fix Priority

4

Components

Fix versions

Priority

Zendesk Support

Created May 1, 2017 at 9:35 AM
Updated June 26, 2023 at 1:13 AM
Resolved May 4, 2018 at 3:15 PM
Loading...