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

Windows are transparent via Xpra 8.1 on Rocky Linux 8.8 #3995

Closed
mykeebot opened this issue Sep 7, 2023 · 29 comments
Closed

Windows are transparent via Xpra 8.1 on Rocky Linux 8.8 #3995

mykeebot opened this issue Sep 7, 2023 · 29 comments
Labels
bug Something isn't working

Comments

@mykeebot
Copy link

mykeebot commented Sep 7, 2023

Describe the bug

Some of the apps/windows are transparent when starting with Xpra.

To reproduce the issue please follow the steps below...

1.) Open Xpra in the browser https://192.168.0.153:14500/connect.html
2.) Log in with the username and password combination
3.) Select Start/System Tools/XTerm

The Terminal window is totally transparent.

ScreenShot_15231

System Information:

  • Server OS: Rocky Linux release 8.8 (Green Obsidian)
  • Client OS: Windows 10 Home 22H2
  • Xpra Client Version: 8.1
  • Xpra Server Version:
xpra-common-5.0-10.r34062.el8.x86_64
xpra-client-5.0-10.r34062.el8.x86_64
xpra-client-gtk3-5.0-10.r34062.el8.x86_64
xpra-codecs-nvidia-5.0-10.r34062.el8.x86_64
xpra-5.0-10.r34062.el8.x86_64
xpra-audio-5.0-10.r34062.el8.x86_64
xpra-server-5.0-10.r34062.el8.x86_64
xpra-codecs-5.0-10.r34062.el8.x86_64
xpra-x11-5.0-10.r34062.el8.x86_64
xorg-x11-drv-dummy-0.4.1-1.xpra1.el8.x86_64
xpra-html5-8.1-1.r9.el8.noarch

ScreenShot_15230

@mykeebot mykeebot added the bug Something isn't working label Sep 7, 2023
@totaam
Copy link
Collaborator

totaam commented Sep 8, 2023

  • 5.0.1 is the current version for RHEL and clones
  • 9.0 is the current version of the html5 client

You have not specified the browser you are using.
Does this happen with every browser?

@mykeebot
Copy link
Author

mykeebot commented Sep 8, 2023

Hey totaam,

Many thanks for your input! I have tested it with 8.1 and 9.0 as well, but I was experiencing the same result.

I'm using Brave and I have also tested with Edge. I have the same result on both browsers.

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 8, 2023

Does this happen with http connections or just https?
Are there any errors in your Javascript console?

@mykeebot
Copy link
Author

mykeebot commented Sep 8, 2023

Dear totaam,

Many thanks again for your prompt input! Unfortunately I cannot test it with http, because it forces me to use https. So when I enter the URL, http automatically changes to https.

On the other hand, this is what I have in the /var/log/messages log file on the server...

Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,027 no uinput module (not usually needed)
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,230 serving html content from '/usr/share/xpra/www'
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,232 wrote pid 5101 to '/run/xpra/proxy/server.pid'
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,264 xpra is ready.
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,270 xpra proxy server version 5.0-r0
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,270  uid=0 (root), gid=0 (root)
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,270  running with pid 5101 on Linux Rocky Linux 8.8 Green Obsidian
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,270 watching for applications menu changes in:
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,271  '/usr/local/share/applications'
Sep  8 11:36:21 rocky8vm xpra[5101]: 2023-09-08 11:36:21,271  '/usr/share/applications'
Sep  8 11:36:22 rocky8vm xpra[5101]: 2023-09-08 11:36:22,311 loaded 42 start menu entries from 7 sub-menus in 1.0 seconds
Sep  8 11:36:26 rocky8vm xpra[5101]: 2023-09-08 11:36:26,993 Error: wss request failure
Sep  8 11:36:26 rocky8vm xpra[5101]: 2023-09-08 11:36:26,993  errno=0
Sep  8 11:36:26 rocky8vm xpra[5101]: 2023-09-08 11:36:26,993  for client ::ffff:192.168.0.214, 54137, 0, 0:
Sep  8 11:36:26 rocky8vm xpra[5101]: 2023-09-08 11:36:26,994  request as hex: '1603010200010001fc0303c65b0d9aeb0f908498d982aa'
Sep  8 11:36:26 rocky8vm xpra[5101]: 2023-09-08 11:36:26,994  [Errno 0] Error
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,145 New tcp connection received
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,146  from '::ffff:192.168.0.214, 54134, 0, 0'
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,146  on '[::]:14500'
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,194 New tcp connection received
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,195  from '::ffff:192.168.0.214, 54136, 0, 0'
Sep  8 11:36:28 rocky8vm xpra[5101]: 2023-09-08 11:36:28,195  on '[::]:14500'
Sep  8 11:36:30 rocky8vm kernel: TCP: request_sock_TCP: Possible SYN flooding on port [::]:14500. Sending cookies.
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,401 Authentication required by PAM authenticator module
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,401  sending challenge using 'xor' digest over tcp connection
Sep  8 11:37:22 rocky8vm dbus-daemon[722]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.435' (uid=0 pid=5101 comm="/usr/bin/xpra proxy :14500 --daemon=no --tcp-auth=")
Sep  8 11:37:22 rocky8vm systemd[1]: Starting Fingerprint Authentication Daemon...
Sep  8 11:37:22 rocky8vm dbus-daemon[722]: [system] Successfully activated service 'net.reactivated.Fprint'
Sep  8 11:37:22 rocky8vm systemd[1]: Started Fingerprint Authentication Daemon.
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,525 using threaded mode for wss client connection
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,532 started threaded proxy instance
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,532  for client wss socket: ::ffff:192.168.0.153, 14500, 0, 0 <- ::ffff:192.168.0.214, 54581, 0, 0
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,532  and server socket socket:  <- /run/user/1000/xpra/0/socket
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,624 Warning: ignoring unknown video encoders: enc_none
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,630 Error: invalid codec name 'enc_none'
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,630 Warning: invalid codec name enc_none
Sep  8 11:37:22 rocky8vm xpra[5101]: 2023-09-08 11:37:22,631 proxy video encoders: none

Is there any log file what I can check for searching errors?

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 8, 2023

Try connecting to a server directly, without going through the proxy.
Perhaps this is a proxy bug.

@mykeebot
Copy link
Author

mykeebot commented Sep 8, 2023

Hi there,

Testing it on the server directly a bit better, but I think it should be some kind of screen refreshing issue. So if I open the browser (Mozilla) on the server and start XTerm, it's still blank....

ScreenShot_15242

As soon as I click in the window I get my prompt....

ScreenShot_15234

Then after I execute 1-2 commands it looks OK...

ScreenShot_15236

If I do the same from an external browser, I'm still experiencing the same result unfortunately...

ScreenShot_15238

I'm experiencing an other issue and I'm not sure if that's related to the originally reported one. If I disconnect from my session and then try to reconnect, I always get the error message below....

ScreenShot_15241

I have to restart the xpra.service to be able to login again

Thanks,
Mike

NOTE: The menu looks strange as well...

ScreenShot_15243

@totaam
Copy link
Collaborator

totaam commented Sep 8, 2023

Testing it on the server directly a bit better, but I think it should be some kind of screen refreshing issue

I'm not sure what you mean by "directly".
I meant, run a server on a dedicated port, without using the proxy server.
The fact that you are still using port 14500 makes me think that you're not doing that.

error accepting new connection

The full error message will be in your server log for regular servers, or the system logger for the proxy service.

The menu looks strange as well...

As I've already said, 5.0.1 is the current version.
It's very likely that this is already fixed.
And perhaps even the transparency issue.

@mykeebot
Copy link
Author

mykeebot commented Sep 8, 2023

Hello totaam,

I believe I had the 5.0.1 version on the server, below you may find the packages....

[root@rocky8vm ~]# rpm -qa | grep xpra
xpra-common-5.0-10.r34062.el8.x86_64
xpra-client-5.0-10.r34062.el8.x86_64
xpra-client-gtk3-5.0-10.r34062.el8.x86_64
xpra-5.0-10.r34062.el8.x86_64
xpra-audio-5.0-10.r34062.el8.x86_64
xpra-server-5.0-10.r34062.el8.x86_64
xpra-codecs-5.0-10.r34062.el8.x86_64
xpra-x11-5.0-10.r34062.el8.x86_64
xpra-html5-8.1-1.r9.el8.noarch
xorg-x11-drv-dummy-0.4.1-1.xpra1.el8.x86_64
xpra-codecs-nvidia-5.0-10.r34062.el8.x86_64

I updated Xpra from online repo with the command below...

dnf upgrade *xpra*

After the upgrade the version of the packages changed like this....

[root@rocky8vm ~]# rpm -qa | grep xpra
xpra-common-5.0.1-10.r0.el8.x86_64
xpra-client-5.0.1-10.r0.el8.x86_64
xpra-client-gtk3-5.0.1-10.r0.el8.x86_64
xpra-5.0.1-10.r0.el8.x86_64
xpra-audio-5.0.1-10.r0.el8.x86_64
xpra-server-5.0.1-10.r0.el8.x86_64
xpra-codecs-5.0.1-10.r0.el8.x86_64
xpra-x11-5.0.1-10.r0.el8.x86_64
xpra-html5-9.0-1.r1481.el8.noarch
xorg-x11-drv-dummy-0.4.1-1.xpra1.el8.x86_64
xpra-codecs-nvidia-5.0.1-10.r0.el8.x86_64

With this, the client is also updated to 9.0 beta. Here I would like to mentioned that, after I logged in from the 8.1 client I got the Start menu as expected...

ScreenShot_15247

...but after the upgrade, starting it from a 9.0 beta client I don't have the Start menu....

ScreenShot_15252

As you have requested, I did some tests without proxy. Here is the result....

I executed the following command from PuTTY on my Rocky 8 server...

xpra start --start=xterm --bind-tcp=0.0.0.0:10000

....then I opened an external browser (not on the server) and entered the URL below....

http://192.168.0.153:10000/connect.html

NOTE1: Previously I have opened the port on the firewall on the Rocky 8 server...

[root@rocky8vm ~]# firewall-cmd --zone=public --add-port=10000/tcp --permanent

ScreenShot_15251

After I logged in, XTerm started correctly without any visual or graphical issue....

NOTE2: Still don't have the Start menu

ScreenShot_15253

So at the end it seems it's a proxy issue indeed.

Do you want me to do any additional tests?

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 8, 2023

the client is also updated to 9.0 beta

xpra-html5 v9.0 is not a beta version: Xpra-org/xpra-html5@04ea66f

...but after the upgrade, starting it from a 9.0 beta client I don't have the Start menu....

See Xpra-org/xpra-html5#263

So at the end it seems it's a proxy issue indeed.

Has the proxy also been updated to 5.0.1?

@mykeebot
Copy link
Author

mykeebot commented Sep 10, 2023

Hi totaam,

Many thanks for your answer. Regarding Xpra-org/xpra-html5#263 I reviewed the full article but I could not find any related info to the missing Start menu. Could you please help me what should I search for exactly?

Regarding the proxy update, I'm not sure what does it exactly mean. Could you please let me know your detailed thoughts or give me additional instructions?

Many thanks in advance,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

@mykeebot sorry, wrong ticket link - I've updated it.

Regarding the proxy update, I'm not sure what does it exactly mean.

Did you restart the proxy or restart the machine to be sure that it got updated?

@mykeebot
Copy link
Author

mykeebot commented Sep 11, 2023

Hello totaam,

Many thanks for the instructions. After downgrading xpra-html5 the Start menu appears correctly...

ScreenShot_15258

However the XTerm window is still transparent...

ScreenShot_15259

...even if I restarted the server before. On the other hand, if I disconnect from my session...

ScreenShot_15260

...and then try to connect again, I always get the error message below...

ScreenShot_15261

I should restart the xpra.service to be able to connect.

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

Like I said above, the details of this error will be in one of the logs:

The full error message will be in your server log for regular servers, or the system logger for the proxy service.

@mykeebot
Copy link
Author

mykeebot commented Sep 11, 2023

Hi totaam,

This is what I have in the /var/log/messages log file...

Sep 11 12:16:19 rocky8vm xpra[3756]: 2023-09-11 12:16:19,990 Authentication required by PAM authenticator module
Sep 11 12:16:19 rocky8vm xpra[3756]: 2023-09-11 12:16:19,991  sending challenge using 'xor' digest over tcp connection
Sep 11 12:16:20 rocky8vm dbus-daemon[713]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.639' (uid=0 pid=3756 comm="/usr/bin/xpra proxy :14500 --daemon=no --tcp-auth=")
Sep 11 12:16:20 rocky8vm systemd[1]: Starting Fingerprint Authentication Daemon...
Sep 11 12:16:20 rocky8vm dbus-daemon[713]: [system] Successfully activated service 'net.reactivated.Fprint'
Sep 11 12:16:20 rocky8vm systemd[1]: Started Fingerprint Authentication Daemon.
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,110 using threaded mode for wss client connection
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,111 started threaded proxy instance
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,111  for client wss socket: ::ffff:192.168.0.153, 14500, 0, 0 <- ::ffff:192.168.0.214, 52327, 0, 0
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,111  and server socket socket:  <- /run/user/1000/xpra/1/socket
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,111 Error: video helper modules have already been initialized
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112 from:
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112    File "/usr/bin/xpra", line 17, in <module>
Sep 11 12:16:20 rocky8vm xpra[3756]:    sys.exit(main(sys.argv[0], sys.argv))
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 121, in main
Sep 11 12:16:20 rocky8vm xpra[3756]:    return run_mode(script_file, cmdline, err, options, args, mode, defaults)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 455, in run_mode
Sep 11 12:16:20 rocky8vm xpra[3756]:    return do_run_mode(script_file, cmdline, error_cb, options, args, mode, defaults)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 520, in do_run_mode
Sep 11 12:16:20 rocky8vm xpra[3756]:    return run_server(script_file, cmdline, error_cb, options, args, mode, defaults)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,112    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 1919, in run_server
Sep 11 12:16:20 rocky8vm xpra[3756]:    return do_run_server(script_file, cmdline, error_cb, options, args, mode, str(display or ""), defaults)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 726, in do_run_server
Sep 11 12:16:20 rocky8vm xpra[3756]:    splash_process, progress)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 1533, in _do_run_server
Sep 11 12:16:20 rocky8vm xpra[3756]:    r = app.run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 460, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.do_run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 201, in do_run
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.main_loop.run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py", line 498, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    super(MainLoop, self).run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 2245, in call_hello_oked
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.hello_oked(proto, c, auth_caps)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 328, in hello_oked
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.proxy_auth(proto, c, auth_caps)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,113    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 364, in proxy_auth
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.proxy_session(client_proto, c, auth_caps, sessions)
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 519, in proxy_session
Sep 11 12:16:20 rocky8vm xpra[3756]:    pit.run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 62, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    super().run()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 109, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_init()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 811, in video_init
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_helper_init()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 39, in video_helper_init
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_helper.init()
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114    File "/usr/lib64/python3.6/site-packages/xpra/codecs/video_helper.py", line 254, in init
Sep 11 12:16:20 rocky8vm xpra[3756]:    self._init_from.append(traceback.format_stack())
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,114 server error processing new connection from WebSocket(wss socket: ::ffff:192.168.0.153, 14500, 0, 0 <- ::ffff:192.168.0.214, 52327, 0, 0): too late to set modules, the helper is already initialized
Sep 11 12:16:20 rocky8vm xpra[3756]: Traceback (most recent call last):
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 2245, in call_hello_oked
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.hello_oked(proto, c, auth_caps)
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 328, in hello_oked
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.proxy_auth(proto, c, auth_caps)
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 364, in proxy_auth
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.proxy_session(client_proto, c, auth_caps, sessions)
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 519, in proxy_session
Sep 11 12:16:20 rocky8vm xpra[3756]:    pit.run()
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 62, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    super().run()
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 109, in run
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_init()
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 811, in video_init
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_helper_init()
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 35, in video_helper_init
Sep 11 12:16:20 rocky8vm xpra[3756]:    self.video_helper.set_modules(video_encoders=self.video_encoder_modules)
Sep 11 12:16:20 rocky8vm xpra[3756]:  File "/usr/lib64/python3.6/site-packages/xpra/codecs/video_helper.py", line 173, in set_modules
Sep 11 12:16:20 rocky8vm xpra[3756]:    raise RuntimeError("too late to set modules, the helper is already initialized")
Sep 11 12:16:20 rocky8vm xpra[3756]: RuntimeError: too late to set modules, the helper is already initialized
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,116 Disconnecting client ::ffff:192.168.0.214, 52327, 0, 0:
Sep 11 12:16:20 rocky8vm xpra[3756]: 2023-09-11 12:16:20,116  ConnectionMessage.CONNECTION_ERROR (error accepting new connection)

Unfortunately I don't have any information in the /run/user/1000/xpra/1/server.log file from that time.

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

raise RuntimeError("too late to set modules, the helper is already initialized")

Already fixed in #3996, please wait for the next update, or apply the small patch in that ticket.

@mykeebot
Copy link
Author

mykeebot commented Sep 11, 2023

Hi totaam,

Many thanks for the input and sharing the minor patch details with me. Based on your instructions I modified the .py files as follows....

1.) I modified the /usr/lib64/python3.6/site-packages/xpra/server/mixins/encoding.py file based on the instructions from the following article...

ff3e68a#diff-f8248711f5432a2415cca7f5d8c1ca8bddd7a9e6b1b27069f342c91d0a3fb383

ScreenShot_15265

ScreenShot_15266

2.) Then I modified the /usr/lib64/python3.6/site-packages/xpra/server/source/encodings.py file based on the instructions from the following article...

e8f2390

ScreenShot_15267

ScreenShot_15268

ScreenShot_15269

3.) After that I have restarted the xpra.service....

ScreenShot_15273

...and tried to login, but I got this....

ScreenShot_15274

...and after a few seconds....

ScreenShot_15275

4.) I checked the log files...

a.) /var/log/messages

Sep 11 14:50:46 rocky8vm systemd[1]: xpra.service: Succeeded.
Sep 11 14:50:46 rocky8vm systemd[1]: Stopped Xpra System Server.
Sep 11 14:50:46 rocky8vm systemd[1]: xpra.socket: Succeeded.
Sep 11 14:50:46 rocky8vm systemd[1]: Closed Xpra Socket.
Sep 11 14:50:46 rocky8vm systemd[1]: Stopping Xpra Socket.
Sep 11 14:50:46 rocky8vm systemd[1]: Starting Xpra Socket.
Sep 11 14:50:46 rocky8vm systemd[1]: Listening on Xpra Socket.
Sep 11 14:50:46 rocky8vm systemd[1]: Started Xpra System Server.
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,480 no uinput module (not usually needed)
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,552 serving html content from '/usr/share/xpra/www'
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,557 wrote pid 6309 to '/run/xpra/proxy/server.pid'
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,595 xpra is ready.
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,602 xpra proxy server version 5.0.1-r0
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,602  uid=0 (root), gid=0 (root)
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,602  running with pid 6309 on Linux Rocky Linux 8.8 Green Obsidian
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,602 watching for applications menu changes in:
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,602  '/usr/local/share/applications'
Sep 11 14:50:46 rocky8vm xpra[6309]: 2023-09-11 14:50:46,603  '/usr/share/applications'
Sep 11 14:50:47 rocky8vm xpra[6309]: 2023-09-11 14:50:47,641 loaded 42 start menu entries from 7 sub-menus in 1.0 seconds
Sep 11 14:51:17 rocky8vm kernel: TCP: request_sock_TCP: Possible SYN flooding on port [::]:14500. Sending cookies.
Sep 11 14:51:26 rocky8vm xpra[6309]: 2023-09-11 14:51:26,623 Authentication required by PAM authenticator module
Sep 11 14:51:26 rocky8vm xpra[6309]: 2023-09-11 14:51:26,623  sending challenge using 'xor' digest over tcp connection
Sep 11 14:51:26 rocky8vm dbus-daemon[725]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.490' (uid=0 pid=6309 comm="/usr/bin/xpra proxy :14500 --daemon=no --tcp-auth=")
Sep 11 14:51:26 rocky8vm systemd[1]: Starting Fingerprint Authentication Daemon...
Sep 11 14:51:26 rocky8vm dbus-daemon[725]: [system] Successfully activated service 'net.reactivated.Fprint'
Sep 11 14:51:26 rocky8vm systemd[1]: Started Fingerprint Authentication Daemon.
Sep 11 14:51:26 rocky8vm systemd[1]: Started Session 10 of user comsearch.
Sep 11 14:51:27 rocky8vm xpra[6739]: Entering daemon mode; any further errors will be reported to:
Sep 11 14:51:27 rocky8vm xpra[6739]:  '/run/user/1000/xpra/S6734/server.log'
Sep 11 14:51:28 rocky8vm xpra[6739]: Actual display used: :4
Sep 11 14:51:28 rocky8vm xpra[6739]: Actual log file name is now: '/run/user/1000/xpra/4/server.log'
Sep 11 14:51:56 rocky8vm systemd[1]: fprintd.service: Succeeded.
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,546 Error: failed to start server subprocess:
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,546  failed to identify the new server display!
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,570 Error: wss request failure
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,570  errno=0
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,571  for client ::ffff:192.168.0.214, 58887, 0, 0:
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,571  request as hex: '1603010200010001fc0303755a4822c2ce8c2b79bc8f7d6586e396f1215d67f66f924396c36052e228ec1320f5efa06e1af785ee2c6504dcb90ff8751cb765d02f8473ae5b73828cf69ce8a10020caca130113021303c02bc02fc02cc030cca9cca8c013c014009c009d002f0035010001937a7a0000002b0007067a7a03040303000d001200100403080404010503080505010806060100170000446900050003026832000b000201000033002b0029baba000100001d0020f63422052b712ae78dc7e7f4b7e4f767b1f90c7de196466ea092d1f844ee160bff010001000005000501000000000010000e000c02683208687474702f312e3100'
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,571  [Errno 0] Error
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,588 Error: wss request failure
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,588  errno=0
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,588  for client ::ffff:192.168.0.214, 58888, 0, 0:
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,588  request as hex: '1603010200010001fc0303ca823305a9efc4e5b3efc4a74d90f3fcd400cdcae65306effc69286a60b97a2020f7401d670fab592e3d85ec2eb8efa306444fe2c92fb7ecdd6cc57449dafb5a5e0020caca130113021303c02bc02fc02cc030cca9cca8c013c014009c009d002f0035010001934a4a0000ff01000100001b0003020002000b00020100446900050003026832002b0007068a8a0304030300'
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,589  [Errno 0] Error
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,607 Error: wss request failure
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,607  errno=0
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,607  for client ::ffff:192.168.0.214, 58901, 0, 0:
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,607  request as hex: '1603010200010001fc0303b0af26147037e7d5a15595a4dd5b5019115cdcc2ec121d8d4657e21d8a6bf22c20323617426dabf7863c0d7e9c793560ebf4d66bca8be8b24d06b648d2aae0845e0020'
Sep 11 14:52:57 rocky8vm xpra[6309]: 2023-09-11 14:52:57,608  [Errno 0] Error

b.) /run/user/1000/xpra/4/server.log

2023-09-11 14:51:27,228 no uinput module (not usually needed)
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

X.Org X Server 1.20.11
X Protocol Version 11, Revision 0
Build Operating System:  4.18.0-425.3.1.el8.x86_64
Current Operating System: Linux rocky8vm 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Tue Aug 8 21:30:09 UTC 2023 x86_64
Kernel command line: BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-477.21.1.el8_8.x86_64 root=/dev/mapper/rl-root ro crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet numa=off transparent_hugepage=never
Build Date: 23 February 2023  08:27:54AM
Build ID: xorg-x11-server 1.20.11-15.el8
Current version of pixman: 0.38.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/run/user/1000/xpra/S6734/Xorg.log", Time: Mon Sep 11 14:51:27 2023
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
2023-09-11 14:51:28,775 Warning: found an existing dbus instance:
2023-09-11 14:51:28,775  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
xpra main error:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 121, in main
    return run_mode(script_file, cmdline, err, options, args, mode, defaults)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 455, in run_mode
    return do_run_mode(script_file, cmdline, error_cb, options, args, mode, defaults)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 520, in do_run_mode
    return run_server(script_file, cmdline, error_cb, options, args, mode, defaults)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 1919, in run_server
    return do_run_server(script_file, cmdline, error_cb, options, args, mode, str(display or ""), defaults)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 726, in do_run_server
    splash_process, progress)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 1462, in _do_run_server
    app = make_server(clobber)
  File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 313, in make_server
    from xpra.x11.server import XpraServer
  File "/usr/lib64/python3.6/site-packages/xpra/x11/server.py", line 34, in <module>
    from xpra.x11.x11_server_base import X11ServerBase
  File "/usr/lib64/python3.6/site-packages/xpra/x11/x11_server_base.py", line 18, in <module>
    from xpra.x11.x11_server_core import X11ServerCore, XTestPointerDevice
  File "/usr/lib64/python3.6/site-packages/xpra/x11/x11_server_core.py", line 31, in <module>
    from xpra.server.gtk_server_base import GTKServerBase
  File "/usr/lib64/python3.6/site-packages/xpra/server/gtk_server_base.py", line 26, in <module>
    from xpra.server.server_base import ServerBase
  File "/usr/lib64/python3.6/site-packages/xpra/server/server_base.py", line 80, in <module>
    SERVER_BASES = get_server_base_classes()
  File "/usr/lib64/python3.6/site-packages/xpra/server/server_base.py", line 58, in get_server_base_classes
    from xpra.server.mixins.encoding import EncodingServer
  File "/usr/lib64/python3.6/site-packages/xpra/server/mixins/encoding.py", line 59
    getVideoHelper().set_modules(video_encoders=self.video_encoders, csc_modules=self.csc_modules)
                                                                      ^
TabError: inconsistent use of tabs and spaces in indentation

Do you think I made a mistake with the .py files configuration?

Thanks,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

TabError: inconsistent use of tabs and spaces in indentation
Do you think I made a mistake with the .py files configuration?

Yes. You used tabs instead of spaces.

@mykeebot
Copy link
Author

mykeebot commented Sep 11, 2023

Hey totaam,

Thanks, now the syntax of the .py files are OK, I can login. But unfortunately I'm still getting the same error when I try to connect to the session again (after previously disconnected)....

ScreenShot_15277

Here is the /var/log/messages content....

Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,098 Authentication required by PAM authenticator module
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,098  sending challenge using 'xor' digest over tcp connection
Sep 11 16:02:22 rocky8vm dbus-daemon[715]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service' requested by ':1.438' (uid=0 pid=2831 comm="/usr/bin/xpra proxy :14500 --daemon=no --tcp-auth=")
Sep 11 16:02:22 rocky8vm systemd[1]: Starting Fingerprint Authentication Daemon...
Sep 11 16:02:22 rocky8vm dbus-daemon[715]: [system] Successfully activated service 'net.reactivated.Fprint'
Sep 11 16:02:22 rocky8vm systemd[1]: Started Fingerprint Authentication Daemon.
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,224 using threaded mode for wss client connection
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,225 started threaded proxy instance
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,225  for client wss socket: ::ffff:192.168.0.153, 14500, 0, 0 <- ::ffff:192.168.0.214, 61934, 0, 0
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,225  and server socket socket:  <- /run/user/1000/xpra/0/socket
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,225 Error: video helper modules have already been initialized
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226 from:
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/bin/xpra", line 17, in <module>
Sep 11 16:02:22 rocky8vm xpra[2831]:    sys.exit(main(sys.argv[0], sys.argv))
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 121, in main
Sep 11 16:02:22 rocky8vm xpra[2831]:    return run_mode(script_file, cmdline, err, options, args, mode, defaults)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 455, in run_mode
Sep 11 16:02:22 rocky8vm xpra[2831]:    return do_run_mode(script_file, cmdline, error_cb, options, args, mode, defaults)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 520, in do_run_mode
Sep 11 16:02:22 rocky8vm xpra[2831]:    return run_server(script_file, cmdline, error_cb, options, args, mode, defaults)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/main.py", line 1919, in run_server
Sep 11 16:02:22 rocky8vm xpra[2831]:    return do_run_server(script_file, cmdline, error_cb, options, args, mode, str(display or ""), defaults)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 726, in do_run_server
Sep 11 16:02:22 rocky8vm xpra[2831]:    splash_process, progress)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/scripts/server.py", line 1533, in _do_run_server
Sep 11 16:02:22 rocky8vm xpra[2831]:    r = app.run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 460, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.do_run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 201, in do_run
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.main_loop.run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/gi/overrides/GLib.py", line 498, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    super(MainLoop, self).run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 2245, in call_hello_oked
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.hello_oked(proto, c, auth_caps)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 328, in hello_oked
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.proxy_auth(proto, c, auth_caps)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 364, in proxy_auth
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.proxy_session(client_proto, c, auth_caps, sessions)
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 519, in proxy_session
Sep 11 16:02:22 rocky8vm xpra[2831]:    pit.run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,226    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 62, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    super().run()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,227    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 109, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_init()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,227    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 811, in video_init
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_helper_init()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,227    File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 39, in video_helper_init
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_helper.init()
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,227    File "/usr/lib64/python3.6/site-packages/xpra/codecs/video_helper.py", line 254, in init
Sep 11 16:02:22 rocky8vm xpra[2831]:    self._init_from.append(traceback.format_stack())
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,227 server error processing new connection from WebSocket(wss socket: ::ffff:192.168.0.153, 14500, 0, 0 <- ::ffff:192.168.0.214, 61934, 0, 0): too late to set modules, the helper is already initialized
Sep 11 16:02:22 rocky8vm xpra[2831]: Traceback (most recent call last):
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/server_core.py", line 2245, in call_hello_oked
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.hello_oked(proto, c, auth_caps)
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 328, in hello_oked
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.proxy_auth(proto, c, auth_caps)
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 364, in proxy_auth
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.proxy_session(client_proto, c, auth_caps, sessions)
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_server.py", line 519, in proxy_session
Sep 11 16:02:22 rocky8vm xpra[2831]:    pit.run()
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 62, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    super().run()
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 109, in run
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_init()
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance.py", line 811, in video_init
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_helper_init()
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/server/proxy/proxy_instance_thread.py", line 35, in video_helper_init
Sep 11 16:02:22 rocky8vm xpra[2831]:    self.video_helper.set_modules(video_encoders=self.video_encoder_modules)
Sep 11 16:02:22 rocky8vm xpra[2831]:  File "/usr/lib64/python3.6/site-packages/xpra/codecs/video_helper.py", line 173, in set_modules
Sep 11 16:02:22 rocky8vm xpra[2831]:    raise RuntimeError("too late to set modules, the helper is already initialized")
Sep 11 16:02:22 rocky8vm xpra[2831]: RuntimeError: too late to set modules, the helper is already initialized
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,232 Disconnecting client ::ffff:192.168.0.214, 61934, 0, 0:
Sep 11 16:02:22 rocky8vm xpra[2831]: 2023-09-11 16:02:22,232  ConnectionMessage.CONNECTION_ERROR (error accepting new connection)
Sep 11 16:02:24 rocky8vm systemd[1166]: Starting Mark boot as successful...
Sep 11 16:02:24 rocky8vm systemd[1166]: Started Mark boot as successful.
Sep 11 16:02:24 rocky8vm xpra[2831]: 2023-09-11 16:02:24,700 Request timed out: timeout('The read operation timed out',)

Thanks,
Mike

totaam added a commit that referenced this issue Sep 11, 2023
@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

RuntimeError: too late to set modules, the helper is already initialized

Ah, got it. Sorry about that.
This was caused by 8a2dc78 and should be fixed in the commit above.

totaam added a commit that referenced this issue Sep 11, 2023
@mykeebot
Copy link
Author

Should I update only the auth_test.py file?

@totaam
Copy link
Collaborator

totaam commented Sep 11, 2023

Should I update only the auth_test.py file?

The fix is a single word change: b502efe
There are no changes to the tests.

@mykeebot
Copy link
Author

Hey totaam,

Many thanks for your suggestion, it worked well! Now I can connect again to the session if I disconnected before :)

Back to the original topic, can we do something with the transparent window bug?

Thanks,
Mike

totaam added a commit that referenced this issue Sep 12, 2023
@totaam
Copy link
Collaborator

totaam commented Sep 12, 2023

@mykeebot sorry it's taken so long.
I've reproduced the problem, the correct fix is in the commit above.

totaam added a commit that referenced this issue Sep 12, 2023
@totaam
Copy link
Collaborator

totaam commented Sep 12, 2023

FYI: there are beta builds with these fixes and many more here: https://xpra.org/beta/
Both from the v5.x branch (5.0.2) and git master (r34282 or later).

@mykeebot
Copy link
Author

Dear totaam,

I was searching for the instance_base.py file but I cannot find any on my rocky 8 server. This is the content of the proxy folder...

ScreenShot_15282

Should I create this file as a new one?

Thanks,
Mike

@mykeebot
Copy link
Author

Please ignore my previous comment, I see now I have to edit the proxy_instance.py file.

@totaam
Copy link
Collaborator

totaam commented Sep 12, 2023

@mykeebot you're trying to apply a changeset for git master on v5.x
The v5.x changeset is this one: 7b92b21
But using the pre-built beta builds is much easier.

@mykeebot
Copy link
Author

@totaam now we are cooking! :)

ScreenShot_15283

I modified the py file manually and it worked for the first time, but yes, with the pre-built builds would be much easier!

Many thanks for rolling up all the cases I have reported here in this topic in the past week!

My last question is, will these changes be the part of the next official build? If so, when can we expect for the official build? I mean, if I install Xpra from scratch from online repo on a fresh rocky 8, all of these issues should not come up, right? As well as the downgraded xpra-html5 package.

Thanks again,
Mike

@totaam
Copy link
Collaborator

totaam commented Sep 12, 2023

Not long, only a couple more bug fixes and 5.0.2 will be released.

@totaam totaam closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants