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

File "E:/xpra/xpra/scripts/main.py", line 2145, in run_remote_server: FileNotFoundError: [Errno 2] No such file or directory #4026

Closed
stdedos opened this issue Oct 5, 2023 · 7 comments

Comments

@stdedos
Copy link
Collaborator

stdedos commented Oct 5, 2023

I'm seeing again the same

"Xpra-x86_64_6.0-r34211\xpra_cmd" shadow ssh://user@ip/1 --ssh="plink -ssh -agent" --modal-windows=no --headerbar=off --source-start=gnome-keyring-daemon --title="@title@ on @@/@server-display@" --encodings=-webp --start="nohup systemd-inhibit --what=handle-lid-switch sleep 1d >/dev/null 2>&1 & inhibit_pid=\$! ; xpra xwait ; kill -9 \$inhibit_pid ; nohup systemd-inhibit --what=handle-lid-switch sleep 5m >/dev/null 2>&1 &" --microphone=off --speaker=off --webcam=no --pulseaudio=no --key-shortcut=Shift+F2:toggle_pointer_grab

...

2023-09-17 11:11:32,732  Actual log file name is now: '/run/user/1000/xpra/2/server.log'
CONNECTION_LOST, reconnecting
2023-09-17 11:11:33,252 xpra main error:
Traceback (most recent call last):
  File "E:/xpra/xpra/scripts/main.py", line 123, in main
  File "E:/xpra/xpra/scripts/main.py", line 457, in run_mode
  File "E:/xpra/xpra/scripts/main.py", line 497, in do_run_mode
  File "E:/xpra/xpra/scripts/main.py", line 2145, in run_remote_server
FileNotFoundError: [Errno 2] No such file or directory

Same cause or different issue?

Originally posted by @stdedos in #3381 (comment)

@stdedos
Copy link
Collaborator Author

stdedos commented Oct 5, 2023

It seems that 2cddeaa is not helping:

CONNECTION_LOST, reconnecting
2023-10-06 02:16:14,382 xpra main error:
Traceback (most recent call last):
  File "E:/xpra/xpra/scripts/main.py", line 126, in main
  File "E:/xpra/xpra/scripts/main.py", line 457, in run_mode
  File "E:/xpra/xpra/scripts/main.py", line 508, in do_run_mode
  File "E:/xpra/xpra/scripts/main.py", line 2158, in run_remote_server
FileNotFoundError: [Errno 2] No such file or directory

"was: Xpra-x86_64_6.0-r34433\xpra_cmd" shadow ssh://user@ip/1 --ssh="plink -ssh -agent" --modal-windows=no --headerbar=off --source-start=gnome-keyring-daemon --title="@title@ on @@/@server-display@" --encodings=-webp --start="nohup systemd-inhibit --what=handle-lid-switch sleep 1d >/dev/null 2>&1 & inhibit_pid=\$! ; xpra xwait ; kill -9 \$inhibit_pid ; nohup systemd-inhibit --what=handle-lid-switch sleep 5m >/dev/null 2>&1 &" --microphone=off --speaker=off --webcam=no --pulseaudio=no --opengl=no --key-shortcut=Shift+F2:toggle_pointer_grab

totaam added a commit that referenced this issue Oct 8, 2023
totaam added a commit that referenced this issue Oct 8, 2023
@totaam
Copy link
Collaborator

totaam commented Oct 8, 2023

Only just noticed that you're running from a relative path..
Hopefully the last commit above will fix that, if not then the other commit will at least show us what it's trying to run.

totaam added a commit that referenced this issue Oct 10, 2023
totaam added a commit that referenced this issue Oct 10, 2023
@totaam
Copy link
Collaborator

totaam commented Oct 19, 2023

I assume that this is fixed. Please re-open if not.

@totaam totaam closed this as completed Oct 19, 2023
@stdedos
Copy link
Collaborator Author

stdedos commented Oct 19, 2023

I haven't had access to a Windows computer yet to retry 😓 (and also be able to reliably connect/shutdown it)

I have this still open, looking at it

@stdedos
Copy link
Collaborator Author

stdedos commented Nov 11, 2023

ImportError: cannot import name 'InfoTimerClient' from 'xpra.client.base.gobject' (E:\Stdedos\Downloads\Archived\xpra\Xpra-x86_64_6.0-r34669M\lib\xpra\client\base\gobject.pyc)
2023-11-11 22:20:56,361 server requested disconnect:
2023-11-11 22:20:56,362  ConnectionMessage.SERVER_SHUTDOWN
2023-11-11 22:20:56,368 remote SSH stderr:
2023-11-11 22:20:56,368  Entering daemon mode; any further errors will be reported to:
2023-11-11 22:20:56,373    '/run/user/1000/xpra/1/server.log'

"was: Xpra-x86_64_6.0-r34669M\xpra_cmd" shadow ssh://user@ip/1 --ssh="plink -ssh -agent" --modal-windows=no --headerbar=off --source-start=gnome-keyring-daemon --title="@title@ on @@/@server-display@" --encodings=-webp --start="nohup systemd-inhibit --what=handle-lid-switch sleep 1d >/dev/null 2>&1 & inhibit_pid=\$! ; xpra xwait ; kill -9 \$inhibit_pid ; nohup systemd-inhibit --what=handle-lid-switch sleep 5m >/dev/null 2>&1 &" --microphone=off --speaker=off --webcam=no --pulseaudio=no --opengl=no --min-speed=70 --key-shortcut=Shift+F2:toggle_pointer_grab

but when loosing connectivity*, I get:

(xpra_cmd:7252): Pango-WARNING **: 22:21:42.048: couldn't load font "URW Bookman L Not-Rotated 52.76171875", falling back to "Sans Not-Rotated 52.76171875", expect ugly output.
2023-11-11 22:21:49,622 server is not responding, drawing spinners over the windows
2023-11-11 22:22:11,231 remote SSH stderr:
2023-11-11 22:22:11,233  Entering daemon mode; any further errors will be reported to:
2023-11-11 22:22:11,234    '/run/user/1000/xpra/1/server.log'
CONNECTION_LOST, reconnecting
failed to re-connect using 'E:\\User\\Downloads\\Archived\\xpra\\Xpra-x86_64_6.0-r34669M\\Xpra-x86_64_6.0-r34669M\\xpra_cmd.exe'

"was: Xpra-x86_64_6.0-r34669M\xpra_cmd" shadow ssh://user@ip/1 --ssh="plink -ssh -agent" --modal-windows=no --headerbar=off --source-start=gnome-keyring-daemon --title="@title@ on @@/@server-display@" --encodings=-webp --start="nohup systemd-inhibit --what=handle-lid-switch sleep 1d >/dev/null 2>&1 & inhibit_pid=\$! ; xpra xwait ; kill -9 \$inhibit_pid ; nohup systemd-inhibit --what=handle-lid-switch sleep 5m >/dev/null 2>&1 &" --microphone=off --speaker=off --webcam=no --pulseaudio=no --opengl=no --min-speed=70 --key-shortcut=Shift+F2:toggle_pointer_grab

*loosing connectivity: Killing the network

@stdedos stdedos reopened this Nov 11, 2023
@totaam
Copy link
Collaborator

totaam commented Nov 12, 2023

ImportError: cannot import name 'InfoTimerClient'

Oops, fixed in 06def20 - that's #4051

failed to re-connect using 'E:\\User\\Downloads\\Archived\\xpra\\Xpra-x86_64_6.0-r34669M\\Xpra-x86_64_6.0-r34669M\\xpra_cmd.exe'

This path looks like it has the same directory twice? PITA.
I think that the exe wrapper changes directory before we get control.
8f510e4 should work around that, this is for MS Windows only.

@totaam
Copy link
Collaborator

totaam commented Dec 3, 2023

I believe this is fixed, please re-open if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants