Learn about Centmin Mod LEMP Stack today
Register Now

Imagemagick reinstall option not working (no logs either)

Discussion in 'Bug Reports' started by jeffwidman, Jan 25, 2016.

Tags:
  1. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    11:36 AM
    Code:
    [root@ultravps ~]# nprestart
    Restarting nginx (via systemctl):                          [  OK  ]
    Gracefully shutting down php-fpm . done
    Starting php-fpm [25-Jan-2016 08:24:15] NOTICE: PHP message: PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1682 but version 1683 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
     done
    
    So I pull up centmin.sh to reinstall imagemagick using option #15:

    Code:
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 15
    --------------------------------------------------------
    Check for php extensions
    Downloading imagick extension
    Download imagick-3.4.0RC2.tgz ...
    Error: imagick-3.4.0RC2.tgz not found !!! Downloading now......
    Error: imagick-3.4.0RC2.tgz download failed.
    check Centmin Mod log for details at /root/centminlogs/
    Aborting script...
    
    So now I check /root/centminlogs... but when I run `ls -lah`, no files have been modified since I upgraded PHP about an hour ago... so looks like the error isn't being recorded to the log?
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    which centmin mod version ? when was it last updated ? try updating centmin mod via centmin.sh menu option 23 first or a git pull in /usr/local/src/centminmod before running centmin.sh
     
  3. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    11:36 AM
    It's a good suggestion, however I already ran a `git pull` immediately prior to all this. On branch master.
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    master = 123.08stable

    just updated both stable and beta to 3.40RC5
    Code:
    php --ri imagick                
    
    imagick
    
    imagick module => enabled
    imagick module version => 3.4.0RC5
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.3-2 Q16 x86_64 2016-01-23 http://www.imagemagick.org
    Imagick using ImageMagick library version => ImageMagick 6.9.3-2 Q16 x86_64 2016-01-23 http://www.imagemagick.org
    ImageMagick copyright => Copyright (C) 1999-2016 ImageMagick Studio LLC
    ImageMagick release date => 2016-01-23
    ImageMagick number of supported formats:  => 222
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0
    but checked and not getting any errors on centmin.sh menu option 15 even before updated version

    edit: oh looks like menu option 15 is missing logging function so that part is a bug heh
     
    Last edited: Jan 25, 2016
  5. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  6. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    11:36 AM
    Thanks. Unfortunately, the log is just the error message I already saw.

    Any pointers on which lines in centmin.sh this code is executing so that I can try manually stepping through the code to see what happens... ?

    I'm not sure if I'm just getting a 404 when it tries to download or something else. I've rebooted, etc no dice.
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:36 AM
    Nginx 1.13.x
    MariaDB 5.5
  8. jeffwidman

    jeffwidman Active Member

    152
    27
    28
    Dec 3, 2014
    Ratings:
    +51
    Local Time:
    11:36 AM
    Thanks, that helped me track down the url in:
    centminmod/downloadlinks.inc at 59ceccb34cdd3c10a6f44d6a56c7f496d97e46ae · centminmod/centminmod · GitHub

    Code:
    [root@ultravps~]# curl https://pecl.php.net/get/imagick-3.4.0RC5.tgz
    curl: (7) Failed connect to pecl.php.net:443; No route to host
    [root@ultravps ~]# ping pecl.php.net
    PING pecl.php.net (104.236.228.160) 56(84) bytes of data.
    From ultravps.jeffwidman.com (104.143.14.103) icmp_seq=1 Destination Host Unreachable
    From ultravps.jeffwidman.com (104.143.14.103) icmp_seq=2 Destination Host Unreachable
    From ultravps.jeffwidman.com (104.143.14.103) icmp_seq=3 Destination Host Unreachable
    From ultravps.jeffwidman.com (104.143.14.103) icmp_seq=4 Destination Host Unreachable
    ^C
    --- pecl.php.net ping statistics ---
    7 packets transmitted, 0 received, +4 errors, 100% packet loss, time 6000ms
    pipe 4
    [root@ultravps ~]#
    
    Looks like this is a networking issue--I'll file a ticket with my host.
     
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    4:36 AM
    Nginx 1.13.x
    MariaDB 5.5
    suspected as much heh