I have a java app on elastic beanstalk.
I have a ./ebextensions/filebeat.config deployed to my ec2 instances upon EB deployement.
Problem is : the first time the filebeat process is started, it hangs. I have to execute sudo /etc/init.d/filebeat restart to have the deployement resumes.
the command I use for starting the process is : /etc/init.d/filebeat start
This happens when the command is in the command block, or in a delayed job in the .config file.
here is the point where it hangs :
[2016-04-05T17:28:06.251Z] INFO [16221] - [Application update/AppDeployStage1/AppDeployPostHook/03monitor_pids.sh] : Starting activity...
[2016-04-05T17:28:06.755Z] INFO [16221] - [Application update/AppDeployStage1/AppDeployPostHook/03monitor_pids.sh] : Completed activity.
[2016-04-05T17:28:06.755Z] INFO [16221] - [Application update/AppDeployStage1/AppDeployPostHook/99_restart_delayed_job.sh] : Starting activity...
I see, we did get some other reports regarding this. Most likely the problem is caused by go-daemon, the supervisor that we use. We only use it to put the process in background, so you could replace it fairly easily with the daemon tool by editing the init script.
I think I have a grasp now on why go-daemon doesn't do daemonization correctly. If I send you custom filebeat-god binary, would you be willing to give it a try to see if it fixes the issue?
Thanks, are you on 32 bits or 64 bits? Or do you have gcc installed on a machine? It might be easier if you compile it yourself, I'll just give you the right commands.
It's a binary build for Linux 64 bit, so you should be able to execute it with -h just to make sure that the download worked fine and the file is executable.
If you test with Filebeat you need to copy it over /usr/bin/filebeat-god (just replace that file, make a backup if you want). If you test with Topbeat, you need to replace /usr/bin/topbeat-god.
hi, I'm trying to replace the file but it is a bit tricky with AWS elastic beanstalk deployement options.
I'll tell when you when it's ok but can you provide me with an rpm with the new god file ? that way I can deploy the whole package on a new platform and thus I'll be able to validate that it's working.
ok, strange thing.
here is the output of my command:
[ec2-user@ip-172-32-10-167 ~]$ sudo service topbeat status
topbeat-god dead but pid file exists
but he service is working:
2016-04-14T09:24:10Z DBG output worker: publish 107 events
2016-04-14T09:24:10Z DBG Try to publish 107 events to logstash with window size 106
2016-04-14T09:24:10Z DBG 106 events out of 107 events sent to logstash. Continue sending ...
2016-04-14T09:24:10Z DBG Try to publish 1 events to logstash with window size 106
2016-04-14T09:24:10Z DBG 1 events out of 1 events sent to logstash. Continue sending ...
2016-04-14T09:24:10Z DBG send completed
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.