instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.7k stars 2.51k forks source link

Couldn't convert QTI 1.2 to 2.1 error logs critical issue #2043

Open dev2021-ctrl opened 2 years ago

dev2021-ctrl commented 2 years ago

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', 'unknown-nexgencodecamp-com-au@instructure.example.com', '--- 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

jstanley0 commented 2 years ago

Please attach the contents of the error log referenced in the message.

dev2021-ctrl commented 2 years ago

@jstanley0 Attached error logs file [Uploading error_logs.txt…]()

jstanley0 commented 2 years ago

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:

dev2021-ctrl commented 2 years ago

Let me fetch the correct file and will upload asap

dev2021-ctrl commented 2 years ago

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 Screenshot from 2022-04-07 22-56-27

isaac-ninebyte commented 2 years ago

Did you set migrate.py as executable (chmod +x migrate.py)?

ls -l /var/canvas/vendor/QTIMigrationTool/migrate.py to check.

ceekr commented 9 months ago

@isaac-ninebyte hi, yes this file is set as executable. I have the exact same issue, and have no way to resolve it. I have followed the instructions to the letter - https://github.com/instructure/canvas-lms/wiki/Production-Start - and importing existing courses and quizzes from an older setup fails with this exact error message: Couldn't convert QTI 1.2 to 2.1, see error log: /tmp/job-417395-ip.192.168.32.124.2262-20240221-2262-eel3po/cm_17_user_id_1_cc/qti_conversion_error.log - the tmp error log disappears, so no way to share that with you.

Any update on this considering this issue is open since May, 2022?