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] cannot enable graylog-server on openSUSE 15 #138

Open
drewmiranda-gl opened this issue Oct 2, 2024 · 0 comments
Open

[BUG] cannot enable graylog-server on openSUSE 15 #138

drewmiranda-gl opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@drewmiranda-gl
Copy link
Member

Installing Graylog on openSUSE 15 (tested with 15.5) does not allow the user to enable the graylog-server service. They receive the following error:

localhost:~ # systemctl enable graylog-server
Synchronizing state of graylog-server.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable graylog-server
ln -sf ../graylog-server /etc/init.d/rc2.d/S50graylog-server
ln: failed to create symbolic link '/etc/init.d/rc2.d/S50graylog-server': No such file or directory

Datanode, however, does not have this issue and works as expected. This appears to be because the recipe.rb for graylog-server is using init.d, See

etc('init.d').install file("#{target}/init.d"), 'graylog-server'

While datanode is using systemd, See

lib('systemd/system').install file('systemd.service'), 'graylog-datanode.service'

Upon further testing, I was able to successfully enable graylog-server if i deleted:

sudo rm /etc/init.d/graylog-server
localhost:/etc/init.d # systemctl enable graylog-server
Created symlink /etc/systemd/system/multi-user.target.wants/graylog-server.service → /usr/lib/systemd/system/graylog-server.service.

I believe removing lines 68/69 would resolve,

etc('init.d').install file("#{target}/init.d"), 'graylog-server'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants