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

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. supervisord to manage running processes in nextcloud app

supervisord to manage running processes in nextcloud app

Scheduled Pinned Locked Moved Nextcloud
6 Posts 3 Posters 2.4k Views 3 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.
  • vladimir.dV Offline
    vladimir.dV Offline
    vladimir.d
    wrote on last edited by vladimir.d
    #1

    Hi,

    We need to run Live index service for full-text search so I suggest adding the ability to configure supervisord in the application.

    Here is the patch I propose to include into the mainstream:

    https://git.cloudron.io/vladimir.d/nextcloud-app/-/merge_requests/1/diffs

    In this case we will be able to create our own config to run indexing service using supervisor, e.g.

    /app/data/supervisor/conf.d/fulltextsearch_index.conf

    [program:fulltextsearch_index]
    directory=/app/code
    user=www-data
    command=/usr/bin/php /app/code/occ fulltextsearch:live -q
    stdout_logfile=/dev/stdout
    stdout_logfile_maxbytes=0
    stderr_logfile=/dev/stderr
    stderr_logfile_maxbytes=0
    

    ftr @staff and @appdev

    mehdiM 1 Reply Last reply
    2
    • vladimir.dV vladimir.d

      Hi,

      We need to run Live index service for full-text search so I suggest adding the ability to configure supervisord in the application.

      Here is the patch I propose to include into the mainstream:

      https://git.cloudron.io/vladimir.d/nextcloud-app/-/merge_requests/1/diffs

      In this case we will be able to create our own config to run indexing service using supervisor, e.g.

      /app/data/supervisor/conf.d/fulltextsearch_index.conf

      [program:fulltextsearch_index]
      directory=/app/code
      user=www-data
      command=/usr/bin/php /app/code/occ fulltextsearch:live -q
      stdout_logfile=/dev/stdout
      stdout_logfile_maxbytes=0
      stderr_logfile=/dev/stderr
      stderr_logfile_maxbytes=0
      

      ftr @staff and @appdev

      mehdiM Offline
      mehdiM Offline
      mehdi
      App Dev
      wrote on last edited by mehdi
      #2

      @vladimir-d Your patch will not work : /app/data is mounted on runtime, so anything you put in it in build-time will be overridden by what's mounted.

      In any case, I am not a fan of what you are proposing : putting something as "core" as supervisor config files in /app/data is not really Cloudron-like. For what you want to achieve, I think it would be better to build a custom app as a fork of the official Nextcloud app.

      EDIT: if you want to achieve what you're trying to do here, what you should do is put the supervisor files in /app/code, then copy them to /app/data at runtime in the start.sh

      vladimir.dV 1 Reply Last reply
      2
      • mehdiM mehdi

        @vladimir-d Your patch will not work : /app/data is mounted on runtime, so anything you put in it in build-time will be overridden by what's mounted.

        In any case, I am not a fan of what you are proposing : putting something as "core" as supervisor config files in /app/data is not really Cloudron-like. For what you want to achieve, I think it would be better to build a custom app as a fork of the official Nextcloud app.

        EDIT: if you want to achieve what you're trying to do here, what you should do is put the supervisor files in /app/code, then copy them to /app/data at runtime in the start.sh

        vladimir.dV Offline
        vladimir.dV Offline
        vladimir.d
        wrote on last edited by vladimir.d
        #3

        @mehdi not sure why we need to copy config files from /app/code to /app/data at runtime. They are intended to be specific for every instance.

        What I'm trying to achieve is
        https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation#live-index-service

        Is there a better approach?

        girishG 1 Reply Last reply
        1
        • vladimir.dV vladimir.d

          @mehdi not sure why we need to copy config files from /app/code to /app/data at runtime. They are intended to be specific for every instance.

          What I'm trying to achieve is
          https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation#live-index-service

          Is there a better approach?

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

          @vladimir-d Did I understand correctly that this requires two things:

          a) an external elastic search server
          b) an index service that is always running (/app/code/occ fulltextsearch:live)

          vladimir.dV 1 Reply Last reply
          0
          • girishG girish

            @vladimir-d Did I understand correctly that this requires two things:

            a) an external elastic search server
            b) an index service that is always running (/app/code/occ fulltextsearch:live)

            vladimir.dV Offline
            vladimir.dV Offline
            vladimir.d
            wrote on last edited by
            #5

            @girish You are right, it requires an external elastic search server so we have built ElasticSearch app for cloudron.
            https://forum.cloudron.io/topic/1339/nextcloud-fulltext-search/15

            Yes, fulltextsearch:live should be always run and being restarted if it gets stuck.
            https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation#live-index-service

            girishG 1 Reply Last reply
            1
            • vladimir.dV vladimir.d

              @girish You are right, it requires an external elastic search server so we have built ElasticSearch app for cloudron.
              https://forum.cloudron.io/topic/1339/nextcloud-fulltext-search/15

              Yes, fulltextsearch:live should be always run and being restarted if it gets stuck.
              https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation#live-index-service

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

              @vladimir-d OK thanks, I will take this into account when trying to add cron support (or equivalent) for 6.4

              1 Reply Last reply
              2

              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