Kill SIS-import process

977 views
Skip to first unread message

Tyler Clair

unread,
Apr 4, 2011, 4:21:30 PM4/4/11
to canvas-l...@googlegroups.com
I had a csv file of test students I tried imported into a development system. It appears to be hung so I killed the webBrick server and restarted it but when I went back to the SIS-import tool and it started the previous import process again. How can I stop this process so I can try it again?

Thanks,

Tyler Clair
USU-Eastern FACT

JT Olds

unread,
Apr 5, 2011, 12:30:08 PM4/5/11
to canvas-l...@googlegroups.com, Tyler Clair
No long-running jobs or processes are going to run in the development
environment unless you have also run 'script/delayed_job run' in
addition to 'script/server'. Try that.

I highly recommend setting up a production environment if you are
attempting to do CSV import or similar.

Christopher Bennell

unread,
Jun 2, 2011, 1:07:56 PM6/2/11
to canvas-l...@googlegroups.com
So, is possible to stop the import process? During testing (on a production-style setup) I submitted the job without any actual data. Now the import has been basically frozen for hours.


JT Olds

unread,
Jun 2, 2011, 1:15:02 PM6/2/11
to canvas-l...@googlegroups.com
Sounds like you don't have your canvas_init daemon running.

Christopher Bennell

unread,
Jun 2, 2011, 2:01:25 PM6/2/11
to canvas-l...@googlegroups.com
Hmm. /etc/init.d/canvas_init start runs OK, there no jobs showing up in the list at /jobs, and my emails are all delivered. I think this means that the daemon is running..?

JT Olds

unread,
Jun 2, 2011, 2:26:12 PM6/2/11
to canvas-l...@googlegroups.com
Huh, well, if there are no jobs running, but your SIS import page is
still saying an import is running, then it got stuck and killed
somehow. You'll need to clear it out. Try running

SisBatch.last.tap{|x| x.workflow_state = "failed"; x.save}

or equivalent.

Christopher Bennell

unread,
Jun 2, 2011, 2:34:10 PM6/2/11
to canvas-l...@googlegroups.com
That did the trick. Thanks!

JT Olds

unread,
Jun 2, 2011, 5:53:26 PM6/2/11
to canvas-l...@googlegroups.com
Just for correctness on this list, the following command is more
robust than the one I provided:

Account.default.current_sis_batch.tap{|x| x.workflow_state = "failed"; x.save}

robert...@gmail.com

unread,
Jul 22, 2013, 4:52:17 AM7/22/13
to canvas-l...@googlegroups.com, j...@instructure.com
Sorry, I'm new with Canvas, and... where i have to put this sentence?
Thanks in advance!

Cody Cutrer

unread,
Jul 22, 2013, 11:25:44 AM7/22/13
to canvas-l...@googlegroups.com
You'll run script/console, and then put it there.

Cody Cutrer
Software Engineer
Instructure


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roberto Diaz

unread,
Jul 23, 2013, 6:55:07 AM7/23/13
to canvas-l...@googlegroups.com
It worked!!! Now I've stopped the SIS import process.
Thanks a lot!!!

Regards
Roberto

Amit Lathigara

unread,
Jul 14, 2017, 3:37:50 AM7/14/17
to Canvas LMS Users
Kindly highlight, how to open console?
I am getting an error that no such file/directory exists.
Thanks.

soni...@gmail.com

unread,
Jul 17, 2017, 1:20:34 AM7/17/17
to Canvas LMS Users, j...@instructure.com
I am getting an error that command is not found.
Kindly help.

Amit Lathigara

unread,
Jul 17, 2017, 3:24:49 AM7/17/17
to Canvas LMS Users, j...@instructure.com
I found an alternative way to resolve it.
Login in PostgreSQL, and locate table sis_batches.
Retrieve all rows and delete row which is showing progress not as 100.

Amit Lathigara

unread,
Jul 17, 2017, 3:25:24 AM7/17/17
to Canvas LMS Users, j...@instructure.com
I found an alternative way to resolve it.
Login in PostgreSQL, and locate table sis_batches.
Retrieve all rows and delete row which is showing progress not as 100.


ismael...@gmail.com

unread,
Sep 10, 2020, 3:05:33 AM9/10/20
to Canvas LMS Users
I'm using Canvas version 2018.09 and I could not delete the specific row as there are associated ids in other tables. However, by changing the workflow_state of the row that is hanging (either less than 100 progress or workflow_state as "importing") to "imported", the SIS import page is now working again
Reply all
Reply to author
Forward
0 new messages