Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. EspoCRM
  3. EspoCRM 3.0.4+: WebSocket broken because the PHP zmq extension is not loaded on the PHP 8.4 image

EspoCRM 3.0.4+: WebSocket broken because the PHP zmq extension is not loaded on the PHP 8.4 image

Scheduled Pinned Locked Moved EspoCRM
3 Posts 2 Posters 77 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    MarsupiL
    wrote last edited by james
    #1

    Hi, after updating EspoCRM to package 3.0.4 or later (we tested 3.0.8 / EspoCRM 10.0.8), the WebSocket server no longer starts. Packages 3.0.3 and earlier work fine.
    Symptoms (with useWebSocket enabled):

    • websocket.php crashes at startup. The EspoCRM log shows:
Error: Class "ZMQContext" not found at /app/code/10.0.8/vendor/react/zmq/src/Context.php:37
    • The browser retries /wss every few seconds and gets a 503. The Apache log shows:
AH00957: WS: attempt to connect to 127.0.0.1:8080 (127.0.0.1:8080) failed
    • As a result, real-time notifications and VoIP call popups stop working.

    Cause:
    The package switched from cloudron/base:5.0.0 to cloudron/php-base:8.4 in commit 0d5ac2af (7 August).
    In the 3.0.8 image, the generic php-zmq package from the sury PPA depends on the build for the newest PHP, so it installs php8.5-zmq (plus about 13 other php8.5-* packages). PHP 8.4's extension_dir is /usr/lib/php/20240924, which has no zmq.so, so the extension is never loaded. Loading the 8.5 build into PHP 8.4 manually also fails, because of the ABI mismatch.
    We also checked the base the package now uses on master, cloudron/php-base:8.4-20260920. It has no zmq package at all, so a 3.0.9 build from the current master would still have no WebSocket.

    Suggested fix:
    Install the version-specific package in the EspoCRM Dockerfile, or in php-base:

    apt-get install -y php8.4-zmq
    

    php8.4-zmq (1.1.3-32+ubuntu24.04.1+deb.sury.org+1) is available in the same repository. Pinning to the PHP version, rather than using the php-zmq metapackage, also keeps the next PHP release on sury from breaking it again.
    To reproduce:

    docker run --rm --platform linux/amd64 --entrypoint /bin/bash cloudron/com.espocrm.cloudronapp:202609090034540000 -c 'php -v | head -1; php -m | grep -i zmq || echo "zmq not loaded"; dpkg -l | grep -i zmq; find / -name zmq.so -not -path "/proc/*" 2>/dev/null'
    

    Workaround for others: stay on 3.0.3 (EspoCRM 10.0.3), or turn off useWebSocket in Administration > Settings so the client falls back to polling.
    Thanks!

    1 Reply Last reply
    1
    • jamesJ
      jamesJ
      james
      Staff
      wrote last edited by
      #2

      Hello @marsupil and welcome to the Cloudron forum

      Thanks for reporting, I will look into this.

      1 Reply Last reply
      0
      • jamesJ james moved this topic from Discuss
      • jamesJ
        jamesJ
        james
        Staff
        wrote last edited by
        #3

        Hello @marsupil
        An app update with a fix will be available soon.

        1 Reply Last reply
        1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search