[GeoNetwork-users] Set maxUploadSize when using Docker

Hi!

I'm using the geonetwork 3.4.3 docker image and trying to increase the maxUploadSize from 100MB to something bigger. I try to follow the instructions in [1].

Problem: Inside the container in /usr/local/tomcat/webapps/geonetwork/WEB-INF/config-spring-geonetwork.xml there is no "maxUploadSize" parameter if I see that correctly.

The only thing I find is in in /usr/local/tomcat/webapps/geonetwork/WEB-INF/config.xml there is a "<maxUploadSize>100</maxUploadSize>". But increasing that does not help.

Any ideas what I do wrong?

Cheers,
Grmpfhmbl

Hi

The file where is defined is
https://github.com/geonetwork/core-geonetwork/blob/3.4.x/services/src/main/resources/config-spring-geonetwork.xml#L63-L66,
but that's build inside the services jar, so not easy to change unless
rebuilding GeoNetwork.

This should be improved, probably to be moved geonetwork/WEB-INF/
config-spring-geonetwork.xml or making it configurable in the UI. There's
an open issue related to this:
https://github.com/geonetwork/core-geonetwork/issues/2030

The other setting in config.xml is for the old Jeeves services, probably
kept in case any legacy service is still used.

Regards,
Jose García

On Mon, Aug 13, 2018 at 7:40 PM, Steffen Reichel <grmpfhmbl@anonymised.com>
wrote:

Hi!

I'm using the geonetwork 3.4.3 docker image and trying to increase the
maxUploadSize from 100MB to something bigger. I try to follow the
instructions in [1].

Problem: Inside the container in /usr/local/tomcat/webapps/geon
etwork/WEB-INF/config-spring-geonetwork.xml there is no "maxUploadSize"
parameter if I see that correctly.

The only thing I find is in in /usr/local/tomcat/webapps/geonetwork/WEB-INF/config.xml
there is a "<maxUploadSize>100</maxUploadSize>". But increasing that does
not help.

Any ideas what I do wrong?

Cheers,
Grmpfhmbl

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/project
s/geonetwork

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi Jose,

thank you for you answer. That helped a lot! So what I did now was:

extracting config-spring-geonetwork.xml from the services jar
setting the upload size
packing it back into the jar

That is not a nice solution, but it can be automated, works for now and gives the desired result. :slight_smile:

Cheers,
Steffen

On 16.08.18 09:23, Jose Garcia wrote:

Hi

The file where is defined is https://github.com/geonetwork/core-geonetwork/blob/3.4.x/services/src/main/resources/config-spring-geonetwork.xml#L63-L66, but that's build inside the services jar, so not easy to change unless rebuilding GeoNetwork.

This should be improved, probably to be moved geonetwork/WEB-INF/config-spring-geonetwork.xml or making it configurable in the UI. There's an open issue related to this: https://github.com/geonetwork/core-geonetwork/issues/2030

The other setting in config.xml is for the old Jeeves services, probably kept in case any legacy service is still used.

Regards,
Jose García

On Mon, Aug 13, 2018 at 7:40 PM, Steffen Reichel <grmpfhmbl@anonymised.com <mailto:grmpfhmbl@anonymised.com>> wrote:

    Hi!

    I'm using the geonetwork 3.4.3 docker image and trying to increase
    the maxUploadSize from 100MB to something bigger. I try to follow
    the instructions in [1].

    Problem: Inside the container in
    /usr/local/tomcat/webapps/geonetwork/WEB-INF/config-spring-geonetwork.xml
    there is no "maxUploadSize" parameter if I see that correctly.

    The only thing I find is in in
    /usr/local/tomcat/webapps/geonetwork/WEB-INF/config.xml there is a
    "<maxUploadSize>100</maxUploadSize>". But increasing that does not help.

    Any ideas what I do wrong?

    Cheers,
    Grmpfhmbl