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

Support for Raspberry PI #70

Closed
the-louie opened this issue Oct 8, 2019 · 5 comments · Fixed by #73
Closed

Support for Raspberry PI #70

the-louie opened this issue Oct 8, 2019 · 5 comments · Fixed by #73

Comments

@the-louie
Copy link
Contributor

I'm trying to set up sampler to work as a dashboard running on a Raspberry PI.
I managed to get it to compile on the PI but when i try to run it i get the following error:

# sampler --config conf.yml
panic: non-positive interval for NewTicker [recovered]
        panic: non-positive interval for NewTicker

goroutine 1 [running]:
main.handleCrash(0x108e5a0, 0x10708a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1075cc0)
        /root/sampler-1.0.3/main.go:127 +0x170
panic(0x339418, 0x100e198)
        /usr/lib/go-1.11/src/runtime/panic.go:513 +0x194
time.NewTicker(0xd964b800, 0xffffffff, 0x123a5a0)
        /usr/lib/go-1.11/src/time/tick.go:23 +0x1bc
github.com/sqshq/sampler/data.NewSampler(0x1085310, 0x1085320, 0x3, 0x4, 0x650634, 0x0, 0x0, 0x10708a0, 0x0, 0x0, ...)
        /root/sampler-1.0.3/data/sampler.go:20 +0x2c
main.(*Starter).start(0x10d7f30, 0x3eb490, 0x1183b80, 0x1085310, 0x107ad70, 0xb, 0x10759c0, 0x2, 0x2, 0x107bd88, ...)
        /root/sampler-1.0.3/main.go:68 +0x288
main.(*Starter).startAll(0x10d7f30, 0x1202000, 0x1196060, 0x1196090)
        /root/sampler-1.0.3/main.go:49 +0x538
main.main()
        /root/sampler-1.0.3/main.go:115 +0x26c
@sqshq
Copy link
Owner

sqshq commented Oct 12, 2019

Hi @the-louie,
Could you please share your config file?

@the-louie
Copy link
Contributor Author

I've done som further testing and found the simplest configuration i can find to break and work.

  - title: This works
    rate-ms: 19327
    sample: echo "HELLO WORLD"
  - title: This breaks
    rate-ms: 19328
    sample: echo "HELLO WORLD"

@the-louie
Copy link
Contributor Author

(Both works when I run it on MacOS 10.14)

@aysark
Copy link

aysark commented Oct 17, 2020

@the-louie were you able to make it work in rpi? did you build from src and cross compiled to amd64?

@the-louie
Copy link
Contributor Author

@aysark Yes, ran it for a year without problem. Just compiled it on the Pi, never done any go stuff before so found a guide that I followed and after some tries it worked. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants