I get the following result:
%
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-GR9LL799YH,guid=37ca9dd6f1faeea14747aad2623af1ba
dbus-test-tool echo
:1.248
(I have to press ctrl-c to exit).
The number increments for each connect.
Michael
---------------------------------------
On Fri, 25 Mar 2022, Giuseppe Scrivano wrote:
> Date: Fri, 25 Mar 2022 10:11:08
> From: Giuseppe Scrivano <gscrivan(a)redhat.com>
> To: Michael Traxler <M.Traxler(a)gsi.de>
> Cc: podman(a)lists.podman.io
> Subject: Re: [Podman] podman and DBUS_SESSION_BUS_ADDRESS
>
> it looks like a problem with your dbus session.
>
> Does `dbus-test-tool` work in the same environment?
>
> $
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-GR9LL799YH,guid=37ca9dd6f1faeea14747aad2623af1ba
dbus-test-tool echo
>
> Does that work?
>
> Giuseppe
>
> Michael Traxler <M.Traxler(a)gsi.de> writes:
>
>> I get
>>
>> % podman --runtime /usr/bin/crun build -f tumbleweed_michael.txt -t
opensuse/tumbleweed_michael
>> STEP 1/2: FROM opensuse/tumbleweed
>> STEP 2/2: RUN zypper ref
>> error running container: error from /usr/bin/crun creating container for [/bin/sh
-c zypper ref]: sd-bus call: Input/output error
>> : exit status 1
>> Error: error building at STEP "RUN zypper ref": error while running
runtime: exit status 1
>>
>> When DBUS_SESSION_BUS_ADDRESS is unset it works.
>>
>> ---------------------------------------
>>
>> On Thu, 24 Mar 2022, Giuseppe Scrivano wrote:
>>
>>> Date: Thu, 24 Mar 2022 13:43:21
>>> From: Giuseppe Scrivano <gscrivan(a)redhat.com>
>>> To: Michael Traxler <M.Traxler(a)gsi.de>
>>> Cc: podman(a)lists.podman.io
>>> Subject: Re: [Podman] podman and DBUS_SESSION_BUS_ADDRESS
>>> please try --runtime /usr/bin/crun
>>>
>>> Michael Traxler <M.Traxler(a)gsi.de> writes:
>>>
>>>> With
>>>>
>>>> % podman --runtime /usr/bin/runc build -f tumbleweed_michael.txt -t
opensuse/tumbleweed_michael
>>>> the error is identical.
>>>>
>>>> ---------------------------------------
>>>>
>>>> On Thu, 24 Mar 2022, Giuseppe Scrivano wrote:
>>>>
>>>>> Date: Thu, 24 Mar 2022 13:22:36
>>>>> From: Giuseppe Scrivano <gscrivan(a)redhat.com>
>>>>> To: Michael Traxler <M.Traxler(a)gsi.de>
>>>>> Cc: podman(a)lists.podman.io
>>>>> Subject: Re: [Podman] podman and DBUS_SESSION_BUS_ADDRESS
>>>>> Michael Traxler <M.Traxler(a)gsi.de> writes:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> when I try to build an image I get the following error message:
>>>>>>
>>>>>> % podman build -f tumbleweed_michael.txt -t
opensuse/tumbleweed_michael
>>>>>> STEP 1/2: FROM opensuse/tumbleweed
>>>>>> STEP 2/2: RUN zypper ref
>>>>>> error running container: error from /usr/bin/runc creating
container
>>>>>> for [/bin/sh -c zypper ref]:
time="2022-03-24T12:56:21+01:00"
>>>>>> level=warning msg="unable to get oom kill count"
error="openat2
>>>>>>
/sys/fs/cgroup/system.slice/runc-buildah-buildah282650677.scope/memory.events:
>>>>>> no such file or directory"
>>>>>> time="2022-03-24T12:56:21+01:00" level=error
msg="runc create failed:
>>>>>> unable to start container process: unable to apply cgroup
>>>>>> configuration: unable to start unit
>>>>>> \"runc-buildah-buildah282650677.scope\" (properties
[{Name:Description
>>>>>> Value:\"libcontainer container
buildah-buildah282650677\"} {Name:Slice
>>>>>> Value:\"system.slice\"} {Name:Delegate Value:true}
{Name:PIDs
>>>>>> Value:@au [17389]} {Name:MemoryAccounting Value:true}
>>>>>> {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true}
>>>>>> {Name:TasksAccounting Value:true} {Name:DefaultDependencies
>>>>>> Value:false}]): Interactive authentication required."
>>>>>> : exit status 1
>>>>>> Error: error building at STEP "RUN zypper ref": error
while running runtime: exit status 1
>>>>>>
>>>>>> My build file is:
>>>>>> FROM opensuse/tumbleweed
>>>>>> RUN zypper ref
>>>>>>
>>>>>> If I then unset DBUS_SESSION_BUS_ADDRESS
>>>>>> everything works as expected.
>>>>>>
>>>>>> % echo $DBUS_SESSION_BUS_ADDRESS
>>>>>>
unix:abstract=/tmp/dbus-GR9LL799YH,guid=37ca9dd6f1faeea14747aad2623af1ba
>>>>>>
>>>>>> % unset DBUS_SESSION_BUS_ADDRESS
>>>>>>
>>>>>> % podman build -f tumbleweed_michael.txt -t
opensuse/tumbleweed_michael
>>>>>> STEP 1/2: FROM opensuse/tumbleweed
>>>>>> STEP 2/2: RUN zypper ref
>>>>>> ...
>>>>>> COMMIT opensuse/tumbleweed_michael
>>>>>> --> 5ea2b965db6
>>>>>> Successfully tagged localhost/opensuse/tumbleweed_michael:latest
>>>>>> 5ea2b965db6412368929e52d8c34e4574cc84feef2f2e7563c1f9225a60bb8b8
>>>>>>
>>>>>> Is it obvious that DBUS_SESSION_BUS_ADDRESS has to be unset?
>>>>>
>>>>> do you get the same error if you try with crun?
>>>>>
>>>>> podman --runtime crun build -f tumbleweed_michael.txt -t
opensuse/tumbleweed_michael
>>>>>
>>>>>
>>>
>>>
>
>