Forum / NoMachine for Mac / Could not connect to the server. Error is 22: Invalid argument
Tagged: nomachine
- This topic has 9 replies, 5 voices, and was last updated 3 years, 3 months ago by Tor.
-
AuthorPosts
-
June 20, 2021 at 22:15 #34096carolycParticipant
I checked my remote computer that the NX server is enabled:
NX> 111 New connections to NoMachine server are enabled.
NX> 162 Enabled service: nxserver.
NX> 162 Enabled service: nxnode.
NX> 162 Enabled service: nxd.
NX> 162 Enabled service: nxhtd.
However, I still encounter the problem that could not connect to the server. Here is the full log:Info: Starting NoMachine version 7.6.2.
Info: Loading settings from ‘/Users/caroline/.nx/config/player.cfg’.
Info: Loaded translation files for ‘English’.
894 259 01:31:32 224.979 Main: Creating the client session.
894 259 01:31:32 225.073 ClientSession: Initializing session at 0x7f8087026a00.
894 259 01:31:33 456.071 ClientSession: Initialized session at 0x7f8087026a00.
894 259 01:31:33 458.213 ClientSession: Starting session at 0x7f8087026a00.
894 259 01:31:33 499.411 ClientSession: Going to start session ‘/Users/caroline/Documents/NoMachine/Connection to 10.136.16.154.nxs’.
894 259 01:31:33 505.686 ClientThread: Creating new thread.
894 259 01:31:33 508.010 Connection: Initializing connection at 0x7f8086c466e0.
895 259 01:31:34 520.498 NetworkProxy: WARNING! Failed waiting for socket.
895 259 01:31:34 521.340 NetworkProxy: WARNING! Error is 0, ‘No error’.
894 259 01:31:34 522.448 Connection: Initialized connection at 0x7f8086c466e0.
894 259 01:31:34 522.529 Connection: Starting connection at 0x7f8086c466e0.
894 259 01:31:34 522.553 ClientDaemonConnector: Starting a new connection to host ‘10.136.16.154’ on port ‘4000’.
LogStream: WARNING! Thread 130055 appended null string.
894 130055 01:31:34 523.153 TcpConnector: ERROR! Bad value ‘(nil)’ in method ‘TcpConnector::setHost()’ context [D].
LogStream: WARNING! Thread 130055 appended null string.
Error: Bad value ‘(nil)’ in method ‘TcpConnector::setHost()’ context [D].
894 130055 01:31:34 523.301 TcpConnector: ERROR! Bad value ‘-1’ in method ‘TcpConnector::setPort()’ context [D].
Error: Bad value ‘-1’ in method ‘TcpConnector::setPort()’ context [D].
894 130055 01:31:34 523.341 DaemonConnector/DaemonConnector: ERROR! Failed to set up the requested service.
Error: Failed to set up the requested service.
894 259 01:31:34 523.215 Connection: Started connection at 0x7f8086c466e0.
894 259 01:31:34 530.725 ClientSession: Started session at 0x7f8087026a00.
Info: Slave server running with pid 88839.
Info: Listening to slave connections on port 28426.
894 259 01:31:34 531.957 Main: Entering the GUI event loop.
894 259 01:31:34 612.279 Connection: Connection at 0x7f8086c466e0 failed.
894 259 01:31:34 612.335 ClientSession: Runnable at 0x7f8086c466e0 caused the session at 0x7f8087026a00 to fail.
894 259 01:31:34 612.348 ClientSession: Failing reason is ‘Could not connect to the server.Error is 22: Invalid argument’.
894 259 01:31:34 621.641 ClientSession: Stopping session at 0x7f8087026a00.
Info: Slave server running with pid 129031.
Info: Listening to slave connections on port 21062.
894 259 01:31:34 664.641 Connection: Stopping connection at 0x7f8086c466e0.
894 259 01:31:34 664.740 ClientDaemonConnector: Stopping the current connection.
894 259 01:31:34 664.776 Connection: Stopped connection at 0x7f8086c466e0.
894 259 01:31:34 674.327 ClientSession: Stopped session at 0x7f8087026a00.
894 63747 01:31:37 209.494 ClientUpnp: WARNING! Mapping of port ‘4503’ failed after ‘3756’ ms.
894 63747 01:31:40 964.321 ClientUpnp: WARNING! Mapping of port ‘4503’ failed after ‘3755’ ms.2021-06-21 01:31:44.955 nxplayer[894:10319] *** WARNING: Textured window <OverlayWindow: 0x7f80888cbee0> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow’s -titlebarAppearsTransparent=YES instead.
June 21, 2021 at 14:59 #34114CarinParticipantHi carolyc,
Can you tell us if you’re setting a proxy in your player configuration? Thanks!
June 21, 2021 at 18:38 #34118carolycParticipantHi Carin,
Thank you for your quick reply. You are right I haven’t set my proxy.
However, after I enabled the auto-proxy discovery(Mac OS), I still encountered the error (see attachment).
My remote computer is Ubuntu.June 22, 2021 at 10:34 #34130CarinParticipantHi carolyc,
It looks like the file failed to attach. Do you mind sending it directly to forum[at]nomachine[dot]com? Please add the title of the topic in the email subject. Thanks!
June 22, 2021 at 17:17 #34145carolycParticipantIn case you can’t see it, I pasted it here.
Info: Starting NoMachine version 7.6.2.
Info: Loading settings from ‘/Users/caroline/.nx/config/player.cfg’.
Info: Loaded translation files for ‘English’.
5525 259 13:34:26 875.408 Main: Creating the client session.
5525 259 13:34:26 875.502 ClientSession: Initializing session at 0x7f9681008e00.
5525 259 13:34:28 043.472 ClientSession: Initialized session at 0x7f9681008e00.
5525 259 13:34:28 045.606 ClientSession: Starting session at 0x7f9681008e00.
5525 259 13:34:28 073.840 ClientSession: Going to start session ‘/Users/caroline/Documents/NoMachine/Connection to 10.136.16.154.nxs’.
5525 259 13:34:28 078.660 ClientThread: Creating new thread.
5525 259 13:34:28 080.801 Connection: Initializing connection at 0x7f9680d6c100.
5526 259 13:34:29 093.526 NetworkProxy: WARNING! Failed waiting for socket.
5526 259 13:34:29 094.370 NetworkProxy: WARNING! Error is 0, ‘No error’.
5525 259 13:34:29 095.964 Connection: Initialized connection at 0x7f9680d6c100.
5525 259 13:34:29 096.054 Connection: Starting connection at 0x7f9680d6c100.
5525 259 13:34:29 096.078 ClientDaemonConnector: Starting a new connection to host ‘10.136.16.154’ on port ‘4000’.
LogStream: WARNING! Thread 64263 appended null string.
5525 64263 13:34:29 096.599 TcpConnector: ERROR! Bad value ‘(nil)’ in method ‘TcpConnector::setHost()’ context [D].
LogStream: WARNING! Thread 64263 appended null string.
Error: Bad value ‘(nil)’ in method ‘TcpConnector::setHost()’ context [D].
5525 64263 13:34:29 096.708 TcpConnector: ERROR! Bad value ‘-1’ in method ‘TcpConnector::setPort()’ context [D].
5525 259 13:34:29 096.642 Connection: Started connection at 0x7f9680d6c100.
Error: Bad value ‘-1’ in method ‘TcpConnector::setPort()’ context [D].
5525 64263 13:34:29 096.852 DaemonConnector/DaemonConnector: ERROR! Failed to set up the requested service.
Error: Failed to set up the requested service.
5525 259 13:34:29 104.125 ClientSession: Started session at 0x7f9681008e00.
Info: Slave server running with pid 65543.
Info: Listening to slave connections on port 46084.
5525 259 13:34:29 105.468 Main: Entering the GUI event loop.
5525 259 13:34:29 167.374 Connection: Connection at 0x7f9680d6c100 failed.
5525 259 13:34:29 167.412 ClientSession: Runnable at 0x7f9680d6c100 caused the session at 0x7f9681008e00 to fail.
5525 259 13:34:29 167.424 ClientSession: Failing reason is ‘Could not connect to the server.Error is 22: Invalid argument’.
5525 259 13:34:29 174.790 ClientSession: Stopping session at 0x7f9681008e00.
Info: Slave server running with pid 65031.
Info: Listening to slave connections on port 62995.
5525 259 13:34:29 226.041 Connection: Stopping connection at 0x7f9680d6c100.
5525 259 13:34:29 226.208 ClientDaemonConnector: Stopping the current connection.
5525 259 13:34:29 226.243 Connection: Stopped connection at 0x7f9680d6c100.
5525 259 13:34:29 236.418 ClientSession: Stopped session at 0x7f9681008e00.
5525 67843 13:34:30 798.192 ClientUpnp: WARNING! Mapping of port ‘4503’ failed after ‘2756’ ms.
5525 67843 13:34:33 552.136 ClientUpnp: WARNING! Mapping of port ‘4503’ failed after ‘2754’ ms.Attachments:
June 25, 2021 at 10:49 #34193CarinParticipantHi carolyc,
Can you send us your player configuration (.nx directory) and session file (.nxs file)? Please remove the stored password in the .nxs file. Thanks!
July 21, 2021 at 14:29 #34546ycy1164656ParticipantHi, is this problem solved?
I also had this same problem. My situation is NoMachine with zerotier, this error 22 occurred when I enable proxy no matter I chose “use system configuration“ nor “automatic configuration” even the LAN connection would show this error message, but if I uncheck the proxy, every connection is normal.
July 26, 2021 at 17:03 #34585carolycParticipantHi Carlin, here is my session file and config file
Thank you!
July 26, 2021 at 17:10 #34590BritgirlKeymasterI’ve deleted these attachments for your own security – it’s always best to remove saved credentials when sharing such files in a public forum. We’ll get back to you soon on what the problem could be.
July 28, 2021 at 19:30 #34652TorParticipantHi. The error printed by the client is misleading, it should have stated clearly that there is a problem with the proxy configuration. We’ve documented this wrong error reporting here:
https://www.nomachine.com/TR07S10321
As for the reason why the proxy configuration is wrong, this is not clear yet. Can you try to select “Use system proxy setting” instead of “Automatic proxy configuration”? Is your system actually configured to use a proxy?
If you’re not sure about it but you know proxy parameters, you can select the manual configuration and fill it with the correct proxy host and port. -
AuthorPosts
This topic was marked as solved, you can't post.