Kuljeet Kumar
03/25/2025, 4:28 AMK3RN3L_P4N1C
04/02/2025, 8:37 AM2025-04-02T08:33:52.103630Z WARN operator_context::target::watcher: Watcher stream encountered an error and will resume with backoff, stream: SingleWatchTask { field_selector: None, label_selector: Some("app.kubernetes.io/instance=notification-api,app.kubernetes.io/name=notification-api,operator.metalbear.co/owner!=mirrord-operator"), target: Multiple { labels: FormattedLabels("app.kubernetes.io/instance=notification-api,app.kubernetes.io/name=notification-api,operator.metalbear.co/owner!=mirrord-operator"), namespace: "assisto" }, resource_url: "/api/v1/namespaces/assisto/pods" }, error: watch stream failed: Error reading events stream: ServiceError: error reading a body from connection
at operator/context/src/target/watcher.rs:169 on ThreadId(2)
K3RN3L_P4N1C
04/02/2025, 8:38 AMK3RN3L_P4N1C
04/02/2025, 8:39 AMbradschwartz
04/02/2025, 3:08 PM$ mirrord exec -- iex
iex(1)> :public_key.cacerts_get
** (EXIT from #PID<0.108.0>) shell process exited with reason: an exception was raised:
** (ArgumentError) construction of binary failed: segment 2 of type 'binary': expected a binary but got: [70, 97, 105, 108, 101, 100, 32, 116, 111, 32, 108, 111, 97, 100, 32, 99, 97, 99, 101, 114, 116, 115, 58, 32, ~c"operation failed with status 137"]
(elixir 1.17.3) lib/exception.ex:2456: ErlangError.error_info/3
(elixir 1.17.3) lib/exception.ex:2413: ErlangError.normalize/2
(elixir 1.17.3) lib/exception.ex:192: Exception.blame/3
(iex 1.17.3) lib/iex/evaluator.ex:392: IEx.Evaluator.print_error/3
(iex 1.17.3) lib/iex/evaluator.ex:298: IEx.Evaluator.parse_eval_inspect/4
(iex 1.17.3) lib/iex/evaluator.ex:187: IEx.Evaluator.loop/1
(iex 1.17.3) lib/iex/evaluator.ex:32: IEx.Evaluator.init/5
(stdlib 6.1.1) proc_lib.erl:329: :proc_lib.init_p_do_apply/3
In a non-mirrord iex session you'll get a non-error back. Is anyone aware of anything that may have changed?Paws
04/04/2025, 12:28 PMTroy
04/08/2025, 10:50 PMFailed to create mirrord-agent: ApiError: Unauthorized: Unauthorized (ErrorResponse { status: "Failure", message: "Unauthorized", reason: "Unauthorized", code: 401 })
when trying to run anything via the plugin.Max
04/09/2025, 1:01 PM{
"network": {
"incoming": {
"mode": "steal",
"http_filter": {
"path_filter": "^(?!/v1/health/internal)"
}
},
"outgoing": true
}
}
}
but it seems i'm not getting logs anymore ?
Is that correct ?scottillogical
04/11/2025, 6:39 PM$| mirrord exec --context=zc-carsharing-dev mirrord exec -a scott -n scott -t deployment/member-web/container/member-web yarn start
When targeting multi-pod deployments, mirrord impersonates the first pod in the deployment.
Support for multi-pod impersonation requires the mirrord operator, which is part of mirrord for Teams.
You can get started with mirrord for Teams at this link: https://mirrord.dev/docs/overview/teams/?utm_source=multipodwarn&utm_medium=cli
* Running command: mirrord exec yarn start
* mirrord will target: deployment/member-web/container/member-web, no configuration file was loaded
* 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 be mirrored
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
* internal proxy: logs will be written to /var/folders/gs/8hpnmxmn2vgfdblcp8hbyqg00000gp/T/mirrord-intproxy-1744396438-w8BSItk.log
⠤ mirrord exec
✓ running on latest (3.137.0)!
✓ ready to launch process
✓ layer extracted
✓ operator not found
✓ agent pod created
✓ pod is ready
2025-04-11T18:34:08.215605Z ERROR mirrord::connection: error: Failed to create mirrord-agent: ApiError: jobs.batch is forbidden: User "system:serviceaccount:scott:default" cannot create resource "jobs" in API group "batch" in the namespace "scott": Forbidden (ErrorResponse { status: "Failure", message: "jobs.batch is forbidden: User \"system:serviceaccount:scott:default\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"scott\"", reason: "Forbidden", code: 403 })
am i doing something obvious wrong or does mirrord require you to add perms to the default service account?
creating a container like so works mirrord exec -a scott telnet cheetah-postgresql.scott 5432
scottillogical
04/14/2025, 2:56 PMmirrord exec -a scott --steal -t deployment/member-web/container/member-web sleep 400
i would think all the requests to the remote deployment would fail? but in my testing they dontAviram Hassan
04/14/2025, 2:58 PMAviram Hassan
04/14/2025, 2:58 PMscottillogical
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 AM