Skip to content

Error: fork/exec /var/task/bootstrap: no such file or directory#98

Description

@RichardChester

馃悰 Bug description

I am currently building my rust lambda using the dockerless method, it builds and deploys fine but when I attempt to test it throws the error:
Error: fork/exec /var/task/bootstrap: no such file or directory Runtime.InvalidEntrypoint

馃 Expected Behavior

it should execute the task inside the lambda as normal

馃憻 Steps to reproduce

Using these dependencies

[dependencies]
lambda_runtime = "0.3"
tokio = "1.3.0"
serde = "1.0.116"
serde_json = "1.0.56"
tokio-postgres = {version = "0.5.1", features = ["with-chrono-0_4"]}
rusoto_secretsmanager = "0.46.0"
lazy_static = "1.2"
chrono = "0.4.19"
rust_decimal = { version = "1.10.3", features = ["db-tokio-postgres"] }
simple_logger = "1.11.0"
log = "0.4.14"
rusoto_sqs = "0.46"
rusoto_core = "0.46"

and code that resembles

#[tokio::main] 
async fn main() -> Result<(), Error> {
    lambda_runtime::run(handler_fn(custom)).await?;
    Ok(()) 
}   

async fn custom(event: Value , _:Context) -> Result<Value,Error> { 
// some code
}

you should be able to reproduce

馃實 Your environment

running on ubuntu with

serverless version: 2.35

rust-plugin version: 0.3.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions