cloudflare / cloudflare/workerd

🐛 BUG:wrangler 3.15.0 still not work on Raspberry Pi OS bookworm

Open
#5,013 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

### Which Cloudflare product(s) does this pertain to?

Pages

### What version(s) of the tool(s) are you using?

3.15.0

### What version of Node are you using?

20.9.0

### What operating system are you using?

Linux(Raspberry Pi OS (Debian GNU/Linux 12 (bookworm)))

### Describe the Bug

I installed Wrangler 3.15.0 on Raspberry Pi OS 12 (bookworm) and started a development server with `npx wrangler pages dev` to test the Cloudflare pages Function, but I get the following error Failure.

```
tadashi@raspberrypi:~/dev/astro_test/new_blog $ npx wrangler pages dev --proxy 3000 -- npm run dev -- --host --port 3000
Running npm run dev -- --host --port 3000...
▲ [WARNING] No compatibility_date was specified. Using today's date: 2023-10-31.
Pass it in your terminal:
/`/`/`
--compatibility-date=2023-10-31
/`/`/`
See https://developers.cloudflare.com/workers/platform/compatibility-dates/
for more information.
Compiling worker to "/home/tadashi/dev/astro_test/new_blog/.wrangler/tmp/pages-EyLfBA/functionsWorker-0.02272155090298167.mjs"...
✨⛅ Compiled Worker successfully
⛅-️ wrangler 3.15.0
-------------------
▲ [WARNING] --local is no longer required and will be removed in a future version.
`wrangler dev` now uses the local Cloudflare Workers runtime by default. 🎉
Using vars defined in .dev.vars
Your worker has access to the following bindings:
- Vars:
- MICROCMS_SERVICE_DOMAIN: "(hidden)"
- MICROCMS_API_KEY: "(hidden)"
- SITE_TITLE: "(hidden)"
- SITE_DESCRIPTION: "(hidden)"
- TWITTER: "(hidden)"
- PIXIV: "(hidden)"
- FANBOX: "(hidden)"
- DEVIANTART: "(hidden)"
- CARD_IMAGE: "(hidden)"
⎔ Starting local server...
[proxy]:
> @example/blog@0.0.1 dev
> astro dev --host --port 3000
external/com_google_tcmalloc/tcmalloc/system-alloc.cc:661] MmapAligned() failed - unable to allocate with tag (hint, size, alignment) - is something limiting address placement? 0x177740000000 1073741824 1073741824 @ 0x558cd24114 0x558cd205b0 0x558cd1fcfc 0x558cd004dc 0x558cd1d2b8 0x558cd1d07c 0x558ccf56b4 0x558cc61444 0x558cc88568 0x558bae1400 0x558bae1168 0x558bae4b50 0x558ccec7e0 0x7fb126783c
external/com_google_tcmalloc/tcmalloc/arena.cc:58] FATAL ERROR: Out of memory trying to allocate internal tcmalloc data (bytes, object-size); is something preventing mmap from succeeding (sandbox, VSS limitations)? 131072 640 @ 0x558cd24478 0x558cd0056c 0x558cd1d2b8 0x558cd1d07c 0x558ccf56b4 0x558cc61444 0x558cc88568 0x558bae1400 0x558bae1168 0x558bae4b50 0x558ccec7e0 0x7fb126783c
✘ [ERROR] Error reloading local server: Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete]
(node:internal/stream_base_commons:94:16) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
[proxy]: 🚀 astro v3.4.0 started in 1150ms
┃ Local http://localhost:3000/
┃ Network http://192.168.1.81:3000/
@ 12 0:-* 4h4m 0.46 4x0.9GHz 3.7G35% 470G3% 2023-10-31 15:21:00
```
https://github.com/cloudflare/workers-sdk/issues/3457 claims to have solved the problem, but it does not appear to be resolved.
I have also done `sudo apt install libc++-dev ` and `sudo apt install libc++1`, but they don't seem to be working at all.
Is there a solution? If there isn't, you should clearly say "Raspberry Pi OS is not supported".

### Please provide a link to a minimal reproduction

_No response_

### Please provide any relevant error logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.