Forum .LRN Q&A: Problem uploading IMS package with LORS

Hi there,

I have tried using LORS to upload IMS courses...

So far I have been able to upload only small size courses (less than 1MB)... with larger files Netscape gives weird results, while Opera displays: "Connection closed by remote server". No useful information in the error log...

I guess some setting is missing in config.tcl... ???

(I have used the CVS current version based on OACS 5.1)

tia

Giancarlo

Collapse
Posted by Jeff Davis on
There is a compiled in limit in AOLServer 4.0 for uploads (I think it is 1mb). You can increase it by setting maxinput in the nssock section of your config file like this:
ns_section "ns/server/${server}/module/nssock"
  ...
  # maxinput added in aolserver 4.0 with a default of 1mb.
  # we will set it to 64mb
  ns_param   maxinput             [expr 64 * 1024 * 1024]
  ...
Collapse
Posted by Carl Robert Blesius on
Also: (as far as I can tell) LORS sits on top of file storage and there is an upload limit that can be adjusted in the file storage applications parameters that might be causing you problems as well (you can use the site map to find the instance of file storage in the class/club in question). I think the default is set at 2MB (which reminds me of a question I have been meaning to ask: is there a way to adjust this parameter site wide for all instances of file storage?  a.k.a. recursive flag?).
Collapse
Posted by Ernie Ghiglione on
Hi Giancarlo,

As Jeff mentioned AOLserver 4.0 has a limit of 1MB for uploading files. Here's a thread where it is discussed:

https://openacs.org/forums/message-view?message_id=161698

Ernie

Collapse
Posted by Ernie Ghiglione on
Hi Carl,

Since most courses that are put together using LORS are usually bigger than 2MBs and changing the paremeters for a particular file-storage instance of class/community is rather cumbersome, I bypassed the file-storage parameter set by default at 2MBs.

So, yes LORS uses file-storage, but it doesn't take into account the file size upload limitation for practical reasons.

The reasoning behind this is that the only person authorized by default to upload courses is the class/community administrator/professor. And since the aim is to make it for him/her as easy as possible, I thought it was a good idea to skip this limitation. I hope that's fine with the rest.

Ernie

Collapse
Posted by Giancarlo Luxardo on
Thanks for your answers. It's OK adding maxinput (I would suggest to add this parameter in the default config).

Then, I ran into another problem... When a package is added, LORS creates 4 temporary text files (under /tmp), and they are not removed when the procedure is completed. If another server attempts to run the same procedure, he gets a "permission denied" error... I think it would be better to generate unique file names to avoid this sort of collision.

Giancarlo