core icon indicating copy to clipboard operation
core copied to clipboard

Static push does not properly report status in UI

Open brentgriffin opened this issue 9 years ago • 6 comments

When push publishing to S3, the publish finishes but the UI reports that status as "Publishing Bundle" indefinitely. The bundle also continues to show on the "Pending" tab.

Expected Behavior

Once the publishing is finished, I would expect the status to move to "Success" and no longer show on the "Pending" tab.

Current Behavior

I push the bundle (in this case a single folder with less than half a MB of content) and the bundle pushes in less than one minute. I know that it is finished because of entries in the logs of the authoring server and because all of the content is present in S3.

Here is what I see in the log indicating that the push is finished:

[25/08/17 20:24:47:345 PDT]  INFO class com.dotcms.publishing.PublisherAPIImpl : [BundleID: 1b614635-7ca0-4141-be02-1232adc9d1f0] Started Publishing Task -  BundleId=1b614635-7ca0-4141-be02-1232adc9d1f0
[25/08/17 20:24:58:948 PDT]  INFO class com.dotcms.enterprise.publishing.staticpublishing.AWSS3Publisher : Status Update: Bundle push starting - EndpointName=Ohio-Static-Single BundleId=1b614635-7ca0-4141-be02-1232adc9d1f0
[25/08/17 20:24:58:951 PDT]  INFO class com.dotcms.enterprise.publishing.staticpublishing.AWSS3Publisher : Status Update: Pushing bundle - EndpointName=Ohio-Static-Single BundleId=1b614635-7ca0-4141-be02-1232adc9d1f0-static
[25/08/17 20:25:06:168 PDT]  INFO class com.dotcms.enterprise.publishing.staticpublishing.AWSS3Publisher : Status Update: Bundle Pushed - EndpointName=Ohio-Static-Single BundleId=1b614635-7ca0-4141-be02-1232adc9d1f0-static
[25/08/17 20:25:06:173 PDT]  INFO class com.dotcms.enterprise.publishing.staticpublishing.AWSS3Publisher : Status Update: Bundle sent -
[25/08/17 20:25:06:180 PDT]  INFO class com.dotcms.publishing.PublisherAPIImpl : [BundleID: 1b614635-7ca0-4141-be02-1232adc9d1f0] Completed Publishing Task -

Here is the status that shows in the UI: image

Here is the detail status dialog: image

brentgriffin avatar Aug 26 '17 03:08 brentgriffin

One quick follow up - I attempted this twice and got the same result. Once only pushing to VA and this time only pushing to OH. Seems to be happening consistently

brentgriffin avatar Aug 26 '17 03:08 brentgriffin

Solved on: https://github.com/dotCMS/core/issues/12267

nollymar avatar Aug 28 '17 23:08 nollymar

Note to QA: related to https://github.com/dotCMS/core/issues/12430

dsilvam avatar Sep 01 '17 15:09 dsilvam

Needs work. UI is correctly showing the status but Bundle details dialog is missing the values: Bundle start Bundle end Publish start Publish end

image

Tested on master branch Commit d518719f75af04923e25201cef5cf04232c12e7e on Sep 8, 2017 Mac OS 10.10 / Postgres 9.3.7 / Firefox v45.0.1 / Tomcat 8 / Java 8

shaydotcms avatar Sep 11 '17 14:09 shaydotcms

PR ee: https://github.com/dotCMS/enterprise-2.x/pull/532

dsilvam avatar Sep 13 '17 15:09 dsilvam

PR fix NPE when creating a SiteSearch https://github.com/dotCMS/core/pull/12597

erickgonzalez avatar Sep 14 '17 17:09 erickgonzalez