etf-validator / etf-webapp

:earth_africa: :mag: ETF is an open source testing framework for spatial data and services
https://www.etf-validator.net
European Union Public License 1.2
19 stars 19 forks source link

Upload Failure by local installation of ETF-Validator #166

Closed stbach closed 2 years ago

stbach commented 6 years ago

As we installed a local installation of the ETF Validator as explained on http://docs.etf-validator.net/v2.0/Admin_manuals/index.html#_installation_on_windows for executing ETF Test classes we got failures regardless of the used test class - ETF Validator and neccesary software already installed as mentioned in the URL.

Failure 1: data source (xml metadata) can not be uploaded through "file upload"; 2018-07-11 07:58:43.145 [http-nio-8080-exec-6] ERROR d.i.e.w.d.ApiError - EXID-1531288723145: An exception occurred while trying to invoke "http://localhost:8080/etf-webapp/v2/TestObjects"org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is de.interactive_instruments.etf.webapp.controller.LocalizableApiError

Failure 2: data source (xml metadata) can not be uploaded through "URL"; 2018-07-11 08:01:32.591 [http-nio-8080-exec-3] ERROR d.i.e.w.d.ApiError - EXID-1531288892589: An exception occurred while trying to invoke "http://localhost:8080/etf-webapp/v2/TestRuns"org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is de.interactive_instruments.etf.webapp.controller.LocalizableApiError

Is this a known behaviour, maybe already fixed?

Failure_2018-07-11 ETF_Upload.txt Failure_2018-07-11 ETF_URL.txt xml metadata: MDzuGD_INSPIRE_BW_Verwaltungseinheiten_ATKIS_Basis-DLM_advANDinspire.xml.zip

jonherrmann commented 6 years ago

Did the web interface (or REST interface if you have automated the tests) not provide any error message?

Please also post the output of http://localhost:8080/etf-webapp/v2/status .

ghost commented 6 years ago

Hi,

  1. Did the web interface (or REST interface if you have automated the tests) not provide any error message?

Yes, see attachments.

Failure 1: data source (xml metadata) can not be uploaded through "file upload";

  02_DataUpload_EN_180724.jpg

Failure 2: data source (xml metadata) can not be uploaded through "URL";

  01_RemoteFile(URL)_EN_180724.jpg
  1. Please also post the output of http://localhost:8080/etf-webapp/v2/status .

{"name":"ETF","status":"MAJOR","heartbeat":"1532425404699","willExpireAt":"1532425444699","version":"2.0.0-b180115T1110","uptime":"1123","allocatedMemory":"205367904","presumableFreeMemory":"54154656","totalSpace":"999887466496","freeSpace":"905858609152","cpuLoad":"0,000585","messages":["Less then 512 MB RAM available"]}

ETF_v2_status_180724.txt 01_remotefile url _en_180724 02_dataupload_en_180724

jonherrmann commented 6 years ago

Thanks for the screenshots and details. Ok, one important point is missing in the documentation:

You need to set or increase the -Xmx parameter in the Tomcat configuration. This screenshot shows this for the Tomcat service configuration window (-Xmx31G to reserve 31 GB memory). You need to set this parameter to at least 4 GB ram -> -Xmx4G ( > 8GB are recommended).

ghost commented 6 years ago

Thanks for extremely quick reply.

Your hint has helped me to solve the problem.

I also had to set up -Xmx4095m value for -Xmx parameter in Windows because the default value for Java Heap on my machine was set to 512 MB.

Solution:

  1. Java Runtime Environment - Settings for Java Version 1.8.0 have to be changed

Runtime-Parameter: -Xmx4095m grafik

  1. Increase -Xmx parameter in the Tomcat configuration

-Xmx4G

grafik

This is done for Tomcat installation as a service. (http://docs.etf-validator.net/v2.0/Admin_manuals/index.html#_installation_on_windows)

Remark: I think that the same procedure has to be done if Tomcat is started on Windows on the console via the batch.

jonherrmann commented 2 years ago

closing in favour of https://github.com/etf-validator/etf-webapp/issues/167