Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.4k stars 1.36k forks source link

[Bug]: Cannot connect to server on Ubuntu 20.04 #2039

Closed ChesterDenn closed 1 month ago

ChesterDenn commented 3 months ago

Application

Outline Client

Describe the bug

/bin/bash: /usr/bin/echo: No such file or directory
shasum: standard input: no properly formatted SHA checksum lines found

command is running as root but failed:  Error: Command failed: cd "/home/sithuaung/WWVPN"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; trap \"/usr/bin/chattr -R -i /tmp/Ro1bMd\" EXIT; /usr/bin/chattr -R +i /tmp/Ro1bMd && /usr/bin/echo \"e0644a3750b6c770e4f2f2e2e7de0de1e46386eed733d7841f35d9e4aa53c1cd  /tmp/Ro1bMd/install_linux_service.sh\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"0a2d2b874d4d200145b1e3a7cc5818fb27e5c0ed69ebb4f4057e066e0b7fdc4a  /tmp/Ro1bMd/OutlineProxyController\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"8bfab08036441bcbb558927bdecd97eebf8c2d365a2a7fdb6c0032c2afc965a2  /tmp/Ro1bMd/outline_proxy_controller.service\" | /usr/bin/shasum -a 256 -c && \"/tmp/Ro1bMd/install_linux_service.sh\" \"sithuaung\""
/bin/bash: /usr/bin/echo: No such file or directory
shasum: standard input: no properly formatted SHA checksum lines found

    at ChildProcess.exithandler (node:child_process:408:12)
    at ChildProcess.emit (node:events:526:28)
    at ChildProcess.emit (node:domain:475:12)
    at maybeClose (node:internal/child_process:1092:16)
    at Socket.<anonymous> (node:internal/child_process:451:11)
    at Socket.emit (node:events:526:28)
    at Socket.emit (node:domain:475:12)
    at Pipe.<anonymous> (node:net:687:12) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cd "/home/sithuaung/WWVPN"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; trap \\"/usr/bin/chattr -R -i /tmp/Ro1bMd\\" EXIT; /usr/bin/chattr -R +i /tmp/Ro1bMd && /usr/bin/echo \\"e0644a3750b6c770e4f2f2e2e7de0de1e46386eed733d7841f35d9e4aa53c1cd  /tmp/Ro1bMd/install_linux_service.sh\\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \\"0a2d2b874d4d200145b1e3a7cc5818fb27e5c0ed69ebb4f4057e066e0b7fdc4a  /tmp/Ro1bMd/OutlineProxyController\\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \\"8bfab08036441bcbb558927bdecd97eebf8c2d365a2a7fdb6c0032c2afc965a2  /tmp/Ro1bMd/outline_proxy_controller.service\\" | /usr/bin/shasum -a 256 -c && \\"/tmp/Ro1bMd/install_linux_service.sh\\" \\"sithuaung\\""'

Steps to reproduce

  1. Open the application
  2. Click on connect to server
  3. Cannot connect and provided error log display in background

What did you expect to happen?

No response

What actually happened?

No response

Outline Version

1.13.1 (476278)

What operation system are you using?

Linux

Operating System Version

Ubuntu 20.04

Screenshots and Videos

No response

sbruens commented 3 months ago

Looks like your system does not have echo installed in /usr/bin. Could you either create a symlink or install it fresh.

sbruens commented 1 month ago

Closing this as we haven't heard back in a while. Feel free to re-open in future if you have more details.

gpt2ent commented 3 weeks ago

This problem is still relevant for Outline client on ubuntu (I was running it on 20.04 but not sure if release matters here), where it seems like basic UNIX executables are located in /bin/ rather than /usr/bin. If you link echo, it fails on cp, then on sed, then I kinda felt like this is not something I should do anymore – just keep symlinking all these intuitively seems like not a reasonable solution to me. Some alternative solutions were also proposed in #1488 by the way.