Open asasinmode opened 6 days ago
Same. I’m using Windows 11 with SvelteKit.
It works fine on Windows 10.
I seem to be encountering the same issue as the OP. I was working on an old project, and when I updated it and ran it (3.61.0 works, higher than that it breaks), I encountered a similar issue. So, I created a new project using “npx create-cloudflare@latest” and made a “hello world js” project. Here is what I got from the logs:
--- 2024-06-30T19:28:07.425Z debug
🪵 Writing logs to "C:\Users\...\.wrangler\logs\wrangler-2024-06-30_19-28-07_302.log"
---
--- 2024-06-30T19:28:07.425Z debug
Failed to load .env file ".env": Error: ENOENT: no such file or directory, open 'C:\Cycles of Seasons\100 - Virtues\110 - Demiourgia\test-wrangler\hello-world-js\.env'
at Object.openSync (node:fs:573:18)
at Object.readFileSync (node:fs:452:35)
at tryLoadDotEnv (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:158768:72)
at loadDotEnv (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:158777:12)
at C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:202740:20
at C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:162911:16
at maybeAsyncResult (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:161132:44)
at C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:162910:14
at C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:161119:22
at Array.reduce (<anonymous>) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\...\\test-wrangler\\hello-world-js\\.env'
}
---
--- 2024-06-30T19:28:07.432Z log
⛅️ wrangler 3.62.0
[38;2;255;136;0m-------------------[39m
---
--- 2024-06-30T19:28:07.450Z debug
Metrics dispatcher: Posting data {"type":"event","name":"run dev","properties":{"local":true,"usesTypeScript":false}}
---
--- 2024-06-30T19:28:07.455Z debug
Failed to load .env file "C:\...\test-wrangler\hello-world-js\.dev.vars": Error: ENOENT: no such file or directory, open 'C:\...\test-wrangler\hello-world-js\.dev.vars'
at Object.openSync (node:fs:573:18)
at Object.readFileSync (node:fs:452:35)
at tryLoadDotEnv (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:158768:72)
at loadDotEnv (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:158777:12)
at getVarsForDev (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:200152:18)
at getBindings (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:207740:10)
at getBindingsAndAssetPaths (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:207621:20)
at getDevReactElement (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:207276:40)
at startDev (C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:207343:60)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\...\\test-wrangler\\hello-world-js\\.dev.vars'
}
---
--- 2024-06-30T19:28:07.571Z log
[2m⎔ Starting local server...[22m
---
--- 2024-06-30T19:28:07.580Z debug
*** Received structured exception #0xc0000005: access violation; stack: 7ffcf4ed2f57 7ff7e9e1643b 7ff7e9e16503 7ff7e9e0588c 7ff7e9e05837 7ff7e9649c1e 7ff7e9649f2f 7ff7e8531ad6 7ff7e85318ba 7ff7e97cb6ef 7ff7e97d28a6 7ff7e97cbc0c 7ff7e97d28a6 7ff7e97c957c 7ff7e8521551 7ff7eaf00f7f 7ffd07c2257c 7ffd0824af27
---
--- 2024-06-30T19:28:07.632Z debug
*** Received structured exception #0xc0000005: access violation; stack: 7ffcf4ed2f57 7ff7e9e1643b 7ff7e9e16503 7ff7e9e0588c 7ff7e9e05837 7ff7e9649c1e 7ff7e9649f2f 7ff7e8531ad6 7ff7e85318ba 7ff7e97cb6ef 7ff7e97d28a6 7ff7e97cbc0c 7ff7e97d28a6 7ff7e97c957c 7ff7e8521551 7ff7eaf00f7f 7ffd07c2257c 7ffd0824af27
---
When starting the server:
C:\...\test-wrangler\hello-world-js\node_modules\wrangler\wrangler-dist\cli.js:29747
throw a;
^
MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.
at #assembleAndUpdateConfig (C:\...\test-wrangler\hello-world-js\node_modules\miniflare\dist\src\index.js:9161:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Mutex.runWith (C:\...\test-wrangler\hello-world-js\node_modules\miniflare\dist\src\index.js:3521:16) {
code: 'ERR_RUNTIME_FAILURE',
cause: undefined
}
I have the same specifications as the OP: Edition Windows 11 Pro OS Version 10.0.22631
And i was also able to replicate OP’s issue:
ERROR *** Received structured exception #0xc0000005: access violation; stack: 7ffcf4ed2f57 7ff7ce37643b 7ff7ce376503 7ff7ce36588c 7ff7ce365837 7ff7cdba9c1e 7ff7cdba9f2f 7ff7cca91ad6 7ff7cca918ba 7ff7cdd2b6ef 7ff7cdd328a6 7ff7cdd2bc0c 7ff7cdd328a6 7ff7cdd2957c 7ff7cca81551 7ff7cf460f7f 7ffd07c2257c 7ffd0824af27
The addresses I get from the OP’s issue are the same when replicating it. But the one for the hello-world-js is slightly different. Here is a side by side comparison:
Hello-world-js stack:
7ffcf4ed2f57 7ff7e9e1643b 7ff7e9e16503 7ff7e9e0588c 7ff7e9e05837 7ff7e9649c1e 7ff7e9649f2f 7ff7e8531ad6 7ff7e85318ba 7ff7e97cb6ef 7ff7e97d28a6 7ff7e97cbc0c 7ff7e97d28a6 7ff7e97c957c 7ff7e8521551 7ff7eaf00f7f 7ffd07c2257c 7ffd0824af27
OP stack:
7ffcf4ed2f57 7ff7ce37643b 7ff7ce376503 7ff7ce36588c 7ff7ce365837 7ff7cdba9c1e 7ff7cdba9f2f 7ff7cca91ad6 7ff7cca918ba 7ff7cdd2b6ef 7ff7cdd328a6 7ff7cdd2bc0c 7ff7cdd328a6 7ff7cdd2957c 7ff7cca81551 7ff7cf460f7f 7ffd07c2257c 7ffd0824af27
It sounds like the recent bump to workerd (that happened at Wrangler 3.62.0) might have introduced a regression that only affects Windows 11? (Our local Windows environments are currently only Windows 10; and our CI is running on Windows Server 2022). We are looking to get a Windows 11 install up and running to test this.
Which Cloudflare product(s) does this pertain to?
Miniflare
What version(s) of the tool(s) are you using?
3.20240620.0 [Miniflare]
What version of Node are you using?
22.3.0
What operating system and version are you using?
Windows 11 10.0.22631
Describe the Bug
Observed behavior
Starting dev server errors with (full logs attached with some additional console logs)
Then nothing else happens,
http://localhost:3000
shows nuxt login page and I stop the processExpected behavior
No error
Steps to reproduce
pnpx nuxthub init tmp
cd tmp
pnpm dev
This is my first encounter with cloudflare ecosystem and it's through the Nuxt Hub project. Sorry but I don't know how to use cloudflare tools outside of it.
The
wrangler.toml
is generated inside.data/hub/wrangler.toml
I don't know of any worker code.
I'm guessing it's not reproducible to be honest. Initially I created a Nuxt Hub project in the same way and was working on it with no issues, everything worked fine. At some point in development however I was running into errors and while trying to resolve them I wanted to clean start my project and deleted various directories like
.nuxt
,.data
and I think inside of a project there was a.wrangler
directory that seemed to have one or 2 empty subdirectories. Additionally I deleted localpnpm
store and I think anything related I could find in%localappdata%
and%tmp%
to clear cache in case that was causing the errors I was experiencing (nothing cloudflare related, just some type errors in packages). It fixed the errors I was experiencing but I think from then on runningpnpm dev
showed that error and now it happens in all fresh Nuxt Hub projects.I'd appreciate guidance on how to deal with it. Tried my best to add logs to find out what's going on, here are the changes I made to
node_modules\.pnpm\miniflare@3.20240620.0\node_modules\miniflare\dist\src\index.js
. Don't know how to access source files, hope they context is enough to identify them. In the logs you can seeconsole.log("ch2", maybeSocketPorts);
is never reachedPlease provide a link to a minimal reproduction
No response
Please provide any relevant error logs