Re: [systemd-devel] RFC: filter and search journalctl

2015-08-18 Thread Anne Mulhern




- Original Message -
 From: Anne Mulhern amulh...@redhat.com
 To: systemd-devel@lists.freedesktop.org
 Sent: Monday, August 17, 2015 11:34:10 AM
 Subject: Re: [systemd-devel] RFC: filter and search journalctl
 
 
 
 
 
 - Original Message -
  From: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl
  To: Anne Mulhern amulh...@redhat.com
  Cc: systemd-devel@lists.freedesktop.org, Sebastian Schindler
  sebastian.schind...@travelping.com
  Sent: Monday, August 17, 2015 10:45:11 AM
  Subject: Re: [systemd-devel] RFC: filter and search journalctl
  
  On Mon, Aug 17, 2015 at 10:24:22AM -0400, Anne Mulhern wrote:
   
   
   
   
   - Original Message -
From: Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl
To: Sebastian Schindler sebastian.schind...@travelping.com
Cc: systemd-devel@lists.freedesktop.org
Sent: Saturday, August 8, 2015 3:48:30 PM
Subject: Re: [systemd-devel] RFC: filter and search journalctl

On Fri, Aug 07, 2015 at 11:53:13AM +0200, Sebastian Schindler wrote:
 Grep-ing seems to be the only solution to find log entries if you
 don't
 fully
 know what you're looking for. For example: You want to see all
 entries
 containing a certain MESSAGE that gets enriched with additional
 information
 during the logging process:
 
 MESSAGE=host HOST has closed connection CONNECTION_ID
This is a bit contentious, but at least I would like to see some
grep functionality implemented directly in journalctl.

   
   I am late to the party, but I think it is obvious that the right way
   for
   this
   to be achieved, in a perfect world, is that this log entry be accompanied
   by a MESSAGE_ID, and HOST and CONNECTION_ID keys, and a catalog entry
   that
   combined
   with the keys, generates the above message so that grepping is entirely
   unnecessary.
   
   It is true that this perfect world is not just around the corner, or
   anything like that,
   but it is technically possible.
   
   I agree that grepping would be handy for me, right now, for just the
   reasons stated
   in the original message.
   
   I wonder if it would be reasonable for journalctl to supply the
   (additional) fields that are
   guaranteed to be associated with a MESSAGE_ID
  And what what happen when the entry is malformed, i.e. missing some
  fields?
  Would journald reject the message? I don't think this would be useful to
  anyone at all. Instead the readers of the message should gracefully adapt
  to missing fields.
  
 
 I think it would be wrong for journald to reject a message that does not
 supply
 all the declared fields. It would also be wrong for journalctl to crash when
 given the
 --catalog flag if the fields are missing. I don't know what it does right
 now, because it is not that easy a situation to engineer, AFAICT. I guess the
 best thing would be to supply a special catalog message indicating that an
 error had occurred when trying to construct a catalog message. Something
 that indicated the fields that were missing that caused the error would be
 nice.
 Just so long as that didn't turn into an infinite loop, somehow. If somebody
 knows what journalctl does do in this situation, please pass that information
 along.
 
Re-reading the docs, I realize that the information is right there in plain 
sight.
If the value is not defined, the variable name, minus the @ signs, is displayed.
Nice and simple.

But now, I wonder what happens for fields like _UDEV_DEVLINK, which can be set
0, 1, or many times. If unset, the variable name minus the @ signs is displayed.
If set once, the value is substituted. If set twice?

-- SNIP --

 
 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 

- mulhern
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] terminals not appearing

2015-08-18 Thread Philip Müller
Am 18.08.2015 um 20:24 schrieb Michał Zegan:
 Hello.
 
 I have the newest arch, systemd version 224.
 
 The thing that I wonder about is that sometimes, when I press
 ctrl+alt+f1..f6, ttys do not appear and I do not see the login prompt.
 Like there is an initial tty1, but when I start a gui, it is freed.
 Other ttys often just do not appear.

Sometimes the wiki helps here:

https://wiki.archlinux.org/index.php/Systemd_FAQ#How_do_I_change_the_default_number_of_gettys.3F

greez
Phil

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] use-case for sparse tar archives

2015-08-18 Thread Jan Alexander Steffens
On Tue, Aug 18, 2015 at 6:29 PM, Lennart Poettering
lenn...@poettering.net wrote:
 Why would you not do this?

GNU tar's documentation mentions the main drawback:

  However, be aware that `--sparse' option presents
  a serious drawback. Namely, in order to determine
  if the file is sparse `tar' has to read it before
  trying to  archive it,  so in total  the file  is
  read *twice*.  So,  always bear in mind  that the
  time needed to process all files with this option
  is roughly twice the time needed to  archive them
  without it.

I think having to scan a multi-gigabyte file for zeroes
before archiving it would slow down the process quite a
bit.  It doesn't sound like  GNU tar  supports querying
for holes using FIEMAP or something similar.

Besides this, I guess it could be a portability issue.
libarchive tar's man page contains:

  There  is not  yet any  support for  multi-volume
  archives or for archiving sparse files.

Instead,  libarchive  supports transforming zero-filled
blocks into holes  while extracting.  It depends on the
compression to archive sparse files efficiently.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] terminals not appearing

2015-08-18 Thread Michał Zegan

Hello.

I have the newest arch, systemd version 224.

The thing that I wonder about is that sometimes, when I press 
ctrl+alt+f1..f6, ttys do not appear and I do not see the login prompt.
Like there is an initial tty1, but when I start a gui, it is freed. 
Other ttys often just do not appear.

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] use-case for sparse tar archives

2015-08-18 Thread Vincent Batts
On Tue, Aug 18, 2015 at 12:29 PM, Lennart Poettering lenn...@poettering.net
 wrote:

 On Tue, 18.08.15 12:07, Vincent Batts (vba...@redhat.com) wrote:

  Before submitting a change for this, why is the creation of tar's using
  `--sparse`?
 
 https://github.com/systemd/systemd/blob/master/src/import/import-common.c#L213

 If you save/restore/migrate disk trees that include sparse files like
 utmp/wtmp or journal files it sounds like a good idea to keep them
 sparse.

 Why would you not do this?

 Lennart


It makes reassembling the pristine tar archive almost impossible.
https://github.com/vbatts/tar-split is a project of mine to reassemble
cryptographically verifiable archives. It's merged into docker now, but i'm
looking to investigate portability of containers as it relates to nspawn
and machinectl import.

vb
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] directory for machine templates

2015-08-18 Thread Johannes Ernst
/var/lib/machines is intended to be, as I understand it, for (virtual) machines 
that are or could be started at every boot.

Would it make sense to have a similar convention for templates?

Use cases:
1. Testing. Pull base image once, run lots of containers from the same base 
image
2. Hosting. Pull common base image(s) once, let customers instantiate lots of 
containers from the same base image(s)

It could work like this, with -T (template) in analogy to -M (machine):

$ system-nspawn -T fedora-xyz -M fedora-test123

where /var/lib/machine-templates/fedora-xyz is the file downloaded with 
something like:

$ machinectl pull-raw-template http://../fedora-xyz http://../fedora-xyz

Just a thought.

Cheers,



Johannes.

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] terminals not appearing

2015-08-18 Thread Michał Zegan
Seems like this does not apply. I said that terminals do not start, and 
this is random, sometimes they do. n_auto_vts = 6.


W dniu 18.08.2015 o 20:28, Philip Müller pisze:

Am 18.08.2015 um 20:24 schrieb Michał Zegan:

Hello.

I have the newest arch, systemd version 224.

The thing that I wonder about is that sometimes, when I press
ctrl+alt+f1..f6, ttys do not appear and I do not see the login prompt.
Like there is an initial tty1, but when I start a gui, it is freed.
Other ttys often just do not appear.

Sometimes the wiki helps here:

https://wiki.archlinux.org/index.php/Systemd_FAQ#How_do_I_change_the_default_number_of_gettys.3F

greez
Phil

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] httpd.service daemon failing to start on Manjaro Linux

2015-08-18 Thread Brenton Horne
Hi,

I've been following this guide
https://wiki.archlinux.org/index.php/MediaWiki to install MediaWiki
1.25.2 on my Manjaro Linux machine. I managed to follow the guide, without
errors until I reached the stage of restarting httpd.service, namely
running:

systemctl restart httpd.service


This gives the error:

Job for httpd.service failed because the control process exited with error
code. See systemctl status httpd.service and journalctl -xe for details.


Running

systemctl status httpd.service

gives:

● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor
preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-08-18 23:18:10 AEST;
16s ago
  Process: 1083 ExecStart=/usr/bin/apachectl start (code=exited,
status=1/FAILURE)

Aug 18 23:18:10 fusion809-vbox systemd[1]: Stopped Apache Web Server.
Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax error on
lin...:
Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
'php_admin_v...n
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control process
ex...1
Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache Web
Server.
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Unit entered
faile
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Failed with
result
Hint: Some lines were ellipsized, use -l to show in full.


Likewise running:

journalctl -xe

gives:

Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has begun starting up.
Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax error on
line 2
Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
'php_admin_valu
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control process
exite
Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache Web
Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit httpd.service has failed.
-- 
-- The result is failed.
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Unit entered
failed s
Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Failed with
result 'e
Aug 18 23:18:10 fusion809-vbox polkitd[384]: Unregistered Authentication
Agent
Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel ICH]
alsa-sink
Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel ICH]
alsa-sink
Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel ICH]
alsa-sink
lines 2281-2303/2


Any help with be greatly appreciated.

Thanks for your time,
Brenton
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] httpd.service daemon failing to start on Manjaro Linux

2015-08-18 Thread killermoehre
Am 18.08.2015 um 16:24 schrieb Brenton Horne:
 Hi,

 I've been following this guide
 https://wiki.archlinux.org/index.php/MediaWiki to install MediaWiki
 1.25.2 on my Manjaro Linux machine. I managed to follow the guide,
 without errors until I reached the stage of restarting httpd.service,
 namely running:

 systemctl restart httpd.service


 This gives the error:

 Job for httpd.service failed because the control process exited with
 error code. See systemctl status httpd.service and journalctl
 -xe for details.


 Running

 systemctl status httpd.service

 gives:

 ● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled;
 vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2015-08-18 23:18:10
 AEST; 16s ago
   Process: 1083 ExecStart=/usr/bin/apachectl start (code=exited,
 status=1/FAILURE)

 Aug 18 23:18:10 fusion809-vbox systemd[1]: Stopped Apache Web Server.
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax
 error on lin...:
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
 'php_admin_v...n
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control
 process ex...1
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache
 Web Server.
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Unit
 entered faile
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Failed
 with result
 Hint: Some lines were ellipsized, use -l to show in full.


 Likewise running:

 journalctl -xe

 gives:

 Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
 -- Subject: Unit httpd.service has begun start-up
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit httpd.service has begun starting up.
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax
 error on line 2
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
 'php_admin_valu
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control
 process exite
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache
 Web Server.
 -- Subject: Unit httpd.service has failed
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit httpd.service has failed.
 --
 -- The result is failed.
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Unit
 entered failed s
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Failed
 with result 'e
 Aug 18 23:18:10 fusion809-vbox polkitd[384]: Unregistered
 Authentication Agent
 Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel
 ICH] alsa-sink
 Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel
 ICH] alsa-sink
 Aug 18 23:18:21 fusion809-vbox pulseaudio[666]: [alsa-sink-Intel
 ICH] alsa-sink
 lines 2281-2303/2


 Any help with be greatly appreciated.

 Thanks for your time,
 Brenton


 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel

As you can see in the output of systemctl status, your apache.conf has an 
syntax error. Fix it.

Regards
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] RFC: filter and search journalctl

2015-08-18 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Aug 18, 2015 at 09:00:27AM -0400, Anne Mulhern wrote:
 Re-reading the docs, I realize that the information is right there in plain 
 sight.
 If the value is not defined, the variable name, minus the @ signs, is 
 displayed.
 Nice and simple.
 
 But now, I wonder what happens for fields like _UDEV_DEVLINK, which can be set
 0, 1, or many times. If unset, the variable name minus the @ signs is 
 displayed.
 If set once, the value is substituted. If set twice?
One value is used. Which one is pseudorandom.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] httpd.service daemon failing to start on Manjaro Linux

2015-08-18 Thread Daniel Mack
On 08/18/2015 04:24 PM, Brenton Horne wrote:
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
 -- Subject: Unit httpd.service has begun start-up
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 -- 
 -- Unit httpd.service has begun starting up.
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax
 error on line 2
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
 'php_admin_valu
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control
 process exite
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache
 Web Server.

That's a configuration problem of your Apache install and has nothing to
do with systemd.


Thanks,
Daniel

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] httpd.service daemon failing to start on Manjaro Linux

2015-08-18 Thread Reindl Harald



Am 18.08.2015 um 16:35 schrieb Daniel Mack:

On 08/18/2015 04:24 PM, Brenton Horne wrote:

 Aug 18 23:18:10 fusion809-vbox systemd[1]: Starting Apache Web Server...
 -- Subject: Unit httpd.service has begun start-up
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit httpd.service has begun starting up.
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: AH00526: Syntax
 error on line 2
 Aug 18 23:18:10 fusion809-vbox apachectl[1083]: Invalid command
 'php_admin_valu
 Aug 18 23:18:10 fusion809-vbox systemd[1]: httpd.service: Control
 process exite
 Aug 18 23:18:10 fusion809-vbox systemd[1]: Failed to start Apache
 Web Server.


That's a configuration problem of your Apache install and has nothing to
do with systemd


in fact it is using php-config-directives while not load mod_php

Invalid command 'php_admin_v...n



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] use-case for sparse tar archives

2015-08-18 Thread Lennart Poettering
On Tue, 18.08.15 12:07, Vincent Batts (vba...@redhat.com) wrote:

 Before submitting a change for this, why is the creation of tar's using
 `--sparse`?
 https://github.com/systemd/systemd/blob/master/src/import/import-common.c#L213

If you save/restore/migrate disk trees that include sparse files like
utmp/wtmp or journal files it sounds like a good idea to keep them
sparse.

Why would you not do this?

Lennart

-- 
Lennart Poettering, Red Hat
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] use-case for sparse tar archives

2015-08-18 Thread Vincent Batts
Before submitting a change for this, why is the creation of tar's using
`--sparse`?
https://github.com/systemd/systemd/blob/master/src/import/import-common.c#L213

vb
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel