[Building Sakai] How to convert Binary File content to file System?

will trillich will at serensoft.com
Sun Apr 5 12:22:38 PDT 2009


Hi Tony --

Have you tried the instructions at
http://confluence.sakaiproject.org/confluence/x/yac

long URL version:
http://bugs.sakaiproject.org/confluence/display/DOC/Sakai+Admin+Guide+-+Binary+Content+and+Filesystem+Settings

Look for the "Migrating from database storage to filesystem storage"
section and see what that does for you.

Also, you might consider having several 'volumes' (instead of just
one) to specify for
bodyVolumes at org.sakaiproject.content.api.ContentHostingService


On Sun, Apr 5, 2009 at 11:23 AM, Tony Mendoza Rosa <tony_mendoza at mac.com> wrote:
> Hi,
>
> Server: XServer Dual G5 (PPC)
> OS: Mac OS X 10.5.6
> Sakai version:  Sakai 2.5.3
> My SQL version:  5.0.67
>
> I tried to convert all Binary content (files) uploaded into Sakai from Database to the filesystem, but I got lots of error. After the conversion I can't access files attached to the OSP Matrix, and the Student's files on Resources area. The Site is working normally since I restored the sakai.properties file with the original file.
>
> Sample of Error found in catalina.out file:
>
> 07:08:28,946 WARN DbContentService.java:2600 DbContentService:2600 - convertToFile: null xml : /user/6a38c183-b8ae-4230-bc58-7e964e3fc0f5/portfolio-interaction/fdfb4c6e-64f5-4ea1-ac16-e1cb99109263/950846123FD9BF2B8D150029FEE5382F/E8774E9BA55FD215A8439123286DD317/64E2579CF119FAB7813A98AFD9357778
>
> I added the following statements on Sakai Properties file to convert all files uploaded:
>
> bodyPath at org.sakaiproject.content.api.ContentHostingService=opt/sakai_archive
> bodyVolumes at org.sakaiproject.content.api.ContentHostingService=sakai_volume
> convertToFile at org.sakaiproject.content.api.ContentHostingService=true
>
> Once I made the changes, I restarted the Web Application. I can upload any file to the Resource Area, which is stored on the volume sakai_volume (in the directory opt/sakai_archive), but I can't access any file uploaded or attached previously to the Matrix.
>
> How can I convert Binary File content to file System without loosing the files previously uploaded?
>
> Regards,
>
> Tony Mendoza-Rosa
> University of Puerto Rico
> Rio Piedras Campus
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>



-- 
will trillich
"If you do not change direction, you may end up where you are
heading." -- Lao Tzu


More information about the sakai-dev mailing list