You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c78712e
Browse filesBrowse the repository at this point in the historyBrowse files
])("tells the agent why its own server browser failed ($clientId)",({ clientId, shown })=>
292
+
{
293
+
clientId: SERVER_BROWSER_AUTOMATION_CLIENT_ID,
294
+
shown: true,
295
+
message: "page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:4719/",
296
+
},
297
+
{
298
+
clientId: "client-1",
299
+
shown: false,
300
+
message: "page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:4719/",
301
+
},
302
+
{
303
+
clientId: SERVER_BROWSER_AUTOMATION_CLIENT_ID,
304
+
shown: true,
305
+
message: newPreviewBrowserRootError().message,
306
+
},
307
+
])("preserves server browser failure guidance ($clientId)",({ clientId, shown, message })=>
294
308
Effect.scoped(
295
309
Effect.gen(function*(){
296
310
constbroker=yield*makeBroker;
@@ -303,7 +317,7 @@ it.effect.each([
303
317
ok: false,
304
318
error: {
305
319
_tag: "PreviewAutomationExecutionError",
306
-
message: "page.goto: net::ERR_CONNECTION_REFUSED at http://localhost:4719/",
Copy file name to clipboardExpand all lines: apps/server/src/preview/PreviewBrowserHost.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ export class PreviewBrowserRootError extends Schema.TaggedError<PreviewBrowserRo
73
73
{},
74
74
){
75
75
overridegetmessage(): string{
76
-
return"Chrome will not start its sandbox as root, so T3's browser cannot run while the T3 server runs as root. Run the server as a nonroot user (for example `User=` in its systemd service), or set `T3CODE_SERVER_BROWSER_SANDBOX=0` to run the browser unsandboxed as root.";
76
+
return"T3 server is running as root; Chrome's sandbox cannot start. Run T3 as a nonroot user. Otherwise set `T3CODE_SERVER_BROWSER_SANDBOX=0` in the T3 server's environment and restart the server; this disables Chrome's sandbox. Manual: `T3CODE_SERVER_BROWSER_SANDBOX=0 t3 serve`. Systemd: add `Environment=T3CODE_SERVER_BROWSER_SANDBOX=0` under `[Service]`, reload systemd, then restart the service. `t3 browser setup` cannot fix root sandboxing.";
0 commit comments