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

invalid memory address or nil pointer dereference #20

Closed
mweinelt opened this issue Sep 8, 2018 · 1 comment
Closed

invalid memory address or nil pointer dereference #20

mweinelt opened this issue Sep 8, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@mweinelt
Copy link
Contributor

mweinelt commented Sep 8, 2018

Happened directly at startup:

Sep 08 10:05:45 elsa systemd[1]: Started CptHook Webhook Gateway.
Sep 08 10:05:45 elsa CptHook[24920]: 2018/09/08 10:05:45 Status module disabled of not configured
Sep 08 10:05:45 elsa CptHook[24920]: 2018/09/08 10:05:45 Prometheus module is active
Sep 08 10:05:45 elsa CptHook[24920]: 2018/09/08 10:05:45 ChannelReceiver started
Sep 08 10:05:46 elsa CptHook[24920]: 2018/09/08 10:05:46 Got http event for /prometheus
Sep 08 10:05:46 elsa CptHook[24920]: Took IRC event out of channel.
Sep 08 10:05:46 elsa CptHook[24920]: Need to join new channel #ffda-mon
Sep 08 10:05:46 elsa CptHook[24920]: panic: runtime error: invalid memory address or nil pointer dereference
Sep 08 10:05:46 elsa systemd[1]: cpthook.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 08 10:05:46 elsa systemd[1]: cpthook.service: Unit entered failed state.
Sep 08 10:05:46 elsa systemd[1]: cpthook.service: Failed with result 'exit-code'.

Config for reference:

http:
    listen: ":8086"

irc:
    host: "irc.hackint.eu"
    port: 6697
    ssl:
        enabled: true
        cafile: "/etc/ssl/certs/hackint.crt"
    nickname: "ffda-prom"

modules:
    status:
        enabled: false
    prometheus:
        enabled: true
        channel: "#ffda-mon"
        hostname_filter: "(\\w*)\\.darmstadt.freifunk.net:\\d{4}"
    gitlab:
        enabled: false

So likely it's in the irc or prometheus module.

@fleaz fleaz added the bug Something isn't working label Oct 23, 2018
@fleaz
Copy link
Owner

fleaz commented Mar 12, 2019

This is fixed in v0.3.0

@fleaz fleaz closed this as completed Mar 12, 2019
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