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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Add EspoCRM API to Cloudron health checks

    EspoCRM
    2
    3
    104
    Loading More Posts
    • 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.
    • marcusquinn
      marcusquinn last edited by

      Because EspoCRM is a single page application (SPA), often the application will be loading (so http checks will return OK), but the data content will not.

      If the API isn't returning data, then the application is not working for the user, and it is better than System Admins should also know this before users have to report it.

      Can you add the API endpoint to health checks too please?

      We're not here for a long time - but we are here for a good time :)
      Jersey/UK
      Work & Ecommerce Advice: https://brandlight.org
      Personal & Software Tips: https://marcusquinn.com

      girish 1 Reply Last reply Reply Quote 1
      • girish
        girish Staff @marcusquinn last edited by

        @marcusquinn I like the idea! I assume you mean to change the Cloudron health check to use an API end point to check if the app is "running" or not using https://docs.espocrm.com/development/api/ . I think I have investigated this route in the past because our tests also sporadically fail when Cloudron thinks EspoCRM is running but it's not yet. So, we add a few sleeps here and there to make it work. The issue is/was that the API calls require an API token which the health check process does not have. Some apps like gogs/gitea have an explicit /healthcheck endpoint. Do you think you can open this issue upstream?

        marcusquinn 1 Reply Last reply Reply Quote 1
        • marcusquinn
          marcusquinn @girish last edited by

          @girish Gotchya and understood - will do.

          We're not here for a long time - but we are here for a good time :)
          Jersey/UK
          Work & Ecommerce Advice: https://brandlight.org
          Personal & Software Tips: https://marcusquinn.com

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB