GWSL-Source icon indicating copy to clipboard operation
GWSL-Source copied to clipboard

Apps Cannot Connect to GWSL Xserver? Allow GWSL through the firewall.

Open MattFanto opened this issue 3 years ago • 16 comments

Hi, today all ubuntu application are not starting, I suppose there was an updated since I see some changes in the dashboard. In any case while checking the logs I noticed the following message:

service.log

2021-05-25 14:18:42,761 - __main__ - ERROR - Exception occurred - Cannot Start Service. Make sure the settings file is not corrupted.
Traceback (most recent call last):
  File "main.py", line 561, in main
SystemExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 642, in <module>
  File "main.py", line 567, in main
SystemExit

I didn't make any changes to the settings file and at the same time I don't see any issue with it

{
 "conf_ver": 4,
 "general": {
  "clipboard": true,
  "start_menu_mode": false,
  "shell_gui": "cmd",
  "acrylic_enabled": true
 },
 "graphics": {
  "window_mode": "multi",
  "hidpi": true
 },
 "putty": {
  "ip": null,
  "ssh_key": null
 },
 "distro_blacklist": [
  "docker"
 ],
 "app_blacklist": [
  "exampleblock"
 ],
 "xserver_profiles": {
  "Plain VcXsrv": []
 }
}

dahsboard.log is empty instead

MattFanto avatar May 25 '21 13:05 MattFanto

Huh.. Do you see any errors when you start GWSL but run the programs from bash directly?

Pololot64 avatar May 25 '21 14:05 Pololot64

Maybe try right clicking the systray menu --> Log and Configuration Cleanup.

Also, Dashboard --> GWSL Distro Tools --> Distro --> and export the display again.

I added audio support in this update which means it should have asked you to allow it through the firewall too. If this is being blocked by the firewall or av, it may be causing a crash. To allow it through the firewall: Dashboard --> About --> Allow GWSL through the Firewall.

(And make sure pulseaudio has public access)

Pololot64 avatar May 25 '21 14:05 Pololot64

Amazing it was a firewall issue it missed the permission for the public network, yes after the update it asked me the firewall config again but I forgot to add public network as well. Thanks a million!

MattFanto avatar May 25 '21 14:05 MattFanto

No problem ;) Glad it worked.

Pololot64 avatar May 25 '21 14:05 Pololot64

It shouldn't have made GWSL crash though so I'll see if I can quickly add some code to make it more lenient with this change

Pololot64 avatar May 25 '21 15:05 Pololot64

Wait, can I ask a quick question? When it ran after the update, did it ask for permission for the vcxsrv server again or just for pulseaudio?

Pololot64 avatar May 25 '21 15:05 Pololot64

Of course and thanks a lot for this app! Well I don't remember exactly I remember it re-asked again the permission only once and when I checked the firewall setting I noticed two entries without appropriate network access

If I remember correctly Gwsl Pulseaudio didn't have any permission at all (private, domain and public) Gwsl xcxsrv missed the public checkbox

I would say it asked the permission only for vcxsrv but I wouldn't rely too much on my limited short term memory :O

I'll check again tomorrow the firewall settings window as soon as I'm on the work laptop and post an update if it refresh some memories

MattFanto avatar May 25 '21 18:05 MattFanto

Thanks :)

Pololot64 avatar May 25 '21 19:05 Pololot64

looks like a knowledge base entry to me. "audio support should have asked to allow it through the firewall too. If this is being blocked by the firewall or av, it may be causing a crash. To allow it through the firewall: Dashboard --> About --> Allow GWSL through the Firewall. make sure pulseaudio has public access

mi-hol avatar Jul 01 '21 17:07 mi-hol

@Pololot64 would you mind to stick to the agreed process?

mi-hol avatar Jul 03 '21 19:07 mi-hol

Yes, but I did say that I am still extremely busy :)

Pololot64 avatar Jul 03 '21 19:07 Pololot64

Hello! I'm having the same issue, even with Firewall disabled and the exceptions added.

`2022-02-10 17:39:09,215 - main - ERROR - Exception occurred in main loop Traceback (most recent call last): File "main.py", line 615, in main SystemExit 2022-02-10 17:39:09,428 - main - ERROR - Exception occurred - Cannot Start Service. Make sure the settings file is not corrupted. Traceback (most recent call last): File "main.py", line 615, in main SystemExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 697, in File "main.py", line 621, in main SystemExit`

emmayor avatar Feb 10 '22 20:02 emmayor

@enterTheCloud I am assuming you pressed the auto export display button already?

Pololot64 avatar Feb 11 '22 18:02 Pololot64

I am experiencing the same issue. exactly the same error message. @enterTheCloud have you resolved it?

HuStmpHrrr avatar Oct 14 '22 00:10 HuStmpHrrr

@enterTheCloud I am assuming you pressed the auto export display button already?

Yes, I remember messing with that, but it didn't work either way

emmayor avatar Oct 14 '22 01:10 emmayor

I am experiencing the same issue. exactly the same error message. @enterTheCloud have you resolved it?

Sorry, but no. Haven't tried again since I commented

emmayor avatar Oct 14 '22 01:10 emmayor