Skip to content

Change endpoint causing issue. #3

@Akshay-Iyangar

Description

@Akshay-Iyangar

my server is on port 12285 so i had hardcoded it in the code.

path := getStringParameter(route.Options, "http.path", defaultPath)
endpointUrl := fmt.Sprintf("%s://%s:12285%s", route.Adapter, route.Address, path)

My dockerfile
FROM gliderlabs/logspout:master
EXPOSE 12285

When i run this

docker run --volume=/var/run/docker.sock:/var/run/docker.sock -p=12285:80 aiyangar/httplogspout:0.1 http://localhost?http.path=/v1/dc/logs/ecomm/log

there is a trail of things that happen and the process shutsdown doing nothing.

goroutine 67 [semacquire]:
sync.runtime_Syncsemacquire(0xc8200aa580)
/usr/lib/go/src/runtime/sema.go:237 +0x201
sync.(_Cond).Wait(0xc8200aa570)
/usr/lib/go/src/sync/cond.go:62 +0x9b
io.(_pipe).read(0xc8200aa540, 0xc82024f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/lib/go/src/io/pipe.go:52 +0x2d2
io.(_PipeReader).Read(0xc8200260c0, 0xc82024f000, 0x1000, 0x1000, 0x72, 0x0, 0x0)
/usr/lib/go/src/io/pipe.go:134 +0x50
bufio.(_Reader).fill(0xc820038ed8)
/usr/lib/go/src/bufio/bufio.go:97 +0x1e9
bufio.(_Reader).ReadSlice(0xc820038ed8, 0x4c920a, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/bufio/bufio.go:328 +0x21a
bufio.(_Reader).ReadBytes(0xc820038ed8, 0x705c0a, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/bufio/bufio.go:406 +0xa9
bufio.(*Reader).ReadString(0xc820038ed8, 0xc82001e60a, 0x0, 0x0, 0x0, 0x0)
/usr/lib/go/src/bufio/bufio.go:446 +0x4d
github.com/gliderlabs/logspout/router.newContainerPump.func1(0x81ab50, 0x6, 0x7fbe78a620f8, 0xc8200260c0)
/go/src/github.com/gliderlabs/logspout/router/pump.go:258 +0xca
created by github.com/gliderlabs/logspout/router.newContainerPump
/go/src/github.com/gliderlabs/logspout/router/pump.go:274 +0x18b

Could someone please help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions