mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #571] Cannot write configuration file #448
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#448
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 @xMyran on GitHub (Feb 21, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/571
Operating Systems
Server: Windows 10
Client: N/A
Barrier Version
2.3.2
Steps to reproduce bug
Other info
@shymega commented on GitHub (Feb 22, 2020):
Hello,
Have you got Ransomware Protection enabled on your Windows 10 machine?
I suspect that's the issue.
Try disabling it, or adding Barrier as an exception, and report back, please.
Thanks!
On this date - Fri, Feb 21, 2020 at 11:11:36AM -0800, Niklas Myrberg wrote:
--
Yours,
Dom Rodriguez
[shymega]
@arkdae commented on GitHub (Feb 28, 2020):
I am having a similar problem. I just came in today and it is no longer working. The client Windows 10 PC had rebooted over night.
The server, a Centos 7.6.1810 PC can no longer run Barrier. This is version 2.3.2-snapshot-9080ce45. The error "The temporary configuration file required to start barrier can not be written" pops up in a dialog window, and this is the console output:
/snap/barrier/83/bin/desktop-launch: line 329: cannot create temp file for here-document: No such file or directory
*** WARNING *** The program 'barrier' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see http://0pointer.de/blog/projects/avahi-compat.html
/usr/share/libdrm/amdgpu.ids: No such file or directory
@the-wes commented on GitHub (Mar 3, 2020):
@xMyran please let us know the current state
@arkdae I think we would consider this happening on Windows and Linux as separate issues, considering that filesystem access on each is completely different. With the additional complication that it's running in a snap image, this will probably require specific attention from those who understand this ecosystem. Line 329 talks about XDG_DATA_DIRS so I'm guessing this is some kind of environment or effective user issue.
@arkdae commented on GitHub (Mar 3, 2020):
I can open a second issue report if you would like.
@xMyran commented on GitHub (Mar 16, 2020):
Ransomware Protection doesn't seem to be on, no.
@PhilHowell commented on GitHub (Mar 19, 2020):
I'm having the same error.
Server OS: Windows 10 Pro (10.0.18363)
Barrier: 2.3.2
I have just installed Barrier on this new machine. Starting as server generates error:
"Cannot write configuration file
The temporary configuration file required to start barrier can not be written"
Log shows:
[2020-03-19T12:21:48] INFO: starting server
[2020-03-19T12:24:34] INFO: config file:
[2020-03-19T12:24:34] INFO: log level: INFO
[2020-03-19T12:24:34] INFO: service command updated
[2020-03-19T12:24:34] INFO: starting new process as privileged user
[2020-03-19T12:24:34] INFO: drag and drop enabled
[2020-03-19T12:24:34] ERROR: failed to get desktop path, no drop target available, error=2
[2020-03-19T12:24:34] NOTE: started server (IPv4/IPv6), waiting for clients
[2020-03-19T12:24:34] INFO: server status: active
@the-wes commented on GitHub (Mar 19, 2020):
@PhilHowell Does it still happen after a reboot? Would you be willing to run Process Explorer or Process Monitor to see what it's hanging up on? I haven't been able to get it to happen on my win10 systems.
@R-y-a-n-H commented on GitHub (Mar 20, 2020):
I had the same issue. It seems to be trying to make a temp file somewhere of the configuration file if you have the "Configure interactively" radio button selected.
Once I went to barrier > save config file and then switched it to the "Use existing configuration" the error went away and it launched and connected to my 'client' PCs fine.
Server OS: Win 10 1909 x64
Client OS: Win 10 1903 x64
Hope this helps...
@PhilHowell commented on GitHub (Mar 21, 2020):
@the-wes Yes, I can run Process Explorer - but I don't know what I'm looking for.
Barrier log showing:
...
barriers.exe: no configuration available
[2020-03-21T16:05:01] ERROR: failed to launch, error: process immediately stopped
[2020-03-21T16:05:01] INFO: backing off, wait=10s, failures=20
[2020-03-21T16:05:11] INFO: starting new process as privileged user
[2020-03-21T16:05:11] INFO: drag and drop enabled
barriers.exe: no configuration available
[2020-03-21T16:05:12] ERROR: failed to launch, error: process immediately stopped
[2020-03-21T16:05:12] INFO: backing off, wait=10s, failures=21
[2020-03-21T16:05:22] INFO: starting new process as privileged user
[2020-03-21T16:05:22] INFO: drag and drop enabled
barriers.exe: no configuration available
[2020-03-21T16:05:23] ERROR: failed to launch, error: process immediately stopped
[2020-03-21T16:05:23] INFO: backing off, wait=10s, failures=22
[2020-03-21T16:05:33] INFO: starting new process as privileged user
[2020-03-21T16:05:33] INFO: drag and drop enabled
barriers.exe: no configuration available
...
Here is a screenshot from Process Explorer:

@joltcan commented on GitHub (Mar 27, 2020):
I have the same error with the lates build and win 10. Ransomware protection is not enabled.
Nevermind the image. Changing the permisson didn't help with the tempfile. Reading on some synergy forum I got a clue that the TEMP file permission per user might have changed in later windows 10 version, maybe that is something to look into?
@epamphu commented on GitHub (May 29, 2020):
Hi, did anyone solved this issue?
If so please do share.
I just found this software and I'm having the same issue...

@R-y-a-n-H commented on GitHub (May 29, 2020):
Go to Barrier in the upper left, select save config file. Save it. Then switch it from "Configure Interactively" to "Use existing configuration file" and point it to the file you just saved/created.
It then should work and stop throwing that error.
I know this doesn't fix the permissions issue, but it at least gets the software running.
Thanks,
@epamphu commented on GitHub (May 30, 2020):
Yeah thank you very much, that did stopped the error.
But on the bottom left corner it just says "Barrier is starting" shouldn't it be saying "Barrier is running"?
I don't have the permission issues.
How can I make it run? Any suggestions?
@the-wes commented on GitHub (May 30, 2020):
@R-y-a-n-H thank you for posting the workaround.
@joltcan if you could post the link to the forum post you found, that may provide a helpful hint.
@everyone else - this issue is not happening to anyone associated with Barrier development. it appears to be affecting a fairly small portion of users, and we do not yet know what particular circumstances cause it. if anyone has noticed a pattern that could lead to some steps to reproduce the issue, we would very much appreciate it. thank you.
@the-wes commented on GitHub (May 31, 2020):
@PhilHowell it looks like we need to use Process Monitor for this, rather than Explorer.
set filters for Process Is barrier.exe and Path Contains Barrier.
on my win10 system, it writes the temporary config file to c:\users\user\appdata\local\temp\Barrier.dKTzYb
the last 6 characters are random, generated every time the Barrier GUI attempts to spawn barrierS.exe.
let's see what yours does?
@PhilHowell commented on GitHub (Jun 2, 2020):
In Process Monitor I see a 'NAME COLLISION' when trying to create the file C:\Users\howel\AppData\Local\Temp\Barrier.NOtNOt
Extract from Process Monitor in CSV format follows:
@PhilHowell commented on GitHub (Jun 2, 2020):
The file 'Barrier.NOtNOt' is in the directory. It has the following contents:
@the-wes commented on GitHub (Jun 2, 2020):
@PhilHowell are there other files that have names beginning with Barrier?
Is it Barrier.NOtNOt every time? This is supposed to change with each restart.
What happens if you rename or delete the file?
@jsantosdias commented on GitHub (Sep 11, 2020):
I have the same issue:
"barriers.exe: no configuration available"
What can I do?
@DenaByte commented on GitHub (Oct 6, 2020):
Win10 Pro N - fresh install
After re-installing my 1 year old windows barrier stopped working, I cannot connect to it from my Linux mint 20 laptop on the same network, and the win10 barrier is throwing the same 'config file cannot be written' error. I have used the existing configuration option to avoid it but I think it might be what's causing the problem with not being able to connect anymore.
Looking for suggestions or if anyone needs more info lmk
@the-wes commented on GitHub (Oct 6, 2020):
Windows comes with the firewall enabled by default. Once you've worked around the "cannot be written" problem, this is the most likely reason you can't connect.
@DenaByte commented on GitHub (Oct 6, 2020):
@the-wes i followed some troubleshooting steps, and I confirmed that the win10 barrier is running its server, its IP is correct and the port is correct. But even with firewall disabled I cannot connect from the Linux machine. i cant ping it either, but when I switch the roles - and make the Linux server and win10 client, they connect but the mouse still cant be shared.
At this point I have added all EXE files from barrier directory as allowed through win 10 firewall and I have made a specific rule to open up port 24800 in the firewall. on the Linux machine UFW has allowed barrier through so I don't know what to do next.
@the-wes commented on GitHub (Oct 6, 2020):
If you can't ping, it suggests that either the firewall isn't really disabled (even if it claims it is) or maybe there is a second one (lots of anti-virus software comes with its own), or maybe something is going on with the network hardware. Are either of these systems connected over wireless? Some access points have funny rules about connecting between one client and another.
@DenaByte commented on GitHub (Oct 6, 2020):
Laptop is wifi win10 pc is wired, been using the same setup before re-installing windows and it worked fine. Also using NOD32, disabled web protection and firewall at the same time and still cannot connect or ping the barrier server.
@the-wes commented on GitHub (Oct 7, 2020):
If you want to provide an email address, I would be happy to continue discussing this outside of GitHub issue comments :)
@DenaByte commented on GitHub (Oct 7, 2020):
you can contact me at denabytent@gmail.com , thanks for the initiative
@maclarel commented on GitHub (Oct 20, 2020):
Also able to reproduce this issue. Only workaround at this point appears to be loading the config file at startup every time.
Ransomware protection is disabled.
@Eothred commented on GitHub (Mar 14, 2022):
Got this issue after moving around the location of one client (both on Linux so maybe not directly related). What I wanted to point out was that when I clicked the OK button (twice) I had about 2s before the app restarted the server. I think when this issue appears the app should stop the server. Needed to press ctrl-q in this time window to kill the app.
I initiated this issue by trying to configure the server and click on reload while the server was running. Not sure if this is a reproducible way to trigger the bug since I have not succeeded in getting it away.
The solution of saving configuration and then use existing configuration works fine.
Version 2.4.0-ac5a1bfd
@stemcc commented on GitHub (Jul 25, 2023):
This error will happen when there's also a misconfiguration in the config file, so for example if you change the name of a system but leave its old name inside a hotkey, etc.