Yikun / hub-mirror-action

一个Github Action,用于在Github和Gitee之间同步代码。Action for mirroring repos between Hubs (like Github and Gitee).
MIT License
633 stars 173 forks source link

为什么运行同步一直在下载系统安装东西,卡十几分钟都不行 #172

Closed twelvet-s closed 1 year ago

twelvet-s commented 1 year ago

一直在安装东西,之前都不会的,就是改了一下ssh秘钥就这样了 The following NEW packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu build-essential bzip2 ca-certificates cpp cpp-11 dirmngr dpkg-dev fakeroot fontconfig-config fonts-dejavu-core g++ g++-11 gcc gcc-11 gcc-11-base git git-man gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm javascript-common less libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libassuan0 libatomic1 libbinutils libbrotli1 libbsd0 libc-dev-bin libc-devtools libc6-dev libcbor0.8 libcc1-0 libcrypt-dev libctf-nobfd0 libctf0 libcurl3-gnutls libdeflate0 libdpkg-perl libedit2 liberror-perl libexpat1 libexpat1-dev libfakeroot libfido2-1 libfile-fcntllock-perl libfontconfig1 libfreetype6 libgcc-11-dev libgd3 libgdbm-compat4 libgdbm6 libgomp1 libisl23 libitm1 libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-sphinxdoc libjs-underscore libksba8 libldap-2.5-0 libldap-common liblocale-gettext-perl liblsan0 libmd0 libmpc3 libmpdec3 libmpfr6 libnghttp2-14 libnpth0 libnsl-dev libperl5.34 libpng16-16 libpsl5 libpython3-dev libpython3-stdlib libpython3.10 libpython3.10-dev libpython3.10-minimal libpython3.10-stdlib libquadmath0 libreadline8 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh-4 libstdc++-11-dev libtiff5 libtirpc-dev libtsan0 libubsan1 libwebp7 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 libxpm4 linux-libc-dev lto-disabled-list make manpages manpages-dev media-types netbase openssh-client openssl patch perl perl-modules-5.34 pinentry-curses publicsuffix python3 python3-dev python3-distutils python3-lib2to3 python3-minimal python3-pip python3-pkg-resources python3-setuptools python3-wheel python3.10 python3.10-dev python3.10-minimal readline-common rpcsvc-proto ucf xauth xz-utils zlib1g-dev

twelvet-s commented 1 year ago

在更换0.13版本后没有此问题,1.x以上都是这样

twelvet-s commented 1 year ago

目前它又可以了,找到之前的issues说网络问题,就太奇怪了,换个版本就可以

Yikun commented 1 year ago

是网络问题,我也尝试解释下为什么1.x前的版本没问题:

https://github.com/Yikun/hub-mirror-action/commit/4e20bedef5eb0523c5bc25eb36974456034149f7#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557

在0.X到1.X升级的过程中,同时切换了base OS,从alpine到ubuntu。所以,如果出现了github action所用的资源连接ubuntu源出现问题的话(无论是github的网络问题,还是ubuntu源不稳),都可能出现安装卡住或者超时。

twelvet-s commented 1 year ago

是网络问题,我也尝试解释下为什么1.x前的版本没问题:

4e20bed #diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557

在0.X到1.X升级的过程中,同时切换了base OS,从alpine到ubuntu。所以,如果出现了github action所用的资源连接ubuntu源出现问题的话(无论是github的网络问题,还是ubuntu源不稳),都可能出现安装卡住或者超时。

好的,感谢

Yikun commented 1 year ago

Closed, see also https://github.com/Yikun/hub-mirror-action/issues/171