Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh_dispatch_run_fatal: message authentication code incorrect #68

Closed
giampaolo opened this issue Apr 17, 2023 · 2 comments
Closed

ssh_dispatch_run_fatal: message authentication code incorrect #68

giampaolo opened this issue Apr 17, 2023 · 2 comments

Comments

@giampaolo
Copy link

Hello. I've successfully configured *BSD CI for my psutil project. Here's the configuration:
https://github.com/giampaolo/psutil/blob/5203932d8bcc3e3f8134bdcb4e6673084e757a39/.github/workflows/bsd.yml

Everything runs smoothly but from time to time my tests fail because the build suddenly fails with:

2023-04-17T15:12:59.1456970Z ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 2222: message authentication code incorrect

This is full tail and link to failed job.
Any idea what's wrong here?

Thanks a lot in advance!

2023-04-17T15:12:59.1452930Z psutil.tests.test_linux.TestRootFsDeviceFinder.test_comparisons ... skipped 'LINUX only'
2023-04-17T15:12:59.1454200Z psutil.tests.test_linux.TestRootFsDeviceFinder.test_disk_partitions_mocked ... skipped 'LINUX only'
2023-04-17T15:12:59.1455480Z psutil.tests.test_linux.TestSensorsBattery.test_emulate_energy_full_0 ... skipped 'LINUX only'
2023-04-17T15:12:59.1456970Z ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 2222: message authentication code incorrect
2023-04-17T15:12:59.1458040Z exec shell: bash run.sh showDebugInfo
2023-04-17T15:12:59.1459010Z [command]/bin/bash
2023-04-17T15:12:59.1460110Z Config file: freebsd-13.1.conf
2023-04-17T15:12:59.1461150Z ==================Debug Info====================
2023-04-17T15:12:59.1463650Z /Users/runner/work/_actions/vmactions/freebsd-vm/v0
2023-04-17T15:12:59.1464640Z total 2293912
2023-04-17T15:12:59.1468170Z drwxr-xr-x  19 runner  staff   608B Apr 17 15:10 .
2023-04-17T15:12:59.1471670Z drwxr-xr-x   4 runner  staff   128B Apr 17 15:07 ..
2023-04-17T15:12:59.1472860Z drwxr-xr-x   6 runner  staff   192B Apr 17 15:07 .github
2023-04-17T15:12:59.1473960Z -rw-r--r--   1 runner  staff   1.0K Nov  2 15:04 LICENSE
2023-04-17T15:12:59.1475050Z -rw-r--r--   1 runner  staff   3.6K Nov  2 15:04 README.md
2023-04-17T15:12:59.1476690Z -rw-r--r--   1 runner  staff   1.0K Nov  2 15:04 action.yml
2023-04-17T15:12:59.1477840Z drwxr-xr-x   6 runner  staff   192B Apr 17 15:07 conf
2023-04-17T15:12:59.1479600Z -rw-r--r--   1 runner  staff   549B Apr 17 15:07 freebsd-13.1.conf
2023-04-17T15:12:59.1480730Z -rw-r--r--   1 runner  staff   1.1G Sep 14  2022 freebsd-13.1.ova
2023-04-17T15:12:59.1481880Z -rw-rw-rw-   1 root    staff   8.3K Apr 17 15:10 freebsd.png
2023-04-17T15:12:59.1483200Z drwxr-xr-x   5 runner  staff   160B Apr 17 15:07 hooks
2023-04-17T15:12:59.1485260Z -rw-r--r--   1 runner  staff   566B Sep 14  2022 id_rsa.pub
2023-04-17T15:12:59.1486170Z -rw-r--r--   1 runner  staff   4.7K Nov  2 15:04 index.js
2023-04-17T15:12:59.1487100Z -rw-r--r--   1 runner  staff   2.6K Sep 14  2022 mac.id_rsa
2023-04-17T15:12:59.1488000Z drwxr-xr-x   7 runner  staff   224B Apr 17 15:07 node_modules
2023-04-17T15:12:59.1488940Z -rw-r--r--   1 runner  staff   3.9K Nov  2 15:04 package-lock.json
2023-04-17T15:12:59.1489840Z -rw-r--r--   1 runner  staff   548B Nov  2 15:04 package.json
2023-04-17T15:12:59.1490770Z -rw-r--r--   1 runner  staff   4.8K Nov  2 15:04 run.sh
2023-04-17T15:12:59.1491660Z -rw-r--r--   1 runner  staff    11K Apr 17 15:07 vbox.sh
2023-04-17T15:12:59.1492550Z /Users/runner/work/_actions/vmactions/freebsd-vm/v0
2023-04-17T15:12:59.1493460Z total 56
2023-04-17T15:12:59.1494190Z drwxrwxrwx   9 runner  staff   288B Apr 17 15:10 .
2023-04-17T15:12:59.1495050Z drwxr-xr-x  51 runner  staff   1.6K Apr 17 15:07 ..
2023-04-17T15:12:59.1496470Z -rw-------   1 runner  staff   566B Apr 17 15:08 authorized_keys
2023-04-17T15:12:59.1498510Z -rw-r--r--   1 runner  staff   152B Apr 17 15:07 config
2023-04-17T15:12:59.1499670Z -rw-------   1 runner  staff   2.6K Apr 17 15:07 id_rsa
2023-04-17T15:12:59.1500680Z -rw-r--r--   1 runner  staff   584B Apr 17 15:07 id_rsa.pub
2023-04-17T15:12:59.1502960Z -rw-------   1 runner  staff   2.0K Apr 17 15:10 known_hosts
2023-04-17T15:12:59.1504990Z -rw-r--r--   1 runner  staff   1.3K Apr 17 15:10 known_hosts.old
2023-04-17T15:12:59.1506240Z -rw-------   1 runner  staff   2.6K Apr 17 15:08 mac.id_rsa
2023-04-17T15:12:59.1506880Z 
2023-04-17T15:12:59.1507510Z StrictHostKeyChecking=accept-new
2023-04-17T15:12:59.1508230Z SendEnv   CI  GITHUB_* 
2023-04-17T15:12:59.1508810Z 
2023-04-17T15:12:59.1509370Z Host freebsd
2023-04-17T15:12:59.1511870Z   User root
2023-04-17T15:12:59.1512620Z   Port 2222
2023-04-17T15:12:59.1513300Z   HostName localhost
2023-04-17T15:12:59.1514550Z 
2023-04-17T15:12:59.1515360Z   IdentityFile=~/.ssh/mac.id_rsa
2023-04-17T15:12:59.1515870Z 
2023-04-17T15:12:59.1516170Z 
2023-04-17T15:12:59.1516450Z 
2023-04-17T15:12:59.1517270Z VM_VHD_LINK="https://download.freebsd.org/releases/VM-IMAGES/13.1-RELEASE/amd64/Latest/FreeBSD-13.1-RELEASE-amd64.vhd.xz"
2023-04-17T15:12:59.1518020Z VM_OS_NAME="freebsd"
2023-04-17T15:12:59.1518590Z VM_OS_TYPE="FreeBSD_64"
2023-04-17T15:12:59.1519120Z VM_SSH_PORT=2222
2023-04-17T15:12:59.1519690Z VM_RELEASE=13.1
2023-04-17T15:12:59.1520140Z 
2023-04-17T15:12:59.1520540Z VM_LOGIN_TAG="64 (freebsd) (tty"
2023-04-17T15:12:59.1521960Z 
2023-04-17T15:12:59.1524520Z VM_SHUTDOWN_CMD="/sbin/shutdown -p now"
2023-04-17T15:12:59.1525100Z 
2023-04-17T15:12:59.1533520Z VM_INSTALL_CMD="pkg  install  -y "
2023-04-17T15:12:59.1536620Z 
2023-04-17T15:12:59.1538710Z VM_RSYNC_PKG="rsync"
2023-04-17T15:12:59.1539470Z VM_SSHFS_PKG="fusefs-sshfs && kldload  fusefs"
2023-04-17T15:12:59.1540010Z 
2023-04-17T15:12:59.1540580Z VM_PRE_INSTALL_PKGS="tree"
2023-04-17T15:12:59.1541320Z 
2023-04-17T15:12:59.1541610Z 
2023-04-17T15:12:59.1542400Z VM_OPTS="conf/freebsd-13.1.opts.txt"
2023-04-17T15:12:59.1542960Z 
2023-04-17T15:12:59.1554380Z VM_VBOX="./vbox.sh"
2023-04-17T15:12:59.1556330Z 
2023-04-17T15:12:59.1557200Z VM_VBOX_LINK="https://raw.githubusercontent.com/vmactions/vbox/v0.0.1/vbox.sh"===================Debug Info in VM=============
2023-04-17T15:12:59.2304620Z /root
2023-04-17T15:12:59.2393090Z total 44
2023-04-17T15:12:59.2399260Z drwxr-x---   5 root  wheel   512B Apr 17 15:12 .
2023-04-17T15:12:59.2402220Z drwxr-xr-x  19 root  wheel   512B Apr 17 15:10 ..
2023-04-17T15:12:59.2403260Z drwxr-xr-x   3 root  wheel   512B Apr 17 15:12 .cache
2023-04-17T15:12:59.2404060Z -rw-r--r--   2 root  wheel   1.0K May 12  2022 .cshrc
2023-04-17T15:12:59.2404940Z -rw-------   1 root  wheel   2.0K Apr 17 15:12 .history
2023-04-17T15:12:59.2405720Z -rw-r--r--   1 root  wheel    80B May 12  2022 .k5login
2023-04-17T15:12:59.2406470Z drwx------   4 root  wheel   512B Apr 17 15:12 .local
2023-04-17T15:12:59.2407230Z -rw-r--r--   1 root  wheel   328B May 12  2022 .login
2023-04-17T15:12:59.2411040Z -rw-r--r--   2 root  wheel   507B May 12  2022 .profile
2023-04-17T15:12:59.2412110Z -rw-r--r--   1 root  wheel   865B May 12  2022 .shrc
2023-04-17T15:12:59.2413750Z drwx------   2 root  wheel   512B Sep 14  2022 .ssh
2023-04-17T15:12:59.2414680Z lrwxr-xr-x   1 root  wheel    19B Apr 17 15:10 work -> /Users/runner/work/
2023-04-17T15:12:59.2440810Z root
2023-04-17T15:12:59.2527600Z .
2023-04-17T15:12:59.2537890Z └── work -> /Users/runner/work/
2023-04-17T15:12:59.2561590Z 
2023-04-17T15:12:59.2574660Z 1 directory, 0 files
2023-04-17T15:12:59.2609640Z ================================================
2023-04-17T15:12:59.2610620Z ##[endgroup]
2023-04-17T15:12:59.2611390Z ##[group]Copy files back from the VM
2023-04-17T15:12:59.2611960Z get back by rsync
2023-04-17T15:12:59.2612920Z [command]/bin/bash /Users/runner/work/_actions/vmactions/freebsd-vm/v0/run.sh rsyncBackFromVM
2023-04-17T15:12:59.2795200Z Config file: freebsd-13.1.conf
2023-04-17T15:12:59.5424830Z receiving file list ... done
2023-04-17T15:12:59.5746170Z psutil/psutil/
2023-04-17T15:12:59.5846800Z psutil/psutil/build/
2023-04-17T15:12:59.5947900Z psutil/psutil/build/lib.freebsd-13.1-RELEASE-amd64-cpython-39/
2023-04-17T15:12:59.6049340Z psutil/psutil/build/lib.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/
2023-04-17T15:12:59.6125570Z psutil/psutil/build/lib.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/_psutil_bsd.cpython-39.so
2023-04-17T15:12:59.6166620Z psutil/psutil/build/lib.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/_psutil_posix.cpython-39.so
2023-04-17T15:12:59.6268710Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/
2023-04-17T15:12:59.6345700Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/
2023-04-17T15:12:59.6412850Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/_psutil_bsd.o
2023-04-17T15:12:59.6426990Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/_psutil_common.o
2023-04-17T15:12:59.6505580Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/_psutil_posix.o
2023-04-17T15:12:59.6563140Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/
2023-04-17T15:12:59.6587870Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/
2023-04-17T15:12:59.6606700Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/cpu.o
2023-04-17T15:12:59.6615430Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/disk.o
2023-04-17T15:12:59.6628160Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/mem.o
2023-04-17T15:12:59.6635980Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/proc.o
2023-04-17T15:12:59.6657660Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/proc_socks.o
2023-04-17T15:12:59.6667450Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/sensors.o
2023-04-17T15:12:59.6682920Z psutil/psutil/build/temp.freebsd-13.1-RELEASE-amd64-cpython-39/psutil/arch/freebsd/sys_socks.o
2023-04-17T15:12:59.6693360Z psutil/psutil/psutil.egg-info/
2023-04-17T15:12:59.6714660Z psutil/psutil/psutil.egg-info/PKG-INFO
2023-04-17T15:12:59.6743090Z psutil/psutil/psutil.egg-info/SOURCES.txt
2023-04-17T15:12:59.6758820Z psutil/psutil/psutil.egg-info/dependency_links.txt
2023-04-17T15:12:59.6769080Z psutil/psutil/psutil.egg-info/not-zip-safe
2023-04-17T15:12:59.6814060Z psutil/psutil/psutil.egg-info/requires.txt
2023-04-17T15:12:59.6832920Z psutil/psutil/psutil.egg-info/top_level.txt
2023-04-17T15:12:59.6852620Z psutil/psutil/psutil/
2023-04-17T15:12:59.6863680Z psutil/psutil/psutil/_psutil_bsd.cpython-39.so
2023-04-17T15:12:59.6880360Z psutil/psutil/psutil/_psutil_posix.cpython-39.so
2023-04-17T15:12:59.6890000Z psutil/psutil/psutil/__pycache__/
2023-04-17T15:12:59.6904990Z psutil/psutil/psutil/__pycache__/__init__.cpython-39.pyc
2023-04-17T15:12:59.6913610Z psutil/psutil/psutil/__pycache__/_common.cpython-39.pyc
2023-04-17T15:12:59.6927740Z psutil/psutil/psutil/__pycache__/_compat.cpython-39.pyc
2023-04-17T15:12:59.7228470Z psutil/psutil/psutil/__pycache__/_psbsd.cpython-39.pyc
2023-04-17T15:12:59.7305090Z psutil/psutil/psutil/__pycache__/_psposix.cpython-39.pyc
2023-04-17T15:12:59.7319010Z psutil/psutil/psutil/tests/
2023-04-17T15:12:59.7371850Z psutil/psutil/psutil/tests/__pycache__/
2023-04-17T15:12:59.7376120Z psutil/psutil/psutil/tests/__pycache__/__init__.cpython-39.pyc
2023-04-17T15:12:59.7673620Z psutil/psutil/psutil/tests/__pycache__/test_aix.cpython-39.pyc
2023-04-17T15:12:59.7774920Z psutil/psutil/psutil/tests/__pycache__/test_bsd.cpython-39.pyc
2023-04-17T15:12:59.7876000Z psutil/psutil/psutil/tests/__pycache__/test_connections.cpython-39.pyc
2023-04-17T15:12:59.7926560Z psutil/psutil/psutil/tests/__pycache__/test_contracts.cpython-39.pyc
2023-04-17T15:12:59.7929120Z psutil/psutil/psutil/tests/__pycache__/test_linux.cpython-39.pyc
2023-04-17T15:12:59.7930620Z psutil/psutil/psutil/tests/__pycache__/test_misc.cpython-39.pyc
2023-04-17T15:12:59.7932020Z psutil/psutil/psutil/tests/__pycache__/test_osx.cpython-39.pyc
2023-04-17T15:12:59.7934700Z psutil/psutil/psutil/tests/__pycache__/test_posix.cpython-39.pyc
2023-04-17T15:12:59.7937150Z psutil/psutil/psutil/tests/__pycache__/test_process.cpython-39.pyc
2023-04-17T15:12:59.7939120Z psutil/psutil/psutil/tests/__pycache__/test_sunos.cpython-39.pyc
2023-04-17T15:12:59.7941770Z psutil/psutil/psutil/tests/__pycache__/test_system.cpython-39.pyc
2023-04-17T15:12:59.8548340Z psutil/psutil/psutil/tests/__pycache__/test_testutils.cpython-39.pyc
2023-04-17T15:12:59.8557240Z psutil/psutil/psutil/tests/__pycache__/test_unicode.cpython-39.pyc
2023-04-17T15:12:59.8558210Z psutil/psutil/psutil/tests/__pycache__/test_windows.cpython-39.pyc
2023-04-17T15:12:59.8626380Z 
2023-04-17T15:12:59.8627210Z sent 974 bytes  received 809063 bytes  1620074.00 bytes/sec
2023-04-17T15:12:59.8629520Z total size is 6650545  speedup is 8.21
2023-04-17T15:12:59.8714050Z ##[endgroup]
2023-04-17T15:12:59.8765110Z ##[error]The process '/bin/bash' failed with exit code 255
2023-04-17T15:12:59.8905850Z Post job cleanup.
2023-04-17T15:13:00.0827540Z [command]/usr/local/bin/git version
2023-04-17T15:13:00.0932240Z git version 2.40.0
2023-04-17T15:13:00.1190030Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/d2a85a5c-ea10-4207-949c-0116fa4a2acf/.gitconfig'
2023-04-17T15:13:00.1256150Z Temporarily overriding HOME='/Users/runner/work/_temp/d2a85a5c-ea10-4207-949c-0116fa4a2acf' before making global git config changes
2023-04-17T15:13:00.1257200Z Adding repository directory to the temporary git global config as a safe directory
2023-04-17T15:13:00.1266100Z [command]/usr/local/bin/git config --global --add safe.directory /Users/runner/work/psutil/psutil
2023-04-17T15:13:00.1422560Z [command]/usr/local/bin/git config --local --name-only --get-regexp core\.sshCommand
2023-04-17T15:13:00.1558380Z [command]/usr/local/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2023-04-17T15:13:00.3513050Z [command]/usr/local/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2023-04-17T15:13:00.3608760Z http.https://github.com/.extraheader
2023-04-17T15:13:00.3627390Z [command]/usr/local/bin/git config --local --unset-all http.https://github.com/.extraheader
2023-04-17T15:13:00.3755790Z [command]/usr/local/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2023-04-17T15:13:00.5682040Z Cleaning up orphan processes
@ojwb
Copy link

ojwb commented Aug 6, 2023

I'm afraid I don't have a solution but I can confirm the problem - I'm seeing the same failures sometimes (probably somewhere between 1 run in 10 and 1 in 100)

flavorjones added a commit to sparklemotion/nokogiri that referenced this issue Oct 29, 2023
they are hanging/failing too often and are taking 6+ hours to fail

see these upstream issues:
- vmactions/freebsd-vm#68
- vmactions/freebsd-vm#74
flavorjones added a commit to sparklemotion/nokogiri that referenced this issue Nov 17, 2023
they are hanging/failing too often and are taking 6+ hours to fail

see these upstream issues:
- vmactions/freebsd-vm#68
- vmactions/freebsd-vm#74

[skip ci]

(cherry picked from commit 7a8ca87)
@Neilpang
Copy link
Member

please use the latest v1 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants