General developer forum

Error when trying to update course enrollments

 
 
Picture of Walter Walter
Error when trying to update course enrollments
 

I'm having some trouble with my enrollment script. We just upgraded from 2.4.4 to 2.6.2 and the script isnt working now. We connect to the database and import the courses and enrollments via a python script. however when the script tries to update any information in the database it gives this error:

<Fault 13798712: 'The site is undergoing maintenance and is currently not available | ERRORCODE: sitemaintenance'>

I have checked and the site isnt in maintenance mode. I'm not sure where this is coming from?
 
Average of ratings: -
Picture of Walter Walter
Re: Error when trying to update course enrollments
 

Does anyone know where it checks to pull the specific error message from?

 
Average of ratings: -
Picture of Walter Walter
Re: Error when trying to update course enrollments
 
Well that error went away but now i've got a differnt error. when it tries to run the create_courses(server, course_info) the first time it says <Fault 631: 'Failed to parse request'> the the second time it runs it says. <Fault 404: 'Unknown error'>

still not sure where to go from here.

 
Average of ratings: -
Picture of Darko Miletić
Re: Error when trying to update course enrollments
Group DevelopersGroup Particularly helpful Moodlers

Without seeing the actual code there is not much anybody can do here. Saying something does not work is not helpful.

 
Average of ratings: -
Picture of Walter Walter
Re: Error when trying to update course enrollments
 

Well i figured someone might have some info on what those error messages mean. I attached the script. 

 
Average of ratings: -