WISE-Developers / WISE_Application

WISE_Application formerly known as WISE
GNU Affero General Public License v3.0
7 stars 2 forks source link

WISE crashing in Azure Container Instances #52

Open RobJago opened 1 year ago

RobJago commented 1 year ago

Contact Details

robert.jagodzinski@nrcan-rncan.gc.ca

What happened?

WISE executable fails in Azure in container instance. std:bad_alloc when trying to assign LD_LIBRARY_PATH. This happens in both the validation or just a straight model execution with the fgmj.

  1. The model container was built from a Dockerfile which runs both locally and in Azure web apps. The same container built from the Dockerfile does not work in Azure container instances.
  2. Copying the fgmj to the local environment from the Azure container instance: validating with WISE locally works.
  3. Copying a locally produced and working/validated fgmj to the Azure container instance: validating with WISE in the container instance does not work.

Version

(Ubuntu 2020) v1.0.0-beta

What component are you seeing the problem on?

WISE Binary

Relevant log output

[info]    2023-06-05T15:40:11.349Z . Executing WISE Directly, job_20230605094010485 
[info]    2023-06-05T15:40:11.431Z . error: Command failed: /usr/bin/wise --validate /usr/src/app/WISE_data/dipjobs/job_20230605094010485/job.fgmj
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/usr/bin/wise: line 2:   287 Aborted                 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wise /usr/lib/wise/wise "$@"

[info]    2023-06-05T15:40:11.431Z . stderr: terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/usr/bin/wise: line 2:   287 Aborted                 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wise /usr/lib/wise/wise "$@"

[info]    2023-06-05T15:40:11.431Z . stderr: terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/usr/bin/wise: line 2:   287 Aborted                 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wise /usr/lib/wise/wise "$@"

[info]    2023-06-05T15:40:11.526Z . error: Command failed: /usr/bin/wise /usr/src/app/WISE_data/dipjobs/job_20230605094010485/job.fgmj
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/usr/bin/wise: line 2:   290 Aborted                 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wise /usr/lib/wise/wise "$@"

[info]    2023-06-05T15:40:11.526Z . stderr: terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
/usr/bin/wise: line 2:   290 Aborted                 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/wise /usr/lib/wise/wise "$@"

Approvals Process

spydmobile commented 1 year ago

@RobBryce does this not pertain to the switches you created for running in azure?