Connection refused 111

Forums / NoMachine for Linux / Connection refused 111

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20739
    Avatargabriele
    Participant

    I have a VPS with Linux ubuntu 16 and NoMachine has always worked for months. From this morning, when I connect to NoMachine gives me the error Connection Refused 111.

    I’m not very experienced in Linux, but I did not make any changes except for system updates.

    I send you the syslog file.

    How can I solve?

    #20741
    AvatarBritgirl
    Keymaster

    Hi Gabriele,

    we’ll use the logs file you submitted directly to us. Thanks!

    #20742
    Avatargabriele
    Participant

    Dec 10 08:34:35 AnnaServer systemd[1]: Starting Fail2Ban Service…
    Dec 10 08:34:35 AnnaServer systemd[1]: Started Unattended Upgrades Shutdown.
    Dec 10 08:34:35 AnnaServer systemd[1]: Starting OpenBSD Secure Shell server…
    Dec 10 08:34:35 AnnaServer systemd[1]: Started OpenBSD Secure Shell server.
    Dec 10 08:34:35 AnnaServer systemd[1]: Started NoMachine Server daemon.
    Dec 10 08:34:36 AnnaServer fail2ban-client[1343]: 2018-12-10 08:34:36,256 fail2ban.server         [1384]: INFO    Starting Fail2ban v0.9.3
    Dec 10 08:34:36 AnnaServer fail2ban-client[1343]: 2018-12-10 08:34:36,259 fail2ban.server         [1384]: INFO    Starting in daemon mode
    Dec 10 08:34:36 AnnaServer systemd[1]: Started Fail2Ban Service.
    Dec 10 08:34:36 AnnaServer kernel: [   10.366686] ip_tables: (C) 2000-2006 Netfilter Core Team
    Dec 10 08:34:37 AnnaServer nxserver[1359]: NX> 595 Cannot set ownership for user nx
    Dec 10 08:34:37 AnnaServer nxserver[1359]: NX> 595 Permission denied
    Dec 10 08:34:37 AnnaServer nxserver[1359]: NX> 500 ERROR: Last operation failed.
    Dec 10 08:34:37 AnnaServer systemd[1]: nxserver.service: Service hold-off time over, scheduling restart.
    Dec 10 08:34:37 AnnaServer systemd[1]: Stopped NoMachine Server daemon.
    Dec 10 08:34:37 AnnaServer systemd[1]: Started NoMachine Server daemon.
    Dec 10 08:34:38 AnnaServer nxserver[1435]: NX> 595 Cannot set ownership for user nx
    Dec 10 08:34:38 AnnaServer nxserver[1435]: NX> 595 Permission denied
    Dec 10 08:34:38 AnnaServer nxserver[1435]: NX> 500 ERROR: Last operation failed.
    Dec 10 08:34:38 AnnaServer systemd[1]: nxserver.service: Service hold-off time over, scheduling restart.
    Dec 10 08:34:38 AnnaServer systemd[1]: Stopped NoMachine Server daemon.
    Dec 10 08:34:38 AnnaServer systemd[1]: Started NoMachine Server daemon.
    Dec 10 08:34:39 AnnaServer nxserver[1469]: NX> 595 Cannot set ownership for user nx
    Dec 10 08:34:39 AnnaServer nxserver[1469]: NX> 595 Permission denied
    Dec 10 08:34:39 AnnaServer nxserver[1469]: NX> 500 ERROR: Last operation failed.
    Dec 10 08:34:40 AnnaServer systemd[1]: nxserver.service: Service hold-off time over, scheduling restart.
    Dec 10 08:34:40 AnnaServer systemd[1]: Stopped NoMachine Server daemon.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started NoMachine Server daemon.
    Dec 10 08:34:40 AnnaServer NetworkManager[877]: <info>  [1544427280.6097] manager: startup complete
    Dec 10 08:34:40 AnnaServer systemd[1]: Started Network Manager Wait Online.
    Dec 10 08:34:40 AnnaServer systemd[1]: Reached target Network is Online.
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting /etc/rc.local Compatibility…
    Dec 10 08:34:40 AnnaServer systemd[1]: Started crash report submission daemon.
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting iSCSI initiator daemon (iscsid)…
    Dec 10 08:34:40 AnnaServer whoopsie[1525]: [08:34:40] Using lock path: /var/lock/whoopsie/lock
    Dec 10 08:34:40 AnnaServer iscsid: iSCSI logger with pid=1559 started!
    Dec 10 08:34:40 AnnaServer systemd[1]: iscsid.service: Failed to read PID from file /run/iscsid.pid: Invalid argument
    Dec 10 08:34:40 AnnaServer iscsid: iSCSI daemon with pid=1560 started!
    Dec 10 08:34:40 AnnaServer whoopsie[1525]: [08:34:40] offline
    Dec 10 08:34:40 AnnaServer systemd[1]: Started iSCSI initiator daemon (iscsid).
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting Login to default iSCSI targets…
    Dec 10 08:34:40 AnnaServer iscsiadm[1569]: iscsiadm: No records found
    Dec 10 08:34:40 AnnaServer systemd[1]: Started Login to default iSCSI targets.
    Dec 10 08:34:40 AnnaServer systemd[1]: Reached target Remote File Systems (Pre).
    Dec 10 08:34:40 AnnaServer systemd[1]: Reached target Remote File Systems.
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting Permit User Sessions…
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting LSB: Start firebird superclassic server…
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting LSB: automatic crash report generation…
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting LSB: Set the CPU Frequency Scaling governor to “ondemand”…
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting LSB: Start/stop sysstat’s sadc…
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting LSB: daemon to balance interrupts for SMP systems…
    Dec 10 08:34:40 AnnaServer systemd[1]: Started Permit User Sessions.
    Dec 10 08:34:40 AnnaServer systemd[1]: Starting Light Display Manager…
    Dec 10 08:34:40 AnnaServer sysstat[1578]:  * Starting the system activity data collector sadc
    Dec 10 08:34:40 AnnaServer systemd[1]: Started LSB: Set the CPU Frequency Scaling governor to “ondemand”.
    Dec 10 08:34:40 AnnaServer apport[1576]:  * Starting automatic crash report generation: apport
    Dec 10 08:34:40 AnnaServer firebird2.5-superclassic[1574]:  * Starting Firebird 2.5 superclassic server…
    Dec 10 08:34:40 AnnaServer irqbalance[1580]:  * Starting SMP IRQ Balancer: irqbalance
    Dec 10 08:34:40 AnnaServer sysstat[1578]:    …done.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started LSB: Start/stop sysstat’s sadc.
    Dec 10 08:34:40 AnnaServer /usr/sbin/irqbalance: Balancing is ineffective on systems with a single cpu.  Shutting down
    Dec 10 08:34:40 AnnaServer irqbalance[1580]:    …done.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started LSB: daemon to balance interrupts for SMP systems.
    Dec 10 08:34:40 AnnaServer apport[1576]:    …done.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started LSB: automatic crash report generation.
    Dec 10 08:34:40 AnnaServer firebird2.5-superclassic[1574]:    …done.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started LSB: Start firebird superclassic server.
    Dec 10 08:34:40 AnnaServer systemd[1]: Started Light Display Manager.
    Dec 10 08:34:41 AnnaServer nxserver[1503]: NX> 595 Cannot set ownership for user nx
    Dec 10 08:34:41 AnnaServer nxserver[1503]: NX> 595 Permission denied
    Dec 10 08:34:41 AnnaServer nxserver[1503]: NX> 500 ERROR: Last operation failed.

    #20745
    Avatarmlyn
    Contributor

    Hello,

    please send logs to: forum[at]nomachine[dot]com.
    Full instructions about collecting logs: https://www.nomachine.com/DT07M00098.

    The most important is please send directory /usr/NX/var/log.

    Call command sudo /etc/NX/nxserver --startup should solve this problem with permission and start NoMachine.

    If for some reason you still have the same error call:

    in directory /usr/NX/var/db call:

    sudo ls -la running/ failed/ closed/

    and provide output this command to us, and then in the same dir call:

    sudo chown nx:nx running/.lock.special failed/.lock.special closed/.lock.special

    #20753
    Avatarmlyn
    Contributor

    Hello,

    we just reproduced this issue. To solve it, open a terminal and make sure you are in directory /usr/NX/var/db. Then call:
    sudo chown nx:nx unknown

     

    #20760
    Avatargabriele
    Participant

    It works.
    I’ve been a small programmer and I’ve been using NoMachine for years on my server and I’ve never had problems except this one.

    #20761
    Avatargabriele
    Participant

    And assistance in case of problems is also excellent. They solved it.

    #20789
    AvatarBritgirl
    Keymaster

    There is a Trouble Report open for this particular issue. You can follow it here: https://www.nomachine.com/TR12P09040.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic was marked as closed, you can't post.