summaryrefslogtreecommitdiff
path: root/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__
diff options
context:
space:
mode:
Diffstat (limited to 'doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__')
-rw-r--r--doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_1_53e13a037e2913699eb2bdd0d032a745._comment10
-rw-r--r--doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_2_a071a094c69451d6f43f3f8e01fff8a3._comment24
-rw-r--r--doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_3_0b24a74ca08b24b6b6d14860b8ab903a._comment11
-rw-r--r--doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_4_b48193efd8c3b3d8d5992e7de0319773._comment8
4 files changed, 53 insertions, 0 deletions
diff --git a/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_1_53e13a037e2913699eb2bdd0d032a745._comment b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_1_53e13a037e2913699eb2bdd0d032a745._comment
new file mode 100644
index 00000000..22663bbb
--- /dev/null
+++ b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_1_53e13a037e2913699eb2bdd0d032a745._comment
@@ -0,0 +1,10 @@
+[[!comment format=mdwn
+ username="gueux"
+ subject="comment 1"
+ date="2015-09-08T16:15:17Z"
+ content="""
+looking at newhost logs, I found:
+
+ Sep 8 18:02:44 newhost kernel: Out of memory: Kill process 31874 (cabal) score 824 or sacrifice child
+
+"""]]
diff --git a/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_2_a071a094c69451d6f43f3f8e01fff8a3._comment b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_2_a071a094c69451d6f43f3f8e01fff8a3._comment
new file mode 100644
index 00000000..ed97a2d8
--- /dev/null
+++ b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_2_a071a094c69451d6f43f3f8e01fff8a3._comment
@@ -0,0 +1,24 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2015-09-09T22:25:55Z"
+ content="""
+Propellor needs to build itself from source on the host it's
+provisioning, and so it needs to install its haskell library dependencies.
+
+It first does this by trying to apt-get install all the relevant packages.
+However, that might fail for some reason, including perhaps that new enough
+versions of some library is not available to apt-get. So, it then also
+asks cabal to install any missing dependencies. This is where the `cabal
+update` comes in. I'd rather only do that if apt didn't install all
+necessary deps, but I don't currently know how to check that, so it does it
+always.
+
+It looks like cabal may be allocating too much memory to work on your arm
+router. This could be because of a problem in depenedency resolution, which
+sometimes runs cabal out of memory even on big boxes, or it could just be
+too memory hungry to be practical there.
+
+The smallest system I've successfully run git-annex on had 500 mb of
+memory. IIRC, most memory is used when ghc is compiling propellor.
+"""]]
diff --git a/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_3_0b24a74ca08b24b6b6d14860b8ab903a._comment b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_3_0b24a74ca08b24b6b6d14860b8ab903a._comment
new file mode 100644
index 00000000..229ff1e0
--- /dev/null
+++ b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_3_0b24a74ca08b24b6b6d14860b8ab903a._comment
@@ -0,0 +1,11 @@
+[[!comment format=mdwn
+ username="gueux"
+ subject="comment 3"
+ date="2015-09-10T09:30:57Z"
+ content="""
+The host has 128Mo of RAM :-). All dependencies should be available to apt-get, though... as it runs debian jessie. I used propellor on several other hosts running jessie also, and (it seems that) they didn't download the package list.
+
+Downloading anything from hackage is problematic because cabal uses insecure http (potential MITM), and a new version of a dependency may introduce security holes.
+
+As side note, stack may be an alternative to cabal in the case where apt can't find all the dependencies: it downloads everything securely, and stackage allows to deal with dependencies issues: the build may probably fail if new incompatible versions of propellor dependencies are released to hackage. Or maybe using strict versioning would be a solution there. Or maybe building propellor (at least for host with the same architecture) before sending it to the host?
+"""]]
diff --git a/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_4_b48193efd8c3b3d8d5992e7de0319773._comment b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_4_b48193efd8c3b3d8d5992e7de0319773._comment
new file mode 100644
index 00000000..a6b6c306
--- /dev/null
+++ b/doc/forum/Why_downloading_package_list_from_hackage.haskell.org__63__/comment_4_b48193efd8c3b3d8d5992e7de0319773._comment
@@ -0,0 +1,8 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 4"""
+ date="2015-09-25T13:35:47Z"
+ content="""
+Cabal is going to download securely soon enough. There's already a branch
+of cabal that can do it.
+"""]]