Hello,
I'm a bit lost over here, could anyone point me to the right
documentation to use the Irmin backend for Canopy instead of using a Git
repository?
I have started my local Irmin Git backend (irmin init -d -v -s git) on
the directory which contains my Canopy content (~/irmin-canopy-data),
perhaps what I'm missing is the right remote uri path on the config.ml
file, currently using
"http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git".
When I run the unikernel and try to pull the canopy content I get the
following error:
~/workspace/Canopy$ ./mir-canopy -r
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git -l debug
Manager: connect
Manager: configuring
2017-02-10 16:30.15: INF [git.memory] Reading HEAD
2017-02-10 16:30.15: INF [canopy-store] pulling repository
2017-02-10 16:30.15: DBG [irmin.sync] fetch URI
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git
2017-02-10 16:30.15: DBG [irmin.git] fetch
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git
2017-02-10 16:30.15: DBG [git.sync] fetch
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git wants=<all>
2017-02-10 16:30.15: DBG [git.sync] Sync.with_listing
2017-02-10 16:30.15: DBG [git.sync] Init.create request=git-upload-pack
discover=true
gri=http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git
2017-02-10 16:30.15: DBG [git.sync] computed-gri:
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git/info/refs?service=git-upload-pack
2017-02-10 16:30.15: DBG [git.http] HTTP connecting to
http://127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git/info/refs?service=git-upload-pack
2017-02-10 16:30.15: DBG [git.http] HTTP headers: ()
2017-02-10 16:30.15: DBG [git.sync] Listing.input (protocol=smart-http)
2017-02-10 16:30.15: DBG [git.sync] PacketLine.input
2017-02-10 16:30.15: DBG [git.sync] PacketLine.input_raw
2017-02-10 16:30.15: DBG [git.http] Read flushes the outgoing connection
2017-02-10 16:30.15: ERR [git.http] with_http: 500 Internal Server Error
2017-02-10 16:30.15: DBG [git.mirage] Got exn: (Failure "500 Internal
Server Error")
Raised at file "format.ml", line 185, characters 41-52
Called from file "format.ml", line 427, characters 6-24
2017-02-10 16:30.15: ERR [git.mirage] Git_mirage.IO.read_exactly:
expecting 4, got 0
2017-02-10 16:30.15: WRN [canopy-store] failed pull (Failure
"Git_mirage.IO.read_exactly: expecting 4, got 0")
2017-02-10 16:30.15: INF [git.memory] Reading HEAD
2017-02-10 16:30.15: DBG [irmin.bc] map [".config","uuid"]
2017-02-10 16:30.15: DBG [irmin.bc] read_head_commit
2017-02-10 16:30.15: INF [git.memory] Reading refs/heads/master
2017-02-10 16:30.15: DBG [git.value] add_inflated
2017-02-10 16:30.15: INF [git.memory] Writing
4b825dc642cb6eb9a060e54bf8d69288fbee4904
2017-02-10 16:30.15: DBG [irmin.node] read_contents [".config","uuid"]
2017-02-10 16:30.15: DBG [irmin.node] read_node_exn
["4b825dc642cb6eb9a060e54bf8d69288fbee4904"] [".config"]
2017-02-10 16:30.15: DBG [irmin.node] succ
["4b825dc642cb6eb9a060e54bf8d69288fbee4904"] [".config"]
Fatal error: exception (Invalid_argument ".config/uuid is required in
the remote git repository")
Raised at file "src/core/lwt.ml", line 789, characters 22-23
Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
Called from file "main.ml", line 203, characters 5-10
and I get the following error on the irmin terminal:
~/irmin-canopy-data$ irmin init -d --verbosity=debug
irmin: [INFO] daemon: http://localhost:8080
Server starting on port 8080.
irmin: [INFO] Connection 1: GET
/read/home/carlos/irmin-canopy-data/.git/info/refs (json)
irmin: [INFO] No Irmin header set, skipping the version check
irmin: [DEBUG]
uri=//127.0.0.1:8080/read/home/carlos/irmin-canopy-data/.git/info/refs?service=git-upload-pack
path=home/carlos/irmin-canopy-data/.git/info/refs
query=service=git-upload-pack error=(Failure "error: read: non-empty query")
irmin: [ERROR] server error (Failure "error: read: non-empty query")
irmin: [DEBUG] Connection 1: closed!
Help is much appreciated, thanks.
Kind regards
--
Carlos Oviedo
PhD student
Network Systems Group
University of Nottingham
_______________________________________________
MirageOS-devel mailing list
[email protected]
https://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel