cuekeeper
cuekeeper copied to clipboard
issue with make server on Ubuntu 20.04 LTS
@talex5 I have stood up a Ubuntu 20.04 LTS server on Linode, and am trying to now build a cueserver for my use. I believe I have installed all the opam packages, but I get this error now:
root@localhost:~/cuekeeper# make server
rm -rf _build/static
mkdir -p _build/static
cp -r resources _build/static/
dune build --profile=release ./js/client.bc.js
File "lib/ck_utils.ml", line 70, characters 2-30:
70 | ReactiveData.RList.make_from init changes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Unbound value ReactiveData.RList.make_from
ocaml-crunch lib/ck_init.ml
Generating ck_init.ml
Skipping generation of .mli
make: *** [Makefile:56: server] Error 1
root@localhost:~/cuekeeper#
Don't forget to build the client first. Those instructions should install the dependencies you need.
Ok, right duh! :-)
When executing opam install --deps-only -t cuekeeper I get the following error:
root@localhost:~/cuekeeper# opam install --deps-only -t cuekeeper
[WARNING] Running as root is not recommended
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[cuekeeper.dev] no changes from git+file:///root/cuekeeper#master
The following actions will be performed:
∗ install irmin-git 1.4.0*
∗ install irmin-indexeddb 1.3*
===== ∗ 2 =====
Do you want to continue? [Y/n] y
[irmin-git.1.4.0] synchronised from git+https://github.com/talex5/irmin.git#1.4.0-cuekeeper
[irmin-indexeddb.1.3] synchronised from git+https://github.com/talex5/irmin-indexeddb.git#irmin-1.3
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of irmin-git failed at "/root/.opam/opam-init/hooks/sandbox.sh build jbuilder subst".
#=== ERROR while compiling irmin-git.1.4.0 ====================================#
# context 2.0.5 | linux/x86_64 | ocaml-base-compiler.4.07.1 | pinned(git+https://github.com/talex5/irmin.git#1.4.0-cuekeeper#b2241ef5)
# path ~/.opam/4.07.1/.opam-switch/build/irmin-git.1.4.0
# command ~/.opam/opam-init/hooks/sandbox.sh build jbuilder subst
# exit-code 1
# env-file ~/.opam/log/irmin-git-84830-9088e2.env
# output-file ~/.opam/log/irmin-git-84830-9088e2.out
### output ###
# git (internal) (exit 128)
# /usr/bin/git ls-tree -r --name-only HEAD > /tmp/jbuild4dcd48.output
# error: object directory /root/.opam/download-cache/git/objects does not exist; check .git/objects/info/alternates
# fatal: not a tree object
# git (internal) (exit 128)
# /usr/bin/git describe --always --dirty > /tmp/jbuilda7402a.output
# error: object directory /root/.opam/download-cache/git/objects does not exist; check .git/objects/info/alternates
# fatal: bad object HEAD
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build irmin-git 1.4.0
└─
╶─ No changes have been performed
root@localhost:~/cuekeeper#
I just tried it on Ubuntu 20.04 and it worked for me (I used the ocurrent/opam:ubuntu-20.04-ocaml-4.07 Docker image to test it). Looks like your /root/.opam/download-cache got corrupted somehow. Deleting that (or the whole ~/.opam directory) and trying again might fix it.