Unable to upload a file larger than 1mb with no errors in log

347 views
Skip to first unread message

Craig Nelson

unread,
Dec 30, 2013, 1:36:46 PM12/30/13
to alfresco-techn...@googlegroups.com
Hi everyone, I am using alfresco community 4.2.0 and am unable to upload files larger than 1 mb in alfresco explorer or alfresco share. I am not seeing anythign in the logs. I am running alfresco on linux and am not using a proxy server of any kind. I am using straight connection to the box. I have tried to look to see if there is a problem in the repository.properties with quotas or file limits but this has been disabled. I looked at the share-custom.config and it looked fine. I tried to change some properties in the server.xml to increase the time out and set the MaxPostSize to 0. I have searched the forms but I am not sure what is going on. 

Here is a copy of my server.xml

  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->


    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="80" URIEncoding="UTF-8" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" maxPostSize="0"/>
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
    -->
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="443" />

    <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
               maxThreads="150" scheme="https" keystoreFile="/opt/alfresco-4.2.a/alf_data/keystore/ssl.keystore" keystorePass="kT9X6oe68t" keystoreType="JCEKS"
 secure="true" connectionTimeout="240000" truststoreFile="/opt/alfresco-4.2.a/alf_data/keystore/ssl.truststore" truststorePass="kT9X6oe68t" truststoreType="JCEKS"
               clientAuth="false" sslProtocol="TLS" allowUnsafeLegacyRenegotiation="true"  maxPostSize="0" disableUploadTimeout="false" maxSavePostSize="-1" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>


Any ideas?  

Richard Esplin

unread,
Jan 10, 2014, 8:32:39 PM1/10/14
to alfresco-techn...@googlegroups.com, Craig Nelson
I don't understand the behavior you are seeing.

Is it ending with an error in the UI?

Is it ending "successfully" but there is no file in the repository?

Is it creating an empty or corrupted file?

Richard

On Monday, December 30, 2013 12:36:46 Craig Nelson wrote:
> Hi everyone, I am using alfresco community 4.2.0 and am unable to upload
> files larger than 1 mb in alfresco explorer or alfresco share. I am not
> seeing anythign in the logs. I am running alfresco on linux and am not
> using a proxy server of any kind. I am using straight connection to the
> box. I have tried to look to see if there is a problem in the
> repository.properties with quotas or file limits but this has been
> disabled. I looked at the share-custom.config and it looked fine. I tried
> to change some properties in the server.xml to increase the time out and
> set the MaxPostSize to 0. I have searched the forms but I am not sure what
> is going on.
>
> Here is a copy of my server.xml
<snip>
> Any ideas?

Craig Nelson

unread,
Jan 10, 2014, 9:42:12 PM1/10/14
to alfresco-techn...@googlegroups.com
Sorry I should of posted the solution. My friend had a proxy server that I was not aware of causing the issue. The proxy server was not allowing for over 1MB to the server. We changed the settings and it resolved it.

Thanks
Craig



--
You received this message because you are subscribed to the Google Groups "Alfresco Technical Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alfresco-technical-d...@googlegroups.com.
To post to this group, send email to alfresco-techn...@googlegroups.com.
Visit this group at http://groups.google.com/group/alfresco-technical-discussion.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages