DirtyMichael
04/15/2025, 10:22 AMAviram Hassan
04/15/2025, 10:23 AMDirtyMichael
04/15/2025, 11:13 AMAviram Hassan
04/15/2025, 11:14 AMnetwork.outgoing.ignore_localhost: true
Aviram Hassan
04/15/2025, 11:14 AMofirsh
04/16/2025, 9:07 AMmirrord exec -- /bin/bash
works in one namespace but not another, why is that?
the error:
mirrord exec -- /bin/bash
New mirrord version available: 3.138.0. To update, run: `"brew upgrade metalbear-co/mirrord/mirrord"`.
To disable version checks, set env variable MIRRORD_CHECK_VERSION to 'false'.
* Running binary "/var/folders/xj/4xt3127542728_rxnc_z5b6r0000gn/T/mirrord-bin-ghu3278mz/bin/bash" with arguments: [].
* mirrord will run without a target, no configuration file was loaded
* operator: the operator will be used if possible
* env: all environment variables will be fetched
* fs: file operations will default to read only from the remote
* incoming: incoming traffic will be mirrored
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
⠉ mirrord exec
✓ update to 3.138.0 available
x mirrord exec
✓ update to 3.138.0 available
✓ ready to launch process
✓ layer extracted
✓ operator not found
✓ agent pod created
✓ pod is ready
✓ arm64 layer library extracted
✓ config summary Error: × Failed to execute binary `/var/folders/
│ xj/4xt3127542728_rxnc_z5b6r0000gn/T/mirrord-bin-ghu3278mz/bin/bash`
│ with args ["/bin/bash"]
I can see the agent pod starts as expected with the pod log being "agent is ready"DirtyMichael
04/17/2025, 8:22 AMDirtyMichael
04/17/2025, 1:40 PMSehat1137
04/23/2025, 2:57 PMlucifer
04/23/2025, 4:26 PMRaviand
04/24/2025, 11:57 AMKoko
04/24/2025, 1:56 PMmirrord exec --target pod/llm-7cb6646d5b-cmz45 --agent-namespace healthtech --target-namespace healthtech echo 123
or
mirrord exec --target deployment/llm --agent-namespace myns --target-namespace myns echo 123
I get following output:
mirrord exec
✓ running on latest (3.140.0)!
⠒ preparing to launch process
✓ layer extracted
⠉ mirrord exec
✓ running on latest (3.140.0)!
⠤ preparing to launch process
✓ layer extracted
x mirrord exec
✓ running on latest (3.140.0)!
x preparing to launch process
✓ layer extracted
✓ operator not found
✓ agent pod healthtech/mirrord-agent-bquydkyrt2-bbm2q created
✓ pod is ready
Error: × Failed to communicate with the agent: timeout
I've searched everywhere but couldn't find any solution. Even in this channel there are 4 threads with same issue but still could not find any solution. Can someone help me with this?
The pod starts and is in running state for several seconds.
mirrord-agent-5q1rdfasxl-vrqvf 1/1 Running 0 5s
The only log I was able to find in the pod before it disappeared is:
agent ready - version 3.140.0
shellstacked
04/25/2025, 12:18 PMHerber
04/30/2025, 6:45 PMr1chardo
05/02/2025, 10:10 AMnpm dev -p 3001
* Running command: ./node_modules/.bin/next dev -p 3001
* mirrord will target: service/app-dev-service-dc961645, the configuration file was loaded from xxx
* mirrord will run without the mirrord Operator
* env: all remote environment variables will be fetched
* fs: file operations will default to read from the remote
* incoming: incoming traffic will be stolen
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
* internal proxy: logs will be written to /var/folders/9w/mn_jvst936z08pnj1xsx0by40000gn/T/mirrord-intproxy-1746180472-zLPxJMa.log
⠄ mirrord exec
✓ running on latest (3.141.0)!
✓ ready to launch process
✓ layer extracted
✓ operator not found
✓ agent pod app-dev/mirrord-agent-kznolrogb1-hnvxt created
✓ pod is ready
✓ arm64 layer library extracted
✓ config summary
launch.json
{
"type": "node",
"request": "launch",
"name": "Next.js: Debug with mirrord",
"runtimeExecutable": "mirrord",
"runtimeArgs": [
"exec",
"--config-file",
"${workspaceFolder}/.mirrord/mirrord.json",
"--"
],
"program": "${workspaceFolder}/node_modules/.bin/next",
"args": [
"dev",
"-p",
"3001"
],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal"
}
Nexus
05/08/2025, 9:10 AMyonidavidson
05/11/2025, 10:50 AMyonidavidson
05/11/2025, 10:50 AMssrdive
05/14/2025, 6:12 AMJeroen Rinzema
05/14/2025, 8:22 AMRaman
05/19/2025, 7:53 AMRaman
05/19/2025, 7:56 AMAmir
05/20/2025, 8:32 AMdefault
for targetless run.: 400 Bad Request (ErrorResponse { status: "Failure", message: "Cannot find namespace default
for targetless run.", reason: "400 Bad Request", code: 400 })
at mirrord/cli/src/connection.rs:112
Error: × mirrord operator API failed: creating a websocket connection failed with
│ ApiError: Cannot find namespace default
for targetless run.: 400 Bad
│ Request (ErrorResponse { status: "Failure", message: "Cannot find
│ namespace default
for targetless run.", reason: "400 Bad Request", code:
│ 400 })
but i gave it a namespace this is my mirrord config
{
"feature": {
"network": {
"incoming": "mirror",
"outgoing": true
},
"fs": "read",
"env": true
},
"operator": false,
"agent": {
"namespace": "dev-amir-prompt"
},
"target": {
"namespace": "dev-amir-prompt"
}
}Whites
05/26/2025, 12:38 PMcurl
requests to the remote endpoint, I only get about 1/2 of them in my local service.
Can it be because the deployment has 2 replicas?
This is how I run mirrord
mirrord exec --steal --no-remote-dns --no-outgoing --agent-log-level debug -n <my namespace> -a <my namespace> --target deployment/<my deployment>/container/<my container> -- <my command here>
Kiran Kumar
06/11/2025, 1:45 PMKiran Kumar
06/11/2025, 1:46 PMSora
06/11/2025, 1:49 PMAmir
06/24/2025, 8:31 AMBrad
07/18/2025, 6:03 AM{
"timestamp": "2025-07-18T05:54:45.794723Z",
"level": "ERROR",
"fields": {
"error": "io error: Address already in use (os error 98)"
},
"target": "mirrord_agent::entrypoint",
"span": {
"args": "Args { mode: Ephemeral { mesh: None }, communicate_port: 51234, communication_timeout: 360, network_interface: None, metrics: None, test_error: false, operator_tls_cert_pem: None, is_mesh: true, ipv6: false }",
"name": "start_agent"
},
"spans": [
{
"args": "Args { mode: Ephemeral { mesh: None }, communicate_port: 51234, communication_timeout: 360, network_interface: None, metrics: None, test_error: false, operator_tls_cert_pem: None, is_mesh: true, ipv6: false }",
"name": "start_agent"
}
],
"threadId": "ThreadId(1)"
}
I don't have ttl
set, but I do have
communication_timeout: 360
startup_timeout: 360
Will these keep the agent alive? Or is there a recommended way to make this work? ThanksBrad
07/21/2025, 7:17 AM