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
  • 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

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. EspoCRM
  3. Add EspoCRM API to Cloudron health checks

Add EspoCRM API to Cloudron health checks

Scheduled Pinned Locked Moved EspoCRM
3 Posts 2 Posters 714 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.
  • marcusquinnM Offline
    marcusquinnM Offline
    marcusquinn
    wrote on last edited by
    #1

    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?

    Web Design https://www.evergreen.je
    Development https://brandlight.org
    Life https://marcusquinn.com

    girishG 1 Reply Last reply
    1
    • marcusquinnM marcusquinn

      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?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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?

      marcusquinnM 1 Reply Last reply
      1
      • girishG girish

        @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?

        marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by
        #3

        @girish Gotchya and understood - will do.

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        1 Reply Last reply
        1
        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