Troubleshooting‎ > ‎

Q: What do I do if I see "error 502"?

You may see “A server error occurred (error 502), please try again in few seconds” while trying to perform a lengthly action, such as importing data from a GPI database. This error usually occurs on Window 2003 servers running the IIS 6 web-server. IIS has a built in "cgi timeout" of 300 seconds (5 minutes). You should be able to eliminate 502 errors by increasing this timeout.

Here's how you how you increase the timeout to 900 seconds (15 minutes):

1. Open the command prompt (Start Menu > Run > cmd > Enter)
2. Type: cscript.exe c:/inetpub/adminscripts/adsutil.vbs set w3svc/cgitimeout 900
3. Hit Enter.

If your web root folder is not is it's default location (c:/inetpub/), you will need to modify step 2 to point to the right location. Furthermore, if you are importing more than 12,000 students, or importing from more than 3 different databases, you may need to increase the time out to more than 15 minutes.