Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs sdk example container fails to run #2625

Closed
markmandel opened this issue Jun 10, 2022 · 0 comments · Fixed by #2633
Closed

nodejs sdk example container fails to run #2625

markmandel opened this issue Jun 10, 2022 · 0 comments · Fixed by #2633
Labels
area/examples Examples. Usually found in the `examples` directory good first issue These are great first issues. If you are looking for a place to start, start here! kind/bug These are bugs.
Milestone

Comments

@markmandel
Copy link
Member

markmandel commented Jun 10, 2022

What happened:

Attempting to run a copy of the nodejs simple server image, it fails with the following message:

➜  nodejs-simple git:(pr/debian-bulleseye/examples) docker run gcr.io/agones-images/nodejs-simple-server:0.7

> start
> node src/index.js

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module '@google-cloud/agones-sdk'
Require stack:
- /home/server/examples/nodejs-simple/src/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/server/examples/nodejs-simple/src/index.js:15:19)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/home/server/examples/nodejs-simple/src/index.js' ]
}

What you expected to happen:

It to at least attempt to connect to the SDK server.

How to reproduce it (as minimally and precisely as possible):

See above.

Code is here: https://github.com/googleforgames/agones/tree/main/examples/nodejs-simple

Anything else we need to know?:

Do we need a npm install step in there somewhere or something?

Environment: Debian

  • Agones version: dev
  • Kubernetes version (use kubectl version): N/A
  • Cloud provider or hardware configuration: N/A
  • Install method (yaml/helm): N/A
  • Troubleshooting guide log(s): N/A
  • Others: N/A
@markmandel markmandel added kind/bug These are bugs. good first issue These are great first issues. If you are looking for a place to start, start here! area/examples Examples. Usually found in the `examples` directory labels Jun 10, 2022
@SaitejaTamma SaitejaTamma added this to the 1.25.0 milestone Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/examples Examples. Usually found in the `examples` directory good first issue These are great first issues. If you are looking for a place to start, start here! kind/bug These are bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants