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

Investigate 500 errors in app store

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      As discussed during scrum Sep 3 2020, there are some new problems with App Store.

      I was able to log in and submit an App, but when I logged out, I got a 500 error.

      Chirag Chandrahas Shetty has noticed similar problems.

      For this task, please investigate – what is causing the problem? Is it a configuration error or an error in the code?

        Attachments

          Activity

          Hide
          sameer Sameer Shanbhag (Inactive) added a comment - - edited

          Prof. [~aloraine] Just had a look at the error log for devappstore1, this seems to be a configuration issue.

          *Error*

          • django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '3.228.92.48:443'. You may need to add '3.228.92.48' to ALLOWED_HOSTS.

          I would have to check what is going on and why it requires IP address rather than devappstore1.bioviz.org

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - - edited Prof. [~aloraine] Just had a look at the error log for devappstore1, this seems to be a configuration issue. * Error * django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header: '3.228.92.48:443'. You may need to add '3.228.92.48' to ALLOWED_HOSTS. I would have to check what is going on and why it requires IP address rather than devappstore1.bioviz.org
          Hide
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment - - edited

          Prof. [~aloraine] and Sameer Shanbhag The error occurred after I created the template sub-folder. Will look into it in detail.

          Show
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment - - edited Prof. [~aloraine] and Sameer Shanbhag The error occurred after I created the template sub-folder. Will look into it in detail.
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          Yeah - just gave it a debug.

          Heres the error:

          • django.template.exceptions.TemplateDoesNotExist: nav_panel.html
          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Yeah - just gave it a debug. Heres the error: django.template.exceptions.TemplateDoesNotExist: nav_panel.html
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment - - edited

          Chirag Chandrahas Shetty
          Devappstore1 is now working.

          Please do `git status` on the devappstore1 instance to check the changes I made to the repository.

          Solution

          • Refactor all the instances where the template files are used rather than just doing the changes in views.py file to maintain the folder structure.

          Changes in

          • apps_with_tag.html
          • all_apps.html
          • apps_default.html

          C.C Prof. [~aloraine]

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - - edited Chirag Chandrahas Shetty Devappstore1 is now working. Please do `git status` on the devappstore1 instance to check the changes I made to the repository. Solution Refactor all the instances where the template files are used rather than just doing the changes in views.py file to maintain the folder structure. Changes in apps_with_tag.html all_apps.html apps_default.html C.C Prof. [~aloraine]
          Hide
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment -

          Sameer Shanbhag Thank you for looking into it.

          Show
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment - Sameer Shanbhag Thank you for looking into it.
          Hide
          noor91zahara Noor Zahara (Inactive) added a comment -

          Sameer Shanbhag / Chirag Chandrahas Shetty - Could you add the code diff link here for the review?

          Show
          noor91zahara Noor Zahara (Inactive) added a comment - Sameer Shanbhag / Chirag Chandrahas Shetty - Could you add the code diff link here for the review?
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          Chirag Chandrahas Shetty Can you do attach the Pull Request Link.

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Chirag Chandrahas Shetty Can you do attach the Pull Request Link.
          Hide
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment -

          We can close the ticket since it was caused due to changes done for ticket number IGBF-2517.

          Show
          chirag24 Chirag Chandrahas Shetty (Inactive) added a comment - We can close the ticket since it was caused due to changes done for ticket number IGBF-2517 .

            People

            • Assignee:
              sameer Sameer Shanbhag (Inactive)
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: