Heroku:命令出错,退出状态为 128

时间:2021-04-23 04:21:37

标签: python git heroku

我正在尝试创建一个导入私有存储库的 Heroku 应用程序。我已经设置好了一切,包括:

  • 有效的 BUILDPACK_SSH_KEY
  • Buildpack https://github.com/heroku/heroku-buildpack-ssh-key.git
  • git+ssh://git@github.com/me/private-repo.git 中的需求行(显然改成了实际的仓库路径名)
  • 生成 Heroku 应用所需的所有其他文件(例如 app.py、requirements、Procfile、gitignore、用于 opencv 的 Aptfile、用于特定 Python 版本的 runtime.txt 以及用于应用的其他本​​地 .py 文件)。

它之前运行得很好,除了该应用程序比最大 slug 大小 (500 MB) 多几 MB 外,它似乎正在导入。现在,我在尝试部署时收到以下消息,但我无法弄清楚如何连接到存储库。

请注意,当我将私有存储库的所需部分复制到推送的文件夹中时,该应用程序可以正常工作,因此它不应该是应用程序本身的错误,而只是私有存储库的连接/安装。

-----> Building on the Heroku-20 stack
-----> Using buildpacks:
       1. heroku-community/apt
       2. https://github.com/heroku/heroku-buildpack-ssh-key.git
       3. heroku/python
-----> Apt app detected
-----> Reusing cache
-----> Updating apt caches
       Hit:1 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease
       Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
       Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
       Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
       Fetched 223 kB in 1s (294 kB/s)
       Reading package lists...
-----> Fetching .debs for libsm6
       Reading package lists...
       Building dependency tree...
       0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 21 not upgraded.
       Need to get 0 B/16.1 kB of archives.
       After this operation, 0 B of additional disk space will be used.
       Download complete and in download only mode
-----> Fetching .debs for libxrender1
       Reading package lists...
       Building dependency tree...
       0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 21 not upgraded.
       Need to get 0 B/18.7 kB of archives.
       After this operation, 0 B of additional disk space will be used.
       Download complete and in download only mode
-----> Fetching .debs for libfontconfig1
       Reading package lists...
       Building dependency tree...
       0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 21 not upgraded.
       Need to get 0 B/114 kB of archives.
       After this operation, 0 B of additional disk space will be used.
       Download complete and in download only mode
-----> Fetching .debs for libice6
       Reading package lists...
       Building dependency tree...
       0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 21 not upgraded.
       Need to get 0 B/41.0 kB of archives.
       After this operation, 0 B of additional disk space will be used.
       Download complete and in download only mode
-----> Fetching .debs for libgl1
       Reading package lists...
       Building dependency tree...
       The following additional packages will be installed:
         libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
         libdrm2 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0
         libllvm11 libpciaccess0 libsensors-config libsensors5 libvulkan1
         libwayland-client0 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
         libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0 libxdamage1
         libxfixes3 libxshmfence1 libxxf86vm1 mesa-vulkan-drivers
       Suggested packages:
         pciutils lm-sensors
       The following NEW packages will be installed:
         libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1
         libdrm2 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0
         libllvm11 libpciaccess0 libsensors-config libsensors5 libvulkan1
         libwayland-client0 libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
         libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0 libxdamage1
         libxfixes3 libxshmfence1 libxxf86vm1 mesa-vulkan-drivers
       0 upgraded, 31 newly installed, 0 to remove and 21 not upgraded.
       Need to get 0 B/32.2 MB of archives.
       After this operation, 401 MB of additional disk space will be used.
       Download complete and in download only mode
-----> Installing libdrm2_2.4.102-1ubuntu1~20.04.1_amd64.deb
-----> Installing libdrm-amdgpu1_2.4.102-1ubuntu1~20.04.1_amd64.deb
-----> Installing libdrm-common_2.4.102-1ubuntu1~20.04.1_all.deb
-----> Installing libdrm-intel1_2.4.102-1ubuntu1~20.04.1_amd64.deb
-----> Installing libdrm-nouveau2_2.4.102-1ubuntu1~20.04.1_amd64.deb
-----> Installing libdrm-radeon1_2.4.102-1ubuntu1~20.04.1_amd64.deb
-----> Installing libfontconfig1_2.13.1-2ubuntu3_amd64.deb
-----> Installing libgl1_1.3.2-1~ubuntu0.20.04.1_amd64.deb
-----> Installing libgl1-mesa-dri_20.2.6-0ubuntu0.20.04.1_amd64.deb
-----> Installing libglapi-mesa_20.2.6-0ubuntu0.20.04.1_amd64.deb
-----> Installing libglvnd0_1.3.2-1~ubuntu0.20.04.1_amd64.deb
-----> Installing libglx0_1.3.2-1~ubuntu0.20.04.1_amd64.deb
-----> Installing libglx-mesa0_20.2.6-0ubuntu0.20.04.1_amd64.deb
-----> Installing libice6_2%3a1.0.10-0ubuntu1_amd64.deb
-----> Installing libllvm11_1%3a11.0.0-2~ubuntu20.04.1_amd64.deb
-----> Installing libpciaccess0_0.16-0ubuntu1_amd64.deb
-----> Installing libsensors5_1%3a3.6.0-2ubuntu1_amd64.deb
-----> Installing libsensors-config_1%3a3.6.0-2ubuntu1_all.deb
-----> Installing libsm6_2%3a1.2.3-1_amd64.deb
-----> Installing libvulkan1_1.2.131.2-1_amd64.deb
-----> Installing libwayland-client0_1.18.0-1_amd64.deb
-----> Installing libx11-xcb1_2%3a1.6.9-2ubuntu1.1_amd64.deb
-----> Installing libxcb-dri2-0_1.14-2_amd64.deb
-----> Installing libxcb-dri3-0_1.14-2_amd64.deb
-----> Installing libxcb-glx0_1.14-2_amd64.deb
-----> Installing libxcb-present0_1.14-2_amd64.deb
-----> Installing libxcb-randr0_1.14-2_amd64.deb
-----> Installing libxcb-sync1_1.14-2_amd64.deb
-----> Installing libxcb-xfixes0_1.14-2_amd64.deb
-----> Installing libxdamage1_1%3a1.1.5-2_amd64.deb
-----> Installing libxfixes3_1%3a5.0.3-2_amd64.deb
-----> Installing libxrender1_1%3a0.9.10-1_amd64.deb
-----> Installing libxshmfence1_1.3-1_amd64.deb
-----> Installing libxxf86vm1_1%3a1.1.4-1build1_amd64.deb
-----> Installing mesa-vulkan-drivers_20.2.6-0ubuntu0.20.04.1_amd64.deb
-----> Writing profile script
-----> Rewrite package-config files
-----> heroku-buildpack-ssh-key app detected
-----> Install heroku-buildpack-ssh-key
-----> Installed SSH key from BUILDPACK_SSH_KEY
-----> Python app detected
 !     Python has released a security update! Please consider upgrading to python-3.7.10
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Requirements file has been changed, clearing cached dependencies
-----> Installing python-3.7.9
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
       Collecting git+ssh://****@github.com/me/private-repo.git (from -r /tmp/build_ede3698e/requirements.txt (line 33))
         Cloning ssh://****@github.com/me/private-repo.git to /tmp/pip-req-build-xrwjgy49
       ERROR: Command errored out with exit status 128: git clone -q 'ssh://****@github.com/me/private-repo.git' /tmp/pip-req-build-xrwjgy49 Check the logs for full command output.
 !     Push rejected, failed to compile Python app.
 !     Push failed

1 个答案:

答案 0 :(得分:0)

结果我只是打错了仓库的名称。