Running Totara Sync imports 30 user records, then errors out with this message:
"active database transaction detected when disposing database"
I am importing these fields:
"idnumber","timemodified","username","delete","firstname","lastname","email","city",
"country","timezone","description","institution","department","phone1","phone2","address",
"orgidnumber","postitle","manageridnumber","auth","password","customfield_location","customfield_region","customfield_ismanager"
Version 2.4.6
New Installation
Not seeing anything in database error log at this point.
Web/php logs:
[Tue Jul 30 09:39:57 2013] [error] [client 10.10.0.131] FastCGI: server "/mnt/data/environment_cache/10075/http/php5-10075.fcgi" stderr: PHP message: Potential coding error - active database transaction detected when disposing database:, referer: https://md.expertlearning.net/admin/tool/totara_sync/admin/syncexecute.php
[Tue Jul 30 09:39:57 2013] [error] [client 10.10.0.131] FastCGI: server "/mnt/data/environment_cache/10075/http/php5-10075.fcgi" stderr: * line 240 of /admin/tool/totara_sync/elements/user.php: call to moodle_database->start_delegated_transaction(), referer: https://md.expertlearning.net/admin/tool/totara_sync/admin/syncexecute.php
[Tue Jul 30 09:39:57 2013] [error] [client 10.10.0.131] FastCGI: server "/mnt/data/environment_cache/10075/http/php5-10075.fcgi" stderr: * line 135 of /admin/tool/totara_sync/elements/user.php: call to totara_sync_element_user->create_user(), referer: https://md.expertlearning.net/admin/tool/totara_sync/admin/syncexecute.php
[Tue Jul 30 09:39:57 2013] [error] [client 10.10.0.131] FastCGI: server "/mnt/data/environment_cache/10075/http/php5-10075.fcgi" stderr: * line 105 of /admin/tool/totara_sync/lib.php: call to totara_sync_element_user->sync(), referer: https://md.expertlearning.net/admin/tool/totara_sync/admin/syncexecute.php
[Tue Jul 30 09:39:57 2013] [error] [client 10.10.0.131] FastCGI: server "/mnt/data/environment_cache/10075/http/php5-10075.fcgi" stderr: * line 51 of /admin/tool/totara_sync/admin/syncexecute.php: call to tool_totara_sync_cron(), referer: https://md.expertlearning.net/admin/tool/totara_sync/admin/syncexecute.php
One each subsequent run more users are imported. Now I am having a hunch that this is due to manager dependencies causing problems. I could have sworn that Totara sync used to sort out the Manager relationships correctly, regardless of order in the input file.
I am going to attempt import of all users and leave the manager id field blank for first run, though I don't think this should be necessary.