-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: AI Nuxeo Services
Command aiResizer fails in a OpenShift environment with the following error:
2020-11-07T03:18:24,120 ERROR [IMImageUtils] ImageMagick failed on command: aiResizer
org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 137 return by command: convert -define registry:temporary-path=#{nuxeo.tmp.dir} -define png:exclude-chunk=all -quiet -strip
-resize #{targetWidth}x#{targetHeight} #{inputFilePath}[0] -background white -flatten -depth #{targetDepth}
#{outputFilePath}
at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62) ~[nuxeo-platform-commandline-executor-10.10-HF29.jar:?]
at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:88) ~[nuxeo-platform-commandline-executor-10.10-HF29.jar:?]
at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:173) ~[nuxeo-platform-commandline-executor-10.10-HF29.jar:?]
at org.nuxeo.ai.convert.AiImageResizer.resize(AiImageResizer.java:80) ~[nuxeo-ai-core-2.4.3.jar:?]
at org.nuxeo.ai.convert.AiResizePictureConverter$1.callImageMagick(AiResizePictureConverter.java:73) ~[nuxeo-ai-core-2.4.3.jar:?]
at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$ImageMagickCaller.call(IMImageUtils.java:67) ~[nuxeo-platform-imaging-core-10.10-HF32.jar:?]
at org.nuxeo.ai.convert.AiResizePictureConverter.convert(AiResizePictureConverter.java:75) ~[nuxeo-ai-core-2.4.3.jar:?]
at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10-HF10.jar:?]
at org.nuxeo.ai.enrichment.EnrichmentUtils.convertImageBlob(EnrichmentUtils.java:245) ~[nuxeo-ai-core-2.4.3.jar:?]
at org.nuxeo.ai.model.serving.AbstractRuntimeModel.convertImageBlob(AbstractRuntimeModel.java:154) ~[nuxeo-ai-model-2.4.3.jar:?]
at org.nuxeo.ai.model.serving.TFRuntimeModel.predict(TFRuntimeModel.java:237) ~[nuxeo-ai-model-2.4.3.jar:?]
at org.nuxeo.ai.model.serving.ModelServingServiceImpl.lambda$predict$8(ModelServingServiceImpl.java:146) ~[nuxeo-ai-model-2.4.3.jar:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_252]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_252]
at java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1699) ~[?:1.8.0_252]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_252]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_252]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_252]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_252]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:566) ~[?:1.8.0_252]
at org.nuxeo.ai.model.serving.ModelServingServiceImpl.predict(ModelServingServiceImpl.java:148) ~[nuxeo-ai-model-2.4.3.jar:?]
at org.nuxeo.ai.model.serving.SuggestionOp.run(SuggestionOp.java:103) ~[nuxeo-ai-model-2.4.3.jar:?]
See attached log file foe complete stacktraces.
Here is the JSON export of the document:
{ "entity-type": "document", "repository": "default", "uid": "5c4cf668-d9d0-42e4-a7fd-c6893659b87a", "path": "/default-domain/Calvin Klein/Sprint 45 Demo/Large Tif upload/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600.tif", "type": "ProductImage", "state": "WIP", "parentRef": "3ad0accd-77dc-4566-a5e1-f8388c01dcee", "isCheckedOut": true, "isRecord": false, "retainUntil": null, "hasLegalHold": false, "isUnderRetentionOrLegalHold": false, "isVersion": false, "isProxy": false, "changeToken": "30-0", "isTrashed": false, "title": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600.tif", "lastModified": "2020-11-07T03:18:16.152Z", "properties": { "thumb:thumbnail": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/thumb:thumbnail/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png?changeToken=30-0" }, "pvh_corp:Creator": null, "pvh_corp:xmpconsolidated": [], "pvh_corp:Department": null, "pvh_corp:AssetTyp": "on_figure", "pvh_corp:SalesChannel": [], "pvh_corp:Season": "core_2020", "pvh_corp:CKProductLine": [], "pvh_corp:Language": [], "pvh_corp:Brand": [ "arrow" ], "pvh_corp:FilePath": null, "iptc:source": null, "iptc:credit": null, "iptc:by_line": null, "iptc:special_instructions": null, "iptc:release_time": null, "iptc:supplemental_categories": null, "iptc:time_created": null, "iptc:record_version": null, "iptc:caption": null, "iptc:copyright_notice": null, "iptc:writer": null, "iptc:province_or_state": null, "iptc:category": null, "iptc:keywords": null, "iptc:urgency": null, "iptc:language": null, "iptc:originating_program": null, "iptc:country_or_primary_location": null, "iptc:headline": null, "iptc:original_transmission_ref": null, "iptc:date_created": null, "iptc:city": null, "iptc:by_line_title": null, "iptc:release_date": null, "iptc:object_name": null, "pvh_rights:Duration": null, "pvh_rights:AfricaUsageDetails": null, "pvh_rights:NorthAmericaUsageDetails": null, "pvh_rights:SouthAmericaUsageDetails": null, "pvh_rights:CentralAmericaUsageDetails": null, "pvh_rights:AsiaUsageDetails": null, "pvh_rights:Conditions": null, "pvh_rights:AustraliaUsageDetails": null, "pvh_rights:UsageDetails": null, "pvh_rights:ContractLink": [], "pvh_rights:Expired": false, "pvh_rights:Region": [], "pvh_rights:EuropeUsageDetails": null, "pvh_rights:Country": [], "pvh_rights:FirstUseDate": null, "pvh_rights:EndDate": null, "pvh_rights:UsageTier": "0", "pvh_related:Collections": [], "pvh_related:DeletedRelations": [], "pvh_related:RelatedRightsRecord": null, "pvh_related:TalentGender": [], "pvh_related:DerivativeParent": null, "pvh_related:RelatedProducts": [], "pvh_related:RelatedProductTitles": [], "pvh_related:FeaturedAsset": null, "pvh_related:TalentTitles": [], "pvh_related:TrimPackaging": null, "pvh_related:RelatedAssets": [], "pvh_related:RelatedProductPrograms": [], "pvh_related:RelatedPids": [], "pvh_related:Talent": [], "pvh_related:TalentSize": null, "dc:description": null, "dc:language": null, "dc:coverage": null, "dc:valid": null, "dc:creator": "Administrator", "dc:modified": "2020-11-07T03:18:16.152Z", "dc:lastContributor": "Administrator", "dc:rights": null, "dc:expired": null, "dc:format": null, "dc:created": "2020-10-21T06:28:19.559Z", "dc:title": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600.tif", "dc:issued": null, "dc:nature": null, "dc:subjects": [], "dc:contributors": [ "Administrator", "NuxeoSupport" ], "dc:source": null, "dc:publisher": null, "picture:dateline": null, "picture:origin": null, "picture:caption": null, "picture:language": null, "picture:source": null, "picture:cropCoords": null, "picture:slugline": null, "picture:genre": null, "picture:typage": null, "picture:credit": null, "picture:headline": null, "picture:subheadline": null, "picture:byline": null, "picture:views": [ { "filename": "empty_picture.png", "width": 480, "description": "Thumbnail size", "tag": null, "title": "Thumbnail", "content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/picture:views/0/content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png?changeToken=30-0" }, "height": 330, "info": { "colorSpace": "sRGB", "depth": 8, "width": 480, "format": "PNG", "height": 330 } }, { "filename": "empty_picture.png", "width": 480, "description": "Small size", "tag": null, "title": "Small", "content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/picture:views/1/content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png?changeToken=30-0" }, "height": 330, "info": { "colorSpace": "sRGB", "depth": 8, "width": 480, "format": "PNG", "height": 330 } }, { "filename": "empty_picture.png", "width": 480, "description": "Full HD size", "tag": null, "title": "FullHD", "content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/picture:views/2/content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330.png?changeToken=30-0" }, "height": 330, "info": { "colorSpace": "sRGB", "depth": 8, "width": 480, "format": "PNG", "height": 330 } }, { "filename": "empty_picture.png", "width": 480, "description": "High Resolution JPEG", "tag": "ck-original-hi-res-jpeg", "title": "ckHiResJPEG", "content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330_Hi_Res_JPEG.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/picture:views/3/content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330_Hi_Res_JPEG.png?changeToken=30-0" }, "height": 330, "info": { "colorSpace": "sRGB", "depth": 8, "width": 480, "format": "PNG", "height": 330 } }, { "filename": "empty_picture.png", "width": 480, "description": "Low Resolution JPEG", "tag": "ck-original-low-res-jpeg", "title": "ckLowResJPEG", "content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330_Low_Res_JPEG.png", "mime-type": "image/png", "encoding": null, "digestAlgorithm": "MD5", "digest": "be1a7403018b6b893228afcf28e481a4", "length": "4451", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/picture:views/4/content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600_480x330_Low_Res_JPEG.png?changeToken=30-0" }, "height": 330, "info": { "colorSpace": "sRGB", "depth": 8, "width": 480, "format": "PNG", "height": 330 } } ], "picture:info": { "colorSpace": null, "depth": null, "width": null, "format": null, "height": null }, "pvh_ImageAssets:Look": null, "pvh_ImageAssets:RenditionCropName": [], "pvh_ImageAssets:AssetAttribute": null, "pvh_ImageAssets:AssetState": null, "pvh_ImageAssets:Orientation": null, "pvh_ImageAssets:StylingNotes": null, "pvh_ImageAssets:RetouchedResolution": null, "pvh_ImageAssets:ShotTyp": [], "nxtag:tags": [], "uid:uid": null, "uid:major_version": 0, "uid:minor_version": 2, "imd:color_space": "Uncalibrated", "imd:user_comment": null, "imd:image_description": null, "imd:date_time_original": "2020-06-30T22:13:44.000Z", "imd:focal_length": null, "imd:white_balance": "Manual", "imd:copyright": null, "imd:fnumber": 5.6, "imd:pixel_xdimension": null, "imd:equipment": null, "imd:orientation": "Horizontal (normal)", "imd:exposure_time": "1/500", "imd:xresolution": 600, "imd:iso_speed_ratings": "800", "imd:icc_profile": null, "imd:yresolution": 600, "imd:pixel_ydimension": null, "imd:focalLength": "45.0 mm", "file:content": { "name": "FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600.tif", "mime-type": "image/tiff", "encoding": null, "digestAlgorithm": "MD5", "digest": "0c0d0a3fb387fea2af7b4edcef083d11", "length": "422407272", "data": "https://pvh-uat.apps.prod.nuxeo.io/nuxeo/nxfile/default/5c4cf668-d9d0-42e4-a7fd-c6893659b87a/file:content/FA20_AD_CK1_CKSW_D_RM_SHOT_1_R600.tif?changeToken=30-0" }, "common:icon-expanded": null, "common:icon": "/icons/image.gif", "relatedtext:relatedtextresources": [] }, "facets": [ "Versionable", "NXTag", "Publishable", "Picture", "Commentable", "HasRelatedText", "Thumbnail" ], "schemas": [ { "name": "thumbnail", "prefix": "thumb" }, { "name": "pvh_corp", "prefix": "pvh_corp" }, { "name": "iptc", "prefix": "iptc" }, { "name": "pvh_rightsmanagement", "prefix": "pvh_rights" }, { "name": "picture_schema", "prefix": "picture_schema" }, { "name": "pvh_related", "prefix": "pvh_related" }, { "name": "dublincore", "prefix": "dc" }, { "name": "productimage", "prefix": "productimage" }, { "name": "picture", "prefix": "picture" }, { "name": "pvh_ImageAssets", "prefix": "pvh_ImageAssets" }, { "name": "facetedTag", "prefix": "nxtag" }, { "name": "uid", "prefix": "uid" }, { "name": "image_metadata", "prefix": "imd" }, { "name": "file", "prefix": "file" }, { "name": "common", "prefix": "common" }, { "name": "relatedtext", "prefix": "relatedtext" } ], "contextParameters": { "acls": [ { "name": "AutoPermissions", "aces": [ { "id": "ENT_DAM_CKConsumer:Download:true:system::", "username": "ENT_DAM_CKConsumer", "externalUser": false, "permission": "Download", "granted": true, "creator": "system", "begin": null, "end": null, "status": "effective" }, { "id": "EXT_DAM_CKGlobal:Download:true:system::", "username": "EXT_DAM_CKGlobal", "externalUser": false, "permission": "Download", "granted": true, "creator": "system", "begin": null, "end": null, "status": "effective" } ] }, { "name": "inherited", "aces": [ { "id": "Administrator:Everything:true:Administrator::", "username": "Administrator", "externalUser": false, "permission": "Everything", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "administrators:Everything:true:::", "username": "administrators", "externalUser": false, "permission": "Everything", "granted": true, "creator": null, "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKConsumer:ReadNoDownload:true:Administrator::", "username": "ENT_DAM_CKConsumer", "externalUser": false, "permission": "ReadNoDownload", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKConsumer:Comment:true:Administrator::", "username": "ENT_DAM_CKConsumer", "externalUser": false, "permission": "Comment", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "administrators:Edit:true:Administrator::", "username": "administrators", "externalUser": false, "permission": "Edit", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Edit:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Edit", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKCreator:Create:true:Administrator::", "username": "ENT_DAM_CKCreator", "externalUser": false, "permission": "Create", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Create:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Create", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Download:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Download", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Comment:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Comment", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "CK_Creator:ReadNoDownload:true:Administrator::", "username": "CK_Creator", "externalUser": false, "permission": "ReadNoDownload", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Version:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Version", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKLibrarian:Everything:true:Administrator::", "username": "ENT_DAM_CKLibrarian", "externalUser": false, "permission": "Everything", "granted": true, "creator": "Administrator", "begin": null, "end": null, "status": "effective" }, { "id": "EXT CK Preview User:ReadNoDownload:true:duncanquirk@pvh.com::", "username": "EXT CK Preview User", "externalUser": false, "permission": "ReadNoDownload", "granted": true, "creator": "duncanquirk@pvh.com", "begin": null, "end": null, "status": "effective" }, { "id": "EXT_DAM_CKPreview:ReadNoDownload:true:duncanquirk@pvh.com::", "username": "EXT_DAM_CKPreview", "externalUser": false, "permission": "ReadNoDownload", "granted": true, "creator": "duncanquirk@pvh.com", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKCreator:Create:true:Kostya::", "username": "ENT_DAM_CKCreator", "externalUser": false, "permission": "Create", "granted": true, "creator": "Kostya", "begin": null, "end": null, "status": "effective" }, { "id": "ENT_DAM_CKCreator:Edit:true:Kostya::", "username": "ENT_DAM_CKCreator", "externalUser": false, "permission": "Edit", "granted": true, "creator": "Kostya", "begin": null, "end": null, "status": "effective" }, { "id": "Everyone:Everything:false:::", "username": "Everyone", "externalUser": false, "permission": "Everything", "granted": false, "creator": null, "begin": null, "end": null, "status": "effective" } ] } ], "permissions": [ "Write", "WriteVersion", "ReadProperties", "ReadCanCollect", "Edit", "ReadSecurity", "Remove", "ReadVersion", "AddDeleteChildren", "Read", "WriteLifeCycle", "Everything", "Moderate", "ViewDownload", "Version", "ManageLegalHold", "Create", "MakeRecord", "ReadNoDownload", "Download", "Publish", "ReadChildren", "AddChildren", "Comment", "ReadLifeCycle", "RemoveChildren", "DataVisualization", "ReviewParticipant", "Unlock", "CanAskForPublishing", "RestrictedRead", "Manage", "ReadWrite", "ReadRemove", "Browse", "SetRetention", "SendToTrash", "WriteProperties", "DownloadRequestPending", "WriteSecurity", "ManageWorkflows", "Share" ] } }
- depends on
-
AICORE-390 Add sizelimit and picture views fallback in Prediction/Enrichment
- Resolved