File uploads

357 views
Skip to first unread message

Charles Wood

unread,
Oct 24, 2011, 6:38:55 PM10/24/11
to canvas-l...@googlegroups.com
Local storage for file uploads doesn't appear to be working. I've tried uploading zip files and uploading files directly with no results. 

No errors are appearing in the production log either. 

Do I need to create a directory for the files to live in? Are there potential permissions problems in creating files or directories that might be coming up?

Thanks,
Chuck

Charles Max Wood
Video and Audio Show Host - TeachMeToCode.com
Ruby and Ruby on Rails Developer

Teach Me To Code Facebook Page: http://facebook.com/teachmetocode

John Desha

unread,
Oct 25, 2011, 3:56:28 PM10/25/11
to canvas-l...@googlegroups.com

File uploads will go into the canvas-lms/tmp/files/ directory unless you specified otherwise in the file_store.yml configuration. The last time I tested it, specifying anything else didn’t work (I tried some paths starting from root / and they still got put in tmp/files/).  Make sure that directory exists and is owned by your canvas user.

Charles Wood

unread,
Oct 28, 2011, 6:22:24 PM10/28/11
to canvas-l...@googlegroups.com
Ok, uploading the zip files works fine. If I click "Add Files" from the course files page, anything I try uploading I get an Error #2038. Any ideas?

Charles Max Wood
Video and Audio Show Host - TeachMeToCode.com
Ruby and Ruby on Rails Developer

Teach Me To Code Facebook Page: http://facebook.com/teachmetocode



Tonie Tollig

unread,
Nov 21, 2011, 4:44:21 AM11/21/11
to canvas-l...@googlegroups.com
Hi Charles, have you managed to sort out the problem. I have a similar problem. What is strange, is that I can upload files via the "Link to content" tabs.

Cheers
Tonie
--
Tonie Tollig
SA Mobile:           +27 836800556

Charles Wood

unread,
Nov 21, 2011, 12:06:09 PM11/21/11
to canvas-l...@googlegroups.com
Nope. I'm hoping to get some time and see if I can fix it myself.

Charles Max Wood
Video and Audio Show Host - TeachMeToCode.com
Ruby and Ruby on Rails Developer

Teach Me To Code Facebook Page: http://facebook.com/teachmetocode



John Desha

unread,
Nov 21, 2011, 5:47:58 PM11/21/11
to canvas-l...@googlegroups.com

Does the error number change?  Did you check /error_reports/2038 ?

Charles Wood

unread,
Nov 21, 2011, 6:25:15 PM11/21/11
to canvas-l...@googlegroups.com
John-

No, and no. Is that a location on disk? or a path on canvas?

Charles Max Wood
Video and Audio Show Host - TeachMeToCode.com
Ruby and Ruby on Rails Developer

Teach Me To Code Facebook Page: http://facebook.com/teachmetocode



John Desha

unread,
Nov 21, 2011, 7:43:58 PM11/21/11
to canvas-l...@googlegroups.com

It’s a URL path to try.  You need to have admin rights to see /error_reports, and you can add the error number on to see a specific one.  You can also look in the error_reports table in the db.

JT Olds

unread,
Nov 21, 2011, 8:28:37 PM11/21/11
to canvas-l...@googlegroups.com
Error 2038 is actually an Adobe Flash error. Try searching for Flash
and 2038. Not sure exactly what's going on with your particular set up
though. The files page is the only page where the upload button is
actually a Flash widget. We definitely have local storage working at
some of our schools, so this isn't an issue we've hit recently. Any
more information you can provide about your environment would be
helpful.

-JT

Neptronix

unread,
Dec 20, 2011, 1:31:39 PM12/20/11
to Canvas LMS Users
2038 is flash complaining that it had an I/O problem uploading to the
server.

Try yourcanvasdomain.com/error_reports shortly after you get this
error. You'll probably be seeing permissions issues in the error log.

I had to chmod -R 666 my /var/rails/canvas/tmp folder & chown it over
to the user that canvas was running under. After a restart, canvas was
then able to create it's temporary files and folders just fine.

... just another missing step from the production install
instructions ;)

> > On Mon, Nov 21, 2011 at 3:47 PM, John Desha <John.De...@utah.edu> wrote:
>
> > Does the error number change?  Did you check /error_reports/2038 ?
>
> > From: canvas-l...@googlegroups.com
> > [mailto:canvas-l...@googlegroups.com] On Behalf Of Charles Wood
> > Sent: Monday, November 21, 2011 10:06 AM
> > To: canvas-l...@googlegroups.com
> > Subject: Re: [Canvas] File uploads
>
> > Nope. I'm hoping to get some time and see if I can fix it myself.
>
> > Charles Max Wood
>
> > Video and Audio Show Host - TeachMeToCode.com
>
> > Ruby and Ruby on Rails Developer
>
> > Cell: 801-367-6164
>
> > Email: ch...@teachmetocode.com
>
> > Twitter:http://twitter.com/cmaxw
>
> > Facebook:http://facebook.com/charlesmaxwood
>
> > Teach Me To Code Facebook Page:http://facebook.com/teachmetocode
>

> > On Mon, Nov 21, 2011 at 2:44 AM, Tonie Tollig <tonie.tol...@gmail.com>


> > wrote:
>
> > Hi Charles, have you managed to sort out the problem. I have a similar
> > problem. What is strange, is that I can upload files via the "Link to
> > content" tabs.
>
> > Cheers
>
> > Tonie
>
> > On 29 October 2011 00:22, Charles Wood <ch...@teachmetocode.com> wrote:
>
> > Ok, uploading the zip files works fine. If I click "Add Files" from the
> > course files page, anything I try uploading I get an Error #2038. Any ideas?
>
> > Charles Max Wood
>
> > Video and Audio Show Host - TeachMeToCode.com
>
> > Ruby and Ruby on Rails Developer
>
> > Cell: 801-367-6164
>
> > Email: ch...@teachmetocode.com
>
> > Twitter:http://twitter.com/cmaxw
>
> > Facebook:http://facebook.com/charlesmaxwood
>
> > Teach Me To Code Facebook Page:http://facebook.com/teachmetocode
>

JT Olds

unread,
Dec 20, 2011, 2:58:14 PM12/20/11
to canvas-l...@googlegroups.com
> I had to chmod -R 666 my /var/rails/canvas/tmp folder & chown it over
> to the user that canvas was running under. After a restart, canvas was
> then able to create it's temporary files and folders just fine.

chmod -R 666 is pretty permissive. You're saying that anyone with
access to your box (not just the canvas user) has access to read and
write the tmp folder. Notice that the production install instructions
do tell you to change ownership of the tmp folder to the canvas user.
I suspect that if ownership alone doesn't fix it, Canvas probably
isn't running as the right user.

> ... just another missing step from the production install
> instructions ;)

The production install instructions are a wiki, :) feel free to add
things. I've been trying to keep it up to date but I'm often pretty
swamped with other work. Of course, many of the tutorial modifications
suggested on this list do constitute security hazards, so I've been
watching the wiki page to make sure it doesn't suggest anything
insecure (like chmod -R 666).

-JT

Charles Wood

unread,
Dec 21, 2011, 6:23:46 PM12/21/11
to canvas-l...@googlegroups.com
How do you determine which user it's trying to create a directory as?

Thanks,
Chuck

Charles Max Wood
Video and Audio Show Host - TeachMeToCode.com
Ruby and Ruby on Rails Developer

Teach Me To Code Facebook Page: http://facebook.com/teachmetocode



Reply all
Reply to author
Forward
0 new messages