Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: fails to run scripts/local_config to local run/debug aggkit #103

Closed
joanestebanr opened this issue Jan 13, 2025 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@joanestebanr
Copy link
Contributor

joanestebanr commented Jan 13, 2025

Bug Report

Description

Script scripts/local_config to setup a local run against kurtosis is failing with next error:

./scripts/local_config: line 280: [: syntax error: `-z' unexpected
mkdir: cannot create directory ‘/local_config’: Permission denied
rm: cannot remove '/local_config/*': No such file or directory
mkdir: cannot create directory ‘/runtime’: Permission denied

To Reproduce

Steps to reproduce the behavior:

  1. Clone
  2. Run a kurtosis-cdk for PP
  3. Run ./scripts/local_config

Expected behavior

It must provide a config file and a json to add to VSCode:

file generated at: tmp/aggkit/local_config/test.kurtosis.toml
- to restart kurtosis:
    kurtosis clean --all; kurtosis run --enclave aggkit --args-file params.yml --image-download always .
 
- Stop aggkit:
    kurtosis service stop aggkit cdk-node-001
 
- Add next configuration to vscode launch.json
 -----------------------------------------------------------
         {
            "name": "Debug aggkit",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "cmd/",
            "cwd": "${workspaceFolder}",
            "args":[
                "run",
                "-cfg", "tmp/aggkit/local_config/test.kurtosis.toml",
                "-components", "aggsender",
            ]
        },

 -----------------------------------------------------------
 
 - rembember to clean previous execution data: 
     rm -Rf tmp/aggkit/runtime/*

Screenshots

Add any other context about the problem here.

@joanestebanr joanestebanr added the bug Something isn't working label Jan 13, 2025
@joanestebanr joanestebanr added this to the AggKit - v0.1.0 milestone Jan 13, 2025
@joanestebanr joanestebanr self-assigned this Jan 13, 2025
@joanestebanr joanestebanr changed the title [BUG] bug: fails to run scripts/local_config to local run/debug aggkit Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants