ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.23k stars 351 forks source link

opam 1.0->1.1 update fails with a Not_found #810

Closed avsm closed 10 years ago

avsm commented 11 years ago

This is with a local opam-repository repo in a 4.01.0 switch. The upgrade seems to have succeeded afterwards despite the Not_found

=-=-= Upgrading to OPAM 1.1 [DO NOT INTERRUPT THE PROCESS] =-=-=

   In case something goes wrong, you can run that upgrade
   process again by doing:

       mkdir ~/.opam/opam && opam list

** Processing **
[WARNING] Cannot find an OPAM file for atd.1.0.3, skipping.
[WARNING] Cannot find an OPAM file for atdgen.1.2.4, skipping.
[WARNING] Cannot find an OPAM file for base-bigarray.base, skipping.
[WARNING] Cannot find an OPAM file for base-threads.base, skipping.
[WARNING] Cannot find an OPAM file for base-unix.base, skipping.
[WARNING] Cannot find an OPAM file for bin_prot.109.30.00, skipping.
[WARNING] Cannot find an OPAM file for biniou.1.0.6, skipping.
[WARNING] Cannot find an OPAM file for camlimages.4.1.0, skipping.
[WARNING] Cannot find an OPAM file for camomile.0.8.3, skipping.
[WARNING] Cannot find an OPAM file for cmdliner.0.9.2, skipping.
[WARNING] Cannot find an OPAM file for cohttp.0.9.10, skipping.
[WARNING] Cannot find an OPAM file for comparelib.109.27.00, skipping.
[WARNING] Cannot find an OPAM file for core.109.38.00, skipping.
[WARNING] Cannot find an OPAM file for core_kernel.109.38.00, skipping.
[WARNING] Cannot find an OPAM file for cow.0.6.2, skipping.
[WARNING] Cannot find an OPAM file for cppo.0.9.3, skipping.
[WARNING] Cannot find an OPAM file for cstruct.0.5.3, skipping.
[WARNING] Cannot find an OPAM file for cudf.0.6.2, skipping.
[WARNING] Cannot find an OPAM file for custom_printf.109.27.00, skipping.
[WARNING] Cannot find an OPAM file for deriving-ocsigen.0.5, skipping.
[WARNING] Cannot find an OPAM file for dose.3.1.2, skipping.
[WARNING] Cannot find an OPAM file for dyntype.0.9.0, skipping.
[WARNING] Cannot find an OPAM file for easy-format.1.0.1, skipping.
[WARNING] Cannot find an OPAM file for extlib.1.5.4, skipping.
[WARNING] Cannot find an OPAM file for fieldslib.109.20.00, skipping.
[WARNING] Cannot find an OPAM file for fileutils.0.4.4, skipping.
[WARNING] Cannot find an OPAM file for github.0.6.1, skipping.
[WARNING] Cannot find an OPAM file for herelib.109.35.00, skipping.
[WARNING] Cannot find an OPAM file for js_of_ocaml.pinned, skipping.
[WARNING] Cannot find an OPAM file for lambda-term.1.5, skipping.
[WARNING] Cannot find an OPAM file for lwt.2.4.3, skipping.
[WARNING] Cannot find an OPAM file for menhir.20130116, skipping.
[WARNING] Cannot find an OPAM file for oasis.0.3.0, skipping.
[WARNING] Cannot find an OPAM file for ocaml-data-notation.0.0.10, skipping.
[WARNING] Cannot find an OPAM file for ocaml-lua.1.1, skipping.
[WARNING] Cannot find an OPAM file for ocamlfind.1.4.0, skipping.
[WARNING] Cannot find an OPAM file for ocamlgraph.1.8.3, skipping.
[WARNING] Cannot find an OPAM file for ocamlify.0.0.1, skipping.
[WARNING] Cannot find an OPAM file for ocamlmod.0.0.4, skipping.
[WARNING] Cannot find an OPAM file for ocp-build.1.99.6-beta, skipping.
[WARNING] Cannot find an OPAM file for ocp-indent.1.3.2, skipping.
[WARNING] Cannot find an OPAM file for omake.0.9.8.6-0.rc1, skipping.
[WARNING] Cannot find an OPAM file for omd.0.1, skipping.
[WARNING] Cannot find an OPAM file for opam-lib.0.9.4, skipping.
[WARNING] Cannot find an OPAM file for optcomp.1.4, skipping.
[WARNING] Cannot find an OPAM file for ounit.1.1.2, skipping.
[WARNING] Cannot find an OPAM file for pa_ounit.109.36.00, skipping.
[WARNING] Cannot find an OPAM file for pipebang.109.28.00, skipping.
[WARNING] Cannot find an OPAM file for re.1.2.1, skipping.
[WARNING] Cannot find an OPAM file for react.0.9.4, skipping.
[WARNING] Cannot find an OPAM file for res.4.0.3, skipping.
[WARNING] Cannot find an OPAM file for sexplib.109.20.00, skipping.
[WARNING] Cannot find an OPAM file for ssl.0.4.6, skipping.
[WARNING] Cannot find an OPAM file for type_conv.109.28.00, skipping.
[WARNING] Cannot find an OPAM file for typerex.1.99.6-beta, skipping.
[WARNING] Cannot find an OPAM file for ulex.1.1, skipping.
[WARNING] Cannot find an OPAM file for uri.1.3.8, skipping.
[WARNING] Cannot find an OPAM file for variantslib.109.15.00, skipping.
[WARNING] Cannot find an OPAM file for xmlm.1.1.1, skipping.
[WARNING] Cannot find an OPAM file for yojson.1.1.6, skipping.
[WARNING] Cannot find an OPAM file for zed.1.2, skipping.
Updating ~/.opam/repo/compiler-index ...
Updating ~/.opam/compilers/ ...
Updating ~/.opam/repo/package-index ...
Updating ~/.opam/packages/ ...
[WARNING] js_of_ocaml.pinned is installed in 4.01.0 but it does not have metadata.
[WARNING] Cannot find an OPAM file for js_of_ocaml.pinned, skipping.
Updating the cache of metadata (~/.opam/state.cache) ...
[ERROR] 'opam update' failed.
Fatal error:
Not_found
clink:opam avsm$ opam --git-version
e5846d250e59058f971fbe79c8e8a02e2c7b7257
samoht commented 10 years ago

Hard to tell what went wrong here. I guess it's related to:

[WARNING] js_of_ocaml.pinned is installed in 4.01.0 but it does not have metadata.

Which should be now properly fixed by @AltGr recent fixes. So closing the issue, please re-open if you have the issue again (also, we will have correct backtrace after d827d077357fd98c26c61a47d836fe796d383266)