scottillogical
04/14/2025, 4:21 PMwaveywaves.
04/14/2025, 7:56 PMDirtyMichael
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 AM