Error deploying to arena (solved)

I made a small demo app and uploaded server code. But when I deploy it gets a bunch of errors:

7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | Colyseus 0.14.18_Node-14.17.3-Buster_uWS_WS_RD_v2: Listening on ws://cu7ksr.us-east-vin.colyseus.net:2567
7bff7b7b5b-lmzk2 | ✅ uWebSockets.js + Express compatibility enabled
7bff7b7b5b-lmzk2 | No Transport provided... Arena is Defaulting to uWS
7bff7b7b5b-lmzk2 | }
7bff7b7b5b-lmzk2 |   requireStack: [ '/colyseus/app/server/index.js' ]
7bff7b7b5b-lmzk2 |   code: 'MODULE_NOT_FOUND'

7bff7b7b5b-lmzk2 |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
7bff7b7b5b-lmzk2 |     at Function.Module._load (internal/modules/cjs/loader.js:790:14)
7bff7b7b5b-lmzk2 |     at Module.load (internal/modules/cjs/loader.js:950:32)
7bff7b7b5b-lmzk2 |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
7bff7b7b5b-lmzk2 |     at Module._compile (internal/modules/cjs/loader.js:1085:14)
7bff7b7b5b-lmzk2 |     at Object.<anonymous> (/colyseus/app/server/index.js:86:19)
7bff7b7b5b-lmzk2 |     at require (internal/modules/cjs/helpers.js:92:18)
7bff7b7b5b-lmzk2 |     at Module.require (internal/modules/cjs/loader.js:974:19)
7bff7b7b5b-lmzk2 |     at Function.Module._load (internal/modules/cjs/loader.js:746:27)
7bff7b7b5b-lmzk2 |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
7bff7b7b5b-lmzk2 | - /colyseus/app/server/index.js
7bff7b7b5b-lmzk2 | Require stack:
7bff7b7b5b-lmzk2 | Error: Cannot find module './arena/arena.config'
7bff7b7b5b-lmzk2 | INFO : *** Have you DEPLOYED your server code? ****
7bff7b7b5b-lmzk2 | INFO : Arena-Config: No valid file provided
7bff7b7b5b-lmzk2 | }
7bff7b7b5b-lmzk2 |   path: '/colyseus/app/server/arena/production.env'
7bff7b7b5b-lmzk2 |   code: 'ENOENT'

7bff7b7b5b-lmzk2 |   syscall: 'open'

7bff7b7b5b-lmzk2 |   errno: -2

7bff7b7b5b-lmzk2 |     at internal/main/run_main_module.js:17:47 {
7bff7b7b5b-lmzk2 |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
7bff7b7b5b-lmzk2 |     at Function.Module._load (internal/modules/cjs/loader.js:790:14)
7bff7b7b5b-lmzk2 |     at Module.load (internal/modules/cjs/loader.js:950:32)
7bff7b7b5b-lmzk2 |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
7bff7b7b5b-lmzk2 |     at Module._compile (internal/modules/cjs/loader.js:1085:14)
7bff7b7b5b-lmzk2 |     at Object.<anonymous> (/colyseus/app/server/index.js:54:25)
7bff7b7b5b-lmzk2 |     at Object.config (/colyseus/node_modules/dotenv/lib/main.js:101:29)
7bff7b7b5b-lmzk2 |     at Object.readFileSync (fs.js:394:35)
7bff7b7b5b-lmzk2 |     at Object.openSync (fs.js:498:3)
7bff7b7b5b-lmzk2 | Error: ENOENT: no such file or directory
 open '/colyseus/app/server/arena/production.env'
7bff7b7b5b-lmzk2 | Arena-Env: No Valid File found
7bff7b7b5b-lmzk2 | Arena-Env: Could not find 'arena.env'
 checking for production.env instead...
7bff7b7b5b-lmzk2 | --- Completed Prelaunch ---
7bff7b7b5b-lmzk2 | npm WARN using --force Recommended protections disabled.
7bff7b7b5b-lmzk2 | npm notice 
7bff7b7b5b-lmzk2 | npm notice Run `npm install -g npm@8.4.0` to update!
7bff7b7b5b-lmzk2 | npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.4.0>
7bff7b7b5b-lmzk2 | npm notice New major version of npm available! 7.24.0 -> 8.4.0
7bff7b7b5b-lmzk2 | npm notice 
7bff7b7b5b-lmzk2 | Run `npm audit` for details.
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 |   npm audit fix --force
7bff7b7b5b-lmzk2 | To address all issues (including breaking changes)
 run:
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 |   npm audit fix
7bff7b7b5b-lmzk2 | To address issues that do not require attention
 run:
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | 4 vulnerabilities (3 low
 1 moderate)
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 |   run `npm fund` for details
7bff7b7b5b-lmzk2 | 10 packages are looking for funding
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | added 16 packages
 removed 103 packages
 changed 2 packages
 and audited 209 packages in 27s
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | lerna success Bootstrapped 0 package
7bff7b7b5b-lmzk2 | lerna info Symlinking packages and binaries
7bff7b7b5b-lmzk2 | lerna info Bootstrapping 0 package
7bff7b7b5b-lmzk2 | lerna notice cli v4.0.0
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | > lerna bootstra
7bff7b7b5b-lmzk2 | > boot
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | 
7bff7b7b5b-lmzk2 | > npm run boot
7bff7b7b5b-lmzk2 | > postinstall
7bff7b7b5b-lmzk2 | åå
7bff7b7b5b-lmzk2 | Running NPM Install...
7bff7b7b5b-lmzk2 | Pointing Org Workspaces
7bff7b7b5b-lmzk2 | No additional package.json found to merge... installing standard Arena package.json
7bff7b7b5b-lmzk2 | Check / Merge Override Package JSON
7bff7b7b5b-lmzk2 | 'arena.secret.env' does not exist.

Does not look like it finds my server app even though its uploaded

0_1643843971412_Screen Shot 2022-02-02 at 1.19.08 PM.png

Whats going on here ???

Have you push the "Deploy" button?

Yes. It says its deployed and spits out the log listed above

What's in your "arena.env" ?

NODE_ENV=production

Strange...
Please post a ticket here:
https://support.colyseus.io

I have the same problem (almost identical server log). If there is any solution for this, I would be glad. I used sample code from this github (https://github.com/colyseus/tutorial-playcanvas-server) and uploaded the "lib" folder which was created after building this project.

Have you tried to remove all files from arena and re-upload & deploy them?
Will you please share the lib folder with me?
Discord: COCO#6304
I did the same thing and everything goes well:
0_1644502797387_11f0eaf9-f195-4b9e-ac74-91fd7da7c606-image.png

@coco

I finally got working. I think the issue was in the package.json and the nom install and npm start that runs. Not sure.

But basically i sated from scratch made Arena based server app and deployed the JS output from my lib folder (actually dist folder, i changed that output folder)

But, is working now... thanks for the suggestions :)