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

Fix "permission denied" error in bioviz-connect playbook

    Details

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

      Description

      When running playbook (commit 65d1cbe "Start using migration to create database tables")
      the following error occurred:

      TASK [migrate : set_fact] ****************************************************************************************
      ok: [3.216.236.83]
      
      TASK [migrate : Make migrations] *********************************************************************************
      fatal: [3.216.236.83]: FAILED! => changed=false 
        cmd: ./manage.py makemigrations bioviz-connect
        msg: '[Errno 13] Permission denied: b''./manage.py'''
        rc: 13
      
      PLAY RECAP *******************************************************************************************************
      3.216.236.83               : ok=39   changed=7    unreachable=0    failed=1    skipped=2    rescued=0    ignored=0   
      

      See attached inventory.

      Playbooks repository: https://bitbucket.org/lorainelab/bioviz-connect-playbooks/src/master/

        Attachments

        1. inv.ini
          0.2 kB
        2. inv3.ini
          0.2 kB
        3. inv8.ini
          0.2 kB

          Issue Links

            Activity

            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            Cause of error
            Database users and the database itself was not created

            Please Review: https://bitbucket.org/chesterdias/chester-local-bioviz-connect-playbooks/branch/IGBF-2818#diff

            Show
            cdias1 Chester Dias (Inactive) added a comment - Cause of error Database users and the database itself was not created Please Review: https://bitbucket.org/chesterdias/chester-local-bioviz-connect-playbooks/branch/IGBF-2818#diff
            Hide
            ann.loraine Ann Loraine added a comment -

            Please submit PR when ready.

            Show
            ann.loraine Ann Loraine added a comment - Please submit PR when ready.
            Show
            cdias1 Chester Dias (Inactive) added a comment - https://bitbucket.org/lorainelab/bioviz-connect-playbooks/pull-requests/15/igbf-2818-added-role-for-creation-of-the
            Hide
            ann.loraine Ann Loraine added a comment -

            testing results:

            The same error is observed.

            ASK [settings : settings.ini] **********************************************************************************
            changed: [bvctest3]
            
            TASK [mysql : Drop Database] ************************************************************************************
            changed: [bvctest3]
            
            TASK [mysql : Create a new database] ****************************************************************************
            changed: [bvctest3]
            
            TASK [mysql : Create database user] *****************************************************************************
            ok: [bvctest3]
            
            TASK [migrate : set_fact] ***************************************************************************************
            ok: [bvctest3]
            
            TASK [migrate : set_fact] ***************************************************************************************
            ok: [bvctest3]
            
            TASK [migrate : set_fact] ***************************************************************************************
            ok: [bvctest3]
            
            TASK [migrate : Make migrations] ********************************************************************************
            fatal: [bvctest3]: FAILED! => changed=false 
              cmd: ./manage.py makemigrations bioviz-connect
              msg: '[Errno 13] Permission denied: b''./manage.py'''
              rc: 13
            
            PLAY RECAP ******************************************************************************************************
            bvctest3                   : ok=42   changed=7    unreachable=0    failed=1    skipped=2    rescued=0    ignored=0   
            
            Show
            ann.loraine Ann Loraine added a comment - testing results: The same error is observed. ASK [settings : settings.ini] ********************************************************************************** changed: [bvctest3] TASK [mysql : Drop Database] ************************************************************************************ changed: [bvctest3] TASK [mysql : Create a new database] **************************************************************************** changed: [bvctest3] TASK [mysql : Create database user] ***************************************************************************** ok: [bvctest3] TASK [migrate : set_fact] *************************************************************************************** ok: [bvctest3] TASK [migrate : set_fact] *************************************************************************************** ok: [bvctest3] TASK [migrate : set_fact] *************************************************************************************** ok: [bvctest3] TASK [migrate : Make migrations] ******************************************************************************** fatal: [bvctest3]: FAILED! => changed= false cmd: ./manage.py makemigrations bioviz-connect msg: '[Errno 13] Permission denied: b''./manage.py''' rc: 13 PLAY RECAP ****************************************************************************************************** bvctest3 : ok=42 changed=7 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
            Show
            cdias1 Chester Dias (Inactive) added a comment - https://bitbucket.org/lorainelab/bioviz-connect-playbooks/pull-requests/16/igbf-2818-added-change-to-permission-of

              People

              • Assignee:
                cdias1 Chester Dias (Inactive)
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: