mamba icon indicating copy to clipboard operation
mamba copied to clipboard

Mamba hangs for long while before loading package records

Open Vinno97 opened this issue 3 years ago • 3 comments

Hi,

When I use Mamba on a company server, I notice it hangs for a long while before it even starts looking through repos. It could be that my company blocks some outbound requests, but I see no mention of this in the logs.

This is the relevant output of mamba install -vvv <some random package>, piped to a script that adds timestamps.

vr 11 feb 2022 14:33:56 CET DEBUG conda.core.prefix_data:_load_single_record(172): loading prefix record /home/vincent/mambaforge/envs/segmentation-pytorch/conda-meta/cudnn-7.6.5.32-h01f27c4_1.json
vr 11 feb 2022 14:33:56 CET DEBUG conda.core.prefix_data:_load_single_record(172): loading prefix record /home/vincent/mambaforge/envs/segmentation-pytorch/conda-meta/python-flatbuffers-2.0-pyhd8ed1ab_0.json
vr 11 feb 2022 14:36:17 CET info     Loading single package record: "/home/vincent/mambaforge/envs/segmentation-pytorch/conda-meta/libopus-1.3.1-h7f98852_1.json"
vr 11 feb 2022 14:36:17 CET info     Loading single package record: "/home/vincent/mambaforge/envs/segmentation-pytorch/conda-meta/xorg-inputproto-2.3.2-h7f98852_1002.json"

This is very consistent and happens irregardless of the environment that I'm in. Pretty sure it's no resource limitation, as the system has NVME drives and plenty of (unused) cores and RAM. This also happens in the latest version of Mamba:

mamba 0.21.0
conda 4.11.0

I can of course provide additional information if required

Vinno97 avatar Feb 11 '22 13:02 Vinno97

weird. is somethings strange in one of these files?

wolfv avatar Feb 11 '22 14:02 wolfv

Not as far as I can see. The "first" two files differ depending on the environment I'm in and it happens across environments. The second two files only differ between envs in their filepaths and the sha256_in_prefix field in their contents. I have attached the contents of a libopus-1.3.1-h7f98852_1.json file below.

This is, for example, the output of running an install command in my base env:

vr 11 feb 2022 15:46:32 CET DEBUG conda.core.prefix_data:_load_single_record(172): loading prefix record /home/vincent/mambaforge/conda-meta/tk-8.6.11-h27826a3_1.json
vr 11 feb 2022 15:46:32 CET DEBUG conda.core.prefix_data:_load_single_record(172): loading prefix record /home/vincent/mambaforge/conda-meta/ncdu-1.16-h46c0cb4_0.json
vr 11 feb 2022 15:50:31 CET info     Loading single package record: "/home/vincent/mambaforge/conda-meta/libopus-1.3.1-h7f98852_1.json"
vr 11 feb 2022 15:50:31 CET info     Loading single package record: "/home/vincent/mambaforge/conda-meta/xorg-inputproto-2.3.2-h7f98852_1002.json"
{
  "build": "h7f98852_1",
  "build_number": 1,
  "channel": "https://conda.anaconda.org/conda-forge/linux-64",
  "constrains": [],
  "depends": [
    "libgcc-ng >=9.3.0"
  ],
  "extracted_package_dir": "/home/vincent/mambaforge/pkgs/libopus-1.3.1-h7f98852_1",
  "features": "",
  "files": [
    "include/opus/opus.h",
    "include/opus/opus_defines.h",
    "include/opus/opus_multistream.h",
    "include/opus/opus_projection.h",
    "include/opus/opus_types.h",
    "lib/libopus.so",
    "lib/libopus.so.0",
    "lib/libopus.so.0.8.0",
    "lib/pkgconfig/opus.pc",
    "share/aclocal/opus.m4"
  ],
  "fn": "libopus-1.3.1-h7f98852_1.tar.bz2",
  "license": "BSD-3-Clause",
  "link": {
    "source": "/home/vincent/mambaforge/pkgs/libopus-1.3.1-h7f98852_1",
    "type": 1
  },
  "md5": "15345e56d527b330e1cacbdf58676e8f",
  "name": "libopus",
  "package_tarball_full_path": "/home/vincent/mambaforge/pkgs/libopus-1.3.1-h7f98852_1.tar.bz2",
  "paths_data": {
    "paths": [
      {
        "_path": "include/opus/opus.h",
        "path_type": "hardlink",
        "sha256": "8cfcc0feff3921bcc38971beb4b3f37058a49c1ca5da6b59fb4af638e21f8ee6",
        "sha256_in_prefix": "8cfcc0feff3921bcc38971beb4b3f37058a49c1ca5da6b59fb4af638e21f8ee6",
        "size_in_bytes": 48429
      },
      {
        "_path": "include/opus/opus_defines.h",
        "path_type": "hardlink",
        "sha256": "f43bebc41ef7f7bd3a6b5d38a4410301b4ccdb854ad842fe985e93523802440b",
        "sha256_in_prefix": "f43bebc41ef7f7bd3a6b5d38a4410301b4ccdb854ad842fe985e93523802440b",
        "size_in_bytes": 34903
      },
      {
        "_path": "include/opus/opus_multistream.h",
        "path_type": "hardlink",
        "sha256": "1bf38c39dfdeef6eefdf504b585be4d4882c01e41c5a88c1249952b10a500ef8",
        "sha256_in_prefix": "1bf38c39dfdeef6eefdf504b585be4d4882c01e41c5a88c1249952b10a500ef8",
        "size_in_bytes": 33539
      },
      {
        "_path": "include/opus/opus_projection.h",
        "path_type": "hardlink",
        "sha256": "a53752449f55b5f60679eab8fda96835102251aeefccf7c54256460d02747216",
        "sha256_in_prefix": "a53752449f55b5f60679eab8fda96835102251aeefccf7c54256460d02747216",
        "size_in_bytes": 28240
      },
      {
        "_path": "include/opus/opus_types.h",
        "path_type": "hardlink",
        "sha256": "19cb301ea1eedbcbdbb5049363de061893bf11c20e505a657b69ce6ffa5b11fa",
        "sha256_in_prefix": "19cb301ea1eedbcbdbb5049363de061893bf11c20e505a657b69ce6ffa5b11fa",
        "size_in_bytes": 5157
      },
      {
        "_path": "lib/libopus.so",
        "path_type": "softlink",
        "sha256": "95548864206b8e62acc2d6f668230ef62a1576f50b76fd1e9082e2a4fe573776",
        "size_in_bytes": 423256
      },
      {
        "_path": "lib/libopus.so.0",
        "path_type": "softlink",
        "sha256": "95548864206b8e62acc2d6f668230ef62a1576f50b76fd1e9082e2a4fe573776",
        "size_in_bytes": 423256
      },
      {
        "_path": "lib/libopus.so.0.8.0",
        "path_type": "hardlink",
        "sha256": "95548864206b8e62acc2d6f668230ef62a1576f50b76fd1e9082e2a4fe573776",
        "sha256_in_prefix": "95548864206b8e62acc2d6f668230ef62a1576f50b76fd1e9082e2a4fe573776",
        "size_in_bytes": 423256
      },
      {
        "_path": "lib/pkgconfig/opus.pc",
        "file_mode": "text",
        "path_type": "hardlink",
        "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/libopus_1606823424254/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla",
        "sha256": "cbcd24813bd304a50ff6a737dae82378fb2ea5f627d40a0531860b15e9f3d93d",
        "sha256_in_prefix": "278e812aaec67aecbbdc7f670a24405b3eac2f938d34aa207686f163fad2e16e",
        "size_in_bytes": 602
      },
      {
        "_path": "share/aclocal/opus.m4",
        "path_type": "hardlink",
        "sha256": "8cf9a338fb44c41f0803dd6ba9a6dff6fd95f2a95c766d76ee873424aeebb275",
        "sha256_in_prefix": "8cf9a338fb44c41f0803dd6ba9a6dff6fd95f2a95c766d76ee873424aeebb275",
        "size_in_bytes": 4079
      }
    ],
    "paths_version": 1
  },
  "requested_spec": "None",
  "sha256": "0e1c2740ebd1c93226dc5387461bbcf8142c518f2092f3ea7551f77755decc8f",
  "size": 260658,
  "subdir": "linux-64",
  "timestamp": 1606823578000,
  "track_features": "",
  "url": "https://conda.anaconda.org/conda-forge/linux-64/libopus-1.3.1-h7f98852_1.tar.bz2",
  "version": "1.3.1"
}

Vinno97 avatar Feb 11 '22 15:02 Vinno97

Can you still reproduce this?

jonashaag avatar Sep 30 '22 10:09 jonashaag