# Is it possible to mirror lib.haxe.org?

**URL:** <https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474>\
**Category:** Haxe\
**Tags:** haxelib, haxelib-support\
**Created:** [February 22, 2022, 11:39am UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474 "2022-02-22T11:39:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fed239](https://community.haxe.org/user_avatar/community.haxe.org/fed239/32/941_2.png) [@fed239](https://community.haxe.org/u/fed239)\
**Post date:** [February 22, 2022, 11:39am UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/1 "2022-02-22T11:39:20Z")

</div>

Now [https://lib.haxe.org/](https://lib.haxe.org/) seems to be down and all our CI pipelines are stuck. What would you recommend for mirroring of the Haxe package repository? Probably we need only the packages used in our code.

Thank you for ideas!

---

<div class="post-metadata">

**Author:** ![andyli](https://community.haxe.org/user_avatar/community.haxe.org/andyli/32/26_2.png) [@andyli](https://community.haxe.org/u/andyli)\
**Post date:** [February 22, 2022, 3:25pm UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/2 "2022-02-22T15:25:09Z")

</div>

Thanks for the report. I’ve just bring the site back to normal and going to investigate what happened.

For CI/development stability, my personal approach is to build a docker container with all the dependency already installed, so there would be minimal network usage required after pulling the docker container.

Some people commit the project-local `.haxelib` folder into the git repo, you may also consider that.

---

<div class="post-metadata">

**Author:** ![andyli](https://community.haxe.org/user_avatar/community.haxe.org/andyli/32/26_2.png) [@andyli](https://community.haxe.org/u/andyli)\
**Post date:** [February 22, 2022, 3:27pm UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/3 "2022-02-22T15:27:31Z")

</div>

hmmm… there is still something wrong with haxelib install, I’m checking now.

---

<div class="post-metadata">

**Author:** ![andyli](https://community.haxe.org/user_avatar/community.haxe.org/andyli/32/26_2.png) [@andyli](https://community.haxe.org/u/andyli)\
**Post date:** [February 22, 2022, 4:31pm UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/4 "2022-02-22T16:31:09Z")

</div>

I think it’s normal now.

It was MySQL filled its 8Gi disk with its bin log, because the `expire_logs_days` default setting is `0` (i.e. keep all bin log forever). I’ve just resized the disk to 32Gi and set `expire_logs_days` to `1`.

I will setup some more monitoring soon.

---

<div class="post-metadata">

**Author:** ![back2dos](https://community.haxe.org/user_avatar/community.haxe.org/back2dos/32/30_2.png) [@back2dos](https://community.haxe.org/u/back2dos)\
**Post date:** [February 24, 2022, 12:42pm UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/5 "2022-02-24T12:42:06Z")

</div>

At Docler we’ve been using [Caching proxy server by st3veV · Pull Request #365 · HaxeFoundation/haxelib · GitHub](https://github.com/HaxeFoundation/haxelib/pull/365) for ~5 years and it has worked quite fine so far. That said, we’re only using small dependencies. If you’re using libs above 1mb like openfl / lime / nme, then you’ll probably have to tweak [a few sections](https://github.com/HaxeFoundation/haxelib/pull/365/files#diff-3e8a436225fc955f94c8d166eea9df831b5f3cfdfa2a370209a2871d44732676R90-R101) a little.

---

<div class="post-metadata">

**Author:** ![danielo515](https://community.haxe.org/user_avatar/community.haxe.org/danielo515/32/2052_2.png) [@danielo515](https://community.haxe.org/u/danielo515)\
**Post date:** [December 23, 2022, 2:24pm UTC](https://community.haxe.org/t/is-it-possible-to-mirror-lib-haxe-org/3474/6 "2022-12-23T14:24:11Z")

</div>

And why has been that PR sitting there for 7 years?
