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

New install from docker compose is not working properly #60

Open
BAAAASS opened this issue Mar 18, 2024 · 2 comments
Open

New install from docker compose is not working properly #60

BAAAASS opened this issue Mar 18, 2024 · 2 comments

Comments

@BAAAASS
Copy link

BAAAASS commented Mar 18, 2024

I have thus far been unable to get this stack working at all.
There two issus which are blocking, and I have been unable to find any solution:

  • The graylog container fails to start:

    • 2024-03-18 21:43:50,182 INFO : org.graylog2.bootstrap.preflight.MongoDBPreflightCheck - MongoDB is not available. Retry 18
    • 2024-03-18 21:43:52,184 INFO : org.mongodb.driver.cluster - Cluster description not yet available. Waiting for 30000 ms before timing out
    • I tried adding "GRAYLOG_MONGODB_URI: mongodb://graylog:secret@mongo:27017/graylog" to the graylog env, but no change.
    • I tried adding "MONGO_INITDB_ROOT_USERNAME: graylog" & "MONGO_INITDB_ROOT_PASSWORD: graylog" to the MongoDB container, but no change.
    • No idea where to fom here.
  • The installation of telefraf on OPNSense does not work properly. In the configure.md there are instructions to test the install using "sudo telegraf_pfifgw.php". However, this produces:

    • Fatal error: Uncaught Error: Call to undefined function get_interfaces_info() in /usr/local/bin/telegraf_pfifgw.php:13
      Stack trace:
      #0 {main}
      thrown in /usr/local/bin/telegraf_pfifgw.php on line 13

Please let me know if there is any advice on this.

@ultrawyde
Copy link

I just spent many hours battling the same thing, graylog could not resolve the mongodb container despite being on the same bridge network. At first I thought it might be because I changed the container names, but reverting back to just naming it "mongo" did not fix the issue. Not sure if maybe it would have worked if I had nuked the bridge network and remade it?
Anyway, in the end the solution for me was to add hostname: "mongo" under the mongodb section of the compose file. Now graylog can reach mongodb.

@FeRChImoNdE
Copy link

Fatal error: Uncaught Error: Call to undefined function get_interfaces_info() in /usr/local/bin/telegraf_pfifgw.php:13

Need to revert to an interfaces.inc file with the function defined. Found the answer in this reddit:

https://www.reddit.com/r/opnsense/comments/1aiqaz5/telegraf_error_after_upgrade_to_241/

Search for the get_interfaces_info() and just copy paste the whole function in your /usr/local/bin/telegraf_pfifgw.php file, just below the line:

require_once("util.inc");

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

3 participants