Failed to read file contents (Git repo for stacks) #1239

Closed
opened 2026-03-22 17:15:55 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @wardwygaerts on GitHub (Jun 17, 2025).

I created soms stacks which are working fine. Now, some days later I wanted to add my other stacks, but it can't find the files from my repo

Working stack

[[stack]]
name = "pvr"
[stack.config]
server = "elitedesk01"
project_name = "pvr"
git_account = "user"
repo = "user/docker-stacks"
file_paths = [
  "elitedesk01/pvr/compose.yaml"
]

Not working stack

[[stack]]
name = "bitwarden"
[stack.config]
server = "elitedesk01"
project_name = "bitwarden"
git_account = "user"
repo = "user/docker-stacks"
file_paths = [
  "elitedesk01/bitwarden/compose.yaml"
]

So for me, there are the same, and the files are in the repo.

Error of the not working stack:

ERROR: Failed to read file contents from "/repo-cache/github.com/user-docker-stacks/main/latest/elitedesk01/bitwarden/compose.yaml"

TRACE:
	1: No such file or directory (os error 2)

There is a button to initialize the file, when I press it, a Hello World example is created and even pushed to my repo. When changing the content of the compose file again I get the same errors.

I assume something is wrong with the git pull on my docker host?
When I check the repo-cache folder on the container, I'm indeed missing the bitwarden folder...

Originally created by @wardwygaerts on GitHub (Jun 17, 2025). I created soms stacks which are working fine. Now, some days later I wanted to add my other stacks, but it can't find the files from my repo Working stack ``` [[stack]] name = "pvr" [stack.config] server = "elitedesk01" project_name = "pvr" git_account = "user" repo = "user/docker-stacks" file_paths = [ "elitedesk01/pvr/compose.yaml" ] ``` Not working stack ``` [[stack]] name = "bitwarden" [stack.config] server = "elitedesk01" project_name = "bitwarden" git_account = "user" repo = "user/docker-stacks" file_paths = [ "elitedesk01/bitwarden/compose.yaml" ] ``` So for me, there are the same, and the files are in the repo. Error of the not working stack: ``` ERROR: Failed to read file contents from "/repo-cache/github.com/user-docker-stacks/main/latest/elitedesk01/bitwarden/compose.yaml" TRACE: 1: No such file or directory (os error 2) ``` There is a button to initialize the file, when I press it, a Hello World example is created and even pushed to my repo. When changing the content of the compose file again I get the same errors. I assume something is wrong with the git pull on my docker host? When I check the *repo-cache* folder on the container, I'm indeed missing the *bitwarden* folder...
Author
Owner

@wardwygaerts commented on GitHub (Jun 26, 2025):

I solved the issue by removing the repo-cache volume in the core compose file.

@wardwygaerts commented on GitHub (Jun 26, 2025): I solved the issue by removing the repo-cache volume in the core compose file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#1239