8000 cannot load such file -- app · Issue #865 · aws/aws-sam-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
cannot load such file -- app #865
Closed
Closed
@daveroberts

Description

@daveroberts

Description

When trying to run the default project with ruby2.5 runtime, get the following error:

2018-12-17 16:58:29  * Running on http://127.0.0.1:3000/ (Press CTRL+C to quit)
2018-12-17 16:58:53 Invoking app.lambda_handler (ruby2.5)

Fetching lambci/lambda:ruby2.5 Docker container image.......
2018-12-17 16:58:53 Mounting /home/daver/code/sam-app/hello_world as /var/task:ro inside runtime container
Init error when loading handler app.lambda_handler
{
  "errorMessage": "cannot load such file -- app",
  "errorType": "Init<LoadError>",
  "stackTrace": [
    "/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'",
    "/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'"
  ]
}

Steps to reproduce

// Install Docker and start service
// Install Ruby 2.5 via rvm
// Install SAM local 0.9.0 via python pip venv
$ sam init --runtime ruby2.5
$ cd sam-app/
$ bundle install --deployment --path hello_world/vendor/bundle
$ sam local start-api

Observed result

When trying to navigate to http://localhost:3000/hello

2018-12-17 16:58:29  * Running on http://127.0.0.1:3000/ (Press CTRL+C to quit)
2018-12-17 16:58:53 Invoking app.lambda_handler (ruby2.5)

Fetching lambci/lambda:ruby2.5 Docker container image.......
2018-12-17 16:58:53 Mounting /home/daver/code/sam-app/hello_world as /var/task:ro inside runtime container
Init error when loading handler app.lambda_handler
{
  "errorMessage": "cannot load such file -- app",
  "errorType": "Init<LoadError>",
  "stackTrace": [
    "/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'",
    "/var/lang/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'"
  ]
}

Expected result

No error

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Linux
  2. sam --version: 0.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0