GitHub Classroom: Students unable to access classroom-created repositories immediately after creation #171982
Replies: 53 comments 59 replies
-
|
Similar issue. I believe my classroom ID is 97207053. Link |
Beta Was this translation helpful? Give feedback.
-
|
I am having the same issue with one of my students in one of my classrooms. |
Beta Was this translation helpful? Give feedback.
-
|
I am having the same issue with one student in my classroom ID: 76087654 |
Beta Was this translation helpful? Give feedback.
-
|
Looks like a common issue - #72283 There's a script on that page that'll use |
Beta Was this translation helpful? Give feedback.
-
|
I've seen this a handful of times in the last 24 hours. I've just been deleting the repos to fix it, but it's a hassle. |
Beta Was this translation helpful? Give feedback.
-
|
This is a new issue I think.. I use classroom extensively and this is the first semester where this has been a problem. The issue seems to be that a student's invitation is immediately revoked and invalidated. I think this is a bug on github's end... Having said this, I do have a work around that is simpler than deletion but it's still a hassle Go to the student's repo |
Beta Was this translation helpful? Give feedback.
-
|
I am also having this issue with numerous students. |
Beta Was this translation helpful? Give feedback.
-
|
I've also seen this issue - from playing around with the invite link, I've found that I can trigger it about 70% of the time if I wait for more than 15 seconds after following the invite link to click 'Accept Assignment'. I've been encouraging my students to click all the way through promptly, which has helped reduce the number that need a manual fix-up - I suspect students with slow internet connections may be switching tabs while they wait for the link to load, leading to slow click-through rates. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue in 4 assignments. There are more than 200 repositories created by students and about 20 of them have this problem. I have tried three different ways so far.
All methods have the chance to work or not work. What I can do is just let student roll the dice and hope it will work well. I still have unlucky students who fails with all the three ways. I hope the team will fix this problem soon. |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately, I am experiencing this issue this year too. I have used Github Classroom for several years and not experienced this before. Out of my 150 students about 15-20% are experiencing the problem. I stumbled upon the manual fix of uninviting them and reinviting myself. I will try out the script above, if this occurs on the next assignment. I do wonder if the root problem of github not thinking the student is part of the enterprise organization is due to me forking my base projects from my source organization. Up until late last year I used to import the repositories from my source organization into this year's organization, but that stopped working late in the school year last year. |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone 👋, As many of you have likely experienced, there’s an issue across GitHub Classroom causing GitHub Classroom invitations to expire before students can accept them 😕. While we all hope GitHub resolves this soon, I built a temporary workaround that has already helped our students regain access quickly. 🔗 Example of the Hosted Tool: https://github-reinvite.vercel.app/ How it works Students who lost access to a Classroom-generated repository can: For faculty, you'll need to host this application yourself using Vercel or anything you'd like: Fork the repo and run it on your own infrastructure 🌐 This is a community tool built in one night to help educators and students while we wait for a permanent fix from GitHub ❤️. ☕ If this helped you or your students, consider supporting the project: Buy me a coffee Let’s keep our students coding without roadblocks! 💻✨ |
Beta Was this translation helpful? Give feedback.
-
|
The workaround is tedious but effective: I have to manually delete the affected repos and re-create them—sometimes more than once. Unfortunately, the most frustrating part is that I have to re-enter each repo name by hand. Please fix it asap! Thank you MS. |
Beta Was this translation helpful? Give feedback.
-
|
This problem is pernicious; I long for the days of yore when GitHub actually provided SOME kind of support for GitHub Classroom (although it has always been mediocre to poor). I am currently using this script to fix the failed invitations, you are welcome to it if it works for you. Set the ORG variable at the top to your GitHub classroom organization, and run it as: For example, if you have configured GitHub Classroom to create repositories named If it breaks, you can have the broken parts for free. But unlike GitHub and GitHub Classroom, you also get the source, so you can fix it! #!/bin/sh
GH=gh
ORG=
if ! jq -n . > /dev/null 2>&1; then
echo "jq does not seem to be installed, cannot continue" 1>&2
exit 1
fi
if ! gh help > /dev/null 2>&1; then
echo "gh does not seem to be installed, cannot continue" 1>&2
exit 1
fi
if ! gh auth status -a > /dev/null 2>&1; then
echo "gh does not seem to be authenticated, please run \`gh auth\` and try again"
exit 1
fi
if [ $# -ne 2 ]; then
echo "usage: $0 <assignment prefix> <ubitname>" 1>&2
exit 1
fi
PREFIX="$1"
GHUSER="$2"
GHREPO="$ORG/$PREFIX-$GHUSER"
checkexists() {
$GH repo view "$1" > /dev/null 2>&1
}
if ! checkexists "$GHREPO"; then
echo "error: Repository $GHREPO does not seem to be usable" 1>&2
exit 1
fi
echo "Removing $GHUSER from $GHREPO"
echo "Checking for invitation first"
ID=`$GH api -XGET repos/$GHREPO/invitations | jq '.[] | select(.invitee.login == "'"$GHUSER"'").id'`
if [ "x$ID" != "x" ]; then
if $GH api --silent -XDELETE "repos/$GHREPO/invitations/$ID"; then
echo "Invitation deleted, moving on"
else
echo "Failed to delete invitation, aborting" 1>&2
exit 1
fi
else
echo "No invitation found, trying to remove user entirely"
if ! $GH api --silent -XDELETE "repos/$GHREPO/collaborators/$GHUSER"; then
echo "Failed to remove $GHUSER from repository" 1>&2
exit 1
fi
fi
echo "Adding $GHUSER to $GHREPO as writer"
if ! $GH api --silent -XPUT "repos/$GHREPO/collaborators/$GHUSER" -f permission=write; then
echo "Failed to add $GHUSER to repository" 1>&2
exit 1
fi
echo "Done!"
echo
echo "User can accept https://github.com/$GHREPO/invitations now" |
Beta Was this translation helpful? Give feedback.
-
|
+1 for this problem. And some of these are for in-class assignments making the shell script workaround a less-than desirable option. Seems like something GitHub could fix? |
Beta Was this translation helpful? Give feedback.
-
|
Happening for me too. Deleting the repo didn't work for my student, but re-inviting them did. Hoping this gets fixed soon, because I have daily assignments and realistically can't keep using a workaround. |
Beta Was this translation helpful? Give feedback.
-
|
I'm also having the issue. The most consistent fix I've found is to manually go to the student's repo, goto settings > collaborator's and teams > delete the existing invite, add back the student, copy the new invite link, and send it to the student for them to click |
Beta Was this translation helpful? Give feedback.
-
|
When you add them back in as a collaborator, they will automatically get an invite to the repo in their github inbox. You shouldn't need to send to them. That should save you that last step!
…________________________________
From: JeffBCIT ***@***.***>
Sent: Wednesday, January 14, 2026 1:48 PM
To: community/community ***@***.***>
Cc: Matt Geiger ***@***.***>; Comment ***@***.***>
Subject: Re: [community/community] GitHub Classroom: Students unable to access classroom-created repositories immediately after creation (Discussion #171982)
I'm also having the issue. The most consistent fix I've found is to manually go to the student's repo, goto settings > collaborator's and teams > delete the existing invite, add back the student, copy the new invite link, and send it to the student for them to click
—
Reply to this email directly, view it on GitHub<#171982 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBZEBG64QCAGJSP67AZOGL4G2FRXAVCNFSM6AAAAACFL2PMACVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNBZHEYDQOI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Popping up with our crew again over the last couple of days. What we're seeing is that the student is getting the invitation to join the repository but never actually connected, and they don't get the invitation email. We've had luck with students going to https://github.com/settings/repositories and finding the assignment in the list and accepting the invitation there. Or, they can also go directly to the repository (link is next to their name in your Classroom list) and accept the invitation there. |
Beta Was this translation helpful? Give feedback.
-
|
After the trouble I had last semester doing this, I have gone to using "group" assignments. Instead of individual assignments, I create a "group" assignment with a maximum team size of 1 member. this does a few things:
This has been my work around and it has been pretty consistent. |
Beta Was this translation helpful? Give feedback.
-
|
Classroom clearly broke something, as students that recently accepted assignments are not automatically added as collaborators. Student that accepted the same assignment a month ago, were regularly added. |
Beta Was this translation helpful? Give feedback.
-
|
Since the issue is back again - pumping this up.
https://github.com/orgs/community/discussions/171982#discussioncomment-14309367 |
Beta Was this translation helpful? Give feedback.
-
|
@samus-aran Any news on the GitHub side? This is hitting right at the start of the term in the UK. |
Beta Was this translation helpful? Give feedback.
-
|
My students encountered this issue this week. They would accept their assignment and be taken to a page that says, "Repository Access Issue - You no longer have access to your assignment repository. Contact your teacher for support". Not every student had this issue. For anyone that encountered this problem, I told them to navigate to this page: https://github.com/settings/organizations |
Beta Was this translation helpful? Give feedback.
-
|
I can confirm this is still an issue. I tried it with my students today and after it working flawlessly back in June, they all ended up with this error. |
Beta Was this translation helpful? Give feedback.
-
|
The silence from the developers' side is really inappropriate for such a community, with such a product. |
Beta Was this translation helpful? Give feedback.
-
|
@epignatelli ain't gonna be getting any better, either. It's pretty telling that they refuse to create a discussion board for GitHub Classroom instructors only and we have to chuck our threads into this endless pit of complaints about the Student Developer Pack verification process. I assume as a teacher in this era we're all very used to screaming into the void, though... |
Beta Was this translation helpful? Give feedback.
-
|
This is rough. I've been using GitHub Classroom for a few years, but wasn't scheduled to teach any classes that used it in Fall 2025, so the first time I saw these errors was last week. I teach a lot of beginners in a non-CS department, and it feels like I've immediately lost their confidence in the platform and, to some extent, me as an instructor when I have to send out emails with workaround instructions. GitHub was already kind of overkill for my classes, but I liked the Classroom setup and the ability for them to publish projects with Pages. It's too late to change midstream this semester, but now I'm thinking of ditching it next year. |
Beta Was this translation helpful? Give feedback.
-
|
我在高级Web技术课上也碰到了这个问题, 创建了classroom后把classroom的link share出来后, 有些学生点击后得到的结果是404 |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone have any updates about the "Repository Access Issue" problem? My students are still running into this issue frequently, and it's kind of a pain. It'd be nice to know that a GitHub staff member is at least aware of this issue. |
Beta Was this translation helpful? Give feedback.
-
|
Just noting my class this year is experiencing this a ton as well during every assignment/lab, it's quite disruptive. Never happened in previous years for us. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
Students in my class are accepting assignments and a good portion of them are being told that they cannot access the repository.
When I go to their repository settings and check their access , their user is "pending invite", but none of them can accept the invite.
Only removing their access, and then re-inviting them manually myself, solves the problem (they can then accept the invite).
This isn't a user error or something on my part as far as I can tell. I've run three successful assignments already over the past couple of weeks and this has the same setup.
For reference, my classroom ID is 845574
Beta Was this translation helpful? Give feedback.
All reactions