Skip to content
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

Not able to open trustedServers.txt if username contains wide characters e.g. Chinese characters #974

Closed
cheese opened this issue Dec 7, 2020 · 16 comments · Fixed by #979 or input-leap/input-leap#979

Comments

@cheese
Copy link

cheese commented Dec 7, 2020

Describe the bug
A clear and concise description of what the bug is.
SSL-enabled session failed to start. Barrier is unable to open the right created trustedServers.txt. I am wondering that's because the path contains wide characters, since my username is in wide characters.

To Reproduce

Steps to reproduce the behavior:

  1. Run barrier by a user with name contains wide character
  2. Set as client and enable SSL
  3. Connect a SSL-enabled server
  4. After trusted the peer, the service does not actually running. Error log is found.

Expected behavior
Works with username contains wide character

Screenshots
If applicable, add screenshots to help explain your problem.

Please do not link to image hosting sites, as these can be ephemeral. Instead, attach them to the issue.

Error log:

[2020-12-07T11:57:10] INFO: service command updated
[2020-12-07T11:57:11] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xx:24800
[2020-12-07T11:57:11] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-07T11:57:11] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-07T11:57:11] NOTE: trustedServersFilename: C:\Users\小明\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-07T11:57:11] NOTE: Unable to open trustedServersFile: C:\Users\小明\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-07T11:57:11] ERROR: failed 

Desktop (please complete the following information):

  • OS: Windows 10
  • Barrier version 2.3.3

Additional context

Server is barrier 2.3.3 running on Fedora 32. Connection can be established if SSL-disabled on both sides.

@albertony
Copy link

Could be related to #976.

I made an attempt to fix that one, and it may also fix your issue but am not sure (as I am not familiar with chinese characters, and how they relate to Windows ansi encoding etc). If you are willing to test this beta build, we would find out:
https://dev.azure.com/debauchee/Barrier/_build/results?buildId=355&view=artifacts&pathAsName=false&type=publishedArtifacts

@cheese
Copy link
Author

cheese commented Dec 9, 2020

I tested this. trustedServers.txt can be read now. But a new issue is barrier keeps asking me to trust the host signature, again and again.

[2020-12-09T10:22:30] INFO: connecting to service...
[2020-12-09T10:22:31] INFO: connection established
server status: not active

[2020-12-09T10:23:07] INFO: starting client
[2020-12-09T10:23:07] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.wXzJrH
[2020-12-09T10:23:07] INFO: log level: INFO
[2020-12-09T10:23:07] INFO: service command updated
[2020-12-09T10:23:08] INFO: starting new process as privileged user
[2020-12-09T10:23:09] INFO: drag and drop enabled
[
2020-12-09T10:23:09]
 
ERROR: failed t
o
 g
e
t de
s
k
t
o
p
 
path
,
 no drop target available, error=2
[2020-12-09T10:23:09] NOTE: started client
[2020-12-09T10:23:09] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:09] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:09] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:12] INFO: starting client
[2020-12-09T10:23:12] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.rcBjqx
[2020-12-09T10:23:12] INFO: log level: INFO
[2020-12-09T10:23:09] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:09] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:09] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:09] INFO: connected to secure socket
[2020-12-09T10:23:09] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:09] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:09] INFO: service command updated
[2020-12-09T10:23:11] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:11] INFO: got ipc shutdown message
[2020-12-09T10:23:11] NOTE: stopped client
[2020-12-09T10:23:12] INFO: process 9128 was shutdown gracefully
[2020-12-09T10:23:12] INFO: service command updated
[2020-12-09T10:23:13] INFO: starting new process as privileged user
[2020-12-09T10:23:13] INFO: drag and drop enabled
[
2020-12-09T10:23:13] ER
R
O
R: failed to get desktop path, no drop target available, error=2
[2020-12-09T10:23:13] NOTE: started client
[2020-12-09T10:23:13] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:13] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:13] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:17] INFO: starting client
[2020-12-09T10:23:17] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.qRDzxM
[2020-12-09T10:23:17] INFO: log level: INFO
[2020-12-09T10:23:13] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:13] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:13] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:13] INFO: connected to secure socket
[2020-12-09T10:23:13] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:13] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:13] INFO: service command updated
[2020-12-09T10:23:14] INFO: entering screen
[2020-12-09T10:23:14] INFO: clipboard was updated
[2020-12-09T10:23:14] INFO: clipboard was updated
[2020-12-09T10:23:15] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:15] INFO: got ipc shutdown message
[2020-12-09T10:23:15] INFO: leaving screen
[2020-12-09T10:23:15] NOTE: stopped client
[2020-12-09T10:23:16] INFO: process 3044 was shutdown gracefully
[2020-12-09T10:23:17] INFO: service command updated
[2020-12-09T10:23:18] INFO: starting new process as privileged user
[2020-12-09T10:23:18] INFO: drag and drop enabled
[
2020-12-09T10:23
:
18]
 E
RROR: failed to get desktop path, no drop target available, error=2
[2020-12-09T10:23:18] NOTE: started client
[2020-12-09T10:23:18] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:18] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:18] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:32] INFO: starting client
[2020-12-09T10:23:32] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.UAeVEa
[2020-12-09T10:23:32] INFO: log level: INFO
[2020-12-09T10:23:18] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:18] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:18] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:18] INFO: connected to secure socket
[2020-12-09T10:23:18] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:18] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:18] INFO: service command updated
[2020-12-09T10:23:20] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:20] INFO: got ipc shutdown message
[2020-12-09T10:23:20] NOTE: stopped client
[2020-12-09T10:23:21] INFO: process 9600 was shutdown gracefully
[2020-12-09T10:23:32] INFO: service command updated
[2020-12-09T10:23:33] INFO: starting new process as privileged user
[2020-12-09T10:23:33] INFO: drag and drop enabled
[
2020-12-09T10:23:33] ERROR: fa
i
l
ed to get desktop path
,
 
no drop t
a
rget 
a
vailable, error=2
[2020-12-09T10:23:33] NOTE: started client
[2020-12-09T10:23:33] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:33] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:33] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:36] INFO: starting client
[2020-12-09T10:23:36] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.yxJgux
[2020-12-09T10:23:36] INFO: log level: INFO
[2020-12-09T10:23:33] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:33] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:33] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:33] INFO: connected to secure socket
[2020-12-09T10:23:33] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:33] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:33] INFO: service command updated
[2020-12-09T10:23:35] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:35] INFO: got ipc shutdown message
[2020-12-09T10:23:35] NOTE: stopped client
[2020-12-09T10:23:36] INFO: process 9464 was shutdown gracefully
[2020-12-09T10:23:36] INFO: service command updated
[2020-12-09T10:23:37] INFO: starting new process as privileged user
[2020-12-09T10:23:37] INFO: drag and drop enabled
[
2020-12-09T10:23:37] ERROR: fail
e
d
 to
 g
e
t
 
d
e
skt
o
p
 
path, no drop target
 
a
v
a
ilab
le, 
e
r
r
or=2
[2020-12-09T10:23:37] NOTE: started client
[2020-12-09T10:23:37] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:37] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:37] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:40] INFO: starting client
[2020-12-09T10:23:40] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.UtgInc
[2020-12-09T10:23:40] INFO: log level: INFO
[2020-12-09T10:23:37] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:37] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:37] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:37] INFO: connected to secure socket
[2020-12-09T10:23:37] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:37] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:37] INFO: service command updated
[2020-12-09T10:23:39] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:39] INFO: got ipc shutdown message
[2020-12-09T10:23:39] NOTE: stopped client
[2020-12-09T10:23:40] INFO: process 2172 was shutdown gracefully
[2020-12-09T10:23:40] INFO: service command updated
[2020-12-09T10:23:41] INFO: starting new process as privileged user
[2020-12-09T10:23:41] INFO: drag and drop enabled
[
2020-12-09T10:23:4
1
]
 
E
R
R
OR: fai
l
e
d
 
t
o
 
get desk
t
op
 
p
a
t
h
, n
o
 
d
r
op
 
t
arget availa
ble, e
rror=2
[2020-12-09T10:23:41] NOTE: started client
[2020-12-09T10:23:41] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:41] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:41] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:49] INFO: starting client
[2020-12-09T10:23:49] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.WNtLIX
[2020-12-09T10:23:49] INFO: log level: INFO
[2020-12-09T10:23:41] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:41] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:41] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:41] INFO: connected to secure socket
[2020-12-09T10:23:41] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:41] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:42] INFO: service command updated
[2020-12-09T10:23:43] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:43] INFO: got ipc shutdown message
[2020-12-09T10:23:43] NOTE: stopped client
[2020-12-09T10:23:44] INFO: process 5464 was shutdown gracefully
[2020-12-09T10:23:49] INFO: service command updated
[2020-12-09T10:23:50] INFO: starting new process as privileged user
[2020-12-09T10:23:50] INFO: drag and drop enabled
[
2020-12-09T10:23:50] ER
R
OR: faile
d
 to 
get 
d
e
s
k
t
o
p
 pa
t
h, no drop
 
targ
et a
v
a
i
l
able,
 
er
r
o
r=
2
[2020-12-09T10:23:50] NOTE: started client
[2020-12-09T10:23:50] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:23:50] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:23:50] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:23:59] INFO: starting client
[2020-12-09T10:23:59] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.pkLMUH
[2020-12-09T10:23:59] INFO: log level: INFO
[2020-12-09T10:23:50] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:50] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:23:50] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:23:50] INFO: connected to secure socket
[2020-12-09T10:23:50] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:23:50] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:23:51] INFO: service command updated
[2020-12-09T10:23:52] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:52] INFO: got ipc shutdown message
[2020-12-09T10:23:52] NOTE: stopped client
[2020-12-09T10:23:53] INFO: process 5968 was shutdown gracefully
[2020-12-09T10:23:59] INFO: service command updated
[2020-12-09T10:24:00] INFO: starting new process as privileged user
[2020-12-09T10:24:00] INFO: drag and drop enabled
[
2020-12-09T10:24:00] ERROR:
 
f
ailed t
o
 
get d
esktop path,
 
no d
rop 
target available, err
o
r
=
2
[2020-12-09T10:24:00] NOTE: started client
[2020-12-09T10:24:00] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:24:00] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:24:01] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-09T10:24:01] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:01] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:01] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:24:01] INFO: connected to secure socket
[2020-12-09T10:24:01] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:24:01] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:24:01] INFO: service command updated
[2020-12-09T10:24:02] INFO: process started but command is empty, shutting down
[2020-12-09T10:24:02] INFO: got ipc shutdown message
[2020-12-09T10:24:02] NOTE: stopped client
[2020-12-09T10:24:03] INFO: process 7212 was shutdown gracefully

[2020-12-09T10:24:37] INFO: starting client
[2020-12-09T10:24:37] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.xHnoGK
[2020-12-09T10:24:37] INFO: log level: INFO
[2020-12-09T10:24:37] INFO: service command updated
[2020-12-09T10:24:37] INFO: service command updated
[2020-12-09T10:24:38] INFO: starting new process as privileged user
[2020-12-09T10:24:38] INFO: drag and drop enabled
[
2020-12-09T10:24:38] ERROR:
 
f
aile
d
 t
o get desktop path, 
n
o
 
d
r
o
p
 
t
a
r
ge
t
 avai
lable, error=2
[2020-12-09T10:24:38] NOTE: started client
[2020-12-09T10:24:38] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:24:38] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:24:39] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:24:42] INFO: starting client
[2020-12-09T10:24:42] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.kNBKwH
[2020-12-09T10:24:42] INFO: log level: INFO
[2020-12-09T10:24:39] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:39] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:39] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:24:39] INFO: connected to secure socket
[2020-12-09T10:24:39] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:24:39] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
[2020-12-09T10:24:39] INFO: service command updated
connected to server
[2020-12-09T10:24:40] INFO: process started but command is empty, shutting down
[2020-12-09T10:24:40] INFO: got ipc shutdown message
[2020-12-09T10:24:40] NOTE: stopped client
[2020-12-09T10:24:41] INFO: process 4456 was shutdown gracefully
[2020-12-09T10:24:42] INFO: service command updated
[2020-12-09T10:24:42] INFO: starting new process as privileged user
[2020-12-09T10:24:42] INFO: drag and drop enabled
[
2020-12-09T10:24:42] ERR
O
R
:
 failed to get desktop p
a
t
h, n
o
 drop
 
t
a
r
get 
av
a
i
l
a
ble,
 
e
r
r
o
r=2
[2020-12-09T10:24:42] NOTE: started client
[2020-12-09T10:24:42] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:24:42] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:24:43] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-09T10:24:43] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:43] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:24:43] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:24:43] INFO: connected to secure socket
[2020-12-09T10:24:43] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:24:43] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:24:43] INFO: service command updated
[2020-12-09T10:24:44] INFO: process started but command is empty, shutting down
[2020-12-09T10:24:44] INFO: got ipc shutdown message
[2020-12-09T10:24:44] NOTE: stopped client
[2020-12-09T10:24:45] INFO: process 3240 was shutdown gracefully
[2020-12-09T10:25:37] INFO: service command updated

[2020-12-09T10:25:39] INFO: starting client
[2020-12-09T10:25:39] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.QbDDsT
[2020-12-09T10:25:39] INFO: log level: INFO
[2020-12-09T10:25:39] INFO: service command updated
[2020-12-09T10:25:39] INFO: starting new process as privileged user
[2020-12-09T10:25:39] INFO: drag and drop enabled
[
2020-12-09T10:25:39] ERROR
:
 
f
ail
e
d
 to
 
get
 
desktop path, no drop target available, error=2
[2020-12-09T10:25:39] NOTE: started client
[2020-12-09T10:25:39] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:25:39] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:25:40] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32

[2020-12-09T10:25:45] INFO: starting client
[2020-12-09T10:25:45] INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.vwkjdK
[2020-12-09T10:25:45] INFO: log level: INFO
[2020-12-09T10:25:40] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:25:40] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:25:40] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:25:40] INFO: connected to secure socket
[2020-12-09T10:25:40] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:25:40] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:25:40] INFO: service command updated
[2020-12-09T10:25:41] INFO: process started but command is empty, shutting down
[2020-12-09T10:25:41] INFO: got ipc shutdown message
[2020-12-09T10:25:41] NOTE: stopped client
[2020-12-09T10:25:42] INFO: process 11092 was shutdown gracefully
[2020-12-09T10:25:45] INFO: service command updated
[2020-12-09T10:25:46] INFO: starting new process as privileged user
[2020-12-09T10:25:46] INFO: drag and drop enabled
[
2020-12-09T10:25:46] ERROR
:
 
fail
e
d to get d
e
skt
o
p
 pa
t
h
,
 
n
o d
r
o
p ta
rg
e
t
 
a
v
a
i
l
able, erro
r
=2
[2020-12-09T10:25:46] NOTE: started client
[2020-12-09T10:25:46] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-09T10:25:46] INFO: OpenSSL 1.0.2l  25 May 2017
server status: active
[2020-12-09T10:25:47] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-09T10:25:47] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:25:47] NOTE: Opened trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-09T10:25:47] NOTE: Fingerprint matches trusted fingerprint
[2020-12-09T10:25:47] INFO: connected to secure socket
[2020-12-09T10:25:47] INFO: server ssl certificate info: /CN=Barrier
[2020-12-09T10:25:47] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
connected to server
[2020-12-09T10:25:47] INFO: service command updated
[2020-12-09T10:25:48] INFO: process started but command is empty, shutting down
[2020-12-09T10:25:48] INFO: got ipc shutdown message
[2020-12-09T10:25:48] NOTE: stopped client
[2020-12-09T10:25:49] INFO: process 9700 was shutdown gracefully

@albertony
Copy link

albertony commented Dec 9, 2020

I tested this. trustedServers.txt can be read now.

Great! Thank you.

[2020-12-09T10:23:09] INFO: service command updated
[2020-12-09T10:23:11] INFO: process started but command is empty, shutting down
[2020-12-09T10:23:11] INFO: got ipc shutdown message
[2020-12-09T10:23:11] NOTE: stopped client

It seems the service is misconfigured somehow, leading to the client exiting but being continuously restarted by the process monitoring logic.

failed to get desktop path, no drop target available, error=2

I see you also get non-fatal errors like this. I think I can fix this the same way as the original "Unable to open trustedServersFile".

@albertony
Copy link

failed to get desktop path, no drop target available, error=2

Pushed a fix for this as well, beta version here: https://dev.azure.com/debauchee/Barrier/_build/results?buildId=359&view=artifacts&pathAsName=false&type=publishedArtifacts

The remaining issue is in your configuration, I think?

@cheese
Copy link
Author

cheese commented Dec 9, 2020

The remaining issue is in your configuration, I think?

What does 'configuration' mean? I was only changing configuration on the GUI.

@albertony
Copy link

Sorry for the vague statement, I'm farily new to this project so I wasn't sure how the configuration were handled from GUI..

Looked a bit more into it, and seems the GUI generates a temporary configuration file based on the settings.

INFO: config file: C:/Users/??/AppData/Local/Temp/Barrier.xHnoGK

And then passes this to the background service, which in turn executes the client/server utilities. There is probably a similar issue, (character encoding related) somewhere along this route, but I cannot see where..

Increasing the log level to DEBUG and posting the log again could help:

INFO: log level: INFO

Then I will investigate it more... (unless you do not bother, and would rather wait until someone more familiar with this code can take over)

@cheese
Copy link
Author

cheese commented Dec 10, 2020

failed to get desktop path, no drop target available, error=2

Pushed a fix for this as well, beta version here: https://dev.azure.com/debauchee/Barrier/_build/results?buildId=359&view=artifacts&pathAsName=false&type=publishedArtifacts

Log with debug level enabled

[2020-12-10T13:44:51] DEBUG: starting process

[2020-12-10T13:44:51] INFO: starting client
[2020-12-10T13:44:51] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-10T13:44:52] INFO: config file: C:/Users/小明/AppData/Local/Temp/Barrier.zScGHp
[2020-12-10T13:44:52] INFO: log level: DEBUG
[2020-12-10T13:44:52] INFO: service command updated
[2020-12-10T13:44:53] DEBUG: found desktop name: 
[2020-12-10T13:44:53] DEBUG: getting elevated token, at login screen
[2020-12-10T13:44:53] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, sihost.exe, SangforUDProtect.exe, svchost.exe, svchost.exe, taskhostw.exe, explorer.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, SearchUI.exe, Foxmail.exe, yundetectservice.exe, ispirit.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, ispirit.exe, Foxmail.exe, ispirit.exe, Foxmail.exe, svchost.exe, ApplicationFrameHost.exe, WinStore.App.exe, RuntimeBroker.exe, SystemSettings.exe, RuntimeBroker.exe, WeChat.exe, WeChatWeb.exe, WeChatWeb.exe, Microsoft.Photos.exe, RuntimeBroker.exe, ShellExperienceHost.exe, dllhost.exe, taskhostw.exe, WinSCP.exe, LockApp.exe, RuntimeBroker.exe, RuntimeBroker.exe, CompPkgSrv.exe, SecurityHealthHost.exe, SystemSettingsBroker.exe, ChsIME.exe, notepad.exe, wps.exe, wps.exe, SunloginClient.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, barrier.exe, dwm.exe, ECAgent.exe, YourPhone.exe, RuntimeBroker.exe, firefox.exe, WeChatApp.exe, backgroundTaskHost.exe, 
[2020-12-10T13:44:53] DEBUG: found winlogon.exe in session 1
[2020-12-10T13:44:53] DEBUG: got token 2044, duplicating
[2020-12-10T13:44:53] DEBUG: duplicated, new token: 1440
[2020-12-10T13:44:53] INFO: starting new process as privileged user
[2020-12-10T13:44:53] INFO: drag and drop enabled
[2020-12-10T13:44:53] DEBUG: screen shape: 0,0 1920x1280 
[2020-12-10T13:44:53] DEBUG: window is 0x005d042e
[
2020-12-10T13:44:53] ERROR: failed 
t
o
 
g
e
t desktop p
a
th, no 
d
rop target a
vailable
[2020-12-10T13:44:53] DEBUG: adopting new buffer
[2020-12-10T13:44:53] DEBUG: opened display
[2020-12-10T13:44:53] NOTE: started client
[2020-12-10T13:44:53] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-10T13:44:53] DEBUG: Opening new socket: 3EBAAE20
[2020-12-10T13:44:53] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-10T13:44:53] DEBUG: Opening new socket: 3EBE0BF0
[2020-12-10T13:44:53] DEBUG: event queue is ready
[2020-12-10T13:44:53] DEBUG: Opening new socket: 868B4F60
[2020-12-10T13:44:53] DEBUG: accepted ipc client connection
[2020-12-10T13:44:53] DEBUG: start ipc handle data
[2020-12-10T13:44:53] DEBUG: ipc read: IHEL
[2020-12-10T13:44:53] DEBUG: finished ipc handle data
[2020-12-10T13:44:53] DEBUG: ipc hello, type=node
server status: active
[2020-12-10T13:44:53] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-10T13:44:53] DEBUG: stopping process
[2020-12-10T13:44:57] DEBUG: starting process

[2020-12-10T13:44:57] INFO: starting client
[2020-12-10T13:44:57] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-10T13:44:57] INFO: config file: C:/Users/小明/AppData/Local/Temp/Barrier.syTNjP
[2020-12-10T13:44:57] INFO: log level: DEBUG
[2020-12-10T13:44:53] NOTE: trustedServersFilename: C:\Users\СϪ\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-10T13:44:53] NOTE: Opened trustedServersFilename: C:\Users\СϪ\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-10T13:44:53] NOTE: Fingerprint matches trusted fingerprint
[2020-12-10T13:44:53] INFO: connected to secure socket
[2020-12-10T13:44:53] INFO: server ssl certificate info: /CN=Barrier
[2020-12-10T13:44:53] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
[2020-12-10T13:44:53] DEBUG: clipboard changed: barrier owned
[2020-12-10T13:44:53] DEBUG: desk Default window is 0x00090ee6
[2020-12-10T13:44:53] DEBUG: switched to desk "Default"
[2020-12-10T13:44:53] DEBUG: desktop is now accessible
[2020-12-10T13:44:53] DEBUG: open clipboard
[2020-12-10T13:44:53] DEBUG: empty clipboard
[2020-12-10T13:44:53] DEBUG: close clipboard
[2020-12-10T13:44:53] DEBUG: open clipboard
[2020-12-10T13:44:53] DEBUG: empty clipboard
[2020-12-10T13:44:53] DEBUG: close clipboard
connected to server
[2020-12-10T13:44:54] DEBUG: start ipc handle data
[2020-12-10T13:44:54] DEBUG: ipc read: ICMD
[2020-12-10T13:44:54] DEBUG: finished ipc handle data
[2020-12-10T13:44:54] DEBUG: empty command, elevate=0
[2020-12-10T13:44:54] INFO: service command updated
[2020-12-10T13:44:54] DEBUG: started process, session=1, elevated: no, command=
[2020-12-10T13:44:55] INFO: process started but command is empty, shutting down
[2020-12-10T13:44:55] DEBUG: start ipc handle data
[2020-12-10T13:44:55] DEBUG: ipc read: ISDN
[2020-12-10T13:44:55] DEBUG: finished ipc handle data
[2020-12-10T13:44:55] INFO: got ipc shutdown message
[2020-12-10T13:44:55] DEBUG: Closing socket: 3EBAAE20
[2020-12-10T13:44:55] DEBUG: adopting new buffer
[2020-12-10T13:44:55] DEBUG: discarding 1 event(s)
[2020-12-10T13:44:55] DEBUG: closed display
[2020-12-10T13:44:55] NOTE: stopped client
[2020-12-10T13:44:55] DEBUG: ipc disconnect, closing stream
[2020-12-10T13:44:55] DEBUG: Closing socket: 3EBE0BF0
[2020-12-10T13:44:55] DEBUG: Closing socket: 00000000
[2020-12-10T13:44:55] DEBUG: ipc disconnect, closing stream
[2020-12-10T13:44:55] DEBUG: Closing socket: 868B4F60
[2020-12-10T13:44:55] DEBUG: ipc client disconnected
[2020-12-10T13:44:55] DEBUG: Closing socket: 00000000
[2020-12-10T13:44:55] DEBUG: ipc client proxy removed, connected=1
[2020-12-10T13:44:56] INFO: process 17440 was shutdown gracefully
[2020-12-10T13:44:57] DEBUG: start ipc handle data
[2020-12-10T13:44:57] DEBUG: ipc read: ICMD
[2020-12-10T13:44:57] DEBUG: finished ipc handle data
[2020-12-10T13:44:57] DEBUG: new command, elevate=0 command="C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-10T13:44:57] INFO: service command updated
[2020-12-10T13:44:57] DEBUG: found desktop name: 
[2020-12-10T13:44:57] DEBUG: getting elevated token, at login screen
[2020-12-10T13:44:57] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, sihost.exe, SangforUDProtect.exe, svchost.exe, svchost.exe, taskhostw.exe, explorer.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, SearchUI.exe, Foxmail.exe, yundetectservice.exe, ispirit.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, ispirit.exe, Foxmail.exe, ispirit.exe, Foxmail.exe, svchost.exe, ApplicationFrameHost.exe, WinStore.App.exe, RuntimeBroker.exe, SystemSettings.exe, RuntimeBroker.exe, WeChat.exe, WeChatWeb.exe, WeChatWeb.exe, Microsoft.Photos.exe, RuntimeBroker.exe, ShellExperienceHost.exe, dllhost.exe, taskhostw.exe, WinSCP.exe, LockApp.exe, RuntimeBroker.exe, RuntimeBroker.exe, CompPkgSrv.exe, SecurityHealthHost.exe, SystemSettingsBroker.exe, ChsIME.exe, notepad.exe, wps.exe, wps.exe, SunloginClient.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, barrier.exe, dwm.exe, ECAgent.exe, YourPhone.exe, RuntimeBroker.exe, firefox.exe, WeChatApp.exe, backgroundTaskHost.exe, 
[2020-12-10T13:44:57] DEBUG: found winlogon.exe in session 1
[2020-12-10T13:44:57] DEBUG: got token 1952, duplicating
[2020-12-10T13:44:57] DEBUG: duplicated, new token: 2004
[2020-12-10T13:44:57] INFO: starting new process as privileged user
[2020-12-10T13:44:57] INFO: drag and drop enabled
[2020-12-10T13:44:57] DEBUG: screen shape: 0,0 1920x1280 
[2020-12-10T13:44:57] DEBUG: window is 0x00960b28
[
2020-12-10T13:44:57]
 
E
R
R
O
R:
 failed t
o
 get desktop
 
path,
 
no 
d
r
o
p
 
t
a
r
g
e
t available
[2020-12-10T13:44:57] DEBUG: adopting new buffer
[2020-12-10T13:44:57] DEBUG: opened display
[2020-12-10T13:44:57] NOTE: started client
[2020-12-10T13:44:57] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-10T13:44:57] DEBUG: Opening new socket: 031037E0
[2020-12-10T13:44:57] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-10T13:44:57] DEBUG: Opening new socket: 03139290
[2020-12-10T13:44:57] DEBUG: event queue is ready
[2020-12-10T13:44:57] DEBUG: Opening new socket: 868B49C0
[2020-12-10T13:44:57] DEBUG: accepted ipc client connection
[2020-12-10T13:44:57] DEBUG: start ipc handle data
[2020-12-10T13:44:57] DEBUG: ipc read: IHEL
[2020-12-10T13:44:57] DEBUG: finished ipc handle data
[2020-12-10T13:44:57] DEBUG: ipc hello, type=node
server status: active
[2020-12-10T13:44:57] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-10T13:44:57] DEBUG: stopping process
[2020-12-10T13:44:57] NOTE: trustedServersFilename: C:\Users\СϪ\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-10T13:44:57] NOTE: Opened trustedServersFilename: C:\Users\СϪ\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-10T13:44:57] NOTE: Fingerprint matches trusted fingerprint
[2020-12-10T13:44:57] INFO: connected to secure socket
[2020-12-10T13:44:57] INFO: server ssl certificate info: /CN=Barrier
[2020-12-10T13:44:57] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH     Au=RSA  Enc=AESGCM(256) Mac=AEAD
[2020-12-10T13:44:57] DEBUG: clipboard changed: barrier owned
[2020-12-10T13:44:58] DEBUG: desk Default window is 0x000a0ee6
[2020-12-10T13:44:58] DEBUG: switched to desk "Default"
[2020-12-10T13:44:58] DEBUG: desktop is now accessible
[2020-12-10T13:44:58] DEBUG: open clipboard
[2020-12-10T13:44:58] DEBUG: empty clipboard
[2020-12-10T13:44:58] DEBUG: close clipboard
[2020-12-10T13:44:58] DEBUG: open clipboard
[2020-12-10T13:44:58] DEBUG: empty clipboard
[2020-12-10T13:44:58] DEBUG: close clipboard
connected to server
[2020-12-10T13:44:58] DEBUG: start ipc handle data
[2020-12-10T13:44:58] DEBUG: ipc read: ICMD
[2020-12-10T13:44:58] DEBUG: finished ipc handle data
[2020-12-10T13:44:58] DEBUG: empty command, elevate=0
[2020-12-10T13:44:58] INFO: service command updated
[2020-12-10T13:44:58] DEBUG: started process, session=1, elevated: no, command=
[2020-12-10T13:44:59] INFO: process started but command is empty, shutting down
[2020-12-10T13:44:59] DEBUG: start ipc handle data
[2020-12-10T13:44:59] DEBUG: ipc read: ISDN
[2020-12-10T13:44:59] DEBUG: finished ipc handle data
[2020-12-10T13:44:59] INFO: got ipc shutdown message
[2020-12-10T13:44:59] DEBUG: Closing socket: 031037E0
[2020-12-10T13:44:59] DEBUG: adopting new buffer
[2020-12-10T13:44:59] DEBUG: discarding 1 event(s)
[2020-12-10T13:44:59] DEBUG: closed display
[2020-12-10T13:44:59] NOTE: stopped client
[2020-12-10T13:44:59] DEBUG: ipc disconnect, closing stream
[2020-12-10T13:44:59] DEBUG: Closing socket: 03139290
[2020-12-10T13:44:59] DEBUG: Closing socket: 00000000
[2020-12-10T13:44:59] DEBUG: ipc disconnect, closing stream
[2020-12-10T13:44:59] DEBUG: Closing socket: 868B49C0
[2020-12-10T13:44:59] DEBUG: ipc client disconnected
[2020-12-10T13:44:59] DEBUG: Closing socket: 00000000
[2020-12-10T13:44:59] DEBUG: ipc client proxy removed, connected=1
[2020-12-10T13:45:00] INFO: process 19728 was shutdown gracefully

@albertony
Copy link

Thank you! Finally tracked down another one of those character encoding issues, hopefully this was it!
This time the problem was with the windows service (deamon) communication, the previous fix was internally in the client/server executables.
I managed to reproduce a similar error locally, and verify that the last change fixed it.

If you want to retest your exact case, the beta is here:
https://dev.azure.com/debauchee/Barrier/_build/results?buildId=376&view=artifacts&pathAsName=false&type=publishedArtifacts

@cheese
Copy link
Author

cheese commented Dec 11, 2020

If you want to retest your exact case, the beta is here:
https://dev.azure.com/debauchee/Barrier/_build/results?buildId=376&view=artifacts&pathAsName=false&type=publishedArtifacts

This build does not work still. It still pops dialog again and again.

Logs:

[2020-12-11T13:40:48] DEBUG: starting process

[2020-12-11T13:40:48] INFO: starting client
[2020-12-11T13:40:48] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-11T13:40:48] INFO: config file: C:/Users/小溪/AppData/Local/Temp/Barrier.tEmYjz
[2020-12-11T13:40:48] INFO: log level: DEBUG
[2020-12-11T13:40:48] INFO: service command updated
[2020-12-11T13:40:48] DEBUG: found desktop name: 
[2020-12-11T13:40:48] DEBUG: getting elevated token, at login screen
[2020-12-11T13:40:49] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, sihost.exe, SangforUDProtect.exe, svchost.exe, svchost.exe, taskhostw.exe, explorer.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, SearchUI.exe, Foxmail.exe, yundetectservice.exe, ispirit.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, ispirit.exe, Foxmail.exe, ispirit.exe, Foxmail.exe, svchost.exe, ApplicationFrameHost.exe, WinStore.App.exe, RuntimeBroker.exe, SystemSettings.exe, RuntimeBroker.exe, WeChat.exe, WeChatWeb.exe, WeChatWeb.exe, Microsoft.Photos.exe, RuntimeBroker.exe, ShellExperienceHost.exe, dllhost.exe, taskhostw.exe, WinSCP.exe, LockApp.exe, RuntimeBroker.exe, RuntimeBroker.exe, CompPkgSrv.exe, SecurityHealthHost.exe, SystemSettingsBroker.exe, ChsIME.exe, SunloginClient.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, dwm.exe, YourPhone.exe, RuntimeBroker.exe, WeChatApp.exe, RuntimeBroker.exe, Todo.exe, GameBar.exe, GameBarFTServer.exe, RuntimeBroker.exe, ECAgent.exe, firefox.exe, firefox.exe, firefox.exe, XenCenterMain.exe, DataExchangeHost.exe, wpscloudsvr.exe, smartscreen.exe, barrier.exe, notepad.exe, backgroundTaskHost.exe, backgroundTaskHost.exe, RuntimeBroker.exe, 
[2020-12-11T13:40:49] DEBUG: found winlogon.exe in session 1
[2020-12-11T13:40:49] DEBUG: got token 1276, duplicating
[2020-12-11T13:40:49] DEBUG: duplicated, new token: 1280
[2020-12-11T13:40:49] INFO: starting new process as privileged user
[2020-12-11T13:40:49] INFO: drag and drop enabled
[2020-12-11T13:40:49] DEBUG: screen shape: 0,0 1280x853 
[2020-12-11T13:40:49] DEBUG: window is 0x000f0ffe
[
2020-12-11T13:40:49] ERROR: fa
i
l
ed to 
g
e
t
 
d
e
s
k
t
o
p 
pa
t
h
,
 
n
o 
d
ro
p
 
ta
rg
e
t
 available
[2020-12-11T13:40:49] DEBUG: adopting new buffer
[2020-12-11T13:40:49] DEBUG: opened display
[2020-12-11T13:40:49] NOTE: started client
[2020-12-11T13:40:49] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-11T13:40:49] DEBUG: Opening new socket: 0079C4F0
[2020-12-11T13:40:49] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-11T13:40:49] DEBUG: Opening new socket: 007D6840
[2020-12-11T13:40:49] DEBUG: event queue is ready
[2020-12-11T13:40:49] DEBUG: Opening new socket: 49F61500
[2020-12-11T13:40:49] DEBUG: accepted ipc client connection
[2020-12-11T13:40:49] DEBUG: start ipc handle data
[2020-12-11T13:40:49] DEBUG: ipc read: IHEL
[2020-12-11T13:40:49] DEBUG: finished ipc handle data
[2020-12-11T13:40:49] DEBUG: ipc hello, type=node
server status: active
[2020-12-11T13:40:49] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-11T13:40:49] DEBUG: stopping process
[2020-12-11T13:40:51] DEBUG: starting process

[2020-12-11T13:40:51] INFO: starting client
[2020-12-11T13:40:51] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-11T13:40:51] INFO: config file: C:/Users/小溪/AppData/Local/Temp/Barrier.uVLAEI
[2020-12-11T13:40:51] INFO: log level: DEBUG
[2020-12-11T13:40:49] NOTE: trustedServersFilename: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:40:49] NOTE: Unable to open trustedServersFile: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:40:
4
9
]
 
E
R
ROR: failed to verify server certificate fingerprint
[2020-12-11T13:40:49] DEBUG: start ipc handle data
[2020-12-11T13:40:49] DEBUG: ipc read: ICMD
[2020-12-11T13:40:49] DEBUG: finished ipc handle data
[2020-12-11T13:40:49] DEBUG: empty command, elevate=0
[2020-12-11T13:40:49] INFO: service command updated
[2020-12-11T13:40:50] DEBUG: started process, session=1, elevated: no, command=
[2020-12-11T13:40:51] INFO: process started but command is empty, shutting down
[2020-12-11T13:40:51] DEBUG: start ipc handle data
[2020-12-11T13:40:51] DEBUG: ipc read: ISDN
[2020-12-11T13:40:51] DEBUG: finished ipc handle data
[2020-12-11T13:40:51] INFO: got ipc shutdown message
[2020-12-11T13:40:51] DEBUG: Closing socket: 0079C4F0
[2020-12-11T13:40:51] DEBUG: adopting new buffer
[2020-12-11T13:40:51] DEBUG: discarding 1 event(s)
[2020-12-11T13:40:51] DEBUG: closed display
[2020-12-11T13:40:51] NOTE: stopped client
[2020-12-11T13:40:51] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:51] DEBUG: Closing socket: 007D6840
[2020-12-11T13:40:51] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:51] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:51] DEBUG: Closing socket: 49F61500
[2020-12-11T13:40:51] DEBUG: ipc client disconnected
[2020-12-11T13:40:51] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:51] DEBUG: ipc client proxy removed, connected=1
[2020-12-11T13:40:51] DEBUG: start ipc handle data
[2020-12-11T13:40:51] DEBUG: ipc read: ICMD
[2020-12-11T13:40:51] DEBUG: finished ipc handle data
[2020-12-11T13:40:51] DEBUG: new command, elevate=0 command="C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\��?\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-11T13:40:51] INFO: service command updated
[2020-12-11T13:40:52] INFO: process 3800 was shutdown gracefully
[2020-12-11T13:40:52] DEBUG: found desktop name: 
[2020-12-11T13:40:52] DEBUG: getting elevated token, at login screen
[2020-12-11T13:40:52] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, sihost.exe, SangforUDProtect.exe, svchost.exe, svchost.exe, taskhostw.exe, explorer.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, SearchUI.exe, Foxmail.exe, yundetectservice.exe, ispirit.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, ispirit.exe, Foxmail.exe, ispirit.exe, Foxmail.exe, svchost.exe, ApplicationFrameHost.exe, WinStore.App.exe, RuntimeBroker.exe, SystemSettings.exe, RuntimeBroker.exe, WeChat.exe, WeChatWeb.exe, WeChatWeb.exe, Microsoft.Photos.exe, RuntimeBroker.exe, ShellExperienceHost.exe, dllhost.exe, taskhostw.exe, WinSCP.exe, LockApp.exe, RuntimeBroker.exe, RuntimeBroker.exe, CompPkgSrv.exe, SecurityHealthHost.exe, SystemSettingsBroker.exe, ChsIME.exe, SunloginClient.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, dwm.exe, YourPhone.exe, RuntimeBroker.exe, WeChatApp.exe, RuntimeBroker.exe, Todo.exe, GameBar.exe, GameBarFTServer.exe, RuntimeBroker.exe, ECAgent.exe, firefox.exe, firefox.exe, firefox.exe, XenCenterMain.exe, DataExchangeHost.exe, wpscloudsvr.exe, smartscreen.exe, barrier.exe, notepad.exe, backgroundTaskHost.exe, backgroundTaskHost.exe, RuntimeBroker.exe, 
[2020-12-11T13:40:52] DEBUG: found winlogon.exe in session 1
[2020-12-11T13:40:52] DEBUG: got token 1316, duplicating
[2020-12-11T13:40:52] DEBUG: duplicated, new token: 1320
[2020-12-11T13:40:52] INFO: starting new process as privileged user
[2020-12-11T13:40:52] INFO: drag and drop enabled
[2020-12-11T13:40:52] DEBUG: screen shape: 0,0 1280x853 
[2020-12-11T13:40:52] DEBUG: window is 0x001e1026
[
2020-12-11T13:40:5
2
]
 
E
R
R
O
R: failed to g
e
t
 
d
e
s
kto
p 
pa
th
,
 
no
 
d
r
op
 
t
a
rg
e
t
 
av
a
i
l
a
b
l
e
[2020-12-11T13:40:52] DEBUG: adopting new buffer
[2020-12-11T13:40:52] DEBUG: opened display
[2020-12-11T13:40:52] NOTE: started client
[2020-12-11T13:40:52] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-11T13:40:52] DEBUG: Opening new socket: E386F4E0
[2020-12-11T13:40:52] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-11T13:40:52] DEBUG: Opening new socket: E387FC90
[2020-12-11T13:40:52] DEBUG: event queue is ready
[2020-12-11T13:40:52] DEBUG: Opening new socket: 49F6CF10
[2020-12-11T13:40:52] DEBUG: accepted ipc client connection
[2020-12-11T13:40:52] DEBUG: start ipc handle data
[2020-12-11T13:40:52] DEBUG: ipc read: IHEL
[2020-12-11T13:40:52] DEBUG: finished ipc handle data
[2020-12-11T13:40:52] DEBUG: ipc hello, type=node
server status: active
[2020-12-11T13:40:52] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-11T13:40:52] DEBUG: stopping process
[2020-12-11T13:40:53] DEBUG: starting process

[2020-12-11T13:40:53] INFO: starting client
[2020-12-11T13:40:53] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\СϪ\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-11T13:40:53] INFO: config file: C:/Users/小溪/AppData/Local/Temp/Barrier.EXAgFQ
[2020-12-11T13:40:53] INFO: log level: DEBUG
[2020-12-11T13:40:52] NOTE: trustedServersFilename: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:40:52] NOTE: Unable to open trustedServersFile: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:
40:52] ER
R
OR: failed to verify server certificate fingerprint
[2020-12-11T13:40:52] DEBUG: start ipc handle data
[2020-12-11T13:40:52] DEBUG: ipc read: ICMD
[2020-12-11T13:40:52] DEBUG: finished ipc handle data
[2020-12-11T13:40:52] DEBUG: empty command, elevate=0
[2020-12-11T13:40:52] INFO: service command updated
[2020-12-11T13:40:53] DEBUG: started process, session=1, elevated: no, command=
[2020-12-11T13:40:53] DEBUG: start ipc handle data
[2020-12-11T13:40:53] DEBUG: ipc read: ICMD
[2020-12-11T13:40:53] DEBUG: finished ipc handle data
[2020-12-11T13:40:53] DEBUG: new command, elevate=0 command="C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\��?\AppData\Local\Barrier" [10.10.xxx.xxx]:24800
[2020-12-11T13:40:53] INFO: service command updated
[2020-12-11T13:40:54] DEBUG: closing existing process to make way for new one
[2020-12-11T13:40:54] DEBUG: start ipc handle data
[2020-12-11T13:40:54] DEBUG: ipc read: ISDN
[2020-12-11T13:40:54] DEBUG: finished ipc handle data
[2020-12-11T13:40:54] INFO: got ipc shutdown message
[2020-12-11T13:40:54] DEBUG: Closing socket: E386F4E0
[2020-12-11T13:40:54] DEBUG: adopting new buffer
[2020-12-11T13:40:54] DEBUG: discarding 1 event(s)
[2020-12-11T13:40:54] DEBUG: closed display
[2020-12-11T13:40:54] NOTE: stopped client
[2020-12-11T13:40:54] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:54] DEBUG: Closing socket: E387FC90
[2020-12-11T13:40:54] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:54] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:54] DEBUG: Closing socket: 49F6CF10
[2020-12-11T13:40:54] DEBUG: ipc client disconnected
[2020-12-11T13:40:54] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:54] DEBUG: ipc client proxy removed, connected=1
[2020-12-11T13:40:55] INFO: process 17984 was shutdown gracefully
[2020-12-11T13:40:55] DEBUG: found desktop name: 
[2020-12-11T13:40:55] DEBUG: getting elevated token, at login screen
[2020-12-11T13:40:55] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, sihost.exe, SangforUDProtect.exe, svchost.exe, svchost.exe, taskhostw.exe, explorer.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, SearchUI.exe, Foxmail.exe, yundetectservice.exe, ispirit.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, ispirit.exe, Foxmail.exe, ispirit.exe, Foxmail.exe, svchost.exe, ApplicationFrameHost.exe, WinStore.App.exe, RuntimeBroker.exe, SystemSettings.exe, RuntimeBroker.exe, WeChat.exe, WeChatWeb.exe, WeChatWeb.exe, Microsoft.Photos.exe, RuntimeBroker.exe, ShellExperienceHost.exe, dllhost.exe, taskhostw.exe, WinSCP.exe, LockApp.exe, RuntimeBroker.exe, RuntimeBroker.exe, CompPkgSrv.exe, SecurityHealthHost.exe, SystemSettingsBroker.exe, ChsIME.exe, SunloginClient.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, dwm.exe, YourPhone.exe, RuntimeBroker.exe, WeChatApp.exe, RuntimeBroker.exe, Todo.exe, GameBar.exe, GameBarFTServer.exe, RuntimeBroker.exe, ECAgent.exe, firefox.exe, firefox.exe, firefox.exe, XenCenterMain.exe, DataExchangeHost.exe, wpscloudsvr.exe, smartscreen.exe, barrier.exe, notepad.exe, backgroundTaskHost.exe, backgroundTaskHost.exe, RuntimeBroker.exe, 
[2020-12-11T13:40:55] DEBUG: found winlogon.exe in session 1
[2020-12-11T13:40:55] DEBUG: got token 1332, duplicating
[2020-12-11T13:40:55] DEBUG: duplicated, new token: 1336
[2020-12-11T13:40:55] INFO: starting new process as privileged user
[2020-12-11T13:40:55] INFO: drag and drop enabled
[2020-12-11T13:40:55] DEBUG: screen shape: 0,0 1280x853 
[2020-12-11T13:40:55] DEBUG: window is 0x00100dcc
[
2020-12-11T13:40:55
]
 
ERROR: failed to get
 des
k
top
 p
at
h,
 n
o drop
 
t
a
rget
 
a
v
a
i
l
a
bl
e
[2020-12-11T13:40:55] DEBUG: adopting new buffer
[2020-12-11T13:40:55] DEBUG: opened display
[2020-12-11T13:40:55] NOTE: started client
[2020-12-11T13:40:55] NOTE: connecting to '10.10.xxx.xxx': 10.10.xxx.xxx:24800
[2020-12-11T13:40:55] DEBUG: Opening new socket: 7D2EF330
[2020-12-11T13:40:55] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-11T13:40:55] DEBUG: Opening new socket: 7D323580
[2020-12-11T13:40:55] DEBUG: event queue is ready
[2020-12-11T13:40:55] DEBUG: Opening new socket: 49F6CD60
[2020-12-11T13:40:55] DEBUG: accepted ipc client connection
[2020-12-11T13:40:55] DEBUG: start ipc handle data
[2020-12-11T13:40:55] DEBUG: ipc read: IHEL
[2020-12-11T13:40:55] DEBUG: finished ipc handle data
[2020-12-11T13:40:55] DEBUG: ipc hello, type=node
server status: active
[2020-12-11T13:40:55] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-11T13:40:55] DEBUG: stopping process
[2020-12-11T13:40:55] NOTE: trustedServersFilename: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:40:55] NOTE: Unable to open trustedServersFile: C:\Users\��?\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-11T13:40:55] ERROR: failed to verify server certificate fingerprint
[2020-12-11T13:40:55] DEBUG: start ipc handle data
[2020-12-11T13:40:55] DEBUG: ipc read: ICMD
[2020-12-11T13:40:55] DEBUG: finished ipc handle data
[2020-12-11T13:40:55] DEBUG: empty command, elevate=0
[2020-12-11T13:40:55] INFO: service command updated
[2020-12-11T13:40:56] DEBUG: started process, session=1, elevated: no, command=
[2020-12-11T13:40:57] INFO: process started but command is empty, shutting down
[2020-12-11T13:40:57] DEBUG: start ipc handle data
[2020-12-11T13:40:57] DEBUG: ipc read: ISDN
[2020-12-11T13:40:57] DEBUG: finished ipc handle data
[2020-12-11T13:40:57] INFO: got ipc shutdown message
[2020-12-11T13:40:57] DEBUG: Closing socket: 7D2EF330
[2020-12-11T13:40:57] DEBUG: adopting new buffer
[2020-12-11T13:40:57] DEBUG: discarding 1 event(s)
[2020-12-11T13:40:57] DEBUG: closed display
[2020-12-11T13:40:57] NOTE: stopped client
[2020-12-11T13:40:57] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:57] DEBUG: Closing socket: 7D323580
[2020-12-11T13:40:57] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:57] DEBUG: ipc disconnect, closing stream
[2020-12-11T13:40:57] DEBUG: Closing socket: 49F6CD60
[2020-12-11T13:40:57] DEBUG: ipc client disconnected
[2020-12-11T13:40:57] DEBUG: Closing socket: 00000000
[2020-12-11T13:40:57] DEBUG: ipc client proxy removed, connected=1
[2020-12-11T13:40:58] INFO: process 11992 was shutdown gracefully

@albertony
Copy link

albertony commented Dec 11, 2020

Thank you for your patience, and for your valuable input!

Fixed yet another couple of issues, new beta here: https://dev.azure.com/debauchee/Barrier/_build/results?buildId=388&view=artifacts&pathAsName=false&type=publishedArtifacts

Previous fix was more in the server and deamon, I reproduced an issue there and were too convinced that was it, but your issue are in the client mode... And it turns out there were several parts that needed a fix (client, server, deamon). Hopefully I've tracked all down and fixed them this time. But I don't have the exact test setup as you, so can not be 100% certain. Just let me know if there are more issues, I'm determined to get this out of the way now!

Edit: Did some additional refactoring, should not change any of the functionality but if not testet previous beta yet, then please use latest: https://dev.azure.com/debauchee/Barrier/_build/results?buildId=396&view=artifacts&pathAsName=false&type=publishedArtifacts

@cheese
Copy link
Author

cheese commented Dec 14, 2020

Edit: Did some additional refactoring, should not change any of the functionality but if not testet previous beta yet, then please use latest: https://dev.azure.com/debauchee/Barrier/_build/results?buildId=396&view=artifacts&pathAsName=false&type=publishedArtifacts

I tried this build. Not any pop-up dialog. But the connection still failed to be established.

Debug log:

[2020-12-14T09:54:26] DEBUG: starting process

[2020-12-14T09:54:26] INFO: starting client
[2020-12-14T09:54:26] DEBUG: command: "C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\小明\AppData\Local\Barrier" [10.10.xxx.xx]:24800
[2020-12-14T09:54:26] INFO: config file: C:/Users/小明/AppData/Local/Temp/Barrier.wMvxTu
[2020-12-14T09:54:26] INFO: log level: DEBUG
[2020-12-14T09:54:26] DEBUG: start ipc handle data
[2020-12-14T09:54:26] DEBUG: ipc read: ICMD
[2020-12-14T09:54:26] DEBUG: finished ipc handle data
[2020-12-14T09:54:26] DEBUG: new command, elevate=0 command="C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\??\AppData\Local\Barrier" [10.10.xxx.xx]:24800
[2020-12-14T09:54:26] INFO: service command updated
[2020-12-14T09:54:26] DEBUG: found desktop name: 
[2020-12-14T09:54:26] DEBUG: getting elevated token, at login screen
[2020-12-14T09:54:26] DEBUG: processes in session 1: csrss.exe, winlogon.exe, fontdrvhost.exe, dwm.exe, sihost.exe, svchost.exe, svchost.exe, taskhostw.exe, SangforUDProtect.exe, explorer.exe, ECAgent.exe, svchost.exe, StartMenuExperienceHost.exe, RuntimeBroker.exe, RuntimeBroker.exe, YourPhone.exe, SettingSyncHost.exe, ctfmon.exe, TabTip.exe, ChsIME.exe, LockApp.exe, RuntimeBroker.exe, WindowsInternal.ComposableShell.Experiences.TextInput.InputApp.exe, SecurityHealthSystray.exe, iTunesHelper.exe, DptfPolicyLpmServiceHelper.exe, Foxmail.exe, yundetectservice.exe, SearchUI.exe, ispirit.exe, ispirit.exe, Foxmail.exe, ispirit.exe, RuntimeBroker.exe, Foxmail.exe, svchost.exe, RuntimeBroker.exe, SystemSettings.exe, ApplicationFrameHost.exe, RuntimeBroker.exe, Todo.exe, dllhost.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, firefox.exe, GameBar.exe, GameBarFTServer.exe, RuntimeBroker.exe, smartscreen.exe, firefox.exe, ShellExperienceHost.exe, RuntimeBroker.exe, SecurityHealthHost.exe, ChsIME.exe, barrier.exe, 
[2020-12-14T09:54:26] DEBUG: found winlogon.exe in session 1
[2020-12-14T09:54:26] DEBUG: got token 1136, duplicating
[2020-12-14T09:54:26] DEBUG: duplicated, new token: 1016
[2020-12-14T09:54:26] INFO: starting new process as privileged user
[2020-12-14T09:54:27] INFO: drag and drop enabled
[2020-12-14T09:54:27] DEBUG: screen shape: 0,0 1280x853 
[2020-12-14T09:54:27] DEBUG: window is 0x00080972
[2020-12-14T09:54:27] DEBUG: adopting new buffer
[2020-12-14T09:54:27] DEBUG: opened display
[2020-12-14T09:54:27] NOTE: started client
[2020-12-14T09:54:27] NOTE: connecting to '10.10.xxx.xx': 10.10.xxx.xx:24800
[2020-12-14T09:54:27] DEBUG: Opening new socket: 5E70C3E0
[2020-12-14T09:54:27] INFO: OpenSSL 1.0.2l  25 May 2017
[2020-12-14T09:54:27] DEBUG: Opening new socket: 5E7459F0
[2020-12-14T09:54:27] DEBUG: event queue is ready
[2020-12-14T09:54:27] DEBUG: Opening new socket: FEA64F80
[2020-12-14T09:54:27] DEBUG: accepted ipc client connection
[2020-12-14T09:54:27] DEBUG: start ipc handle data
[2020-12-14T09:54:27] DEBUG: ipc read: IHEL
[2020-12-14T09:54:27] DEBUG: finished ipc handle data
[2020-12-14T09:54:27] DEBUG: ipc hello, type=node
server status: active
[2020-12-14T09:54:27] NOTE: server fingerprint: DD:90:85:3F:50:B9:84:04:80:8E:46:92:A6:71:9D:5F:83:3D:18:32
[2020-12-14T09:54:27] NOTE: trustedServersFilename: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[2020-12-14T09:54:27] NOTE: Unable to open trustedServersFile: C:\Users\??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt
[202
0
-12-14T09:54:27] ERR
O
R: failed to verify server certificate fingerprint
[2020-12-14T09:54:27] DEBUG: started process, session=1, elevated: yes, command="C:/Program Files/Barrier/barrierc.exe" -f --no-tray --debug DEBUG --name new-surface --ipc --stop-on-desk-switch --enable-drag-drop --enable-crypto --profile-dir "C:\Users\??\AppData\Local\Barrier" [10.10.xxx.xx]:24800
[2020-12-14T09:54:41] DEBUG: stopping process
[2020-12-14T09:54:41] DEBUG: start ipc handle data
[2020-12-14T09:54:41] DEBUG: ipc read: ICMD
[2020-12-14T09:54:41] DEBUG: finished ipc handle data
[2020-12-14T09:54:41] DEBUG: empty command, elevate=0
[2020-12-14T09:54:41] INFO: service command updated
[2020-12-14T09:54:41] INFO: process started but command is empty, shutting down
[2020-12-14T09:54:41] DEBUG: start ipc handle data
[2020-12-14T09:54:41] DEBUG: ipc read: ISDN
[2020-12-14T09:54:41] DEBUG: finished ipc handle data
[2020-12-14T09:54:41] INFO: got ipc shutdown message
[2020-12-14T09:54:41] DEBUG: Closing socket: 5E70C3E0
[2020-12-14T09:54:41] DEBUG: adopting new buffer
[2020-12-14T09:54:41] DEBUG: discarding 1 event(s)
[2020-12-14T09:54:41] DEBUG: closed display
[2020-12-14T09:54:41] NOTE: stopped client
[2020-12-14T09:54:41] DEBUG: ipc disconnect, closing stream
[2020-12-14T09:54:41] DEBUG: Closing socket: 5E7459F0
[2020-12-14T09:54:41] DEBUG: Closing socket: 00000000
[2020-12-14T09:54:41] DEBUG: ipc disconnect, closing stream
[2020-12-14T09:54:41] DEBUG: Closing socket: FEA64F80
[2020-12-14T09:54:41] DEBUG: ipc client disconnected
[2020-12-14T09:54:41] DEBUG: Closing socket: 00000000
[2020-12-14T09:54:41] DEBUG: ipc client proxy removed, connected=1
[2020-12-14T09:54:42] INFO: process 3232 was shutdown gracefully

@albertony
Copy link

albertony commented Dec 14, 2020

That is too bad. And strange.

Did you get the fingerprint pop-up, asking you to trust the fingerprint, at all this time?

NOTE: Unable to open trustedServersFile: C:\Users??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt

Does this file exist, and has content?

If you delete it (or rename it temporarily) before starting the barrier client, do you get the normal fingeprint pop-up asking you to trust the fingerprint? And when you accept, this same file is created again?

(It seems the gui front-end application thinks the TrustedServers.txt exists and is ok, while the client background application is not able to find it).

(I retested the beta again in my setup, and it works as it should - fingerprint pop-up once, TrustedServers.txt created, client background application finds the file and matches the fingerprint, connect ok. So your case might still be somewhat different).

@cheese
Copy link
Author

cheese commented Dec 14, 2020

That is too bad. And strange.

Did you get the fingerprint pop-up, asking you to trust the fingerprint, at all this time?

No pop-up for this build.

NOTE: Unable to open trustedServersFile: C:\Users??\AppData\Local\Barrier/SSL/Fingerprints/TrustedServers.txt

Does this file exist, and has content?

Yes. The file exists.

If you delete it (or rename it temporarily) before starting the barrier client, do you get the normal fingeprint pop-up asking you to trust the fingerprint? And when you accept, this same file is created again?

I can test this, but may be a few days later.

@albertony
Copy link

What I think is an identical issue was solved with that latest beta, so fingers crossed yours will as well..

That build works with non-ascii characters and solved my issue - thank you.
https://dev.azure.com/debauchee/Barrier/_build/results?buildId=396&view=artifacts&pathAsName=false&type=publishedArtifacts

@cheese
Copy link
Author

cheese commented Dec 28, 2020

What I think is an identical issue was solved with that latest beta, so fingers crossed yours will as well..

That build works with non-ascii characters and solved my issue - thank you.
https://dev.azure.com/debauchee/Barrier/_build/results?buildId=396&view=artifacts&pathAsName=false&type=publishedArtifacts

I am back to that configuration. Which is the latest build I can test?

@albertony
Copy link

p12tic added a commit that referenced this issue Dec 30, 2020
Use ansi codepage for internal multibyte strings on windows (fixes #976, fixes #974, fixes #444)
p12tic added a commit to p12tic/barrier that referenced this issue Oct 29, 2021
p12tic added a commit to p12tic/barrier that referenced this issue Oct 29, 2021
p12tic added a commit to p12tic/barrier that referenced this issue Oct 29, 2021
This fixes debauchee#976, fixes debauchee#974, fixes debauchee#444.

On Windows the standard stream open() functions expect bytes encoded in
current system encoding, not UTF8. Since we're dealing with UTF8
throughout the application this results in wrong paths being passed and
failure to open files. As a solution, we convert the paths to UTF16 via
the WCHAR character type and use the special Windows-specific overloads
of open() functions.
p12tic added a commit to p12tic/barrier that referenced this issue Oct 29, 2021
This fixes debauchee#976, fixes debauchee#974, fixes debauchee#444.

On Windows the standard stream open() functions expect bytes encoded in
current system encoding, not UTF8. Since we're dealing with UTF8
throughout the application this results in wrong paths being passed and
failure to open files. As a solution, we convert the paths to UTF16 via
the WCHAR character type and use the special Windows-specific overloads
of open() functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants