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.
Does the error number change? Did you check /error_reports/2038 ?
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
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
>
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