-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Describe the issue
I have a repository with a large history.
Namely https://github.com/Informatievlaanderen/OSLO-Generated.git
When inspecting the git pulling process, and the logs then
- the repo gets pulled (I see the /tmp/mygit/.git directory growing) but no files are shown in the /tmp/mygit
- the startup of caddy is stalled (probably for some processing is happening)
{"level":"info","ts":1677500520.008053,"msg":"using provided configuration","config_file":"/config/Caddyfile","config_adapter":""}
{"level":"warn","ts":1677500520.009864,"msg":"Caddyfile input is not formatted; run the 'caddy fmt' command to fix inconsistencies","adapter":"caddyfile","file":"/config/Caddyfile","line":2}
{"level":"info","ts":1677500520.0127003,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]}
{"level":"info","ts":1677500520.0130904,"logger":"git","msg":"provisioning app instance","app":"git"}
Configuration
{
auto_https off
order request_id before header
order git before respond
git {
repo mygit {
base_dir /tmp
url {$REPOSITORY}
branch {$BRANCH}
depth 1
post pull exec {
name Pager
command /bin/echo
args "pulled repo"
}
}
}
}
Version Information
latest builds
Expected behavior
For smaller sized repositories the stalled processing is followed by logs like
{"level":"info","ts":1677500409.5293095,"logger":"http.handlers.git","msg":"validated plugin instance","instance_name":"git-mygit"}
{"level":"info","ts":1677500409.531182,"logger":"tls","msg":"cleaning storage unit","description":"FileStorage:/data/caddy"}
{"level":"info","ts":1677500409.5374835,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1677500409.5388982,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1677500409.539357,"msg":"serving initial configuration"}
And then caddy is functioning fine.
So my question is
- what is the reason for this delay (it grows in the size of the repo) ?
- What can I do about it?