503 Service Unavailable Error in Classroom Membership Sync

405 views
Skip to first unread message

Shaun Creighton

unread,
Sep 29, 2020, 7:36:24 PM9/29/20
to GAM for G Suite
I have a CSV export with columns for Google Classroom course aliases (SectionID) and student usernames (StudentEmail). I am running this command:

gam courses csvkmd export.csv keyfield SectionID datafield StudentEmail sync students addonly csvdata StudentEmail

This is a very large export, so it takes quite a while to complete (I usually start it at the end of the day and let it run into the evening). It seemed to work fine for a while, but over the last week or two, I've noticed that it stops about 80% of the way through (based on the "(XXXX/XXXX)" at the end of each line of output) and throws this error:

ERROR: 503: serviceNotAvailable - The service is currently unavailable.

The result is that several courses aren't getting new students added to them, which is causing some issues. Sometimes it gets a little further than other times, but it rarely seems to get all the way through. Any ideas why this would be happening?

Ross Scroggs

unread,
Sep 29, 2020, 8:56:17 PM9/29/20
to google-ap...@googlegroups.com
Shaun,

I've added some retry logic to 5.12.07

Ross

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/2c04ded9-ac9a-40a7-b5da-dd8d1d5e335bn%40googlegroups.com.


--

Shaun Creighton

unread,
Sep 30, 2020, 1:54:45 PM9/30/20
to GAM for G Suite
I did update to 5.12.07 last night before I ran the script, and it did make it all the way through this time. I will keep monitoring over the next few days, but I'm assuming the retry logic you added did the trick. Thanks again, Ross!


On Tuesday, September 29, 2020 at 5:56:17 PM UTC-7, Ross Scroggs wrote:
Shaun,

I've added some retry logic to 5.12.07

Ross

On Tue, Sep 29, 2020 at 4:36 PM Shaun Creighton <creight...@gse.cusd80.com> wrote:
I have a CSV export with columns for Google Classroom course aliases (SectionID) and student usernames (StudentEmail). I am running this command:

gam courses csvkmd export.csv keyfield SectionID datafield StudentEmail sync students addonly csvdata StudentEmail

This is a very large export, so it takes quite a while to complete (I usually start it at the end of the day and let it run into the evening). It seemed to work fine for a while, but over the last week or two, I've noticed that it stops about 80% of the way through (based on the "(XXXX/XXXX)" at the end of each line of output) and throws this error:

ERROR: 503: serviceNotAvailable - The service is currently unavailable.

The result is that several courses aren't getting new students added to them, which is causing some issues. Sometimes it gets a little further than other times, but it rarely seems to get all the way through. Any ideas why this would be happening?

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.


--
Ross Scroggs

Shaun Creighton

unread,
Feb 1, 2021, 10:27:28 AM2/1/21
to GAM for Google Workspace
An update: for a while, this seemed to work pretty well. I would occasionally see 503 errors that interrupted the sync command when I checked the logs the next day, but they were pretty rare, and they typically came after the vast majority of Classroom rosters had been synchronized.

Over the last few weeks, I have noticed these 503 errors happening much more frequently, and happening after relatively few rosters have been synchronized. I am running GAMADX-XTD3 5.31.10. This is the command I'm using:

gam courses csvkmd export.csv keyfield SectionID datafield StudentEmail sync students addonly csvdata StudentEmail

Any suggestions? 
Reply all
Reply to author
Forward
0 new messages