github-education-resources / classroom

GitHub Classroom automates repository creation and access control, making it easy for teachers to distribute starter code and collect assignments on GitHub.
https://classroom.github.com
1.35k stars 567 forks source link

Cannot import students from Moodle #2386

Open aalexandrescu opened 5 years ago

aalexandrescu commented 5 years ago
  1. I have followed the tutorial to connect GitHub Classroom to Moodle 3.7.
  2. When I click on the created Moodle activity, the connection is successful and the following messages appear: "Congratulations! You've successfully connected GitHub Classroom to Moodle" and "You are able to import your roster from Moodle."
  3. Then I click the "Import students" button followed by "Import from Moodle".
  4. At this point the message "GitHub Classroom is unable to fetch membership from Moodle at this time. If the problem persists, re-launch GitHub Classroom from your learning management system and try again." appears.

In Moodle, the privacy settings "Share launcher's name with the tool" and "Share launcher's email with the tool" are checked.

stephaniegiang commented 5 years ago

Hi @aalexandrescu đź‘‹ Have you checked to make sure "IMS LTI Names and Role Provisioning" is turned onto "Use this service"? This can be found under Services.

aalexandrescu commented 5 years ago

Yes. I have also tried to set the other two options in the Settings category to "Use this service..." but I get the same result. I have also deleted and recreated the external tool configuration and the activity, but it is the same error message. If it helps I can provide screenshots or a short video.

stephaniegiang commented 5 years ago

I wasn't able to reproduce this problem. There might be some additional settings within the Moodle from the administrator side. Have you tried contacting the administrator for your Moodle?

aalexandrescu commented 5 years ago

Sorry for the late reply. I am the Moodle administrator. I looked at the Apache server logs and it receives the request from github, but it returns a 401 UNAUTHORIZED response. This is the request/response log: "GET /mod/lti/services.php/CourseSection/3/bindings/1/memberships?role=Student%2CLearner HTTP/1.1" 401 274 "-" "OAuth gem v0.5.4" I checked and re-entered the credentials (consumer key, shared secret and launch URL), but I get the same result.

stephaniegiang commented 5 years ago

Do you mind telling me your classroom name on GitHub Classroom? I'm going to take a look on our side to see if we can get to the source of this issue.

aalexandrescu commented 5 years ago

My classroom name is HDR-Organization-classroom-1. https://classroom.github.com/classrooms/55534494-hdr-organization-classroom-1

On Mon, Sep 23, 2019 at 9:54 PM Stephanie Giang notifications@github.com wrote:

Do you mind telling me your classroom name on GitHub Classroom? I'm going to take a look on our side to see if we can get to the source of this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/education/classroom/issues/2386?email_source=notifications&email_token=ADBOHOLYO3CKMKPYYD4XZELQLEGDNA5CNFSM4IYJRTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7L4OLY#issuecomment-534234927, or mute the thread https://github.com/notifications/unsubscribe-auth/ADBOHOJQX6BRSGR47GYPPJDQLEGDNANCNFSM4IYJRTQA . [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": " https://github.com/education/classroom/issues/2386?email_source=notifications\u0026email_token=ADBOHOLYO3CKMKPYYD4XZELQLEGDNA5CNFSM4IYJRTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7L4OLY#issuecomment-534234927", "url": " https://github.com/education/classroom/issues/2386?email_source=notifications\u0026email_token=ADBOHOLYO3CKMKPYYD4XZELQLEGDNA5CNFSM4IYJRTQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7L4OLY#issuecomment-534234927", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": " https://github.com" } } ]

-- Adrian Alexandrescu Assistant professor, Ph.D. Department of Computer Science Faculty of Automatic Control and Computer Engineering ”Gheorghe Asachi” Technical University of Iasi, Romania

stephaniegiang commented 5 years ago

@aalexandrescu Thats for that! This was super helpful. I was able to reproduce this issue. Seems like this only affects self-hosted versions of Moodle. I'll take a further look into this issue and update this issue once I have more information.

aalexandrescu commented 5 years ago

@stephaniegiang is there an ETA for fixing the bug? I imagine it is not that hard to fix, if it works with versions of Moodle hosted in cloud solutions.

ryancdavison commented 4 years ago

Is there an update for this? I am experiencing similar behavior with Moodle, self-hosted 3.1.x. I am able to connect Moodle but am unable to import the roster. The big difference for me is the lack of the Services options displayed in the setup docs, that allow for the configuring the IMS LTI Names and Role Provisioning menu. This is for classroom https://classroom.github.com/classrooms/59521035-digipen-cs315-spring-2020. I worked with the sysadmin and enabled what settings we found following https://docs.moodle.org/31/en/Publish_as_LTI_tool, but we still were unable to complete the roster import. Thank you. @stephaniegiang @andrewbredow

MarkMensah commented 4 years ago

Hello, Any update on this particular Issue, Please, because I'm in the same soup.