Unable to load build session with ID

I face below error while trying to do scan, however could not find much information about the reason for this behavior. 

Any inputs here?

HP_Fortify/Fortify_SCA_and_Apps_17.20/bin/cloudscan -sscurl xxxxxxxxxxx.xxxx-xx.xxxxxxxxxxx.com:8080/ssc -ssctoken xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx start -upload -uptoken xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx -project xxxxxxxxx -version prod -b aaaaaaa -scan -Xmx10G
Log files will be stored in "/app/xxxxxxx/.fortify/cloudscan/log" directory.
Retrieving controller URL...
Verifying controller URL...
Controller at http:///xxxxxxxxxxx.xxxx-xx.xxxxxxxxxx:8080/cloud-ctrl is UP
No email address detected. No status emails will be sent for this job.
WARNING: deprecated parameter names 'project' were used. Start using new names, see command help.
Retrieving SCA version...
Exporting MBS...
Error occurred while exporting mobile build session.
[error]: Unable to load build session with ID "aaaaaaaa". See log file for more details.

Top Replies

  • 2021-06-01 05:43:20,461 [INFO] com.fortify.cloud.cli.Main - Initializing: CloudScan version: 17.20.0183
    2021-06-01 05:43:20,464 [DEBUG] com.fortify.cloud.cli.Main - Parsing command line arguments.
    2021-06-01 05:43:20,477 [DEBUG] com.fortify.cloud.cli.Main - Arguments: -sscurl http://xxxxxxxxxxxxxxx.prod-am.ameritrade.com:8080/ssc -ssctoken 6f8df756-7840-47ed-a583-99b4607aa683 start -upload -uptoken xxxxxxxxxxxxxxxxxxxxxxx -project ToS-Thinkpipes -version prod -b thinkpipes -scan -Xmx10G
    2021-06-01 05:43:20,485 [WARN] com.fortify.cloud.cli.util.ArgHelper - /app/tos-tools/HP_Fortify/Fortify_SCA_and_Apps_17.20/Core/config/cloudscan.properties (No such file or directory)
    2021-06-01 05:43:20,485 [INFO] com.fortify.cloud.cli.command.FindUrlCommand - Executing
    2021-06-01 05:43:20,488 [DEBUG] com.fortify.cloud.cli.command.FindUrlCommand - Searching for controller URL via SSC
    2021-06-01 05:43:23,007 [DEBUG] com.fortify.cloud.cli.command.FindUrlCommand - Received controller URL: http://xxxxxxxxxxxxxxxxxxx.prod-am.ameritrade.com:8080/cloud-ctrl
    2021-06-01 05:43:23,007 [INFO] com.fortify.cloud.cli.command.PingCommand - Executing
    2021-06-01 05:43:23,036 [DEBUG] com.fortify.cloud.cli.command.PingCommand - Server responded: Tue Jun 01 06:43:23 EDT 2021 I am still alive.
    2021-06-01 05:43:23,036 [INFO] com.fortify.cloud.cli.command.SscLockdownCommand - Executing
    2021-06-01 05:43:23,040 [INFO] com.fortify.cloud.cli.command.SscLockdownCommand - SSC lockdown mode is disabled
    2021-06-01 05:43:23,040 [INFO] com.fortify.cloud.cli.command.UnrecognizedStartOptionCommand - Executing
    2021-06-01 05:43:23,046 [INFO] com.fortify.cloud.cli.command.GetDescriptiveDataCommand - Executing
    2021-06-01 05:43:23,047 [INFO] com.fortify.cloud.cli.command.GetStartModeCommand - Executing
    2021-06-01 05:43:23,047 [DEBUG] com.fortify.cloud.cli.command.GetStartModeCommand - Detected SSC mode.
    2021-06-01 05:43:23,047 [WARN] com.fortify.cloud.cli.command.GetStartModeCommand - Deprecated parameter names usage: 'project'
    2021-06-01 05:43:23,047 [INFO] com.fortify.cloud.cli.command.ScaVersionCommand - Executing
    2021-06-01 05:43:23,079 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Executing: /app/txxxxxxx/HP_Fortify/Fortify_SCA_and_Apps_17.20/bin/sourceanalyzer -version
    2021-06-01 05:43:27,835 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Process returned 0
    2021-06-01 05:43:27,836 [DEBUG] com.fortify.cloud.cli.command.ScaVersionCommand - Detected SCA version: 17.20.0183
    2021-06-01 05:43:27,836 [INFO] com.fortify.cloud.cli.command.ExportMbsCommand - Executing
    2021-06-01 05:43:27,844 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Executing: /app/tos-tools/HP_Fortify/Fortify_SCA_and_Apps_17.20/bin/sourceanalyzer -b thinkpipes -export-build-session /tmp/mbs6880322562504975597.mbs
    2021-06-01 05:43:29,238 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Process returned 1
    2021-06-01 05:43:29,239 [ERROR] com.fortify.cloud.cli.command.ExportMbsCommand - [error]: Unable to load build session with ID "thinkpipes". See log file for more details.
    ztoscity@h0010658: ~/.fortify/cloudscan/log> cat "/app/xxxxxxxxxx/.fortify/cloudscan/log/cloudscan.log"
    2021-06-01 05:43:29,240 [ERROR] com.fortify.cloud.cli.command.ExportMbsCommand - Error occurred while exporting mobile build session.
    java.lang.Exception: Error occurred while exporting mobile build session.
    at com.fortify.cloud.cli.command.AbstractCommand.logAndThrowException(AbstractCommand.java:176)
    at com.fortify.cloud.cli.command.ExportMbsCommand.runProcess(ExportMbsCommand.java:72)
    at com.fortify.cloud.cli.command.ExportMbsCommand.execute(ExportMbsCommand.java:55)
    at com.fortify.cloud.cli.AbstractMain.executeChain(AbstractMain.java:181)
    at com.fortify.cloud.cli.Main.main(Main.java:53)
    2021-06-01 05:43:29,243 [FATAL] com.fortify.cloud.cli.Main - An exception occurred.
    2021-06-01 05:43:29,243 [INFO] com.fortify.cloud.cli.Main - Shutting down with errors.

  • 2021-06-01 05:43:20,461 [INFO] com.fortify.cloud.cli.Main - Initializing: CloudScan version: 17.20.0183
    2021-06-01 05:43:20,464 [DEBUG] com.fortify.cloud.cli.Main - Parsing command line arguments.
    2021-06-01 05:43:20,477 [DEBUG] com.fortify.cloud.cli.Main - Arguments: -sscurl http://xxxxxxxxxx1.prod-am.ameritrade.com:8080/ssc -ssctoken xxxxxxxxxxxxxxxxxxxxxxxxxxx start -upload -uptoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -project ToS-Thinkpipes -version prod -b thinkpipes -scan -Xmx10G
    2021-06-01 05:43:20,485 [WARN] com.fortify.cloud.cli.util.ArgHelper - /app/txxxxxxx/HP_Fortify/Fortify_SCA_and_Apps_17.20/Core/config/cloudscan.properties (No such file or directory)
    2021-06-01 05:43:20,485 [INFO] com.fortify.cloud.cli.command.FindUrlCommand - Executing
    2021-06-01 05:43:20,488 [DEBUG] com.fortify.cloud.cli.command.FindUrlCommand - Searching for controller URL via SSC
    2021-06-01 05:43:23,007 [DEBUG] com.fortify.cloud.cli.command.FindUrlCommand - Received controller URL: http://xxxxxxxxx.prod-am.ameritrade.com:8080/cloud-ctrl
    2021-06-01 05:43:23,007 [INFO] com.fortify.cloud.cli.command.PingCommand - Executing
    2021-06-01 05:43:23,036 [DEBUG] com.fortify.cloud.cli.command.PingCommand - Server responded: Tue Jun 01 06:43:23 EDT 2021 I am still alive.
    2021-06-01 05:43:23,036 [INFO] com.fortify.cloud.cli.command.SscLockdownCommand - Executing
    2021-06-01 05:43:23,040 [INFO] com.fortify.cloud.cli.command.SscLockdownCommand - SSC lockdown mode is disabled
    2021-06-01 05:43:23,040 [INFO] com.fortify.cloud.cli.command.UnrecognizedStartOptionCommand - Executing
    2021-06-01 05:43:23,046 [INFO] com.fortify.cloud.cli.command.GetDescriptiveDataCommand - Executing
    2021-06-01 05:43:23,047 [INFO] com.fortify.cloud.cli.command.GetStartModeCommand - Executing
    2021-06-01 05:43:23,047 [DEBUG] com.fortify.cloud.cli.command.GetStartModeCommand - Detected SSC mode.
    2021-06-01 05:43:23,047 [WARN] com.fortify.cloud.cli.command.GetStartModeCommand - Deprecated parameter names usage: 'project'
    2021-06-01 05:43:23,047 [INFO] com.fortify.cloud.cli.command.ScaVersionCommand - Executing
    2021-06-01 05:43:23,079 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Executing: /app/xxxxxxx/HP_Fortify/Fortify_SCA_and_Apps_17.20/bin/sourceanalyzer -version
    2021-06-01 05:43:27,835 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Process returned 0
    2021-06-01 05:43:27,836 [DEBUG] com.fortify.cloud.cli.command.ScaVersionCommand - Detected SCA version: 17.20.0183
    2021-06-01 05:43:27,836 [INFO] com.fortify.cloud.cli.command.ExportMbsCommand - Executing
    2021-06-01 05:43:27,844 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Executing: /app/txxxxxxxxxxxxxx/HP_Fortify/Fortify_SCA_and_Apps_17.20/bin/sourceanalyzer -b thinkpipes -export-build-session /tmp/mbs6880322562504975597.mbs
    2021-06-01 05:43:29,238 [DEBUG] com.fortify.cloud.cli.util.ProcessRunner - Process returned 1
    2021-06-01 05:43:29,239 [ERROR] com.fortify.cloud.cli.command.ExportMbsCommand - [error]: Unable to load build session with ID "thinkpipes". See log file for more details.
    ztoscity@h0010658: ~/.fortify/cloudscan/log> cat "/app/ztoscity/.fortify/cloudscan/log/cloudscan.log"
    2021-06-01 05:43:29,240 [ERROR] com.fortify.cloud.cli.command.ExportMbsCommand - Error occurred while exporting mobile build session.
    java.lang.Exception: Error occurred while exporting mobile build session.
    at com.fortify.cloud.cli.command.AbstractCommand.logAndThrowException(AbstractCommand.java:176)
    at com.fortify.cloud.cli.command.ExportMbsCommand.runProcess(ExportMbsCommand.java:72)
    at com.fortify.cloud.cli.command.ExportMbsCommand.execute(ExportMbsCommand.java:55)
    at com.fortify.cloud.cli.AbstractMain.executeChain(AbstractMain.java:181)
    at com.fortify.cloud.cli.Main.main(Main.java:53)
    2021-06-01 05:43:29,243 [FATAL] com.fortify.cloud.cli.Main - An exception occurred.
    2021-06-01 05:43:29,243 [INFO] com.fortify.cloud.cli.Main - Shutting down with errors.

  • Whenever you see the error message "Unable to load build session with ID ...", it means there are no intermediate files associated with the given build ID. If you're sure you specified the correct build ID after performing the translation step, then the translation either failed or it generated no intermediate files. You need to go back and check the translation logs to see what went wrong.