Error while Connecting to a ec2 instance through VSCode Remote SSH - linux

I have tried to connect to my amazon instance through SSH before through a program called Bitvise SSH, but today I found out there is a way to directly connect to my instance through a function in VSCode.
my config
This is my config file for the SSH connection for the VS code SSH connection.
And apparently when I try to connect to the instance I get the error
[15:49:16.843] Log Level: 2
[15:49:16.846] remote-ssh#0.70.0
[15:49:16.846] win32 x64
[15:49:16.847] SSH Resolver called for "ssh-remote+ec2-user", attempt 1
[15:49:16.847] "remote.SSH.useLocalServer": false
[15:49:16.848] "remote.SSH.showLoginTerminal": false
[15:49:16.848] "remote.SSH.remotePlatform": {}
[15:49:16.848] "remote.SSH.path": undefined
[15:49:16.848] "remote.SSH.configFile": C:\Users\algoo\.ssh\config\
[15:49:16.848] "remote.SSH.useFlock": true
[15:49:16.848] "remote.SSH.lockfilesInTmp": false
[15:49:16.848] "remote.SSH.localServerDownload": auto
[15:49:16.848] "remote.SSH.remoteServerListenOnSocket": false
[15:49:16.849] "remote.SSH.showLoginTerminal": false
[15:49:16.849] "remote.SSH.defaultExtensions": []
[15:49:16.849] "remote.SSH.loglevel": 2
[15:49:16.849] "remote.SSH.serverPickPortsFromRange": {}
[15:49:16.849] "remote.SSH.enableDynamicForwarding": true
[15:49:16.849] "remote.SSH.serverInstallPath": {}
[15:49:16.850] SSH Resolver called for host: ec2-user
[15:49:16.850] Setting up SSH remote "ec2-user"
[15:49:16.886] Using commit id "899d46d82c4c95423fb7e10e68eba52050e30ba3" and quality "stable" for server
[15:49:16.890] Install and start server if needed
[15:49:19.539] Checking ssh with "ssh -V"
[15:49:19.607] > OpenSSH_for_Windows_8.6p1, LibreSSL 3.3.3
[15:49:19.614] Using SSH config file "C:\Users\algoo\.ssh\config\"
[15:49:19.614] Running script with connection command: ssh -T -D 59628 -F "C:\Users\algoo\.ssh\config\" "ec2-user" bash
[15:49:19.617] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:49:19.860] > u]0;C:\WINDOWS\System32\cmd.exe
[15:49:19.861] Got some output, clearing connection timeout
[15:49:19.874] > sage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
> [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
> [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
> [-i identity_file] [-J [user#]host[:por
[15:49:19.889] > t]] [-L address]
> [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
> [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
> [-w local_tun[:remote_tun]] destination [command]
> The process tried to write to a nonexistent pipe.
[15:49:21.170] "install" terminal command done
[15:49:21.171] Install terminal quit with output: [-w local_tun[:remote_tun]] destination [command]
[15:49:21.171] Received install output: [-w local_tun[:remote_tun]] destination [command]
[15:49:21.172] Failed to parse remote port from server output
[15:49:21.173] Resolver error: Error:
at Function.Create (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:430425)
at Object.t.handleInstallOutput (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:429068)
at Object.t.tryInstall (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:524212)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:487216
at async Object.t.withShowDetailsEvent (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:490561)
at async Object.t.resolve (c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:488295)
at async c:\Users\algoo\.vscode\extensions\ms-vscode-remote.remote-ssh-0.70.0\out\extension.js:1:564197
[15:49:21.177] ------
[16:02:54.387] ConfigFileWatcher: start watching file:///c%3A/Users/algoo/.ssh/config/
[16:02:54.387] ConfigFileWatcher: adding save listener
[16:02:54.387] ConfigFileWatcher: adding close listener
is there anything that i missed out?

[15:49:16.848] "remote.SSH.path": undefined
^^^ Try setting the remote.SSH.path in settings.json and see if that works. I use the one that comes with Git Bash
These are my settings by the way:
"remote.SSH.enableDynamicForwarding": false,
"remote.SSH.lockfilesInTmp": true,
"remote.SSH.path": "%ProgramFiles/Git/usr/bin/ssh.exe",
"remote.SSH.useLocalServer": true,

Related

could not establish connection to "2001:1470:ff80:e9:ae1f:6bdf:feac:d658"

My goal is to connect my local computer to linux server (Ubuntu 18.04.6 LTS). I am using VSCode where I installed all neccessary packages for remote explorer and typed ssh myusername#2001:1470:ff80:e9:ae1f:6bdf:feac:d658 (config in .ssh) when adding new host. But following output error rise:
Output:
[15:50:40.254] Log Level: 2
[15:50:40.269] SSH Resolver called for "ssh-remote+2001:1470:ff80:e9:ae1f:6bdf:feac:d658", attempt 1
[15:50:40.270] "remote.SSH.useLocalServer": false
[15:50:40.271] "remote.SSH.showLoginTerminal": false
[15:50:40.271] "remote.SSH.remotePlatform": {"195.27.196.15":"linux"}
[15:50:40.271] "remote.SSH.path": undefined
[15:50:40.272] "remote.SSH.configFile": C:\Users\lesko\.ssh\config
[15:50:40.272] "remote.SSH.useFlock": true
[15:50:40.272] "remote.SSH.lockfilesInTmp": false
[15:50:40.272] "remote.SSH.localServerDownload": auto
[15:50:40.272] "remote.SSH.remoteServerListenOnSocket": false
[15:50:40.272] "remote.SSH.showLoginTerminal": false
[15:50:40.272] "remote.SSH.defaultExtensions": []
[15:50:40.273] "remote.SSH.loglevel": 2
[15:50:40.273] "remote.SSH.enableDynamicForwarding": true
[15:50:40.273] "remote.SSH.enableRemoteCommand": false
[15:50:40.273] "remote.SSH.serverPickPortsFromRange": {}
[15:50:40.273] "remote.SSH.serverInstallPath": {}
[15:50:40.276] VS Code version: 1.74.3
[15:50:40.276] Remote-SSH version: remote-ssh#0.96.0
[15:50:40.276] win32 x64
[15:50:40.277] SSH Resolver called for host: 2001:1470:ff80:e9:ae1f:6bdf:feac:d658
[15:50:40.277] Setting up SSH remote "2001:1470:ff80:e9:ae1f:6bdf:feac:d658"
[15:50:40.285] Using commit id "97dec172d3256f8ca4bfb2143f3f76b503ca0534" and quality "stable" for server
[15:50:40.291] Install and start server if needed
[15:50:41.818] Checking ssh with "ssh -V"
[15:50:41.865] > OpenSSH_for_Windows_8.1p1, LibreSSL
[15:50:41.865] > 3.0.2
[15:50:41.871] Using SSH config file "C:\Users\lesko\.ssh\config"
[15:50:41.871] Running script with connection command: ssh -T -D 59501 -F "C:\Users\lesko\.ssh\config" "2001:1470:ff80:e9:ae1f:6bdf:feac:d658" bash
[15:50:41.875] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:50:42.118] > ]0;C:\WINDOWS\System32\cmd.exe
[15:50:42.118] Got some output, clearing connection timeout
[15:50:42.125] > ssh: connect to host 2001:1470:ff80:e9:ae1f:6bdf:feac:d658 port 10000: Unknown e
> rror
> The process tried to write to a nonexistent pipe.
[15:50:43.390] "install" terminal command done
[15:50:43.391] Install terminal quit with output: rror
[15:50:43.391] Received install output: rror
[15:50:43.392] Failed to parse remote port from server output
[15:50:43.394] Resolver error: Error:
at g.Create (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:584147)
at t.handleInstallOutput (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:582761)
at t.tryInstall (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:680758)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:643114
at async t.withShowDetailsEvent (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:646432)
at async t.resolve (c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:644164)
at async c:\Users\lesko\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:721750
[15:50:43.407] ------
What I have already tried:
set port to 22 and 10000
created id_rsa.pub, id_rsa and known_hosts (conection refused when using ssh-keyscan)
ssh-copy-id (returns connection refused)
Remote-SSH: Kill VS Code Server on Host...
delete vscode-server

Trouble fetching linux-altera-ltsi-rt for yocto dunfell

I am attempting to bitbake an image for a de0-nano-soc board with the RT patch and I am getting fetch errors.
This is the settings in my local.conf
# Real time patch needs 4.9 toolchain.
MACHINE ?= "cyclone5"
GCCVERSION = "linaro-4.9"
SDKGCCVERSION = "linaro-4.9"
DEFAULTTUNE = "cortexa9hf-neon"
PREFERRED_PROVIDER_virtual/kernel = "linux-altera-ltsi-rt"
PREFERRED_VERSION_linux-altera-ltsi-rt = "4.14.126%"
UBOOT_CONFIG = "de0-nano-soc"
UBOOT_EXTLINUX_FDT_default = "../socfpga_cyclone5_de0_nano_soc.dtb"
#
# Additional packages/recipes utilized from other layers should be included here.
#
IMAGE_INSTALL_append += "openssh apt dpkg nano nodejs zeromq ninja protobuf"
and my bblayers.conf
BBLAYERS ?= " \
/home/asei/Documents/yocto-kirkstone/poky/meta \
/home/asei/Documents/yocto-kirkstone/poky/meta-poky \
/home/asei/Documents/yocto-kirkstone/poky/meta-yocto-bsp \
/home/asei/Documents/yocto-kirkstone/poky/meta-altera \
/home/asei/Documents/yocto-kirkstone/poky/meta-openembedded/meta-oe \
/home/asei/Documents/yocto-kirkstone/poky/meta-openembedded/meta-python \
/home/asei/Documents/yocto-kirkstone/poky/meta-openembedded/meta-networking \
/home/asei/Documents/yocto-kirkstone/poky/meta-openembedded/meta-webserver \
"
error log states this:
DEBUG: For url ['git', 'github.com', '/altera-opensource/linux-socfpga.git', '', '', OrderedDict([('protocol', 'https'), ('branch', 'socfpga-4.14.126-ltsi-rt')])] comparing ['git', '.*', '/.*', '', '', OrderedDict()] to ['git', 'HOST', '/PATH', '', '', OrderedDict([('protocol', 'https')])]
DEBUG: Fetching http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz using command '/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz''
DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz'
DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v
--2022-11-21 23:17:34-- http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.29.62
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.62|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-11-21 23:17:34 ERROR 404: Not Found.
DEBUG: Mirror fetch failure for url http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz (original url: git://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=socfpga-4.14.126-ltsi-rt)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v failed with exit code 8, no output
DEBUG: Fetching http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz using command '/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz''
DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz'
DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v
--2022-11-21 23:17:34-- http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz
Resolving sources.openembedded.org (sources.openembedded.org)... 198.145.29.27
Connecting to sources.openembedded.org (sources.openembedded.org)|198.145.29.27|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-11-21 23:17:34 ERROR 404: Not Found.
DEBUG: Mirror fetch failure for url http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz (original url: git://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=socfpga-4.14.126-ltsi-rt)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'http://sources.openembedded.org/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v failed with exit code 8, no output
DEBUG: Fetching https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz using command '/usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz''
DEBUG: Fetcher accessed the network with the command /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz'
DEBUG: Running export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v
--2022-11-21 23:17:34-- https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz
Resolving mirrors.kernel.org (mirrors.kernel.org)... 139.178.88.99, 2604:1380:45e3:2400::1
Connecting to mirrors.kernel.org (mirrors.kernel.org)|139.178.88.99|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-11-21 23:17:34 ERROR 404: Not Found.
DEBUG: Mirror fetch failure for url https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz (original url: git://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=socfpga-4.14.126-ltsi-rt)
DEBUG: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1205"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/asei/Documents/yocto-de0nano/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/asei/Documents/yocto-de0nano/poky/scripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot/usr/bin/crossscripts:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/usr/bin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/sbin:/home/asei/Documents/yocto-de0nano/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-altera-ltsi-rt/4.14.126-ltsi-rt+gitAUTOINC+652711a08d-r0/recipe-sysroot-native/bin:/home/asei/Documents/yocto-de0nano/poky/bitbake/bin:/home/asei/Documents/yocto-de0nano/build/tmp/hosttools"; export HOME="/home/asei"; /usr/bin/env wget -t 2 -T 30 --passive-ftp --no-check-certificate -O /home/asei/Documents/yocto-de0nano/build/downloads/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz.tmp -P /home/asei/Documents/yocto-de0nano/build/downloads 'https://mirrors.kernel.org/yocto-sources/git2_github.com.altera-opensource.linux-socfpga.git.tar.gz' --progress=dot -v failed with exit code 8, no output
ERROR: Fetcher failure: Unable to find revision 652711a08dbe255d0aa3c2dd7231d6c6bfc61817 in branch socfpga-4.14.126-ltsi-rt even from upstream
ERROR: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=socfpga-4.14.126-ltsi-rt')
DEBUG: Python function base_do_fetch finished
DEBUG: Python function do_fetch finished
I looked for the linux-socfpga github and there doesnt seem to be a branch for any rt patch?

Problem with accessing into OCI instance using VScode remote SSH

I tried to access my VM created on OCI using VScode remote SSH.
I followed the tutorial online and I just cannot get accessed to that.
I got error message everytimelike this:
[22:05:41.160] Log Level: 2
[22:05:41.162] remote-ssh#0.78.0
[22:05:41.162] win32 x64
[22:05:41.169] SSH Resolver called for "ssh-remote+elesis", attempt 1
[22:05:41.170] "remote.SSH.useLocalServer": false
[22:05:41.170] "remote.SSH.showLoginTerminal": false
[22:05:41.170] "remote.SSH.remotePlatform": {}
[22:05:41.170] "remote.SSH.path": undefined
[22:05:41.170] "remote.SSH.configFile": undefined
[22:05:41.171] "remote.SSH.useFlock": true
[22:05:41.171] "remote.SSH.lockfilesInTmp": false
[22:05:41.171] "remote.SSH.localServerDownload": auto
[22:05:41.171] "remote.SSH.remoteServerListenOnSocket": false
[22:05:41.172] "remote.SSH.showLoginTerminal": false
[22:05:41.172] "remote.SSH.defaultExtensions": []
[22:05:41.172] "remote.SSH.loglevel": 2
[22:05:41.172] "remote.SSH.enableDynamicForwarding": true
[22:05:41.173] "remote.SSH.enableRemoteCommand": false
[22:05:41.173] "remote.SSH.serverPickPortsFromRange": {}
[22:05:41.173] "remote.SSH.serverInstallPath": {}
[22:05:41.222] SSH Resolver called for host: elesis
[22:05:41.223] Setting up SSH remote "elesis"
[22:05:41.261] Using commit id "dfd34e8260c270da74b5c2d86d61aee4b6d56977" and quality "stable" for server
[22:05:41.268] Install and start server if needed
[22:05:42.873] Checking ssh with "ssh -V"
[22:05:42.956] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
[22:05:42.965] Running script with connection command: ssh -T -D 62778 elesis bash
[22:05:42.970] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[22:05:43.281] > ]0;C:\WINDOWS\System32\cmd.exe
[22:05:43.282] Got some output, clearing connection timeout
[22:05:43.297] > Bad owner or permissions on C:\\Users\\Elesis/.ssh/config
> The process tried to write to a nonexistent pipe.
>
[22:05:44.583] "install" terminal command done
[22:05:44.583] Install terminal quit with output:
[22:05:44.583] Received install output:
[22:05:44.584] Resolver error: Error:
at Function.Create (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:586041)
at c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:583914
at Object.t.handleInstallOutput (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:584615)
at Object.t.tryInstall (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:681924)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:644564
at async Object.t.withShowDetailsEvent (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:647909)
at async Object.t.resolve (c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:645643)
at async c:\Users\Elesis\.vscode\extensions\ms-vscode-remote.remote-ssh-0.78.0\out\extension.js:1:722950
[22:05:44.591] ------
Here is my SSH config file:
Host elesis
HostName 168.138.9.67
User ubuntu
IdentityFile D:\xxx\xxx\xxx\ssh-key-2022-04-23.key
I don't know why.
Please help me.

How to troubleshoot Vscode ssh could not establish connection to "hostname"?

I'm trying to connect to a host with Vscode ssh, but I keep getting "could not establish connection to 'hostname'".
I'm confused because it was working perfectly fine and then it stopped working out of the blue.
I did not change the hostname or any config related to ssh in vscode
I can still connect to the host in PuTTY, but I'd like to use vscode
output:
[13:55:52.602] Log Level: 2
[13:55:52.604] remote-ssh#0.76.1
[13:55:52.604] win32 x64
[13:55:52.617] SSH Resolver called for "ssh-remote+ug09.cs.ualberta.ca", attempt 1
[13:55:52.617] "remote.SSH.useLocalServer": false
[13:55:52.618] "remote.SSH.showLoginTerminal": false
[13:55:52.618] "remote.SSH.remotePlatform": {"ug03.cs.ualberta.ca":"linux","ug09.cs.ualberta.ca":"linux","uf23.cs.ualberta.ca":"linux"}
[13:55:52.618] "remote.SSH.path": undefined
[13:55:52.618] "remote.SSH.configFile": undefined
[13:55:52.618] "remote.SSH.useFlock": true
[13:55:52.618] "remote.SSH.lockfilesInTmp": false
[13:55:52.619] "remote.SSH.localServerDownload": auto
[13:55:52.619] "remote.SSH.remoteServerListenOnSocket": false
[13:55:52.619] "remote.SSH.showLoginTerminal": false
[13:55:52.619] "remote.SSH.defaultExtensions": []
[13:55:52.619] "remote.SSH.loglevel": 2
[13:55:52.619] "remote.SSH.enableDynamicForwarding": true
[13:55:52.619] "remote.SSH.enableRemoteCommand": false
[13:55:52.620] "remote.SSH.serverPickPortsFromRange": {}
[13:55:52.620] "remote.SSH.serverInstallPath": {}
[13:55:52.645] SSH Resolver called for host: ug09.cs.ualberta.ca
[13:55:52.646] Setting up SSH remote "ug09.cs.ualberta.ca"
[13:55:52.668] Using commit id "8908a9ca0f221f36507231afb39d2d8d1e182702" and quality "stable" for server
[13:55:52.672] Install and start server if needed
[13:55:52.676] Checking ssh with "ssh -V"
[13:55:52.729] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[13:55:52.734] Running script with connection command: ssh -T -D 62422 "ug09.cs.ualberta.ca" bash
[13:55:52.737] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[13:55:52.985] >
>
> ]0;C:\WINDOWS\System32\cmd.exe
[13:55:52.985] Got some output, clearing connection timeout
[13:55:53.000] >
>
[13:55:53.256] > abujayya#ug09.cs.ualberta.ca's password:
[13:55:53.257] Showing password prompt
[13:55:57.151] Got password response
[13:55:57.151] "install" wrote data to terminal: "**********"
[13:55:57.318] >
>
[13:55:58.213] > 7037813af524: running
>
[13:55:58.239] > mkdir: cannot create directory ‘/cshome/abujayya/.vscode-server/bin/8908a9ca0f22
> 1f36507231afb39d2d8d1e182702’: Disk quota exceeded
> Creating the server install dir failed...
> 7037813af524: start
> exitCode==34==
> listeningOn====
> osReleaseId====
> arch====
> tmpDir==/tmp==
> platform====
> unpackResult====
> didLocalDownload==0==
> downloadTime====
> installTime====
> extInstallTime====
> serverStartTime====
> 7037813af524: end
>
[13:55:58.239] Received install output:
exitCode==34==
listeningOn====
osReleaseId====
arch====
tmpDir==/tmp==
platform====
unpackResult====
didLocalDownload==0==
downloadTime====
installTime====
extInstallTime====
serverStartTime====
[13:55:58.240] Failed to parse remote port from server output
[13:55:58.241] Resolver error: Error:
at Function.Create (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:586041)
at Object.t.handleInstallOutput (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:584693)
at Object.t.tryInstall (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:681846)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:644486
at async Object.t.withShowDetailsEvent (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:647831)
at async Object.t.resolve (c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:645565)
at async c:\Users\Mahmoud\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:722872
[13:55:58.245] ------
[13:55:59.490] "install" terminal command done
[13:55:59.491] Install terminal quit with output:
[13:56:29.738] ConfigFileWatcher: start watching file:///c%3A/Users/Mahmoud/.ssh/config
[13:56:29.738] ConfigFileWatcher: adding save listener
[13:56:29.738] ConfigFileWatcher: adding close listener
[14:00:32.552] Picking SSH host
[14:00:33.624] Selected ug04.cs.ualberta.ca
what can I do to troubleshoot this problem?
Turns out it was because the disk quota was exceeded in the remote machine. This was fixed after I freed up some space in the remote machine.

ansible start process if not running using ps

i am using ansible to start the namenode process if incase its not running, I am using jps to check for the process and check the status using service_namenode_status and start the process using service_namenode_start any idea how to use this properly...?
- name: Check if Namenode is running
shell: jps | grep " NameNode" | grep -v grep
ignore_errors: yes
changed_when: false
register: service_namenode_status
- name: Report status of Namenode
fail:
msg: |
Service NameNode is not running.
Return code from `jps | grep " NameNode" | grep -v grep`:
{{ service_namenode_status.rc }}
when: service_namenode_status.rc != 0
register: service_namenode_start
- name: Start Namenode
command: su - hdfs -c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR start namenode"
tags: namenode
when: service_namenode_status.rc != 0
OUTPUT:
TASK [namenode : Check if Namenode is running] *********************************
fatal: [server1.hdp.vagrant.data.uc]: FAILED! => {"changed": false, "cmd": "jps | grep \" NameNode\" | grep -v grep", "delta": "0:00:00.192755", "end": "2016-11-09 10:59:10.360552", "failed": true, "rc": 1, "start": "2016-11-09 10:59:10.167797", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}
...ignoring
TASK [namenode : Report status of Namenode] ************************************
fatal: [server1.hdp.vagrant.data.uc]: FAILED! => {"changed": false, "failed": true, "msg": "Service NameNode is not running.\nReturn code from `jps | grep \" NameNode\" | grep -v grep`:\n1 \n"}
NO MORE HOSTS LEFT *************************************************************
RUNNING HANDLER [metastore : restart postgresql] *******************************
to retry, use: --limit #/Users/krisdigitx/myLab/hdp/provisioning/site.retry
PLAY RECAP *********************************************************************
server1.hdp.vagrant.data.uc : ok=86 changed=32 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
Try this:
- name: Check if Namenode is running
tags: namenode
shell: jps | grep " NameNode" | grep -v grep
ignore_errors: yes
changed_when: false
register: service_namenode_status
- name: Start Namenode
tags: namenode
command: su - hdfs -c "/usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR start namenode"
when: service_namenode_status.rc == 1
My changes were:
I added the "tags: namenode" line to the 1st part; you'll need to collect the register value if you are filtering on this tag
I removed your 2nd part and went straight to the 3rd.
A similar config is working for me for a similar problem.

Resources