kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

Add symbolic link to the correct path (usr/bin/mkfifo: not found)

Open amine-mokaddem opened this issue 1 year ago • 3 comments

Actual behavior Hi there, I am using bitbucket pipelines and would like to use Kaniko for a pipeline. I'm using kaniko debug image and i got this error "usr/bin/mkfifo: not found " (kaniko debug uses busybox image wich follows a different path ("/bin/mkfifo") instead of the expected "/usr/bin/mkfifo," leading to this issue during the pipeline build) Is there any possibility of adding symbolic link to the correct path in the dockerfile ? ( ln -s /bin/busybox /usr/bin/mkfifo;)

Expected behavior:

The build should succeed

To Reproduce: just use the kaniko debug image in bitbucket pipeline

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
  • - [x]
Please check if the build works in docker but not in kaniko
  • - [ ]
Please check if this error is seen when you use --cache flag
  • - [x]
Please check if your dockerfile is a multistage dockerfile
  • - [x]

amine-mokaddem avatar Mar 11 '24 19:03 amine-mokaddem

Hi @amine-mokaddem would you mind adding more details for the repro i.e. Dockerfile, version of Kaniko image used etc.

JeromeJu avatar Mar 21 '24 15:03 JeromeJu

This seems to be an Atlassian Bitbucket-specific problem. A symlink would of course be fine to be compatible. The workaround via a custom image is of course annoying at this point.

See: https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-Build-Setup-bin-sh-usr-bin-mkfifo-not-found/qaq-p/1253290

head1328 avatar Jan 28 '25 14:01 head1328

See: https://confluence.atlassian.com/bbkb/fixing-usr-bin-mkfifo-not-found-error-in-bitbucket-pipelines-1217306504.html

I get error in Bitbucket Pipelines (non-modifiable step: Build setup): /bin/sh: /usr/bin/mkfifo: not found /bin/sh: /bin/echo: not found

Lukas-solar avatar Mar 03 '25 10:03 Lukas-solar