canvas-lms
canvas-lms copied to clipboard
Couldn't convert QTI 1.2 to 2.1 error logs critical issue
Hi All
I am using this open source tool https://github.com/instructure/canvas-lms and https://github.com/instructure/QTIMigrationTool I am facing some critical urgent issue Please help on the same. I have installed above 2 repos and also installed python lxml packages. I am using ubuntu 20.04 and while importing the course content , i am geting below error.
I can provide the imscc file if needed.
**425:[localhost:2907671 906699] Redis (0.244ms) get settings_for_plugin4/qti_converter [localhost:6379] 426:[localhost:2907671 906699] Running migration command: "/var/canvas/vendor/QTIMigrationTool/migrate.py" --ucvars --nogui --overwrite --cpout=/tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/d20220407-2907671-boxfsz/non_cc_assessments/qti_2_1 /tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/d20220407-2907671-boxfsz/non_cc_assessments 2>&1 428:[localhost:2907671 906699] SQL ErrorReport Create (2.3ms) INSERT INTO "public"."error_reports" ("backtrace", "message", "created_at", "updated_at", "email", "data", "category") VALUES ('/var/canvas/lib/cc/importer/canvas/quiz_converter.rb:54:in run_qti_converter'' 503:./delayed_job:11:in
''', 'Couldn''t convert QTI 1.2 to 2.1, see error log: /tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/cm_57_user_id_40_cc/qti_conversion_error.log', '2022-04-07 08:35:37.017692', '2022-04-07 08:35:37.017692', '[email protected]', '--- 525:exception_message: ''Couldn''''t convert QTI 1.2 to 2.1, see error log: /tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/cm_57_user_id_40_cc/qti_conversion_error.log'' 534:RuntimeError (Couldn't convert QTI 1.2 to 2.1, see error log: /tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/cm_57_user_id_40_cc/qti_conversion_error.log): 535: /var/canvas/lib/cc/importer/canvas/quiz_converter.rb:54:in `run_qti_converter'**
Thanks
Please attach the contents of the error log referenced in the message.
@jstanley0 Attached error logs file Uploading error_logs.txt…
your link is broken. the file I'm looking for is /tmp/job-906699-localhost.2907671-20220407-2907671-1690esc/cm_57_user_id_40_cc/qti_conversion_error.log
that said, if this happens for all migrations involving quiz data, it could be a setup problem rather than a package-specific issue. a few things to check:
- python 3 is installed and functional
- the lxml package is installed (e.g.
pip3 install lxmlorsudo apt-get install python3-lxml) - qti_migration_tool is checked out in canvas_lms/vendor
Let me fetch the correct file and will upload asap
I checked that file and it is not available .Please check the attached images. QT tool is installed in /var/canvas/vendor python 3.8 is installed along with lxml libs. I restarted the delayed job service using sudo RAILS_ENV=production ./delayed_job restart and got same error.
Please advise @jstanley0

Did you set migrate.py as executable (chmod +x migrate.py)?
ls -l /var/canvas/vendor/QTIMigrationTool/migrate.py to check.