Skip to content

Unable to run the program #3241

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

Open
ChengZhiMeow opened this issue May 18, 2025 · 3 comments
Open

Unable to run the program #3241

ChengZhiMeow opened this issue May 18, 2025 · 3 comments
Labels

Comments

@ChengZhiMeow
Copy link

Bug description

Error starting gitbook on Windows Server 2025 24H2 (26100.2605)

How to reproduce

  1. git clone https://github.com/GitbookIO/gitbook
  2. cd gitbook
  3. bun install
  4. bun dev:v2

Additional context

D:\gitbook>bun dev:v2
$ turbo run dev:v2
turbo 2.5.0

 WARNING  stale pid file at "C:\\Users\\CHENGZ~1\\AppData\\Local\\Temp\\3\\turbod\\186dcc11659cd2c5\\turbod.pid"
• Packages in scope: @gitbook/cache-do, @gitbook/cache-tags, @gitbook/colors, @gitbook/emoji-codepoints, @gitbook/icons, @gitbook/openapi-parser, @gitbook/react-contentkit, @gitbook/react-math, @gitbook/react-openapi, gitbook, gitbook-v2
• Running dev:v2 in 11 packages
• Remote caching disabled
@gitbook/cache-do:generate: cache miss, executing 507bab8dfc6a8d0f
@gitbook/emoji-codepoints:generate: cache hit, replaying logs 316ff36b7300f406
@gitbook/emoji-codepoints:generate: $ bun ./build.ts
@gitbook/icons:generate: cache hit, replaying logs ab71cb1ea79ea76f
@gitbook/icons:generate: $ bun ./bin/gen-list.js
@gitbook/icons:generate: Generated 1885 icons
@gitbook/cache-do:generate: $ wrangler types
@gitbook/cache-do:generate:
@gitbook/cache-do:generate:  ⛅️ wrangler 4.10.0 (update available 4.15.2)
@gitbook/cache-do:generate: ---------------------------------------------
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: Generating project types...
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: declare namespace Cloudflare {
@gitbook/cache-do:generate:     interface Env {
@gitbook/cache-do:generate:             CACHE: DurableObjectNamespace /* CacheObject */;
@gitbook/cache-do:generate:     }
@gitbook/cache-do:generate: }
@gitbook/cache-do:generate: interface Env extends Cloudflare.Env {}
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: Generating runtime types...
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: *** Received structured exception #0xc0000005: access violation; stack: 7ffdf88432f7 7ff7f9de822a 7ff7f9de82f3 7ff7f9d8d05c 7ff7f9d8d007 7ff7f92dc8d3 7ff7f92dcbef 7ff7f7d73856 7ff7f9457f0f 7ff7f945f0b6 7ff7f9458413 7ff7f945f0b6 7ff7f9455dac 7ff7f7d61fc7 7ff7fa58ffbf 7ffe0e28e8d6 7ffe0fdffbcb
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: X [ERROR] The Workers runtime failed to start. There is likely additional logging output above.
@gitbook/cache-do:generate:
@gitbook/cache-do:generate:
@gitbook/cache-do:generate: If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
@gitbook/cache-do:generate: Note that there is a newer version of Wrangler available (4.15.2). Consider checking whether upgrading resolves this error.
@gitbook/cache-do:generate: 🪵  Logs were written to "C:\Users\ChengZhiYa\AppData\Roaming\xdg.config\.wrangler\logs\wrangler-2025-05-18_04-04-17_592.log"
@gitbook/cache-do:generate: error: script "generate" exited with code 1
@gitbook/cache-do:generate: ERROR: command finished with error: command (D:\gitbook\packages\cache-do) C:\nvm4w\nodejs\bun.cmd run generate exited (1)
@gitbook/cache-do#generate: command (D:\gitbook\packages\cache-do) C:\nvm4w\nodejs\bun.cmd run generate exited (1)

 Tasks:    2 successful, 3 total
Cached:    2 cached, 3 total
  Time:    1.511s
Failed:    @gitbook/cache-do#generate

 ERROR  run failed: command  exited (1)
error: script "dev:v2" exited with code 1
@Shriom-Trivedi
Copy link

@ChengZhiMeow, you can try bun add -g wrangler@latest or npm install -g wrangler@latest depending upon what you are using.

@ChengZhiMeow
Copy link
Author

I have already tried it, and it didn't work. The same error still persists.

@Shriom-Trivedi
Copy link

@ChengZhiMeow , check if package cache-do exist in your node_modules, if it’s not there you can build it manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants