Error 'Cannot create a new display' occurs when hostname is very long
When the hostname or username is longer than about 60 characters, users connecting by NoMachine to the remote physical desktop get error 'Cannot create a new display'.
This happens when the NoMachine display agent creates its own display for allowing users to connect to the remote desktop even if the X server is not running.
Server logs report a message like:
397 397 2022-03-29 17:35:28 917.435 NXSERVER startSessionForUserAndWaitForConnected: read from virtual server 'NX> 700 Session id: ip-122-222-222-222.xx-wewewe-1.aeraweweqweqwe.sererwerwer-1001-39EA99357143BB88CD3294D6CEDB0DF6\nNX> 705 Session display: 1001\nNX> 701 Proxy cookie: 0B6AD3E7C42F68956BCC972B09157AF1\nNX> 702 Proxy IP: 127.0.0.1\nNX> 706 Agent cookie: 0B6AD3E7C42F68956BCC972B09157AF1\nNX> 704 Session cache: nxvfb\nNX> 728 Session caption: NX - mailto:nxadmin@ip-122-222-222-222.xx-wewewe-1.aeraweweqweqwe.sererwerwer:1001 - sadmin@nxFrameBuffer\nNX> 707 SSL tunneling: 0\nNX> 708 Subscription: LEDEN/None\nNX> 710 Se'.
397 397 2022-03-29 17:35:28 917.939 NXSERVER ERROR! NXFrameBuffer failed to start.
As a temporary workaround, adopt a shorter hostname and username.
SOLVED, Released in version 8.0.168
