Canopy icon indicating copy to clipboard operation
Canopy copied to clipboard

Unable to run on latest master

Open gjaldon opened this issue 7 years ago • 10 comments

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

gjaldon avatar Mar 06 '17 12:03 gjaldon

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)?

hannesm avatar Mar 06 '17 12:03 hannesm

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", "")

gjaldon avatar Mar 07 '17 05:03 gjaldon

Reported this issue at https://github.com/mirage/ocaml-git/issues/205.

gjaldon avatar Mar 18 '17 01:03 gjaldon

It seems that the problem is at least not in ocaml-git unix, since ogit cloning 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 ?

abbysmal avatar Mar 21 '17 11:03 abbysmal

//ping @dinosaure (see @Engil comment above)

hannesm avatar Apr 01 '17 13:04 hannesm

Yes, I will check this day :+1: (sorry for the delay but, I have lot of work in other side).

dinosaure avatar Apr 01 '17 13:04 dinosaure

See #87

dinosaure avatar Apr 01 '17 18:04 dinosaure

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

samoht avatar May 16 '18 22:05 samoht

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.

samoht avatar May 18 '18 16:05 samoht

No idea if that works fine, I haven't even started the unikernel.

So there's an issue in resolving Git uris.

samoht avatar May 18 '18 16:05 samoht