Docker plugin error?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Docker plugin error?

      Hi,

      I just noticed that I get an error when going into Docker in OMV Admin pages.
      This is the error:

      Source Code

      1. Error #0:
      2. exception 'ImagickException' with message 'Imagick::__construct(): HTTP request failed! HTTP/1.1 404 Not Found
      3. ' in /usr/share/openmediavault/engined/rpc/docker.inc:1504
      4. Stack trace:
      5. #0 /usr/share/openmediavault/engined/rpc/docker.inc(1504): Imagick->__construct('https://raw.git...')
      6. #1 [internal function]: OMVRpcServiceDocker->syncDockerLogos(NULL, Array)
      7. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      8. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('syncDockerLogos', NULL, Array)
      9. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'syncDockerLogos', NULL, Array, 1)
      10. #5 {main}
      11. Next exception 'ImagickException' with message 'Failed to read the file' in /usr/share/openmediavault/engined/rpc/docker.inc:1504
      12. Stack trace:
      13. #0 /usr/share/openmediavault/engined/rpc/docker.inc(0): Imagick->__construct()
      14. #1 [internal function]: OMVRpcServiceDocker->syncDockerLogos(NULL, Array)
      15. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      16. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('syncDockerLogos', NULL, Array)
      17. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'syncDockerLogos', NULL, Array, 1)
      18. #5 {main}
      Display All

      Pops up when I click Docker, and I can close it. Docker seems to work fine, all my Docker containers are running fine.

      Running this version: (latest)
      openmediavault-docker-gui 3.1.10
    • In the other docker thread, it was mention the url on the image is wrong. nicjo814 said he would fix in the next couple of days but this shouldn't cause any issues.
      omv 4.0.16 arrakis | 64 bit | 4.14 backports kernel | omvextrasorg 4.1.2
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Docker plugin error?

      Read this: Docker GUI plugin now stable

      Greetings Hoppel
      ---------------------------------------------------------------------------------------------------------------
      frontend software - android tv | libreelec | win10 | kodi krypton
      frontend hardware - nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2 | harmony smart control
      -------------------------------------------
      backend software - debian | kernel 4.4 lts | proxmox | openmediavault | zfs raid-z2 | docker | emby | vdr | vnsi | fhem
      backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x4tb wd red | digital devices max s8
      ---------------------------------------------------------------------------------------------------------------------------------------
    • I got the same error.

      I simply commented the following block (starting at line 1502) in /usr/share/openmediavault/engined/rpc/docker.inc :

      Source Code

      1. /*
      2. if (strcmp($new_hash, $old_hash) !== 0) {
      3. $imagick = new Imagick($logo_url);
      4. $imagick->scaleImage(40, 40, true);
      5. $imagick->modulateImage(100, 0, 100);
      6. $imagick->writeImage($local_logo_path . $logo_name);
      7. $imagick->clear();
      8. file_put_contents($local_hash_path, $new_hash);
      9. }
      10. */

      No more error now ;)
    • nicjo814 wrote:

      I've looked at this and don't get any error. Do you still have problems with the logos?
      Yes, every time I visit the Docker service it throws that error popup with the included text:

      Source Code

      1. Error #0:
      2. ImagickException: Imagick::__construct(): HTTP request failed! HTTP/1.1 404 Not Found
      3. in /usr/share/openmediavault/engined/rpc/docker.inc:1504
      4. Stack trace:
      5. #0 /usr/share/openmediavault/engined/rpc/docker.inc(1504): Imagick->__construct('https://raw.git...')
      6. #1 [internal function]: OMVRpcServiceDocker->syncDockerLogos(NULL, Array)
      7. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      8. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('syncDockerLogos', NULL, Array)
      9. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'syncDockerLogos', NULL, Array, 1)
      10. #5 {main}
      11. Next ImagickException: Failed to read the file in /usr/share/openmediavault/engined/rpc/docker.inc:1504
      12. Stack trace:
      13. #0 /usr/share/openmediavault/engined/rpc/docker.inc(1504): Imagick->__construct('https://raw.git...')
      14. #1 [internal function]: OMVRpcServiceDocker->syncDockerLogos(NULL, Array)
      15. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('syncDockerLogos', NULL, Array)
      17. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Docker', 'syncDockerLogos', NULL, Array, 1)
      18. #5 {main}
      Display All
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380