-
Notifications
You must be signed in to change notification settings - Fork 165
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
parsedmarc container is failing to establish connection with elasticsearch and continuously restarting. #59
Comments
I had the same issue. If you set the compose container_name property, be sure to go into the two supplied ini files and update the DNS names it's trying to use. If you don't set the container_name property, it can also randomly change the name which might cause it as well. |
@jameswestendorf can you elaborate on setting the container_name property. I'm very new to docker so please use small words. I copied the parsedmarc.sample.ini to parsedmarc.ini. I did not change anything else in the configs. When I run docker-compose images, I get the following:
|
@BrianT71 To fix that, in your docker compose file (if you are using that), this will set a name: Then in the ini files, make sure the names match what you set. Hope this makes sense? |
Thanks. I updated the docker-compose.yml file to include the container name as follows:
The only ini file I see is in ./parsedmarc. I just copied the sample ini into parsedmarc.ini. You mentioned matching the container names but I don't see where this config is referencing containers. Also, are there other ini files needed for either elasticsearch or grafana? I don't see where any were creating as part of the install or build.
|
There might only be the single .ini to edit… I don’t have this running any more. 😊
In your config file snippet,
[elasticsearch]
hosts = elasticsearch:9200
Change hosts= line to read:
hosts = dmarc-visualizer_elasticsearch_1:9200
|
This error is fixed for me now. For anyone stumbling across this, I still see the connection error for a few cycles in the logs but it's appears to be a timing issue as all the pieces start up. After a few restart cycles, I parsedmarc shows as saving to elasticsearch. Turns out I also had this issue which may have been the actual cause of my continuous restart. |
The parsedmarc container is continuously throwing this exception and then restarting shortly afterwards.
Also, in the Grafana dashboard, the following error pop-up is being thrown in the top right corner:
The text was updated successfully, but these errors were encountered: