Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-18404

ImageMagick Execution Fails For Alfresco 5.2.1 On Windows Server 2012 R2

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.2.2
    • Component/s: Installer, Transformations
    • Labels:
      None
    • Environment:
      Windows Server 2012 R2 x64
    • RCA Cause:
      Other
    • RCA Quality:
      Missing test(s)
    • RCA Description:
      Hide
      Bug was introduced when new functionality (PDF Renderer) was added. Because the new code structure needed to be similar, some if the ImageMagick code was used as the basis for the new work. Unfortunately two Spring bean references were not given unique names, resulting in the same parameters being passed to both ImageMagick and PDF Renderer
      commands.

      * Could a code review has spotted this? Maybe but unlikely.
      * Did the architecture contribute to this? Yes, had ImageMagick and PDF Rendere been properly isolated from each other this would not have taken place.
      * Why did developer testing not spot this? Focus would have been on PDF Renderer and it is unlikely it was even considered necessary to retest ImageMagick.
      * Why did unit tests not catch this? Tests exist, but our build agents don't run Windows which is where this was seen.
      * Why did TAS tests not catch this? This is not an area currently tested; REPO-2491 already exist for this.
      Show
      Bug was introduced when new functionality (PDF Renderer) was added. Because the new code structure needed to be similar, some if the ImageMagick code was used as the basis for the new work. Unfortunately two Spring bean references were not given unique names, resulting in the same parameters being passed to both ImageMagick and PDF Renderer commands. * Could a code review has spotted this? Maybe but unlikely. * Did the architecture contribute to this? Yes, had ImageMagick and PDF Rendere been properly isolated from each other this would not have taken place. * Why did developer testing not spot this? Focus would have been on PDF Renderer and it is unlikely it was even considered necessary to retest ImageMagick. * Why did unit tests not catch this? Tests exist, but our build agents don't run Windows which is where this was seen. * Why did TAS tests not catch this? This is not an area currently tested; REPO-2491 already exist for this.

      Description

      When Alfresco 5.2.1 is installed on Windows Server 2012 R2, ImageMagick does not execute. <edit: Also appears to be taking place on Windows 10. See ALF-2194 >.

      Steps To Reproduce

      1. Install Alfresco 5.2.1 in "out of the box" fashion with default configuration on Windows Server 2012 R2 by running alfresco-content-services-installer-5.2.1-win-x64.exe while logged into a user account that has been granted administrator privileges

      2. Start Alfresco 5.2.1

      Expected Behaviour

      ImageMagick works as expected on boot strap with messages for its third party subsystem in alfresco.log akin to:

      INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
      INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
      

      Observed Behaviour

      ImageMagick fails the startup test during bootstrap with this error:

      INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
      ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] [localhost-startStop-1] ImageMagickContentTransformerWorker not available: 07040036 Failed to perform ImageMagick transformation:
      Execution result: 
         os:         Windows Server 2012
         command:    C:\Alfresco-Content-Services\imagemagick\convert.exe C:\ALFRES~1\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_source_6994349119937223645.gif -strip -quiet C:\ALFRES~1\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_target_8913378890169622165.png
         succeeded:  false
         exit code:  1
         out:        
         err:        convert.exe: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/670.
      convert.exe: no decode delegate for this image format `GIF' @ error/constitute.c/ReadImage/509.
      convert.exe: no images defined `C:\ALFRES~1\tomcat\tem
      INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
      

      or

      ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] [localhost-startStop-1] ImageMagickContentTransformerWorker not available: 07030018 Failed to perform ImageMagick transformation: 
      Execution result: 
      os: Windows Server 2012 R2 
      command: D:\Alfresco-Content-Services\imagemagick\convert.exe D:\Alfresco-Content-Services\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_source_8535785867810269980.gif -strip -quiet D:\Alfresco-Content-Services\tomcat\temp\Alfresco\ImageMagickContentTransformerWorker_init_target_6343238715322766496.png 
      succeeded: false 
      exit code: 1 
      out: 
      err: convert.exe: RegistryKeyLookupFailed `CoderModulesPath' @ a 
      

      Note
      Log files from issue recreation on test server attached

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  jking Job King [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel