Canopy
Canopy copied to clipboard
Unable to run on latest master
I tried running latest master of Canopy on my new Arch Linux install but get the ff error when trying to run ./main.native
:
2017-03-06 20:09:04 +08:00: INF [tcpip-stack-socket] Manager: connect
2017-03-06 20:09:04 +08:00: INF [tcpip-stack-socket] Manager: configuring
2017-03-06 20:09:04 +08:00: INF [canopy-store] pulling repository
2017-03-06 20:09:09 +08:00: INF [git.sync] remote: Counting objects: 100, done.
2017-03-06 20:09:11 +08:00: INF [git.sync] remote: Total 100 (delta 0), reused 0 (delta 0), pack-reused 100
2017-03-06 20:09:11 +08:00: INF [git.sync] Received a pack file of 341174 bytes.
Parse error: invalid: 5 is reserved
2017-03-06 20:09:11 +08:00: WRN [canopy-store] failed pull Mstruct.Parse_error("invalid: 5 is reserved")
2017-03-06 20:09:11 +08:00: ERR [application] main: (Invalid_argument ".config/uuid is required in the remote git repository")
Raised at file "pervasives.ml", line 33, characters 20-45
Called from file "src/core/lwt.ml", line 684, characters 36-41
I checked the default engil/__blog
repo and it has the .config/uuid
file that it is looking for. Any idea what may have caused this? Is there additional setup I should beyond the following?
$ mirage configure
$ make depend
$ make
Which git (and mirage-git) are you using? Which remote protocol? Does it work if you use git://github.com/Engil/__blog.git
(i.e. not smart http, but git protocol)?
I'm using git 1.10.0
and mirage-git 1.6.0
with OCaml 4.03.0. I tried using both http and git but get roughly the same errors. With git I'm getting the additional error:
WRN [canopy-store] failed pull Unix.Unix_error(Unix.EBADF, "check_descriptor", "")
Reported this issue at https://github.com/mirage/ocaml-git/issues/205.
It seems that the problem is at least not in ocaml-git unix, since ogit clon
ing both URL seems to work on my station.
However I just encountered the same issue (5 is reserved
) while trying to run latest Canopy/ocaml-git/mirage on Xen.
I suspect our dear old inflator.ml
and latest Decompress release to be at play in this issue.
@dinosaure: Can you take a look at it ?
Do we have a proper alternative to our inflator somewhere upstream ?
//ping @dinosaure (see @Engil comment above)
Yes, I will check this day :+1: (sorry for the delay but, I have lot of work in other side).
See #87
If someone has time to adapt the new ocaml-git/irmin to canopy that would be super helpful. To get this going:
$ opam pin add git -n --dev
$ opam pin add git-http -n --dev
$ opam pin add git-mirage -n --dev
$ opam pin add irmin https://github.com/samoht/irmin.git#ngit
$ opam pin add irmin-git https://github.com/samoht/irmin.git#ngit
$ opam pin add irmin-mem https://github.com/samoht/irmin.git#ngit
$ opam pin add irmin-mirage https://github.com/samoht/irmin.git#ngit
I have a Canopy branch with compile with these patches: https://github.com/Engil/Canopy/pull/95
No idea if that works fine, I haven't even started the unikernel.
No idea if that works fine, I haven't even started the unikernel.
So there's an issue in resolving Git uris.