The issue reported here doesn’t seem to be related to the one that happens in that Dockerfile. At least in my case, the logs are:
4.362 Run command for local development
4.362 ────────────────────────────────────────────────────────────────
4.362
4.383
4.383 ◈ Static server listening to 3999
4.386
4.387 (dev.command completed in 23ms)
4.387 Build step duration: dev.command completed in 23ms
4.403 ◈ Functions server is listening on 46687
4.412 ---------------------------
4.412 Error: Unable to open browser automatically: Running inside a docker container
4.412 Please open your browser and open the URL below:
4.412 http://localhost:8888
4.412 ---------------------------
4.420
4.420 ┌─────────────────────────────────────────────────┐
4.420 │ │
4.420 │ ◈ Server now ready on http://localhost:8888 │
4.420 │ │
4.420 └─────────────────────────────────────────────────┘
4.420
4.438 getBinaryVersion failed Error: Command failed with ENOENT: deno --version
4.438 spawn deno ENOENT
4.438 at ChildProcess._handle.onexit (node:internal/child_process:286:19)
4.438 at onErrorNT (node:internal/child_process:484:16)
4.438 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
4.438 errno: -2,
4.438 code: 'ENOENT',
4.438 syscall: 'spawn deno',
4.438 path: 'deno',
4.438 spawnargs: [ '--version' ],
4.438 originalMessage: 'spawn deno ENOENT',
4.438 shortMessage: 'Command failed with ENOENT: deno --version\nspawn deno ENOENT',
4.438 command: 'deno --version',
4.438 escapedCommand: 'deno --version',
4.438 exitCode: undefined,
4.438 signal: undefined,
4.438 signalDescription: undefined,
4.438 stdout: '',
4.438 stderr: '',
4.438 failed: true,
4.438 timedOut: false,
4.438 isCanceled: false,
4.438 killed: false
4.438 }
4.440 No globalVersion or semver not satisfied. globalVersion: undefined, versionRange: 1.37.0 - 1.44.4
4.443 Error getting cached binary Error: ENOENT: no such file or directory, open '/root/.config/netlify/deno-cli/version.txt'
4.443 at async open (node:internal/fs/promises:639:25)
4.443 at async Object.readFile (node:internal/fs/promises:1242:14)
4.443 at async DenoBridge.getCachedBinary (file:///usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/dist/node/bridge.js:67:29)
4.443 at async DenoBridge.getBinaryPath (file:///usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/dist/node/bridge.js:129:28)
4.443 at async Module.serve (file:///usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/edge-bundler/dist/node/server/server.js:197:5)
4.443 at async prepareServer (file:///usr/local/lib/node_modules/netlify-cli/dist/lib/edge-functions/proxy.js:120:28) {
4.443 errno: -2,
4.443 code: 'ENOENT',
4.443 syscall: 'open',
4.443 path: '/root/.config/netlify/deno-cli/version.txt'
4.443 }
4.447 - Setting up the Edge Functions environment. This may take a couple of minutes.
4.448 Downloading Deno CLI to /root/.config/netlify/deno-cli
16.51 ✔ Setting up the Edge Functions environment. This may take a couple of minutes.
16.87 Local version of types is outdated, updating: undefined
16.89 getBinaryVersion failed Error: Command failed with ENOENT: deno --version
16.89 spawn deno ENOENT
16.89 at ChildProcess._handle.onexit (node:internal/child_process:286:19)
16.89 at onErrorNT (node:internal/child_process:484:16)
16.89 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
16.89 errno: -2,
16.89 code: 'ENOENT',
16.89 syscall: 'spawn deno',
16.89 path: 'deno',
16.89 spawnargs: [ '--version' ],
16.89 originalMessage: 'spawn deno ENOENT',
16.89 shortMessage: 'Command failed with ENOENT: deno --version\nspawn deno ENOENT',
16.89 command: 'deno --version',
16.89 escapedCommand: 'deno --version',
16.89 exitCode: undefined,
16.89 signal: undefined,
16.89 signalDescription: undefined,
16.89 stdout: '',
16.89 stderr: '',
16.89 failed: true,
16.89 timedOut: false,
16.89 isCanceled: false,
16.89 killed: false
16.89 }
16.89 No globalVersion or semver not satisfied. globalVersion: undefined, versionRange: 1.37.0 - 1.44.4
16.89 Using cached Deno CLI from /root/.config/netlify/deno-cli/deno
21.63
21.64 › Warning: Error: Netlify CLI has terminated unexpectedly
21.64 › This is a problem with the Netlify CLI, not with your application.
21.64 › If you recently updated the CLI, consider reverting to an older version by running:
21.64 ›
21.64 › npm install -g netlify-cli@VERSION
21.64 ›
21.64 › You can use any version from https://ntl.fyi/cli-versions.
21.64 ›
21.64 › Please report this problem at https://ntl.fyi/cli-error including the error details below.
21.64 ›
21.64 › at error (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/command-helpers.js:168:19)
21.64 › at process.<anonymous> (file:///usr/local/lib/node_modules/netlify-cli/dist/commands/main.js:40:5)
21.64 › at process.emit (node:events:531:35)
21.64 › at process._fatalException (node:internal/process/execution:188:25)
21.64 › at throwUnhandledRejectionsMode (node:internal/process/promises:391:5)
21.64 › at processPromiseRejections (node:internal/process/promises:470:17)
21.64 › at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
21.86
21.86 › Warning: Error: Netlify CLI has terminated unexpectedly
21.86 › This is a problem with the Netlify CLI, not with your application.
21.86 › If you recently updated the CLI, consider reverting to an older version by running:
21.86 ›
21.86 › npm install -g netlify-cli@VERSION
21.86 ›
21.86 › You can use any version from https://ntl.fyi/cli-versions.
21.86 ›
21.86 › Please report this problem at https://ntl.fyi/cli-error including the error details below.
21.86 ›
21.86 › at error (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/command-helpers.js:168:19)
21.86 › at process.<anonymous> (file:///usr/local/lib/node_modules/netlify-cli/dist/commands/main.js:40:5)
21.86 › at process.emit (node:events:531:35)
21.86 › at process._fatalException (node:internal/process/execution:188:25)
21.86 › at throwUnhandledRejectionsMode (node:internal/process/promises:391:5)
21.86 › at processPromiseRejections (node:internal/process/promises:470:17)
21.86 › at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
22.90
22.90 › Warning: Error: Netlify CLI has terminated unexpectedly
22.90 › This is a problem with the Netlify CLI, not with your application.
22.90 › If you recently updated the CLI, consider reverting to an older version by running:
22.90 ›
22.90 › npm install -g netlify-cli@VERSION
22.90 ›
22.90 › You can use any version from https://ntl.fyi/cli-versions.
22.90 ›
22.90 › Please report this problem at https://ntl.fyi/cli-error including the error details below.
22.90 ›
22.90 › at error (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/command-helpers.js:168:19)
22.90 › at process.<anonymous> (file:///usr/local/lib/node_modules/netlify-cli/dist/commands/main.js:40:5)
22.90 › at process.emit (node:events:531:35)
22.90 › at process._fatalException (node:internal/process/execution:188:25)
22.90 › at throwUnhandledRejectionsMode (node:internal/process/promises:391:5)
22.90 › at processPromiseRejections (node:internal/process/promises:470:17)
22.90 › at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
23.51
23.51 › Warning: Error: Netlify CLI has terminated unexpectedly
23.51 › This is a problem with the Netlify CLI, not with your application.
23.51 › If you recently updated the CLI, consider reverting to an older version by running:
23.51 ›
23.51 › npm install -g netlify-cli@VERSION
23.51 ›
23.51 › You can use any version from https://ntl.fyi/cli-versions.
23.51 ›
23.51 › Please report this problem at https://ntl.fyi/cli-error including the error details below.
23.51 ›
23.51 › at error (file:///usr/local/lib/node_modules/netlify-cli/dist/utils/command-helpers.js:168:19)
23.51 › at process.<anonymous> (file:///usr/local/lib/node_modules/netlify-cli/dist/commands/main.js:40:5)
23.51 › at process.emit (node:events:531:35)
23.51 › at process._fatalException (node:internal/process/execution:188:25)
23.51 › at throwUnhandledRejectionsMode (node:internal/process/promises:391:5)
23.51 › at processPromiseRejections (node:internal/process/promises:470:17)
23.51 › at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
23.80 Error: EPERM: operation not permitted, stat '/proc/1/map_files/55b5cf0e0000-55b5cf0e4000'
23.80
23.80 System:
23.80 OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
23.80 CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13500H
23.80 Binaries:
23.80 Node: 20.17.0 - /usr/local/bin/node
23.80 Yarn: 1.22.22 - /usr/local/bin/yarn
23.80 npm: 10.8.2 - /usr/local/bin/npm
23.80 npmGlobalPackages:
23.80 netlify-cli: 17.34.2
23.80
------
This indicates an issue with setting up Deno CLI and it crashes as soon as the CLI starts. However, in the above case the CLI crashes only when visiting the Function’s URL.