www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DUB is unusable (code.dlang.org is almost everytime i tried it down)

reply Daniel Kozak <kozzi11 gmail.com> writes:
OK, Who is responsible for code.dlang.org. Every time I tried dub 
build I end up with nothing, almost everytime it hangs.

This is really annoying. I can offer free VPS for hosting it.
Apr 05 2018
next sibling parent Seb <seb wilzba.ch> writes:
On Thursday, 5 April 2018 at 07:35:24 UTC, Daniel Kozak wrote:
 OK, Who is responsible for code.dlang.org. Every time I tried 
 dub build I end up with nothing, almost everytime it hangs.

 This is really annoying. I can offer free VPS for hosting it.
Sönke - see e.g. https://github.com/dlang/ci/issues/190 BTW interestingly, this one mirror seems to be the most stable one: https://dub-registry.herokuapp.com
Apr 05 2018
prev sibling parent reply Ikeran <dhasenan ikeran.org> writes:
On Thursday, 5 April 2018 at 07:35:24 UTC, Daniel Kozak wrote:
 OK, Who is responsible for code.dlang.org. Every time I tried 
 dub build I end up with nothing, almost everytime it hangs.

 This is really annoying. I can offer free VPS for hosting it.
You can build the Dub registry (assuming you can contact code.dlang.org enough to build it), then run it with --mirror=https://code.dlang.org/ It requires categories.json, which is in the root of the git repo. Note that if you use the latest tag, 2.2.0, categories.json is out of date. The categories.json from HEAD works with this tag. To use it, just alias `dub` to `command dub --registry https://my-registry.example.org` It depends on mongodb (3.4 should work; 2.6.10, which is the latest in ubuntu 16.04's repos, will *not*) and, by default at least, expects a database named 'vpmreg'. You'll probably want to put up apache or nginx as a reverse proxy to handle ipv4 plus ipv6 (dub-registry is hardcoded to listen on only one address) and SSL. https://gist.github.com/dhasenan/67f7191a56fc663a729395429b6400b8 for the systemd service. I'm not sure if this actually works. I set one up at http://dub.ikeran.org; it sucked up 99.3% of my CPU for eight minutes and told me it had an error reading from https://code.dlang.org. This should be documented in the README.md but isn't. I will augment it with what information I have.
Apr 05 2018
parent Ikeran <dhasenan ikeran.org> writes:
On Friday, 6 April 2018 at 03:53:26 UTC, Ikeran wrote:
 I'm not sure if this actually works. I set one up at 
 http://dub.ikeran.org; it sucked up 99.3% of my CPU for eight 
 minutes and told me it had an error reading from 
 https://code.dlang.org.
I *think* what happened is: the API gives gzipped data, but dub-registry can't handle gzipped data. I pointed dub.ikeran.org to a file on disk and it managed to load 1274 packages or so. I'm going to add a cron job to grab and un-gzip data from upstream and call it a day.
Apr 05 2018