-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Missing systemd scripts in 6.2.4 #9403
Comments
Quick testing shows this impacts all 6.x versions. Testing 5.x next. |
Hmm, the systemd scripts should be generated at package install time.
|
This is due to java not being installed. Since listing java as a dep would be hard (sun jdk, ibm jdk, openjdk, etc).
|
This fails because java isn't installed, yet is not defined as a dependency. Java is used also for system discovery (os version, systemd/upstart/sysv). A few options that might help make this less weird.
As is, this gives a false positive that installation was successful. |
This is affecting |
This is an interesting issue given the java dependency issue. We should, at the very least, make that error be fatal instead of non-fatal. @d34dh0r53 I assume you're seeing the same thing? We should investigate debian, where I believe it is possible to list any Java as a valid Java dep. |
There's an issue I can't find right now where we did that research and showed it was not possible (Oracle JDK is not available as a Deb, for example, only OpenJDK, and last I checked, the That said, if we only supported OpenJDK from Debian/Ubuntu directly, this would be possible. (In the past, one driver was rejecting this dependency because OpenJDK 8 wasnot available on supported Debian/Ubuntu releases, but this is not true anymore, but we'll have the same problem with Java 11 is released...) |
So it seems like we can solve this by having a pre install script fail if no java is found, right? That should show an error and prevent the package install from succeeding. |
@andrewvc yup |
I think the exit status needs to be some special number (that isn't I glanced around the rpm docs on scriptlets and wasn't able to find much firm detail on what specific exit codes mean. |
@jordansissel agreed, system-install should not eat exit code to fail silently. |
system-install should fail hard if pleaserun failed. related with elastic#9403
system-install should fail hard if pleaserun failed. related with elastic#9403
Issue found in latest version of logstash: 6.4.0, both in the rpm binary as in the repo installation. |
'with java10 I get these error :Unrecognized VM option 'UseParNewGC' #9316' elastic/logstash#9316 - Added a workaround to problem in which the logstash systemd unit does not get installed automatically. See known issue: 'Missing systemd scripts in 6.2.4 #9403' elastic/logstash#9403
Just a note here -- I have also encountered this problem when my system run out of memory:
I guess normally you would see the error but when installing remotely using Ansible, it just disappears in the log. |
I recently experienced the problem of logstash installing successfully under CentOS 7 but without configuring its systemctl files. As I recall a nonfatal error occurred regarding java at the time. I since installed java and found that after I |
The logstash RPM does not have java dependency indication, so in a system that does not have java installed, the installation does not create the init scripts, it does not generate the bin files (bin/logstash is not linked to a system path) and the things just falls apart. This is still the case for latest version. |
Correct, there should be at least requirements page so you can easily compare it to your environment. |
Yum Repo
Missing Systemd
yum info
RPM Info
Unit Files
The text was updated successfully, but these errors were encountered: