cancel
Showing results for 
Search instead for 
Did you mean: 

Failure to Upload File via Share Interface

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

         Every time I try to upload a file via the share interface it fails.  When done through the flash interface it simply shows orange and says 'failure' and when run without the flash interface it reports 500 (which I assume is the return code).  It works however when uploaded via the Sharepoint interface.

  The Alfresco log shows no error or comments at all.

  System : Alfresco 3.4a, server Ubuntu 10.04, client Chrome and IE8.

  We've pulled Alfresco totally out of service for now as we've got too many errors - does anyone have an idea as to what is happening here?

Regards,

Neil
23 REPLIES 23

mikeh
Star Contributor
Star Contributor
Any particular type of file? For example, do images & plain text files work? Is it just Office documents that fail?

Also please provide a bit more information about your server, what you've got installed, customized, etc.

Thanks,
Mike

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        Thanks; here are teh results:

Image (png) - fail
Excel doc (word 2007) - fail
Excel doc (excel 2007) - fail
pdf - fail
plain text - fail

  Installed via the easy installer (64 bit), then copied over alf_data and pointed the install at a 3.3c database.  Installed via teh installer was Sharepoint, Records Management, OpenOffice.  Install pointed at my existing MySQL db on port 3306.  Tomcat ports are as follows:

Tomcat http port : 8080
Tomcat  Shutdown port : 8006
Tomcat  ssl port : 8444
Tomcat  ajp port : 8010

  FTP is running on 2121, RMI on 50501, open office on 8100 and installed as a service.  The box has plenty of memory (4Gb), plenty of hard drive space (643Gb).

  Hope that is enough to help.

Cheers,

Neil

 
Cheers,

Neil

mikeh
Star Contributor
Star Contributor
Ok, it sounds like there's something fundamentally wrong, possibly as part of the upgrade process. How is the browser talking to Share and in turn talking to the Repository? Is SSL involved?

What you could try is to run the JavaScript debugger by going to http://<server>:8080/alfresco/service/index and launching the debugger from there (you'll need to be admin to do so). You'll also need to reset webscripts whilst on those pages to clear any pre-compile cache.

Then try uploading a simple file via Share. The debugger should stop in upload.post.js from which you can step through and find where the upload is failing.

Thanks,
Mike

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        The browser is talking to the server process via a vpn.  I tired a vanilla alfresco and it worked fine.  I'm enabling the debugger but it says '10090021 Wrapped Exception (with status template): No X11 DISPLAY variable was set, but this program performed an operation which requires it.'.

  I'll try to get that setup in the alfresco startup script - I need to modify alfresco.sh I'm assuming?

Regards,

Neil

mikeh
Star Contributor
Star Contributor
The Rhino JS debugger uses a Swing GUI so doesn't work in a headless environment. Sorry, I'm not experienced in how to set-up Ubuntu to get that working.

Mike

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        I installed X11 and put java.awt.headless into the catalina.sh startup script for tomcat.  I restarted alfresco and tried to enable the webscript debugger.  I had the following error:


The Web Script /alfresco/service/api/javascript/debugger has responded with a status of 500 - Internal Error.

500 Description:    An error inside the HTTP server which prevented it from fulfilling the request.

Message:   10090001 Wrapped Exception (with status template): null

Exception:   org.springframework.extensions.webscripts.WebScriptException - 10090001 Wrapped Exception (with status template): null

org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:742)

Server:   Community v3.4.0 (a 3169) schema 4,111
Time:   09-Nov-2010 11:35:39

Diagnostics:   Inspect Web Script (org/springframework/extensions/webscripts/jsdebugger.post)


  However it does not show much information - any advice?

Cheers,

Neil

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

        I've done some searching on this and I simply cannot work out a way to get the javascript debuger to show.  There is no error in alfresco.log and the only information I can find on google is someone who has exactly the same problem as me in starting the debugger but there were no responses.

  I've tried everything I can think of to get this working but cannot work it out.  The logs are empty - is there a way to get more logging information?

Cheers,

Neil

neil_benn
Champ in-the-making
Champ in-the-making
Hello,

         Got the stack trace it was in catalina.out rather than alfresco.log.  It looks like the script debugger actually tries to throw up a swing window on the server itself, not the client.  This won't work as the server does not have a monitor on it and I'm not physically anywhere near it.  Can I dump the information to a log file instead?

Cheers,

Neil

mikeh
Star Contributor
Star Contributor
Yes, sorry I thought you were aware that the debugger ran on the server - my mistake.

Unfortunately there's not enough logging in that file as-is to determine where the problem might be. You could modify the script yourself to add the logging if you like. The other option would be to clone the server into a local VM to which you can attach a desktop/monitor?

Mike