Skip to content

WISE crashing in Azure Container Instances #52

@RobJago

Description

@RobJago

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

  • Testing For Issue
  • Executive Approval
  • Merge

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions