[Building Sakai] Error uploading resources
Steve Swinsburg
s.swinsburg at lancaster.ac.uk
Wed Apr 1 03:48:55 PDT 2009
Hello,
are you storing content in the database as opposed to the filesystem?
Is it MySQL? By default MySQL has a 1Mb limit it can store as binary.
You need to adjust the max_allowed_packet from 1048576 (ie 1Mb) to be
something higher.
See here: http://steve-on-sakai.blogspot.com/2008/11/sakai-mysql-and-storing-content-in.html
That, or check the memory assigned to your JVM in JAVA_OPTS (post them
here) as you are running out of resources:
From the Javadoc: ServerOverloadException is thrown whenever a
request cannot be completed at this time due to some critical resource
of the server being in too short supply.
cheers,
Steve
---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT
email: s.swinsburg at lancaster.ac.uk
phone: +44 (0) 1524 594870
On 1 Apr 2009, at 11:42, Emiliano Jankowski wrote:
> Hi there! I'm having an strange error when I try to upload a
> resource in "My workspace"
> I've uploaded 4 ppt, when I want to add one more I have " Alerta:
> Unable to add item: TRABAJO EN EQUIPO (2).ppt" and in catalina.out I
> have
>
>
> WARN: failed to write file from byte-array to database (2009-04-01
> 12:35:39,762 TP-
> Processor10_org.sakaiproject.content.impl.DbContentService)
> org.sakaiproject.exception.ServerOverloadException id=failed to
> write file from byte-array to database
> at org.sakaiproject.content.impl.DbContentService
> $DbStorage.commitResource(DbContentService.java:1669)
> at
> org
> .sakaiproject
> .content
> .impl.BaseContentService.commitResourceEdit(BaseContentService.java:
> 5450)
> at
> org
> .sakaiproject
> .content
> .impl.BaseContentService.commitResource(BaseContentService.java:5413)
> at
> org
> .sakaiproject
> .content
> .cover
> .ContentHostingService.commitResource(ContentHostingService.java:519)
> at
> org
> .sakaiproject
> .content.tool.ResourcesAction.createResources(ResourcesAction.java:
> 1384)
> at
> org
> .sakaiproject
> .content.tool.ResourcesAction.finishAction(ResourcesAction.java:7207)
> at
> org
> .sakaiproject
> .content
> .tool.ResourcesAction.buildMainPanelContext(ResourcesAction.java:4762)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org
> .sakaiproject
> .cheftool
> .VelocityPortletPaneledAction
> .toolModeDispatch(VelocityPortletPaneledAction.java:392)
>
> What does it mean? the strange thing is that if i try to upload a
> txt file for instance, it does ok, with no error.
>
>
> Thanks a lot!
>
>
>
>
> --
> Jankowski Emiliano
> Lic. en Sistemas
>
> http://ejankowski.blogspot.com
> http://provincianito.blogspot.com/
> _______________________________________________
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090401/e242fae2/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090401/e242fae2/attachment.bin
More information about the sakai-dev
mailing list