You are not logged in.

#1 2012-10-21 22:11:26

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

[SOLVED] After updating system i get an error at boot

Hello,

i have just updated my Arch by using comands

sudo pacman -Syy
sudo pacman -Syu

My kernel updated from version 3.5.3 to 3.6.2 and now
at system boot i get an error:

INIT: Entering runlevel: 3
::Starting Syslog-NG
Error binding socket; addr='AF_UNIX(/run/systemd/journal/syslog)'
Error initializing source driver: source='src', id='src=src#0'
Error initializing message pipeline;
[FAIL] 

My system still boots, but i would love to fix this error if possible.

Last edited by 71GA (2012-10-22 17:15:26)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2012-10-21 22:16:15

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] After updating system i get an error at boot

Syslog-ng is now configured to listen to systemd's journal.  So since you are using initscripts, you probably have to configure it to listen to the right socket.  I am a systemd user myself, so I cannot tell you what it is you need to do.  Yuo probably have to google it.

Offline

#3 2012-10-21 22:16:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] After updating system i get an error at boot

I guess you are not using systemd and did not read the output from the update?

[2012-10-21 20:50] ==> syslog-ng now reads from /run/systemd/journal/syslog in the
[2012-10-21 20:50]     default config. If you still use sysvinit/initscripts, this
[2012-10-21 20:50]     must be /dev/log in /etc/syslog-ng/syslog-ng.conf
[2012-10-21 20:50] upgraded syslog-ng (3.3.6-2 -> 3.3.6-3)

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#4 2012-10-21 22:17:10

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] After updating system i get an error at boot

Wow, its amazing the things that pacman knows.... and how many people don't listen to the pacman.


Edit: I just rid myself of syslog-ng and set up persistent logs with journald... I guess I just like that minimalism thing.

Last edited by WonderWoofy (2012-10-21 22:18:02)

Offline

#5 2012-10-22 00:18:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

https://bbs.archlinux.org/viewtopic.php … 4#p1179304
IMHO this post-update message is just terrible ...

Offline

#6 2012-10-22 15:58:34

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

I presume i have to install systemd-sysvcompat (described here) package and set it in my DAEMONS instead of syslog-ng.
I presume this is all i need to do, but before i do it i would like an confirmation just so i don't mess anything up.

With kind regards.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#7 2012-10-22 16:20:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

71GA wrote:

I presume i have to install systemd-sysvcompat (described here) package and set it in my DAEMONS instead of syslog-ng.
I presume this is all i need to do, but before i do it i would like an confirmation just so i don't mess anything up.

With kind regards.

Are you using systemd?

Offline

#8 2012-10-22 16:34:57

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

karol wrote:
71GA wrote:

I presume i have to install systemd-sysvcompat (described here) package and set it in my DAEMONS instead of syslog-ng.
I presume this is all i need to do, but before i do it i would like an confirmation just so i don't mess anything up.

With kind regards.

Are you using systemd?

In my daemons i have syslog-ng listed. How do i know which one i use?


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#9 2012-10-22 16:36:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

Do you have sysvinit installed?

Offline

#10 2012-10-22 16:46:41

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

karol wrote:

Do you have sysvinit installed?

Yes sysvinit is installed.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#11 2012-10-22 16:48:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

So you now have a working initscripts setup w/o the syslog error, right? Installing systemd-sysvcompat is not needed.
If you have problems with switching to systemd, please open another thread.

Offline

#12 2012-10-22 16:50:36

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

karol wrote:

So you now have a working initscripts setup w/o the syslog error, right? Installing systemd-sysvcompat is not needed.
If you have problems with switching to systemd, please open another thread.

No, i still get an error.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#13 2012-10-22 16:52:21

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

71GA wrote:
karol wrote:

So you now have a working initscripts setup w/o the syslog error, right? Installing systemd-sysvcompat is not needed.
If you have problems with switching to systemd, please open another thread.

No, i still get an error.

Did you read https://bbs.archlinux.org/viewtopic.php … 4#p1179304 ?

Offline

#14 2012-10-22 17:00:00

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

karol wrote:
71GA wrote:
karol wrote:

So you now have a working initscripts setup w/o the syslog error, right? Installing systemd-sysvcompat is not needed.
If you have problems with switching to systemd, please open another thread.

No, i still get an error.

Did you read https://bbs.archlinux.org/viewtopic.php … 4#p1179304 ?

I did. At the end he says he did swich to system-md. Thats it. But how did he do it?


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#15 2012-10-22 17:01:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

Do just this:

Allan wrote:

Edit your syslog-ng.conf.

unix-dgram("/dev/log");

then reboot.

Edit one line in /etc/syslog-ng/syslog-ng.conf and reboot to see if it worked.

Offline

#16 2012-10-22 17:15:10

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] After updating system i get an error at boot

karol wrote:

Do just this:

Allan wrote:

Edit your syslog-ng.conf.

unix-dgram("/dev/log");

then reboot.

Edit one line in /etc/syslog-ng/syslog-ng.conf and reboot to see if it worked.

This worked and i get no more errors at startup. But what did i actually do with this line?
Chose another system log or what? I am just curious.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#17 2012-10-22 17:44:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] After updating system i get an error at boot

I'm guessing that systemd is the default and folks still using initscripts have to do some modifications, like telling syslog where the log should be.
Once you (we ;P) switch to systemd, such user actions won't be necessary.

Offline

#18 2012-10-23 01:09:55

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] After updating system i get an error at boot

Prior to this change, you had to edit syslog-ng's config if you wanted to use syslog-ng with systemd. It needed to be pointed at /run/systemd/journal/syslog. So I guess the idea is that this is now the default and you need to change it if you want to use it with init scripts...


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB