Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with make server on Ubuntu 20.04 LTS #30

Open
Brian2-Cohen-Bose opened this issue May 4, 2020 · 3 comments
Open

issue with make server on Ubuntu 20.04 LTS #30

Brian2-Cohen-Bose opened this issue May 4, 2020 · 3 comments

Comments

@Brian2-Cohen-Bose
Copy link

Brian2-Cohen-Bose commented May 4, 2020

@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# 
@talex5
Copy link
Owner

talex5 commented May 5, 2020

Don't forget to build the client first. Those instructions should install the dependencies you need.

@Brian2-Cohen-Bose
Copy link
Author

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# 

@talex5
Copy link
Owner

talex5 commented May 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants