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

sshnpd install failing on ubuntu 20.0.x` #307

Closed
cconstab opened this issue Aug 9, 2023 · 2 comments · Fixed by #308
Closed

sshnpd install failing on ubuntu 20.0.x` #307

cconstab opened this issue Aug 9, 2023 · 2 comments · Fixed by #308
Assignees
Labels
bug Something isn't working

Comments

@cconstab
Copy link
Member

cconstab commented Aug 9, 2023

Describe the bug

Install fails

cconstab@blake:~$ bash -x -c "$(curl -fsSL https://getsshnpd.noports.com)"
+ BINARY_NAME=sshnpd
+ parse_args
+ SSHNP_OP=install
+ '[' 0 -gt 0 ']'
+ '[' install = install ']'
+ '[' -z '' ']'
+ read -rp 'Client address (e.g. @alice_client): ' CLIENT_ATSIGN
Client address (e.g. @alice_client): @cconstab
+ '[' -z '' ']'
+ read -rp 'Device address (e.g. @alice_device): ' DEVICE_MANAGER_ATSIGN
Device address (e.g. @alice_device): @ssh_1
+ '[' -z '' ']'
+ read -rp 'Device name: ' SSHNP_DEVICE_NAME
Device name: blake
+ '[' -z blake ']'
+ '[' 5 -gt 15 ']'
+ [[ blake =~ [^a-zA-Z0-9] ]]
+ norm_atsign CLIENT_ATSIGN
+ KEY=CLIENT_ATSIGN
+ INPUT=@cconstab
+ shopt -s extglob
+ ATSIGN=@cconstab
+ shopt -u extglob
+ export CLIENT_ATSIGN=@cconstab
+ CLIENT_ATSIGN=@cconstab
+ norm_atsign DEVICE_MANAGER_ATSIGN
+ KEY=DEVICE_MANAGER_ATSIGN
+ INPUT=@ssh_1
+ shopt -s extglob
+ ATSIGN=@ssh_1
+ shopt -u extglob
+ export DEVICE_MANAGER_ATSIGN=@ssh_1
+ DEVICE_MANAGER_ATSIGN=@ssh_1
+ echo

+ main
+ parse_env
+ '[' -z '' ']'
+ SSHNP_USER=cconstab
++ eval echo '~cconstab'
+++ echo /home/cconstab
+ HOME_PATH=/home/cconstab
+ '[' -z '' ']'
+ SSHNP_VERSION=latest
+ URL=https://api.github.com/repos/atsign-foundation/sshnoports/releases/latest
+ case "$(uname)" in
++ uname
+ PLATFORM=linux
+ EXT=tgz
+ '[' linux == Unknown ']'
+ case "$(uname -m)" in
++ uname -m
+ ARCH='x64\.'
+ '[' 'x64\.' == Unknown ']'
++ curl -s https://api.github.com/repos/atsign-foundation/sshnoports/releases/latest
++ grep browser_download_url
++ cut '-d"' -f4
+ DOWNLOADS='https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-arm.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-arm64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-riscv64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-macos-arm64.zip
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-macos-x64.zip'
++ echo 'https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-arm.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-arm64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-riscv64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-macos-arm64.zip
https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-macos-x64.zip'
++ grep linux
++ grep 'x64\.'
++ cut '-d"' -f4
+ DOWNLOAD=https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz
+ '[' -n '' ']'
+ '[' -n '' ']'
+ TEMP_PATH=latest
+ make_dirs
+ rm -rf /home/cconstab/.atsign/temp/latest
+ mkdir -p /home/cconstab/.ssh/ /home/cconstab/.sshnpd/logs /home/cconstab/.atsign/keys /home/cconstab/.atsign/temp /home/cconstab/.local/bin
+ '[' '!' -f /home/cconstab/.ssh/authorized_keys ']'
+ download
+ '[' -z '' ']'
+ '[' -n '' ']'
+ echo 'Downloading sshnpd from https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz'
Downloading sshnpd from https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz
+ curl -sL https://github.com/atsign-foundation/sshnoports/releases/download/v3.3.0/sshnp-linux-x64.tgz -o /home/cconstab/.atsign/temp/latest/sshnpd.tgz
+ '[' '!' -f /home/cconstab/.atsign/temp/latest/sshnpd.tgz ']'
+ echo 'Failed to download sshnpd'
Failed to download sshnpd
+ exit 1
cconstab@blake:~$

Steps to reproduce

  1. First I follow instructions
  2. it fails to install

Expected behavior

should install without failure

Screenshots

No response

Smartphones

  • Clean Ubuntu install under WSL2

Were you using an atApplication when the bug was found?

No response

Additional context

Looks like the .atsign directory is not being created ???

mkdir /home/cconstab/.atsign/temp/latest/

allows the curl we see in the bash -x log to work

sshnp install worked fine

@cconstab cconstab added the bug Something isn't working label Aug 9, 2023
@cconstab
Copy link
Member Author

cconstab commented Aug 9, 2023

p0

@cconstab
Copy link
Member Author

cconstab commented Aug 9, 2023

confirmed working thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants