Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-2658

Fix App Store search by configuring playbooks

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      0.5
    • Sprint:
      Fall 5 Nov 9 - Nov 20, Fall 6 Nov 30 - Dec 11, Fall 7 Dec 14 - Dec 23

      Description

      Searching generates an error.

      To reproduce the bug:

      • Go to a deployed app store (e.g., https://devappstore5.bioviz.org)
      • Enter search term (e.g., "bioinformatics")
      • Type ENTER to run the search
      • Observe there is an internal server error generated

        Attachments

          Activity

          Hide
          ann.loraine Ann Loraine added a comment -

          Noted by Sameer:

          I guess there is a write problem, the error as follows:

          • OSError: The path to your Whoosh index '/home/ubuntu/appstore/appstore/whoosh_index' is not writable for the current user/group.

          our search uses whoosh_index and that directory is not writable

          and

          It works when I change the permissions manually, we need to do that in the playbook.

          Show
          ann.loraine Ann Loraine added a comment - Noted by Sameer: I guess there is a write problem, the error as follows: OSError: The path to your Whoosh index '/home/ubuntu/appstore/appstore/whoosh_index' is not writable for the current user/group. our search uses whoosh_index and that directory is not writable and It works when I change the permissions manually, we need to do that in the playbook.
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          To fix:

          Modify the appstore playbooks (https://bitbucket.org/lorainelab/appstore-playbooksto) include a step that changes the group affiliation of the whoosh_index directory to "www-data".
          During deployment, the cloned appstore files will all have user "ubuntu" and group "ubuntu," which is required for future updating of the clone.
          The apache process (httpd) is owned by user and group www-data.
          The ubuntu user is added to the group "www-data".
          So if the whoosh index directory has group "www-data," then apache/httpd will be able to write to the directory and properly update the index when users submit apps or when the index is first used.

          Note: The test site mentioned above has been properly configured manually. So this is why you will probably not observe the bug in action. Also, you will probably be unlikely to observe the bug on your local because local development deployments happen under the developers user id.

          Show
          ann.loraine Ann Loraine added a comment - - edited To fix: Modify the appstore playbooks ( https://bitbucket.org/lorainelab/appstore-playbooksto ) include a step that changes the group affiliation of the whoosh_index directory to "www-data". During deployment, the cloned appstore files will all have user "ubuntu" and group "ubuntu," which is required for future updating of the clone. The apache process (httpd) is owned by user and group www-data. The ubuntu user is added to the group "www-data". So if the whoosh index directory has group "www-data," then apache/httpd will be able to write to the directory and properly update the index when users submit apps or when the index is first used. Note: The test site mentioned above has been properly configured manually. So this is why you will probably not observe the bug in action. Also, you will probably be unlikely to observe the bug on your local because local development deployments happen under the developers user id.
          Hide
          cdias1 Chester Dias (Inactive) added a comment -

          Looks like that folder is getting generated as part of migration steps in the playbooks or later. Not as a part of deployment. I am changing the whole /home/ubuntu/appstore/appstore/ affiliation to ubuntu:www-data
          that should work too i think

          Show
          cdias1 Chester Dias (Inactive) added a comment - Looks like that folder is getting generated as part of migration steps in the playbooks or later. Not as a part of deployment. I am changing the whole /home/ubuntu/appstore/appstore/ affiliation to ubuntu:www-data that should work too i think
          Show
          cdias1 Chester Dias (Inactive) added a comment - Please Review : https://bitbucket.org/chesterdias/appstore-playbooks/commits/345e31a5b3acf53a4b830d40cb66cdadc85d0530
          Hide
          ann.loraine Ann Loraine added a comment -

          Please rebase on the latest master branch and resolve any conflicts that emerge.

          Show
          ann.loraine Ann Loraine added a comment - Please rebase on the latest master branch and resolve any conflicts that emerge.
          Hide
          ann.loraine Ann Loraine added a comment -

          Fixed

          Show
          ann.loraine Ann Loraine added a comment - Fixed

            People

            • Assignee:
              ann.loraine Ann Loraine
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: