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

[Bug ?] Riemann crash silently at start when an incorrect .clj file is include #740

Open
mcorbin opened this issue Nov 2, 2016 · 1 comment

Comments

@mcorbin
Copy link
Contributor

mcorbin commented Nov 2, 2016

If an incorrect .clj file is included in the riemann config with the "include" function, Riemann crash silently at start, with nothing in the log file.

How to reproduce :

I have this riemann.config file :

(require
  '[riemann.streams :refer :all]
  '[riemann.config :refer :all])

(logging/init {:file "/var/log/riemann/riemann.log"})

(let [host "0.0.0.0"]
  (tcp-server {:host host})
  (udp-server {:host host})
  (ws-server  {:host host})
  (repl-server {:host host}))

(periodically-expire 10)

(streams
  #(info %))

I start Riemann, it works.
I create a "foo" directory and a foo.clj file :

(ns foo.foo
  (:require [riemann.config :refer :all]
            ;[riemann.streams :refer :all]
))

(def hello (where (service "foo") #(info %)))

The riemann.streams import is commented so functions like "where" will be not found.
I also add

(include "foo/")

On top of riemann.config

If i reload riemann, i have an error in the log as expected : ...Caused by: java.lang.RuntimeException: Unable to resolve symbol: where in this context...

Now, i completely stop Riemann.

If i start Riemann again, it will crash with nothing in the log file.

@mcorbin
Copy link
Contributor Author

mcorbin commented Dec 12, 2016

Riemann errors logs (when Riemann crash at start) are in journald when i use Riemann on RHEL 7 with a systemd service file. I don't know if it is a bug or not.

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

No branches or pull requests

1 participant