Project

General

Profile

Actions

Bug #6127

closed

Rsyslog problem on Ubuntu 14.04 fresh install

Bug #6127: Rsyslog problem on Ubuntu 14.04 fresh install

Added by Dennis Cabooter over 11 years ago. Updated almost 11 years ago.

Status:
Released
Priority:
1 (highest)
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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.


Related issues 1 (0 open1 closed)

Has duplicate Rudder - Bug #6014: When upgrading Rudder server on Ubuntu, all nodes gets to no reportRejectedBenoît PECCATTEActions

Updated by Dennis Cabooter over 11 years ago Actions #1

  • Category set to System integration
  • Priority changed from N/A to 3
  • Target version set to 2.11.6

Updated by François ARMAND over 11 years ago Actions #2

  • 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É over 11 years ago Actions #3

  • Target version changed from 2.11.6 to 2.11.7

Updated by Vincent MEMBRÉ over 11 years ago Actions #4

  • Target version changed from 2.11.7 to 2.11.8

Updated by Vincent MEMBRÉ over 11 years ago Actions #5

  • Target version changed from 2.11.8 to 2.11.9

Updated by Vincent MEMBRÉ over 11 years ago Actions #6

  • Target version changed from 2.11.9 to 2.11.10

Updated by Nicolas CHARLES over 11 years ago Actions #7

  • 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 11 years ago Actions #8

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 11 years ago Actions #9

  • Assignee changed from Benoît PECCATTE to Matthieu CERDA

Reassigning to Matthieu

Updated by Vincent MEMBRÉ over 11 years ago Actions #10

  • Target version changed from 2.11.10 to 2.11.11

Updated by Vincent MEMBRÉ about 11 years ago Actions #11

  • Target version changed from 2.11.11 to 2.11.12

Updated by Vincent MEMBRÉ about 11 years ago Actions #12

  • Target version changed from 2.11.12 to 2.11.13

Updated by Nicolas CHARLES about 11 years ago Actions #13

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 about 11 years ago Actions #14

ok, restarting rsyslog unclog some messages, but not for a long time ...

Updated by Nicolas CHARLES about 11 years ago Actions #15

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 about 11 years ago Actions #16

one important step is to
chown syslog:adm /var/log/rudder/reports and /var/log/rudder/ldap

Updated by Nicolas CHARLES about 11 years ago Actions #17

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 about 11 years ago Actions #18

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 about 11 years ago Actions #19

  • 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 about 11 years ago Actions #20

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 about 11 years ago Actions #21

  • Has duplicate Bug #6014: When upgrading Rudder server on Ubuntu, all nodes gets to no report added

Updated by Alexis Mousset almost 11 years ago Actions #22

  • 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 almost 11 years ago Actions #23

  • 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 almost 11 years ago Actions #24

  • 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 almost 11 years ago Actions #25

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Updated by Matthieu CERDA almost 11 years ago Actions #26

Updated by François ARMAND almost 11 years ago Actions #28

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.13, 3.0.8 and 3.1.1 which were released today.

Actions

Also available in: PDF Atom