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

Support Arch Linux for Outline Client #1685

Open da-the-dev opened 1 year ago

da-the-dev commented 1 year ago

Describe the bug Outline Proxy Routing Controller Linux service no longer starts due to a core dump error

To Reproduce

Expected behavior A running service

Screenshots outline_proxy_controller.service - Outline Proxy Routing Controller Loaded: loaded (/etc/systemd/system/outline_proxy_controller.service; enabled; preset: disabled) Active: failed (Result: core-dump) since Fri 2023-08-04 11:46:46 MSK; 5min ago Duration: 559ms Process: 532 ExecStart=/usr/local/sbin/OutlineProxyController --socket-filename=/var/run/outline_controller --owning-user-id=1000 (code=dumped, signal=ABR> Main PID: 532 (code=dumped, signal=ABRT) CPU: 11ms

Aug 04 11:46:45 powerpc systemd[1]: Started Outline Proxy Routing Controller. Aug 04 11:46:46 powerpc OutlineProxyController[532]: 1691138806.122492: [INFO] successfully set the tun device ip address Aug 04 11:46:46 powerpc OutlineProxyController[532]: 1691138806.123335: [INFO] successfully added outline gateway routing entry Aug 04 11:46:46 powerpc OutlineProxyController[532]: 1691138806.124181: [ERROR] Error: any valid prefix is expected rather than "". Aug 04 11:46:46 powerpc OutlineProxyController[532]: Aug 04 11:46:46 powerpc OutlineProxyController[532]: 1691138806.124534: [WARN] unable to query the default route to the outline proxy Aug 04 11:46:46 powerpc OutlineProxyController[532]: 1691138806.124543: [WARN] we could not detect the best interface, will try again at connect Aug 04 11:46:46 powerpc OutlineProxyController[532]: Assertion 'p->n_ref > 0' failed at src/shared/varlink.c:495, function varlink_unref(). Aborting. Aug 04 11:46:46 powerpc systemd[1]: outline_proxy_controller.service: Main process exited, code=dumped, status=6/ABRT Aug 04 11:46:46 powerpc systemd[1]: outline_proxy_controller.service: Failed with result 'core-dump'.

Client System (please complete the following information):

Submit Feedback Please submit feedback through the app and label it with this issue number.

Additional context Add any other context about the problem here.

da-the-dev commented 1 year ago

I've looked into the assertion error and have figured out that src/shared/varlink.c is a file related to systemd. I then found that file is systemd's repository. A new version of systemd was released a week ago and I have done a full system upgrade a few days ago. This might be the issue.

da-the-dev commented 1 year ago

Downgrading systemd to version 253 haven't helped

maddyhof commented 1 year ago

Thanks for reaching out! Tagging this as a feature request since we do not currently support Arch Linux for Outline Client.

daniellacosse commented 8 months ago

We now have a CLI that should work on Arch Linux: https://github.com/Jigsaw-Code/outline-sdk/tree/main/x/examples/outline-cli

@cocoonkid also posted a workaround on this issue: https://github.com/Jigsaw-Code/outline-client/issues/1825

arabel1a commented 6 months ago

We now have a CLI that should work on Arch Linux: https://github.com/Jigsaw-Code/outline-sdk/tree/main/x/examples/outline-cli

Seems to be broken on arch again. This error appears on both outline-cli and systemctl's outline_proxy_controller daemon. Is there a solution? Can i disable ipv6 manually and skip this step in outline?

[ERROR] 2024/03/18 21:45:59 failed to disable IPv6: failed to read IPv6 config: open /proc/sys/net/ipv6/conf/all/disable_ipv6: no such file or directory

UPD. My apologise, this error is caused BY manualy disabling ipv6. If someone get the same error, just remove ipv6.disable from grub kernel parameters.

adequacy1 commented 2 months ago

We now have a CLI that should work on Arch Linux: https://github.com/Jigsaw-Code/outline-sdk/tree/main/x/examples/outline-cli

[ERROR] 2024/07/20 13:58:50 failed to create OutlineDevice: invalid server hostname: lookup Y2hh...(the rest of the ss-file content follows, everything between 'ss://' and '#')...NzU0: no such host

Up-to-date arch linux.