EpistasisLab / Aliro

Aliro: AI-Driven Data Science
https://epistasislab.github.io/Aliro
GNU General Public License v3.0
223 stars 63 forks source link

Code execution error on CODE_RUN_PATH (docker hub images) #596

Closed jay-m-dev closed 11 months ago

jay-m-dev commented 1 year ago

Code execution errors out using the release (docker hub images). This works OK locally when building the source code, but fails with the hub images (from the released .zip file).

Steps to recreate:

  1. Download released Aliro-1.0.1.zip
  2. unzip the file
  3. change directory to target/production/Aliro-1.0.1/
  4. Run docker compose up
  5. Wait for the images to be up and running and call the execapi/v1/executions endpoint. request body { "src_code": "print('test')" } response from endpoint
    {
    "src_code": "print('test')",
    "status": "error",
    "result": "[Errno 2] No such file or directory: '/appsrc/machine/code_runs/64dd0eb4eba1d7f2b71b4409'",
    "files": [],
    "_id": "64dd0eb4eba1d7f2b71b4409",
    "__v": 0
    }
jay-m-dev commented 12 months ago

Release v1.0 was rolled back due to this bug. The solution here is to move the /executions and /executions/install endpoints to the machine instead of the lab docker image.

jay-m-dev commented 11 months ago

The solution to this issue has been merged.