Bug #6127
closedRsyslog problem on Ubuntu 14.04 fresh install
Description
Basicly there are 2 problems:
- After upgrading the Rudder server, it doesn't recieve any logs from nodes. Restarting rsyslog does not solve the problem, rebooting does
- After installing a new node, it doesn't send any logs to the Rudder server. Again, restarting rsyslog does not solve the problem, rebooting does
I'm not sure if it's a rudder or an Ubuntu/rsyslog issue. Please keep in mind Ubuntu 14.04 used Upstart, don't use /etc/init.d/rsyslog restart, but service syslog restart.
Updated by Dennis Cabooter almost 10 years ago
- Category set to System integration
- Priority changed from N/A to 3
- Target version set to 2.11.6
Updated by François ARMAND almost 10 years ago
- Assignee set to Benoît PECCATTE
OK, so first step with that one: trying to reproduce it :)
Benoit, is it a mission that you think is possible to handle ?
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.11.6 to 2.11.7
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.11.7 to 2.11.8
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.8 to 2.11.9
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.9 to 2.11.10
Updated by Nicolas CHARLES over 9 years ago
- Priority changed from 3 to 1 (highest)
This is quite painful for users ... can someone have a real look at this one please ?
Updated by Nicolas CHARLES over 9 years ago
could it be a file permission issue ? http://serverfault.com/questions/596558/ubuntu-14-04-system-logging
if the file as not the right permission, then rsyslog fails to write in the file and skip ?
Updated by Nicolas CHARLES over 9 years ago
- Assignee changed from Benoît PECCATTE to Matthieu CERDA
Reassigning to Matthieu
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.10 to 2.11.11
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.11 to 2.11.12
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.12 to 2.11.13
Updated by Nicolas CHARLES over 9 years ago
I had to manually restart rsyslog for it to work, but not to reboot (on Rudder 3.0.7 and ubuntu 14.04)
however, services were super slow at start
Updated by Nicolas CHARLES over 9 years ago
ok, restarting rsyslog unclog some messages, but not for a long time ...
Updated by Nicolas CHARLES over 9 years ago
restarting rsyslog does
Jul 13 17:20:26 server rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="8060" x-info="http://www.rsyslog.com"] exiting on signal 15.
Jul 13 17:20:26 server rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="8347" x-info="http://www.rsyslog.com"] start
Jul 13 17:20:26 server rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Jul 13 17:20:26 server rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Jul 13 17:20:26 server rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Jul 13 17:20:26 server rsyslogd: rsyslogd's groupid changed to 104
Jul 13 17:20:26 server rsyslogd: rsyslogd's userid changed to 101
Jul 13 17:20:27 server rudder8131: R: @server-roles
@result_success@server-roles
@server-roles-directive@1
@Check logrotate configuration@None
@2015-07-13 17:20:25+00:00##root@#The logrotate configuration is correct
send it seems to stop
Updated by Nicolas CHARLES over 9 years ago
one important step is to
chown syslog:adm /var/log/rudder/reports and /var/log/rudder/ldap
Updated by Nicolas CHARLES over 9 years ago
it seems that the rsyslog stops or block itself at reception of rudder logs when inserting them in database.
if I comment out the writing to DB, it does work find, otherwise it blocks itself
Updated by Nicolas CHARLES over 9 years ago
restarting the ubuntu server did fix the issue
log don't tell me why it changed
I git init /etc before, and I only get very minor changes (caches for apparmor, or host file changing, and nologin file deleted)
Updated by Nicolas CHARLES over 9 years ago
- Assignee changed from Matthieu CERDA to Benoît PECCATTE
Benoit, could you try to fix this ? this is a major pain for new users ...
Updated by Alexis Mousset over 9 years ago
The problem is in ompgsql, and was fixed in rsyslog 7.6.0 and 7.4.10: http://www.rsyslog.com/changelog-for-7-6-0-v7-stable/
ompgsql bugfix: improper handling of auto-backgrounding mode If rsyslog was set to auto-background itself (default code behaviour, but many distros now turn it off for good reason), ompgsql could not properly connect. This could even lead to a segfault. The core reason was that a PG session handle was kept open over a fork, something that is explicitely forbidden in the PG API.
The fix is available here, and was tested on 7.4.4/ubuntu 14.04.
Updated by Alexis Mousset over 9 years ago
- Has duplicate Bug #6014: When upgrading Rudder server on Ubuntu, all nodes gets to no report added
Updated by Alexis Mousset over 9 years ago
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Alexis Mousset
Upstream bug reported for the Ubuntu package.
Building packages including the fix for the next Rudder release.
Updated by Benoît PECCATTE over 9 years ago
- Assignee changed from Alexis Mousset to Matthieu CERDA
Alexis made a package with the patch.
Matthieu, can you update rudder dependencies to depend on a version >= to Alexis's version on ubuntu 14.04
Updated by Matthieu CERDA over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Matthieu CERDA to Benoît PECCATTE
- Pull Request set to https://github.com/Normation/rudder-packages/pull/731
Updated by Matthieu CERDA over 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Updated by Matthieu CERDA over 9 years ago
Applied in changeset rudder-packages|a579a354b8cf74f2b7a7dd5ee6f595f1311999a1.
Updated by Benoît PECCATTE over 9 years ago
Applied in changeset rudder-packages|9c332cacec3566923adb4cb77b9b31a45f20a9e3.
Updated by François ARMAND over 9 years ago
- Status changed from Pending release to Released