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

file access error handling #876

Closed
LimeHat opened this issue May 5, 2022 · 0 comments · Fixed by #877
Closed

file access error handling #876

LimeHat opened this issue May 5, 2022 · 0 comments · Fixed by #877
Labels
bug Something isn't working

Comments

@LimeHat
Copy link
Member

LimeHat commented May 5, 2022

from the discord https://discord.com/channels/860500297297821756/860500297297821759/971911693443686483 as reported by SleepyNetworker

I'm running into an error when running containerlab. I think it's happening because Clab does not have access to my home folder and it's failing because it cannot access my ~.ssh/ folder.
Is there a way to configure Clab to not check for keys?
Here's the error output:

➜  ansible-arista-deploy git:(clab) ✗ sudo clab deploy -t clab_topologies/clab-lan-topology.yaml
INFO[0000] Containerlab v0.26.0 started
INFO[0000] Parsing & checking topology file: clab-lan-topology.yaml
INFO[0000] Creating lab directory: /local/mnt/workspace/ansible-arista-deploy/clab-aristalan
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x83151c]

goroutine 1 [running]:
github.com/srl-labs/containerlab/utils.FileExists({0xc0008837a0, 0x10})
    github.com/srl-labs/containerlab/utils/file.go:30 +0x5c
github.com/srl-labs/containerlab/clab.(*CLab).CreateAuthzKeysFile(0xc000351ef0)
    github.com/srl-labs/containerlab/clab/authz_keys.go:38 +0xd7
github.com/srl-labs/containerlab/cmd.deployFn(0x3df4420, {0x24ef0ea, 0x2, 0x2})
    github.com/srl-labs/containerlab/cmd/deploy.go:152 +0x5b6
github.com/spf13/cobra.(*Command).execute(0x3df4420, {0xc000061b00, 0x2, 0x2})
    github.com/spf13/cobra@v1.4.0/command.go:856 +0x60e
github.com/spf13/cobra.(*Command).ExecuteC(0x3df2b20)
    github.com/spf13/cobra@v1.4.0/command.go:974 +0x3bc
github.com/spf13/cobra.(*Command).Execute(...)
    github.com/spf13/cobra@v1.4.0/command.go:902
github.com/srl-labs/containerlab/cmd.Execute()
    github.com/srl-labs/containerlab/cmd/root.go:44 +0x25
main.main()
    github.com/srl-labs/containerlab/main.go:10 +0x17
@LimeHat LimeHat added the bug Something isn't working label May 6, 2022
@hellt hellt closed this as completed in #877 May 7, 2022
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

Successfully merging a pull request may close this issue.

1 participant