-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Barrier client coredumps when run as systemd service #734
Comments
When ExecStartPre steps are done manually it is possible to start the barrier running in client mode using the same command from a terminal window though. Systemd does not allow it apparently. |
No, this is a core dump where #733 is just a failure since the command fails to execute, look at the exit codes: #734: (code=dumped, signal=ABRT) vs #733 (code=exited, status=203/EXEC) The core dump as described here only appears after manually working around the ExecStartPre failures described in #733. |
So, just to mention - I'm not sure the problem stems from elsewhere - but I removed an assertion from the code that allowed me to launch Barrier as a systemd service prior to logging in. I was having this same core dump occur for me. When I get some time I'll look into it again, but I removed this assertion:
I rebuilt and could run barrierc without issue as a systemd service. Git blame shows a comment which states:
Unfortunately I don't know enough to state whether the assertion is correct when comparing the context of using read for the parent stream's event queue and how that ties into |
Short VersionYou can work around this by prefixing the command with Longer VersionSo, on a hunch, I tried a few things and came up with a workaround! Wrapping the I can use it in systemd, and I can also get it to launch via SSH (in other words, There's still some fun because my system has encrypted home folders, and it's looking for Example "Remote Launch" Scriptbarrierc-remote-ssh.shYou should create /var/log/barrier/ on the server and give access, ala
Example Systemd Unit FilesHere are my systemd unit files WARNING: THIS MESSES WITH SYSTEM SECURITY by changing permissions on the X Authoruty file. Also, these won't work with encrypted home stuff. (at least not until you SSH in) /etc/systemd/system/barrier-pre.service
/etc/systemd/system/barrier.service
|
Does #694 fixes/improves this? |
Operating Systems
Operating Systems
Server: Windows 10 Professional 1909
Client: Ubuntu 20.04 LTS
Barrier Version
Server: 2.3.2-snapshot-210cb270
Client: 2.3.2-snapshot-0a1f0802 (latest master)
Steps to reproduce bug (see also #733)
systemctl daemon-reload
Other info
core dump:
core.barrierc.0.fe76b36acc64456b893a583eb3c1ae9f.9270.1591211953000000000000.zip
The text was updated successfully, but these errors were encountered: