gpt4free-ts icon indicating copy to clipboard operation
gpt4free-ts copied to clipboard

mac m1芯片运行amd64版本镜像报错,无法启动浏览器

Open zzzkl opened this issue 1 year ago • 10 comments

[email protected] start ts-node index.ts

Now listening: 127.0.0.1:3000 Error: Failed to launch the browser process! undefined qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [78:78:0608/011342.282710:ERROR:nacl_fork_delegate_linux.cc(313)] Bad NaCl helper startup ack (0 bytes) qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [47:128:0608/011342.422367:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory [47:47:0608/011342.632939:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY [47:47:0608/011342.633036:ERROR:env.cc(255)] The platform failed to initialize. Exiting.

TROUBLESHOOTING: https://pptr.dev/troubleshooting

at ChildProcess.onClose (/usr/src/app/node_modules/@puppeteer/browsers/src/launch.ts:398:11)
at ChildProcess.emit (node:events:525:35)
at ChildProcess.emit (node:domain:489:12)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)

Error: Failed to launch the browser process! qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [69:69:0608/011342.277389:ERROR:nacl_fork_delegate_linux.cc(313)] Bad NaCl helper startup ack (0 bytes) qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [44:126:0608/011342.418070:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory [44:44:0608/011342.633099:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY [44:44:0608/011342.633198:ERROR:env.cc(255)] The platform failed to initialize. Exiting.

TROUBLESHOOTING: https://pptr.dev/troubleshooting

at Interface.onClose (/usr/src/app/node_modules/@puppeteer/browsers/src/launch.ts:398:11)
at Interface.emit (node:events:525:35)
at Interface.emit (node:domain:489:12)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:525:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

Error: Failed to launch the browser process! qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [86:86:0608/011342.303118:ERROR:nacl_fork_delegate_linux.cc(313)] Bad NaCl helper startup ack (0 bytes) qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped [50:136:0608/011342.442557:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory [50:50:0608/011342.634191:ERROR:ozone_platform_x11.cc(239)] Missing X server or $DISPLAY [50:50:0608/011342.634299:ERROR:env.cc(255)] The platform failed to initialize. Exiting.

TROUBLESHOOTING: https://pptr.dev/troubleshooting

at Interface.onClose (/usr/src/app/node_modules/@puppeteer/browsers/src/launch.ts:398:11)
at Interface.emit (node:events:525:35)
at Interface.emit (node:domain:489:12)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:525:35)
at Socket.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

zzzkl avatar Jun 08 '23 01:06 zzzkl