Am 23.02.2017 um 23:55 schrieb Sönke Ludwig:
The virtual server that is running code.dlang.org has frozen about an
hour ago and fails to boot further than to the bootloader. Initial
attempts to recover from within Grub have failed and it's unclear what
the root cause is. I will instead set up a replacement server with the
latest backup from 20 hours ago as soon as it becomes available.

It's really about time to install a permanent backup server to keep the
registry available in such cases. I will try my best to allocate time to
make this happen, but I'm severely constrained currently and any helping
hand would make a big difference. What needs to be implemented is a mode
for the DUB registry [1] that works without the userman database and
instead just polls code.dlang.org for changes (may also require some new
REST API end points to be able to acquire all needed data).

[1]: https://github.com/dlang/dub-registry/

I used the waiting time during the backup upload to prepare a PR for a mirror mode: https://github.com/dlang/dub-registry/pull/187

Would be good if someone could have a look. Once this is merged, anyone can run this on a server using `./dub-registry --mirror https://code.dlang.org/` and then forward incoming requests using a reverse proxy to http://127.0.0.1:8005.

In the current form, this will enable manual fallback in the form of users specifying --registry=https://some.code.dlang.mirror on the DUB command line. In the future we can then keep a list of official mirrors as DNS entries (maybe of the form mirror1.dub.pm) and let DUB use those automatically.

Reply via email to