mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #773] Barrier server fails to start when IPv6 is disabled on the Linux host system (ipv6.disable=1) #607
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#607
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cryzed on GitHub (Jun 26, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/773
Originally assigned to: @shymega on GitHub.
Operating Systems
Server: Arch Linux (up-to-date, KDE Plasma, Xorg)
Client: Arch Linux ARM (up-to-date, irrelevant)
Barrier Version
2.3.2
Steps to reproduce bug
Other info
The GUI application has the following log, repeating:
To get more information on what goes wrong, I ran the actually crashing component (
barriers) manually, the way it is run by the GUI application, with the automatically generated config:@cryzed commented on GitHub (Jun 26, 2020):
I am pretty sure the segmentation fault occurs here. I made a debug release of Barrier which also just showed that the last log line before the segfault was "creating primary screen" here. It feels like Barrier fails to open the display ":0" (which is the correct display), because when I set a custom display ":1" it doesn't crash:
I also checked with
xhostif I have some too restrictive access controls set for the display, but I don't -- I even went so far as to set it temporarily toxhost +(allow any and all connections), but it's the same result.Of course that's useless in the end. Is there something else I can do to make fixing this easier for you guys and girls?
@cryzed commented on GitHub (Jun 26, 2020):
Turns out the cause was me disabling IPv6 on the kernel commandline (
ipv6.disable=1), @shymega figured this out on the IRC channel. When Barrier wants to listen for clients, it assumes IPv6 is enabled/exists and crashes when it isn't.@shymega commented on GitHub (Jun 26, 2020):
This bug is confirmed. Barrier currently assumes that every machine the server is on has both
AF_INETandAF_INET6available as address families. Obviously, this cannot continue. Work must commence when possible to add a configuration option to both the file & GUI to restrict address families to IPv4, IPv6, both, or either.For now, the solution is to keep IPv6 enabled.
@sourya7 commented on GitHub (Jul 1, 2020):
FWIW, I encountered the same bug. I had ipv6 disabled because turns out that was leaking my vpn connections and did not feel like re-enabling it just to make barrier work. The workaround for me was to use
ipv6.disable_ipv6=1kernel parameter vs theipv6.disable=1parameter. The latter disables the whole stack and the former just makes it so that we don't assign any network address to the interfaces. This works as intended for me. Barrier seems to work without crashing and I don't have connection leaks over ipv6.@github-actions[bot] commented on GitHub (Sep 18, 2020):
This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.
@p12tic commented on GitHub (Jan 10, 2021):
Let's not close valid bugs without a valid reason.
@agilleyrh commented on GitHub (Feb 2, 2021):
Also having this issue after disabling IPv6.
@shymega commented on GitHub (Feb 3, 2021):
Apologies on the bot's behalf.
@shymega commented on GitHub (Feb 3, 2021):
After disabling IPv6? How did you disable it? A kernel param? I know its not ideal right now, but disabling it in the networking stack "works"™️ for now...sorry :/ - hopefully a fix will come soon.
@agilleyrh commented on GitHub (Feb 4, 2021):
I had disabled it via grub, I did this because of a networking issue that ended up being unrelated to IPv6 but when I went to configure Barrier, I ran into this. I have since re-enabled IPv6 so it's working.