New Member.

timeout uploading to cloudscan

I keep getting a timeout error when I try to submit a job for cloud scan.  Is there a way to increase the timeout?

Here's the end of output from running my batch file that I generated using ScanWizard:

Time Elapsed 00:14:19.99
Testing Difference between Translations
Starting cloud scan
Log files will be stored in "C:\Users\<redacted>\AppData\Local\Fortify\cloudscan\log" directory.
Retrieving controller URL...
Verifying controller URL...
Controller at https://<redacted>:8445/cloud-ctrl is UP
No email address detected. No status emails will be sent for this job.
WARNING: deprecated parameter names 'versionname' 'project' were used. Start using new names, see command help.
Retrieving SCA version...
Exporting MBS...
Compressing job files...
Restructuring SCA arguments...
Uploading job...
An exception occurred; org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://<redacted>:8445/cloud-ctrl/rest/job": Read timed out; nested exception is Read timed out
Shutting down with errors. Please see log for details.


The cloudscan.log file contains this:


2020-03-26 15:25:52,198 [INFO] - Initializing: CloudScan version:
2020-03-26 15:25:52,206 [WARN] - C:\Fortify\Fortify_SCA_and_Apps_19.1.0\Core\config\ (The system cannot find the file specified)
2020-03-26 15:25:52,207 [INFO] - Executing
2020-03-26 15:25:52,210 [INFO] - Executing
2020-03-26 15:25:55,437 [INFO] - Executing
2020-03-26 15:25:56,113 [INFO] - Executing
2020-03-26 15:25:56,303 [INFO] - SSC lockdown mode is disabled
2020-03-26 15:25:56,303 [INFO] - Executing
2020-03-26 15:25:56,303 [INFO] - Executing
2020-03-26 15:25:56,304 [WARN] - Deprecated parameter names usage: 'versionname' 'project'
2020-03-26 15:25:56,305 [INFO] - Executing
2020-03-26 15:25:58,853 [INFO] - Executing
2020-03-26 15:27:33,621 [INFO] - Executing
2020-03-26 15:27:37,604 [INFO] - Executing
2020-03-26 15:27:37,609 [INFO] - Executing
2020-03-26 15:27:37,611 [INFO] - Uploading 89667929 byte file
2020-03-26 15:27:49,169 [ERROR] -
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://<redacted>:8445/cloud-ctrl/rest/job": Read timed out; nested exception is Read timed out
at org.springframework.web.client.RestTemplate.doExecute( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at org.springframework.web.client.RestTemplate.execute( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at org.springframework.web.client.RestTemplate.postForObject( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at ~[cloud-cli-]
at [cloud-cli-]
at [cloud-cli-]
Caused by: Read timed out
at Method) ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at ~[?:1.8.0_181]
at org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at org.springframework.web.client.DefaultResponseErrorHandler.hasError( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at org.springframework.web.client.RestTemplate.handleResponse( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute( ~[spring-web-4.3.15.RELEASE.jar:4.3.15.RELEASE]
... 5 more
2020-03-26 15:27:49,182 [FATAL] - An exception occurred.
2020-03-26 15:27:49,182 [INFO] - Shutting down with errors.

Labels (1)
1 Reply
Micro Focus Expert
Micro Focus Expert

Re: timeout uploading to cloudscan


Did you try to increase the timeout in server xml for the controller?

you can find something here

If a connectionTimeout value is set on the connector, it may need to be increased - e.g. from 20000 milliseconds (= 20 seconds) to 120000 milliseconds (= 2 minutes). If no connectionTimeout property value is set on the connector, the default is 60 seconds - if this is insufficient, the property may need to be added.


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.