public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* potential race condition in sbuild post commands
@ 2024-01-17 15:00 MOESSBAUER, Felix
  2024-01-18  8:32 ` Anton Mikanovich
  0 siblings, 1 reply; 3+ messages in thread
From: MOESSBAUER, Felix @ 2024-01-17 15:00 UTC (permalink / raw)
  To: isar-users

Dear devs,

I recently got the following error in multiple layers (do_dpkg_build):

cp: cannot stat '/var/cache/apt/archives/*.deb': No such file or
directory
| 
| E: Command '[ -z "$(find /var/cache/apt/archives -maxdepth 1 -name
'*.deb' -print -quit)" ] || cp -Ln --no-preserve=owner
/var/cache/apt/archives/*.deb -t /home/builder/gasket-module-rt-
amd64/rootfs/var/cache/apt/archives/' failed to run.
| 
| Finished processing commands.

It looks like the copy operation has some race with a cleanup
operation. Is this already a known issue? I did not yet start bisecting
or investigating this.

ISAR version: 1c509852c5a724a2c3ba401108d95fb1bfa36f90

Best regards,
Felix

-- 
Siemens AG, Technology
Linux Expert Center



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: potential race condition in sbuild post commands
  2024-01-17 15:00 potential race condition in sbuild post commands MOESSBAUER, Felix
@ 2024-01-18  8:32 ` Anton Mikanovich
  2024-01-18  9:17   ` MOESSBAUER, Felix
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Mikanovich @ 2024-01-18  8:32 UTC (permalink / raw)
  To: MOESSBAUER, Felix, isar-users

17/01/2024 17:00, 'MOESSBAUER, Felix' via isar-users wrote:
> Dear devs,
>
> I recently got the following error in multiple layers (do_dpkg_build):
>
> cp: cannot stat '/var/cache/apt/archives/*.deb': No such file or
> directory
> |
> | E: Command '[ -z "$(find /var/cache/apt/archives -maxdepth 1 -name
> '*.deb' -print -quit)" ] || cp -Ln --no-preserve=owner
> /var/cache/apt/archives/*.deb -t /home/builder/gasket-module-rt-
> amd64/rootfs/var/cache/apt/archives/' failed to run.
> |
> | Finished processing commands.
>
> It looks like the copy operation has some race with a cleanup
> operation. Is this already a known issue? I did not yet start bisecting
> or investigating this.
>
> ISAR version: 1c509852c5a724a2c3ba401108d95fb1bfa36f90
>
> Best regards,
> Felix
>
Hello Felix,
It looks like a new issue, we will try to reproduce it.
Are there any preconditions that can helpfull?
(DL_DIR path, is it empty on beginning, etc)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: potential race condition in sbuild post commands
  2024-01-18  8:32 ` Anton Mikanovich
@ 2024-01-18  9:17   ` MOESSBAUER, Felix
  0 siblings, 0 replies; 3+ messages in thread
From: MOESSBAUER, Felix @ 2024-01-18  9:17 UTC (permalink / raw)
  To: amikan, isar-users

On Thu, 2024-01-18 at 10:32 +0200, Anton Mikanovich wrote:
> 17/01/2024 17:00, 'MOESSBAUER, Felix' via isar-users wrote:
> > Dear devs,
> > 
> > I recently got the following error in multiple layers
> > (do_dpkg_build):
> > 
> > cp: cannot stat '/var/cache/apt/archives/*.deb': No such file or
> > directory
> > > 
> > > E: Command '[ -z "$(find /var/cache/apt/archives -maxdepth 1 -
> > > name
> > '*.deb' -print -quit)" ] || cp -Ln --no-preserve=owner
> > /var/cache/apt/archives/*.deb -t /home/builder/gasket-module-rt-
> > amd64/rootfs/var/cache/apt/archives/' failed to run.
> > > 
> > > Finished processing commands.
> > 
> > It looks like the copy operation has some race with a cleanup
> > operation. Is this already a known issue? I did not yet start
> > bisecting
> > or investigating this.
> > 
> > ISAR version: 1c509852c5a724a2c3ba401108d95fb1bfa36f90
> > 
> > Best regards,
> > Felix
> > 
> Hello Felix,
> It looks like a new issue, we will try to reproduce it.
> Are there any preconditions that can helpfull?
> (DL_DIR path, is it empty on beginning, etc)

Hi, it looks like the patch 1c509852 makes this more likely to show up.
Also, a big machine with many cores helps to reproduce and running kas-
container clean from time to time (or delete the build/tmp dir) between
the builds.

On one of our internal layers, I ran into this issue almost 100% of the
time. By that I think it will be easy to reproduce.

Best regards,
Felix

> 

-- 
Siemens AG, Technology
Linux Expert Center



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-18  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 15:00 potential race condition in sbuild post commands MOESSBAUER, Felix
2024-01-18  8:32 ` Anton Mikanovich
2024-01-18  9:17   ` MOESSBAUER, Felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox