Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman remote logs "EOF" error when building from an empty directory #15921

Closed
Romain-Geissler-1A opened this issue Sep 24, 2022 · 3 comments · Fixed by #19419
Closed

podman remote logs "EOF" error when building from an empty directory #15921

Romain-Geissler-1A opened this issue Sep 24, 2022 · 3 comments · Fixed by #19419
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@Romain-Geissler-1A
Copy link
Contributor

Romain-Geissler-1A commented Sep 24, 2022

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description

When building from an empty directory, podman remote logs an unexpected "EOF" error.

Steps to reproduce the issue:

(Tested using the quay.io/podman/upstream image)

  1. Setup an empty build context and an Dockerfile not located in this build context:
[root@fa7e0c9e34d1 /]# mkdir empty-directory
[root@fa7e0c9e34d1 /]# echo "FROM scratch" > Dockerfile
  1. Try to build this image with an empty build context without using remote podman, it works:
[root@fa7e0c9e34d1 /]# podman build -f Dockerfile empty-directory/
STEP 1/1: FROM scratch
COMMIT
--> 8540bc5d966
8540bc5d966cc291b91b724dcd49b51674d12a30cd1375fdfa7e9fb048723217
  1. Start a podman server, and try the same thing with podman remote, it seems to work, but it logs an unexpected EOF error:
[root@fa7e0c9e34d1 /]# podman system service -t 0 &
[1] 56
[root@fa7e0c9e34d1 /]# podman --remote build -f Dockerfile empty-directory/
ERRO[0000] While reading directory /empty-directory: EOF
STEP 1/1: FROM scratch
COMMIT
--> 13f8e206674
13f8e20667465573de921f6e98356d4d6acb7d923739e554ad232fffa80888d0

Describe the results you received:
There is an unexpected log ERRO[0000] While reading directory /empty-directory: EOF when using podman remote.

Describe the results you expected:
There should be no error log.

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

[root@fa7e0c9e34d1 /]# podman version
Client:       Podman Engine
Version:      4.3.0-dev
API Version:  4.3.0-dev
Go Version:   go1.18.6
Built:        Thu Jan  1 00:00:00 1970
OS/Arch:      linux/amd64
@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 24, 2022
@github-actions
Copy link

A friendly reminder that this issue had no activity for 30 days.

@gabfv
Copy link

gabfv commented Feb 26, 2023

I got the exact same issue here using this version:
(deck@steamdeck data)$ podman version
Client: Podman Engine
Version: 4.4.2
API Version: 4.4.2
Go Version: go1.20.1
Git Commit: 74afe26-dirty
Built: Thu Feb 23 10:59:21 2023
OS/Arch: linux/amd64

@rhatdan
Copy link
Member

rhatdan commented Jul 30, 2023

Just add this patch
test.patch
Or something like it.

Romain-Geissler-1A added a commit to Romain-Geissler-1A/podman that referenced this issue Jul 31, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Oct 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
3 participants