https://linen.dev logo
Join Discord
Powered by
# mirrord-help
  • s

    scottillogical

    04/14/2025, 4:21 PM
    thanks thats very helpful. i added it to our instructions to actually do that first, so you can verify traffic stealing works, before trying to run your local server which IME is helpful for debugging
  • SQS Splitting Region error
    w

    waveywaves.

    04/14/2025, 7:56 PM
    getting the following region error in while using sqs splitting
    a
    • 2
    • 17
  • d

    DirtyMichael

    04/15/2025, 10:22 AM
    Hey folks, anyone have an example of running mirrord exec and starting a springboot appllication with gradle bootRun?
  • a

    Aviram Hassan

    04/15/2025, 10:23 AM
    https://metalbear.co/guides/how-to-debug-a-java-microservice/ closest we have I think
  • d

    DirtyMichael

    04/15/2025, 11:13 AM
    Thanks for sharing mate. I was hitting some issues with the gradle daemon when executing via cli but starting the application from the IDE worked fine. πŸ™‚
  • a

    Aviram Hassan

    04/15/2025, 11:14 AM
    oh, you probably want to use
    network.outgoing.ignore_localhost: true
  • a

    Aviram Hassan

    04/15/2025, 11:14 AM
    so gradle can communicate safely
  • Exec
    o

    ofirsh

    04/16/2025, 9:07 AM
    Hi all, we are hitting a weird issue where the command
    Copy code
    mirrord exec -- /bin/bash
    works in one namespace but not another, why is that? the error:
    Copy code
    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"
    a
    r
    • 3
    • 28
  • d

    DirtyMichael

    04/17/2025, 8:22 AM
    amazing!
  • Folks, I got a nice working example with
    d

    DirtyMichael

    04/17/2025, 1:40 PM
    Folks, I got a nice working example with a hello-world type service. My next thing to understand is how to make this work in the context of a multi service call chain. Is this something mirrord supports?
    a
    • 2
    • 5
  • Hi. I want usage mirrord in my cluster
    s

    Sehat1137

    04/23/2025, 2:57 PM
    Hi. I want usage mirrord in my cluster for demo to my command, but our security policy doesn’t allow pull image from different registry. I moved image to our registry, but I don’t see possibility to configure new image path. Is it possible?
    a
    • 2
    • 12
  • I encountered the error: "mirrord
    l

    lucifer

    04/23/2025, 4:26 PM
    I encountered the error: "mirrord process timed out" when trying to run the mirrord extension on IntelliJ. With the same setup, my colleague can run it without issues, but I get the above error. Could someone please help me with how to debug when using mirrord? Thank you!
    a
    • 2
    • 10
  • hello mirrord people. I have a question:
    r

    Raviand

    04/24/2025, 11:57 AM
    hello mirrord people. I have a question: I have a windows 11 machine with wsl install with ubuntu 20.4 (kubectl available in both systems) in Goland from Intellij I have everyting setup to run in the windows environment. (not using wsl host machine) does mirrord works with this setup or I need to setup the "run environment" in wsl? from the IDE I have the error "can't use on Windows without WSL"
    a
    • 2
    • 3
  • Hi, I am trying to use mirrord for my
    k

    Koko

    04/24/2025, 1:56 PM
    Hi, I am trying to use mirrord for my project and I am facing this issue. When I run:
    Copy code
    mirrord exec --target pod/llm-7cb6646d5b-cmz45 --agent-namespace healthtech --target-namespace healthtech echo 123
    or
    Copy code
    mirrord exec --target deployment/llm --agent-namespace myns --target-namespace myns echo 123
    I get following output:
    Copy code
    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.
    Copy code
    mirrord-agent-5q1rdfasxl-vrqvf   1/1     Running   0             5s
    The only log I was able to find in the pod before it disappeared is:
    Copy code
    agent ready - version 3.140.0
    a
    • 2
    • 12
  • Hello, is it possible to both use a
    s

    shellstacked

    04/25/2025, 12:18 PM
    Hello, is it possible to both use a local container and IDE debugging or is it only for local processes ? Or even better debug a remote copy of the pod
    a
    • 2
    • 2
  • Hi, I'm having this issue, attached the
    h

    Herber

    04/30/2025, 6:45 PM
    Hi, I'm having this issue, attached the full log and the config file node:internal/process/promises:394 triggerUncaughtException(err, true /* fromPromise */); ^ Error: connect Unknown system error -111 127.0.0.1:4200 - Local (0.0.0.0:0) at internalConnect (node:net:1115:16) at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) at node:net:1353:9 at process.processTicksAndRejections (node:internal/process/task_queues:85:11) { errno: -111, code: 'Unknown system error -111', syscall: 'connect', address: '127.0.0.1', port: 4200 } Any ideas on how to solve it? thanks. https://cdn.discordapp.com/attachments/950020257156833340/1367210380962693231/mirrord.json?ex=6813c164&is=68126fe4&hm=61adc1614c50197d00ccd4ca12faa0b37c6faafdef147525cb0c66a2d4206ebc& https://cdn.discordapp.com/attachments/950020257156833340/1367210381369409536/agent.log?ex=6813c164&is=68126fe4&hm=d5e221f096b2d5d9b42771137fc6f0b1e4f725e4c9ffe75057ae7c7618081f6d&
    a
    • 2
    • 17
  • Has anyone had any luck with NextJS in
    r

    r1chardo

    05/02/2025, 10:10 AM
    Has anyone had any luck with NextJS in VScode? Mirrord starts but it never reaches
    npm dev -p 3001
    Copy code
    * 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
    Copy code
    {
      "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"
    }
    a
    • 2
    • 2
  • Hi, I'm trying to run mirrord extension
    n

    Nexus

    05/08/2025, 9:10 AM
    Hi, I'm trying to run mirrord extension from vscode and it fails. while running it from cli works without issues. it doesn't let me pick a pod and then complains on not being able to get pods from kubectl https://cdn.discordapp.com/attachments/950020257156833340/1369964721691951114/image.png?ex=681dc692&is=681c7512&hm=63d6061e0ea84b527a6f6c78fc8b0221d4424dbac8df9c317fbf30e2dcb81bad&
    g
    e
    • 3
    • 15
  • Hi, when using included ENV, mirrord
    y

    yonidavidson

    05/11/2025, 10:50 AM
    Hi, when using included ENV, mirrord didn't "take over" the target pod for example this case: "env": { "include": ["OTEL_NODE_DISABLED_INSTRUMENTATIONS"] }
    a
    • 2
    • 8
  • y

    yonidavidson

    05/11/2025, 10:50 AM
    Intelij IDE plugin
  • Anyone tried running mirrord with
    s

    ssrdive

    05/14/2025, 6:12 AM
    Anyone tried running mirrord with RustRover? For me even when mirrord is enabled, the application runs locally instead of mirroring
    a
    • 2
    • 5
  • Hi, I am building a small stateful
    j

    Jeroen Rinzema

    05/14/2025, 8:22 AM
    Hi, I am building a small stateful application using the ETCD raft protocol. I am wanting to use mirrord to speed up the development but am unable to do so due to file locks being created by my application. The application indicates that the wal log is already locked when trying to take over a pod. Is there maybe a way on how I could work around this or maybe restart the pod when trying to start the application?
    a
    • 2
    • 4
  • r

    Raman

    05/19/2025, 7:53 AM
    message has been deleted
  • I am experimenting with mirrord, and I
    r

    Raman

    05/19/2025, 7:56 AM
    I am experimenting with mirrord, and I thought i understood a lot of how it works. Where I couldn't figure out is: How to use Workload Identity with this setup? I can see the workload identity token being injected into agent pod. Though the connection to other services i.e. Azure Storage Queues fail with Client Assertion. Wondering if there is anyone who has done setup where Workload Identity/ Service Account" have been used. { "target": { "path": "pod/app-dev-charts-api-95874f8d5-b72ws", "namespace": "app-dev" }, "feature": { "env": true, "fs": "read", "network": true }, "agent": { "log_level": "info", "labels": { "app": "workload", "azure.workload.identity/use": "true" }, "namespace": "app-dev", "service_account": "sa-app-dev" }, "kube_context": "au-aks-ctspoke-npd" }
    a
    • 2
    • 26
  • Hi i'm try to use the vscode exetions
    a

    Amir

    05/20/2025, 8:32 AM
    Hi i'm try to use the vscode exetions for mirrord and get the following error 2025-05-20T08:24:03.524216Z ERROR mirrord::connection: 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 }) 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" } }
    a
    • 2
    • 27
  • Hello everyone.
    w

    Whites

    05/26/2025, 12:38 PM
    Hello everyone. I'm trying to run mirrord with --steal towards a deployment with 2 replicas, but for some reason I only get some of the calls I make forwarded to the local process. In other words, If I run a sequence of
    curl
    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
    Copy code
    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>
    a
    • 2
    • 4
  • k

    Kiran Kumar

    06/11/2025, 1:45 PM
    I am not able to make it work on rustrover. The intelij plugin does not show the prompt to select the pod.
  • How to fix it ?
    k

    Kiran Kumar

    06/11/2025, 1:46 PM
    How to fix it ?
    a
    t
    • 3
    • 18
  • Is there any way to silence the output
    s

    Sora

    06/11/2025, 1:49 PM
    Is there any way to silence the output from mirrord? Or only extract the actual command output?
    a
    • 2
    • 5
  • Hi there, we’re facing an issue where
    a

    Amir

    06/24/2025, 8:31 AM
    Hi there, we’re facing an issue where some developers (that are using a mac m3 with 16GB of RAM) are stuck in the project start process when running debug with Mirrod. If we disable the Mirrod extension, the issue goes away. Do you have any ideas on how to resolve this?
    a
    • 2
    • 12