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.24k stars 1.35k forks source link

Fail to install Outline service on Linux #1690

Open EnchantedGoldenApple opened 11 months ago

EnchantedGoldenApple commented 11 months ago

I tried to run Appimage on my VanillaOS and get error: `./Outline-Client.AppImage Outline is starting libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) loading web app from file:///tmp/.mount_OutlinFyli45/resources/app.asar/www/index_electron.html?appName=Outline Could not load active tunnel: [Error: ENOENT: no such file or directory, open '/home/gapple/.config/Outline/connection_store'] { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/gapple/.config/Outline/connection_store' } Checking for update Found version 1.11.0 (url: https://s3.amazonaws.com/outline-releases/client/linux/1.11.0/1/Outline-Client.AppImage) Downloading update from https://s3.amazonaws.com/outline-releases/client/linux/1.11.0/1/Outline-Client.AppImage updater cache dir: /home/gapple/.cache/outline-client-updater Update has already been downloaded to /home/gapple/.cache/outline-client-updater/pending/Outline-Client.AppImage). [7281:0808/151528.651031:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [7281:0808/151625.559795:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [7281:0808/151625.566951:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times! connecting to 3c3d6d8d-057a-45db-81e1-523a03d64c6d... using tun2socks to check connectivity [EXIT - tun2socks]: Exited with code 0 UDP support: true starting routing daemon Routing daemon socket setup failed Error: connect ENOENT /var/run/outline_controller at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1157:16) { errno: -2, code: 'ENOENT', syscall: 'connect', address: '/var/run/outline_controller' } could not connect: w (routing daemon is not running) [EXIT - tun2socks]: Exited with code 12 could not stop tun2socks: Process terminated by non-zero exit code: 12 tun2socks terminated due to Error: Process terminated by non-zero exit code: 12 disconnected from 3c3d6d8d-057a-45db-81e1-523a03d64c6d installing outline routing service... copying service installation files to /tmp/jE4eKy all service installation files copied to /tmp/jE4eKy successfully trying to run command as root: trap "/usr/bin/chattr -R -i /tmp/jE4eKy" EXIT; /usr/bin/chattr -R +i /tmp/jE4eKy && /usr/bin/echo "e0644a3750b6c770e4f2f2e2e7de0de1e46386eed733d7841f35d9e4aa53c1cd /tmp/jE4eKy/install_linux_service.sh" | /usr/bin/shasum -a 256 -c && /usr/bin/echo "0a2d2b874d4d200145b1e3a7cc5818fb27e5c0ed69ebb4f4057e066e0b7fdc4a /tmp/jE4eKy/OutlineProxyController" | /usr/bin/shasum -a 256 -c && /usr/bin/echo "8bfab08036441bcbb558927bdecd97eebf8c2d365a2a7fdb6c0032c2afc965a2 /tmp/jE4eKy/outline_proxy_controller.service" | /usr/bin/shasum -a 256 -c && "/tmp/jE4eKy/install_linux_service.sh" "gapple" /tmp/jE4eKy/install_linux_service.sh: OK /tmp/jE4eKy/OutlineProxyController: OK /tmp/jE4eKy/outline_proxy_controller.service: OK user gapple has been added to outlinevpn group

command is running as root but failed: Error: Command failed: cd "/home/gapple/Downloads"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; trap \"/usr/bin/chattr -R -i /tmp/jE4eKy\" EXIT; /usr/bin/chattr -R +i /tmp/jE4eKy && /usr/bin/echo \"e0644a3750b6c770e4f2f2e2e7de0de1e46386eed733d7841f35d9e4aa53c1cd /tmp/jE4eKy/install_linux_service.sh\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"0a2d2b874d4d200145b1e3a7cc5818fb27e5c0ed69ebb4f4057e066e0b7fdc4a /tmp/jE4eKy/OutlineProxyController\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"8bfab08036441bcbb558927bdecd97eebf8c2d365a2a7fdb6c0032c2afc965a2 /tmp/jE4eKy/outline_proxy_controller.service\" | /usr/bin/shasum -a 256 -c && \"/tmp/jE4eKy/install_linux_service.sh\" \"gapple\""

command is running as root but failed: Error: Command failed: cd "/home/gapple/Downloads"; "/usr/bin/pkexec" --disable-internal-agent /bin/bash -c "echo SUDOPROMPT; trap \"/usr/bin/chattr -R -i /tmp/67W6ZT\" EXIT; /usr/bin/chattr -R +i /tmp/67W6ZT && /usr/bin/echo \"e0644a3750b6c770e4f2f2e2e7de0de1e46386eed733d7841f35d9e4aa53c1cd /tmp/67W6ZT/install_linux_service.sh\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"0a2d2b874d4d200145b1e3a7cc5818fb27e5c0ed69ebb4f4057e066e0b7fdc4a /tmp/67W6ZT/OutlineProxyController\" | /usr/bin/shasum -a 256 -c && /usr/bin/echo \"8bfab08036441bcbb558927bdecd97eebf8c2d365a2a7fdb6c0032c2afc965a2 /tmp/67W6ZT/outline_proxy_controller.service\" | /usr/bin/shasum -a 256 -c && \"/tmp/67W6ZT/install_linux_service.sh\" \"gapple\""

jyyi1 commented 11 months ago

Hi @EnchantedGoldenApple , from the log message, OutlineClient failed to install the service into the system:

/usr/bin/cp -f /tmp/jE4eKy/OutlineProxyController /usr/local/sbin
/usr/bin/cp: cannot create regular file '/usr/local/sbin/OutlineProxyController': Read-only file system

Could you please make sure /usr/local/sbin is writable?

jyyi1 commented 11 months ago

This is another similar issue: https://github.com/Jigsaw-Code/outline-client/issues/843