Bug#833283: syslog-ng: Can't upgrade to latest version

2016-08-11 Thread Nigel Horne

Hi,


Thanks for your reply.

 > I'm quite sure, this issue happened because your configuration file is

incompatible with the new version. To prove this, please send the output
of the "systemctl status syslog-ng.service" command after the failed
upgrade and/or the configuration file if it possible. Also I'm thinking
about a more robust upgrade path, covering this situation.


# systemctl status syslog-ng.service
● syslog-ng.service - System Logger Daemon
   Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor 
preset: enabled)
   Active: failed (Result: start-limit-hit) since Thu 2016-08-11 15:09:18 EDT; 
2min 56s ago
 Docs: man:syslog-ng(8)
  Process: 26870 ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS (code=exited, 
status=1/FAILURE)
 Main PID: 26870 (code=exited, status=1/FAILURE)
   Status: "Starting up... (Thu Aug 11 15:09:17 2016"

Aug 11 15:09:17 compaq systemd[1]: syslog-ng.service: Failed with result 
'exit-code'.
Aug 11 15:09:18 compaq systemd[1]: syslog-ng.service: Service hold-off time 
over, scheduling restart.
Aug 11 15:09:18 compaq systemd[1]: Stopped System Logger Daemon.
Aug 11 15:09:18 compaq systemd[1]: syslog-ng.service: Start request repeated 
too quickly.
Aug 11 15:09:18 compaq systemd[1]: Failed to start System Logger Daemon.
Aug 11 15:09:18 compaq systemd[1]: syslog-ng.service: Unit entered failed state.
Aug 11 15:09:18 compaq systemd[1]: syslog-ng.service: Failed with result 
'start-limit-hit'.

There are quite a few configuration files, here is 
/etc/syslog-ng/syslog-ng.conf.  Please let me
know if you need something else.

@version: 3.5
@include "scl.conf"
@include "`scl-root`/system/tty10.conf"

# Syslog-ng configuration file, compatible with default Debian syslogd
# installation.

# First, set some global options.
options { chain_hostnames(off); flush_lines(0); use_dns(yes); use_fqdn(no);
  owner("root"); group("adm"); perm(0640); stats_freq(0);
  normalize_hostnames(yes); dns_cache_hosts(/etc/hosts);
  bad_hostname("^gconfd$");
};


# Sources

# This is the default behavior of sysklogd package
# Logs may come from unix stream, but not from another machine.
#
source s_src {
   system();
   internal();
};

# If you wish to get logs from remote machine you should uncomment
# this and comment the above source line.
#
source s_net { tcp(ip(127.0.0.1) port(1000)); tcp(ip(192.168.1.2) port(1000)); 
udp(); };


# Destinations

# First some standard logfile
#
destination d_auth { file("/var/log/syslog/local/auth.log"); };
destination d_cron { file("/var/log/syslog/local/cron.log"); };
destination d_daemon { file("/var/log/syslog/local/daemon.log"); };
destination d_kern { file("/var/log/syslog/local/kern.log"); };
destination d_lpr { file("/var/log/syslog/local/lpr.log"); };
destination d_mail { file("/var/log/syslog/local/mail.log"); };
destination d_syslog { file("/var/log/syslog/local/syslog"); };
destination d_user { file("/var/log/syslog/local/user.log"); };
destination d_uucp { file("/var/log/syslog/local/uucp.log"); };

# This files are the log come from the mail subsystem.
#
destination d_mailinfo { file("/var/log/syslog/local/mail/mail.info"); };
destination d_mailwarn { file("/var/log/syslog/local/mail/mail.warn"); };
destination d_mailerr { file("/var/log/syslog/local/mail/mail.err"); };

# Logging for INN news system
#
destination d_newscrit { file("/var/log/syslog/local/news.crit"); };
destination d_newserr { file("/var/log/syslog/local/news.err"); };
destination d_newsnotice { file("/var/log/syslog/local/news.notice"); };

# Some `catch-all' logfiles.
#
destination d_debug { file("/var/log/syslog/local/debug"); };
destination d_error { file("/var/log/syslog/local/error"); };
destination d_messages { file("/var/log/syslog/local/messages"); };

# The root's console.
#
destination d_console { usertty("root"); };

# Virtual console.
#
destination d_console_all { file(`tty10`); };

# The named pipe /dev/xconsole is for the nsole' utility.  To use it,
# you must invoke nsole' with the -file' option:
#
#$ xconsole -file /dev/xconsole [...]
#
destination d_xconsole { pipe("/dev/xconsole"); };

# Send the messages to an other host
#
#destination d_net { tcp("127.0.0.1" port(1000) log_fifo_size(1000)); };

# Debian only
destination d_ppp { file("/var/log/syslog/local/ppp.log"); };

# http://www.linuxjournal.com/content/creating-centralized-syslog-server
destination d_net_auth {
file("/var/log/syslog/remote/$HOST_FROM/auth.log");
};
destination d_net_cron {
file("/var/log/syslog/remote/$HOST_FROM/cron.log");
};
destination d_net_daemon {
file("/var/log/syslog/remote/$HOST_FROM/daemon.log");
};
destination d_net_kern {
file("/var/log/syslog/remote/$HOST_FROM/kern.log");
};
destination d_net_lpr {
file("/var/log/syslog/remote/$HOST_FROM/lpr.log");
};
destination d_net_mail {

Bug#833283: syslog-ng: Can't upgrade to latest version

2016-08-11 Thread Attila SZALAY
Hi,

I'm quite sure, this issue happened because your configuration file is
incompatible with the new version. To prove this, please send the output
of the "systemctl status syslog-ng.service" command after the failed
upgrade and/or the configuration file if it possible. Also I'm thinking
about a more robust upgrade path, covering this situation.


signature.asc
Description: This is a digitally signed message part


Bug#833283: syslog-ng: Can't upgrade to latest version

2016-08-02 Thread Nigel Horne
Package: syslog-ng
Version: 3.7.3-1
Severity: important

apt-get upgrade gives this:

Setting up syslog-ng-core (3.7.3-1) ...
Job for syslog-ng.service failed because the control process exited with error 
code.
See "systemctl status syslog-ng.service" and "journalctl -xe" for details.
invoke-rc.d: initscript syslog-ng, action "restart" failed.
● syslog-ng.service - System Logger Daemon
   Loaded: loaded (/lib/systemd/system/syslog-ng.service; enabled; vendor 
preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2016-08-02 
09:51:51 EDT; 17ms ago
 Docs: man:syslog-ng(8)
  Process: 23688 ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS (code=exited, 
status=1/FAILURE)
 Main PID: 23688 (code=exited, status=1/FAILURE)
   Status: "Starting up... (Tue Aug  2 09:51:51 2016"

Aug 02 09:51:51 compaq systemd[1]: Failed to start System Logger Daemon.
Aug 02 09:51:51 compaq systemd[1]: syslog-ng.service: Unit entered failed state.
Aug 02 09:51:51 compaq systemd[1]: syslog-ng.service: Failed with result 'e...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package syslog-ng-core (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of syslog-ng-mod-redis:
 syslog-ng-mod-redis depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-redis (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-smtp:
 syslog-ng-mod-smtp depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-smtp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-geoip:
 syslog-ng-mod-geoip depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-geoip (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-sql:
 syslog-ng-mod-sql depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-sql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-json:
 syslog-ng-mod-json depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-json (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng:
 syslog-ng depends on syslog-ng-core (>= 3.7.3); however:
  Package syslog-ng-core is not configured yet.
 syslog-ng depends on syslog-ng-mod-sql; however:
  Package syslog-ng-mod-sql is not configured yet.
 syslog-ng depends on syslog-ng-mod-json; however:
  Package syslog-ng-mod-json is not configured yet.

dpkg: error processing package syslog-ng (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-stomp:
 syslog-ng-mod-stomp depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-stomp (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-mongodb:
 syslog-ng-mod-mongodb depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-mongodb (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-graphite:
 syslog-ng-mod-graphite depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not configured 
yet.

dpkg: error processing package syslog-ng-mod-graphite (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of syslog-ng-mod-riemann:
 syslog-ng-mod-riemann depends on syslog-ng-abi-3.7-0; however:
  Package syslog-ng-abi-3.7-0 is not installed.
  Package syslog-ng-core which provides syslog-ng-abi-3.7-0 is not