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

            ann.loraine Ann Loraine created issue -
            ann.loraine Ann Loraine made changes -
            Field Original Value New Value
            Description When running playbook, this error occurred:

            {code}
            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
            {code}

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

            {code}
            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
            {code}

            See attached inventory.
            ann.loraine Ann Loraine made changes -
            Description When running playbook (commit 65d1cbe "Start using migration to create database tables")
            the following error occurred:

            {code}
            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
            {code}

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

            {code}
            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
            {code}

            See attached inventory.

            Playbooks repository: https://bitbucket.org/lorainelab/bioviz-connect-playbooks/src/master/
            ann.loraine Ann Loraine made changes -
            Priority Major [ 3 ] Blocker [ 1 ]
            ann.loraine Ann Loraine made changes -
            Attachment inv.ini [ 15493 ]
            ann.loraine Ann Loraine made changes -
            Sprint Winter 6 Mar 8 - Mar 19 [ 116 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Epic Link IGBF-2376 [ 18533 ]
            ann.loraine Ann Loraine made changes -
            Link This issue relates to IGBF-2576 [ IGBF-2576 ]
            cdias1 Chester Dias (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            The issue seems to be due to an incorrect permission level to the folder. [CHMOD permissions are set to rw only]. I tried running the migration command manually, gave the same error. Investigating caused of the error

            Show
            cdias1 Chester Dias (Inactive) added a comment - The issue seems to be due to an incorrect permission level to the folder. [CHMOD permissions are set to rw only] . I tried running the migration command manually, gave the same error. Investigating caused of the error
            Show
            cdias1 Chester Dias (Inactive) added a comment - Please review : https://bitbucket.org/chesterdias/chester-local-bioviz-connect-playbooks/branch/IGBF-2818#diff
            cdias1 Chester Dias (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            cdias1 Chester Dias (Inactive) made changes -
            Assignee Chester Dias [ cdias1 ] Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Chester Dias [ cdias1 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Looks good. Please submit PR when ready.

            Show
            ann.loraine Ann Loraine added a comment - Looks good. Please submit PR when ready.
            ann.loraine Ann Loraine made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Assignee Chester Dias [ cdias1 ]
            ann.loraine Ann Loraine made changes -
            Attachment inv2.ini [ 15505 ]
            ann.loraine Ann Loraine made changes -
            Attachment inv2.ini [ 15505 ]
            ann.loraine Ann Loraine made changes -
            Attachment inv2.ini [ 15506 ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Assignee Chester Dias [ cdias1 ]
            ann.loraine Ann Loraine made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            ann.loraine Ann Loraine made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Assignee Chester Dias [ cdias1 ] Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Attachment inv2.ini [ 15506 ]
            ann.loraine Ann Loraine made changes -
            Comment [ Error persists:

            {code}
            TASK [migrate : Make migrations] ***********************************************
            fatal: [54.91.204.15]: FAILED! => changed=false
              cmd: ./manage.py makemigrations bioviz-connect
              msg: '[Errno 13] Permission denied: b''./manage.py'''
              rc: 13

            PLAY RECAP *********************************************************************
            54.91.204.15 : ok=39 changed=6 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0
            {code}

            See attached file inv2.ini for host tested.

            ]
            Hide
            ann.loraine Ann Loraine added a comment -

            Permissions error is still present.
            I tested playbook setup.yml on an entirely new host as well as on existing hosts that had previously been running bioviz-connect.
            Chester Dias: Can you check?

            Also note that master branch has some updates. I don't think they would affect the above bug, but do please review just to be sure.

            Show
            ann.loraine Ann Loraine added a comment - Permissions error is still present. I tested playbook setup.yml on an entirely new host as well as on existing hosts that had previously been running bioviz-connect. Chester Dias : Can you check? Also note that master branch has some updates. I don't think they would affect the above bug, but do please review just to be sure.
            Hide
            ann.loraine Ann Loraine added a comment -

            inv8.ini - an entirely new host that has never run bioviz-connect
            inv3.ini - previously was running bioviz-connect

            Show
            ann.loraine Ann Loraine added a comment - inv8.ini - an entirely new host that has never run bioviz-connect inv3.ini - previously was running bioviz-connect
            ann.loraine Ann Loraine made changes -
            Attachment inv3.ini [ 15507 ]
            Attachment inv8.ini [ 15508 ]
            Hide
            ann.loraine Ann Loraine added a comment -

            errors observed:

            running: ansible-playbook -i inv8.ini setup.yml
            
            TASK [migrate : Make migrations] ********************************************************************************************************************
            fatal: [bvctest8]: FAILED! => changed=false 
              cmd: ./manage.py makemigrations bioviz-connect
              msg: '[Errno 13] Permission denied: b''./manage.py'''
              rc: 13
            

            and

            running: ansible-playbook -i inv3.ini setup.yml
            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
            
            Show
            ann.loraine Ann Loraine added a comment - errors observed: running: ansible-playbook -i inv8.ini setup.yml TASK [migrate : Make migrations] ******************************************************************************************************************** fatal: [bvctest8]: FAILED! => changed= false cmd: ./manage.py makemigrations bioviz-connect msg: '[Errno 13] Permission denied: b''./manage.py''' rc: 13 and running: ansible-playbook -i inv3.ini setup.yml 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
            ann.loraine Ann Loraine made changes -
            Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Chester Dias [ cdias1 ]
            cdias1 Chester Dias (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            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
            cdias1 Chester Dias (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            cdias1 Chester Dias (Inactive) made changes -
            Assignee Chester Dias [ cdias1 ] Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Chester Dias [ cdias1 ]
            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
            cdias1 Chester Dias (Inactive) made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            cdias1 Chester Dias (Inactive) made changes -
            Assignee Chester Dias [ cdias1 ] Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            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
            ann.loraine Ann Loraine made changes -
            Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Chester Dias [ cdias1 ]
            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
            cdias1 Chester Dias (Inactive) made changes -
            Status To-Do [ 10305 ] In Progress [ 3 ]
            cdias1 Chester Dias (Inactive) made changes -
            Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
            cdias1 Chester Dias (Inactive) made changes -
            Assignee Chester Dias [ cdias1 ] Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
            ann.loraine Ann Loraine made changes -
            Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
            ann.loraine Ann Loraine made changes -
            Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
            ann.loraine Ann Loraine made changes -
            Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
            ann.loraine Ann Loraine made changes -
            Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
            ann.loraine Ann Loraine made changes -
            Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
            ann.loraine Ann Loraine made changes -
            Resolution Done [ 10000 ]
            Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ] Chester Dias [ cdias1 ]

              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: