Graylog2 / fpm-recipes

Graylog package build recipes
http://docs.graylog.org/en/latest/pages/installation/operating_system_packages.html
18 stars 18 forks source link

Wrong working directory in DEB packages (?) #64

Closed joschi closed 8 years ago

joschi commented 8 years ago

From IRC:

<pierrick_> I have see a strange think on my fresh Graylog 2.0.1 install
<pierrick_> on configuration menu i have no Plugin menu with geo-location processor
<pierrick_> this fonctionnality is actived ?
<joschi> pierrick_: how did you install Graylog? make sure that the plugin directory (plugin_dir setting in the configuration file) is correct, that the system user running Graylog is allowed to access it, and that it contains all the relevant plugin JAR files (they're bundled with Graylog)
[...]
<pierrick_> root:root is the owner of the entire  /usr/share/graylog-server/plugin/ directory
<pierrick_> i used debian repository for the install
<pierrick_> i change owner and group to graylog:graylog ..restart service nothing appear
<pierrick_> I checked, plugin are present in /plugins directory
<pierrick_> on my server.conf i have the entry "# Set plugin directory here (relative or absolute) plugin_dir = plugin"
<edmundoa> pierrick_: do you see the plugin listed in System->Nodes->Your Graylog server?
<pierrick_> nothing no
<pierrick_> -rw-r--r-- 1 graylog graylog 6710666 mai   11 16:02 graylog-plugin-map-widget-1.0.1.jar
<pierrick_> "  This node has not any installed plugins." on my node
[...]
<joschi> What's the output of `namei -m /usr/share/graylog-server/plugin/graylog-plugin-map-widget-1.0.1.jar`?
<joschi> pierrick_: and any messages in the Graylog logs while starting up?
<pierrick_> i check
<pierrick_> server.conf doesn't like relative patch on /plugin directory
<joschi> pierrick_: does it work if you're using the absolute path in plugin_dir?
<pierrick_> yes :)
<pierrick_> perhaps  a little bug
piellick commented 8 years ago

I change relative path on plugin directory to absolut path of my /etc/graylog/server/server.conf and it's work.

root@Graylog:~# namei -m /usr/share/graylog-server/plugin/graylog-plugin-map-widget-1.0.1.jar
f: /usr/share/graylog-server/plugin/graylog-plugin-map-widget-1.0.1.jar
 drwxr-xr-x /
 drwxr-xr-x usr
 drwxr-xr-x share
 drwxr-xr-x graylog-server
 drwxr-xr-x plugin
 -rw-r--r-- graylog-plugin-map-widget-1.0.1.jar
bernd commented 8 years ago

Unable to reproduce that, the default plugin_dir in the OS packages is an absolute path.