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

Unable to run on latest master #84

Open
gjaldon opened this issue Mar 6, 2017 · 10 comments
Open

Unable to run on latest master #84

gjaldon opened this issue Mar 6, 2017 · 10 comments

Comments

@gjaldon
Copy link
Contributor

gjaldon commented Mar 6, 2017

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
@hannesm
Copy link
Collaborator

hannesm commented Mar 6, 2017

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

@gjaldon
Copy link
Contributor Author

gjaldon commented Mar 7, 2017

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
Copy link
Contributor Author

gjaldon commented Mar 18, 2017

Reported this issue at mirage/ocaml-git#205.

@abbysmal
Copy link
Owner

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 ?

@hannesm
Copy link
Collaborator

hannesm commented Apr 1, 2017

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

@dinosaure
Copy link
Contributor

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

@dinosaure
Copy link
Contributor

See #87

@samoht
Copy link
Contributor

samoht commented May 16, 2018

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
Copy link
Contributor

samoht commented May 18, 2018

I have a Canopy branch with compile with these patches: #95

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

@samoht
Copy link
Contributor

samoht commented May 18, 2018

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

So there's an issue in resolving Git uris.

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

5 participants