Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var/lib/syslog-ng/syslog-ng.persist "problem" ["solved"]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Tender
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 166

PostPosted: Sat Dec 07, 2013 8:22 am    Post subject: /var/lib/syslog-ng/syslog-ng.persist "problem" [&q Reply with quote

Hello, new default install:

Code:

highpower8 ~ # emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.15-r3, 3.10.17-gentoo x86_64)
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     7893920 total,   7746772 free
KiB Swap:    4000180 total,   4000180 free
Timestamp of tree: Tue, 03 Dec 2013 20:00:02 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mtune=corei7-avx -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.tiscali.nl/ http://mirror.ovh.net/gentoo-distfiles/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


syslog-ng warns at statup:

Code:

 * Starting syslog-ng ...
Error creating persistent state file; filename='/var/lib/syslog-ng/syslog-ng.persist-', error='Read-only file system (30)'
 * start-stop-daemon: failed to start `/usr/sbin/syslog-ng'
 * Failed to start syslog-ng
 [ !! ]
 * ERROR: syslog-ng failed to start
 


but it is started:

Code:

highpower8 ~ # rc-status default
Runlevel: default
 syslog-ng                                                                                                                                      [  started  ]
 gpm                                                                                                                                            [  started  ]
 netmount                                                                                                                                       [  started  ]
 local                                                                                                                                          [  started  ]


and running:

Code:

highpower8 ~ # tail /var/log/messages
Dec  7 08:59:54 highpower8 dhcpcd[3122]: enp11s0: checking for 192.168.8.58
Dec  7 08:59:55 highpower8 dhcpcd[3122]: enp11s0: Router Advertisement from fe80::5604:a6ff:fe6b:3957
Dec  7 08:59:55 highpower8 dhcpcd[3122]: enp11s0: no support for DHCPv6 management
Dec  7 09:00:00 highpower8 dhcpcd[3122]: enp11s0: leased 192.168.8.58 for 3600 seconds
Dec  7 09:00:02 highpower8 cron[3801]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons)
Dec  7 09:00:22 highpower8 sshd[3812]: SSH: Server;Ltype: Version;Remote: 192.168.8.51-62145;Protocol: 2.0;Client: PuTTY_Release_0.63
Dec  7 09:00:22 highpower8 sshd[3812]: SSH: Server;Ltype: Kex;Remote: 192.168.8.51-62145;Enc: aes256-ctr;MAC: hmac-sha2-256;Comp: none [preauth]
Dec  7 09:00:24 highpower8 sshd[3812]: SSH: Server;Ltype: Authname;Remote: 192.168.8.51-62145;Name: root [preauth]
Dec  7 09:00:27 highpower8 sshd[3812]: Accepted keyboard-interactive/pam for root from 192.168.8.51 port 62145 ssh2
Dec  7 09:00:27 highpower8 sshd[3812]: pam_unix(sshd:session): session opened for user root by (uid=0)


restart is also ok:

Code:

highpower8 ~ # /etc/init.d/syslog-ng restart
 * WARNING: you are stopping a sysinit service
 * Stopping syslog-ng ...                                                                                                                              [ ok ]
 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...                                                                                        [ ok ]
 * Starting syslog-ng ...                                                                                                                              [ ok ]


info:

Code:

highpower8 ~ # equery u syslog-ng
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for app-admin/syslog-ng-3.4.2:
 U I
 - - caps         : Use Linux capabilities library to control privilege
 - - dbi          : Enable dev-db/libdbi (database-independent abstraction layer) support
 - - geoip        : Add geoip support for country and city lookup based on IPs
 + + ipv6         : Add support for IP version 6
 - - json         : Enable support for JSON template formatting via dev-libs/json-glib
 - - mongodb      : Enable support for mongodb destinations
 + + pcre         : Add support for Perl Compatible Regular Expressions
 - - smtp         : Enable support for SMTP destinations
 - - spoof-source : Enable support for spoofed source addresses
 + + ssl          : Add support for Secure Socket Layer connections
 + + tcpd         : Add support for TCP wrappers


Code:

highpower8 ~ # ls -alt /var/lib/syslog-ng/syslog-ng.persist
-rw------- 1 root root 16384 Dec  7 09:09 /var/lib/syslog-ng/syslog-ng.persist


Code:

highpower8 ~ # ls -altd /var/lib/syslog-ng
drwx------ 2 root root 4096 Dec  7 09:09 /var/lib/syslog-ng


I already tried all the suggestions of the related forum posts.
Any oher idea?


Last edited by Tender on Thu Jan 02, 2014 8:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tender
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 166

PostPosted: Tue Dec 17, 2013 9:35 pm    Post subject: Reply with quote

Code:


   OpenRC 0.12.4 is starting up Gentoo Linux (x86_64)

Press I to enter interactive boot mode

 * /proc is already mounted
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Using /dev mounted from kernel ...
 [ ok ]
 * Mounting /dev/mqueue ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting debug filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * setting up tmpfiles.d entries for /dev ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Generating a rule to create a /dev/root symlink ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]
 * Device initiated services: net.enp11s0
 * Checking local filesystems  ...
/dev/sda3: clean, 292270/1250928 files, 3892022/5000231 blocks
/dev/sda1: clean, 315/32128 files, 23679/128488 blocks
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
[b] * Bringing up interface enp11s0
/lib/netifrc/net/system.sh: line 56: /etc/resolv.conf: Read-only file system
chmod: changing permissions of '/etc/resolv.conf': Read-only file system
 *   dhcp ...
 *     Running udhcpc ...
/lib/netifrc/sh/udhcpc-hook.sh: line 24: /etc/resolv.conf: Read-only file system
chmod: changing permissions of '/etc/resolv.conf': Read-only file system[/b]
 [ ok ]
 *     received address 192.168.8.58/24
 [ ok ]
 *   Running postup ...
 * Setting hostname to highpower8 ...
 [ ok ]
 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 * Starting syslog-ng ...
[b]Error creating persistent state file; filename='/var/lib/syslog-ng/syslog-ng.persist-', error='Read-only file system (30)'
 * start-stop-daemon: failed to start `/usr/sbin/syslog-ng'
 * Failed to start syslog-ng
 [ !! ]
 * ERROR: syslog-ng failed to start[/b]
 * Starting sshd ...
 [ ok ]
 * Starting vixie-cron ...
 [ ok ]

rc sysinit logging stopped at Tue Dec 17 22:24:42 2013


rc boot logging started at Tue Dec 17 22:24:42 2013

 * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
 * Autoloaded 0 module(s)
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up network interface lo ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 *   Running postup ...
 * Mounting misc binary format filesystem ...
 [ ok ]
 * Loading custom binary format handlers ...
 [ ok ]
 * Activating additional swap space ...
 [ ok ]
 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 * Starting syslog-ng ...
 [ ok ]
 * setting up tmpfiles.d entries ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Tue Dec 17 22:24:44 2013


rc default logging started at Tue Dec 17 22:24:44 2013

 * Starting acpid ...
 [ ok ]
 * Starting distccd ...
 [ ok ]
 * Starting gpm ...
 [ ok ]
 * Starting haveged ...
 [ ok ]
 * Mounting network filesystems ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Tue Dec 17 22:24:48 2013
Back to top
View user's profile Send private message
Tender
Apprentice
Apprentice


Joined: 05 Nov 2005
Posts: 166

PostPosted: Thu Jan 02, 2014 8:30 pm    Post subject: Reply with quote

8O :x

I added syslog-ng, vixie-cron and sshd on sysinit runlevel by mistake...
sysinit!

Well, the system was able to start anyway, only DNS did not work, resolv.conf had not the DNS info.

Sorry for the noise, now starts better:

Code:

   OpenRC 0.12.4 is starting up Gentoo Linux (x86_64)

Press I to enter interactive boot mode

 * /proc is already mounted
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Using /dev mounted from kernel ...
 [ ok ]
 * Mounting /dev/mqueue ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting debug filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * setting up tmpfiles.d entries for /dev ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Generating a rule to create a /dev/root symlink ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]
 * Device initiated services: net.enp11s0

rc sysinit logging stopped at Thu Jan  2 20:44:27 2014


rc boot logging started at Thu Jan  2 20:44:27 2014

 * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
 * Autoloaded 0 module(s)
 * Checking local filesystems  ...
/dev/sda3: clean, 293309/1250928 files, 3912836/5000231 blocks
/dev/sda1: clean, 315/32128 files, 23679/128488 blocks
 [ ok ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting hostname to (none) ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up network interface lo ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 *   Running postup ...
 * Bringing up interface enp11s0
 *   dhcp ...
 *     Running udhcpc ...
 [ ok ]
 *     received address 192.168.8.58/24
  [ ok ]
 *   Running postup ...
 * Mounting misc binary format filesystem ...
 [ ok ]
 * Loading custom binary format handlers ...
 [ ok ]
 * Activating additional swap space ...
 [ ok ]
 * setting up tmpfiles.d entries ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Thu Jan  2 20:44:36 2014


rc default logging started at Thu Jan  2 20:44:36 2014

 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 * Starting syslog-ng ...
 [ ok ]
 * Starting acpid ...
 [ ok ]
 * Starting distccd ...
 [ ok ]
 * Starting gpm ...
 [ ok ]
 * Starting haveged ...
 [ ok ]
 * Mounting network filesystems ...
 [ ok ]
 * Starting sshd ...
 [ ok ]
 * Starting vixie-cron ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Thu Jan  2 20:44:41 2014

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum