Whenever I install a package not present in our local depot, it always fails. It doesn’t appear that the upstream packages are ever downloaded into our depot and made available, even after multiple tries and waiting. bldr.habitat.sh is definitely reachable from the VM running our depot.
For now, I’m working around this by manually installing the packages from public builder and then uploading the harts to our depot.
It’s failing for all packages I don’t have cached locally or already present on our depot. The only packages I’m pulling from upstream are core packages. I haven’t noticed any instance of success and I’m not sure when this stopped working. This may have actually started weeks ago and only manifested after the base plan refresh.
I actually just noticed a case where my workaround failed: core/hab/0.57.0/20180614230004
Additionally, the upstream syncing process writes a log file to /hab/svc/builder-api/var/builder-upstream.log. That should contain details about what the syncing process is actually doing.
Hmmm. So it looks like it is actually working now. The config for the upstream depot was definitely applied previously (I have it in the same /hab/user/builder-api/config/user.toml I used to configure the s3 backend and I verified via the supervisor REST API).
Looking further back in the log, I see a lot of this:
The current logs seem fine and the symptoms seem gone. No clue what changed.
I did notice a very long delay between when I make a request and when a relevant log entry appears in builder-upstream.log. On the order of 20-30 seconds.
Yeah, right now there’s a background thread that ticks every 60 seconds and processes whatever upstream packages need to be synced. The initial implementation did it on demand, but was changed. We’ve gotten feedback from a few sources, though, that this is sub-optimal, so I’m hoping to have some fixes in for this coming soon.