Skip to content

show cluster architecture crashed after readme steps #157

@gaowayne

Description

@gaowayne

hello team.

I got below error while following readme steps

(3fs) root@salab-hpedl380g11-02:/mnt/nvme0n1/wayne/3fs/m3fs# ./bin/m3fs cluster architecture -c cluster.yml
panic: strings: negative Repeat count

goroutine 1 [running]:
strings.Repeat({0xdda5c8?, 0xc0003f2980?}, 0xc000334a88?)
        /root/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.23.7.linux-amd64/src/strings/strings.go:569 +0x56b
main.(*DiagramRenderer).RenderNodeRow(0xc000334f00, 0xc000335570, {0xc00036dd40, 0x1, 0xc9edb2?}, 0x0, {0xc000334c20, 0x1, 0x20?})
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/diagram_renderer.go:336 +0x1865
main.(*DiagramRenderer).RenderNodesWithPaging(0xc000334f00, 0xc000335570, {0xc00036dd40, 0x1, 0x1}, 0x0, {0xc000334c20, 0x1, 0x1})
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/diagram_renderer.go:411 +0xc5
main.(*DiagramRenderer).RenderNodeSection(0xc000334f00, 0xc000335570, {0xcaa53e, 0xd}, {0xc00036dd40, 0x1, 0x1}, 0x0, {0xc000334c20, 0x1, ...})
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/diagram_renderer.go:431 +0x13f
main.(*DiagramRenderer).RenderClientSection(0xc000334f00, 0xc000335570, {0xc00036dd40, 0x1, 0x1})
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/diagram_renderer.go:442 +0xc5
main.(*ArchDiagram).Render(0xc000379ea0)
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/architecture.go:256 +0x5ff
main.drawClusterArchitecture(0xc00031f0c0?)
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/cluster.go:290 +0x45
github.com/urfave/cli/v2.(*Command).Run(0x13307c0, 0xc00031f0c0, {0xc0003d82d0, 0x3, 0x3})
        /root/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:276 +0x7e2
github.com/urfave/cli/v2.(*Command).Run(0x13300e0, 0xc00031ef80, {0xc00031efc0, 0x4, 0x4})
        /root/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:269 +0xa65
github.com/urfave/cli/v2.(*Command).Run(0xc0003b0420, 0xc00031edc0, {0xc000034050, 0x5, 0x5})
        /root/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/command.go:269 +0xa65
github.com/urfave/cli/v2.(*App).RunContext(0xc000290800, {0xde74c8, 0x135d020}, {0xc000034050, 0x5, 0x5})
        /root/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/app.go:333 +0x5a5
github.com/urfave/cli/v2.(*App).Run(...)
        /root/go/pkg/mod/github.com/urfave/cli/v2@v2.27.6/app.go:307
main.main()
        /mnt/nvme0n1/wayne/3fs/m3fs/cmd/m3fs/main.go:92 +0x3b9
(3fs) root@salab-hpedl380g11-02:/mnt/nvme0n1/wayne/3fs/m3fs#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions