Redis error after time

Forum / NoMachine for Linux / Redis error after time

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46597
    pumpi
    Participant

    Hello NoMachine Forum,

    I’m running Debian within a Docker container with NoMachine installed. Recently, I updated my NoMachine version from 7.9 to 8.10, and since then, I’ve been encountering a Redis write error, albeit not immediately.

    Upon restarting the Docker container, everything operates smoothly for several hours. However, after a few minutes of connection, I notice a Redis error in the logs. While I’m logged in, I don’t experience any issues, but when I log out and attempt to reconnect, I encounter a timeout. A Docker restart resolves the problem temporarily, but the Redis error resurfaces after a few minutes.

    ——– The Log ———

    29 29 17:22:24 910.980 Redis: Server started, Redis version 3.0.7.

    29 29 17:22:24 911.292 Redis: DB loaded from disk: 0.000 seconds.

    29 29 2024-01-04 17:22:24 938.194 NXSERVER ERROR! setSSHStatus: Cannot unlink ‘/usr/NX/etc/sshstatus’: Permission denied

    29 29 2024-01-04 17:22:24 948.469 NXSERVER Starting LS 8.10.1 and services.

    29 29 2024-01-04 17:22:24 948.510 NXSERVER System information: Debian, standalone.

    29 29 2024-01-04 17:22:24 953.190 ServerDBusConnect: ERROR! Connection failed: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory .

    29 53 2024-01-04 17:22:24 953.397 ServerDBusMethod: WARNING! Connection not initialized.

    81 81 2024-01-04 17:23:19 858.602 NXSERVER Connected from remote machine ‘x.x.x.x’ using protocol ‘NX’.

    Info: Handler started with pid 81 on Thu Jan  4 17:23:19 2024.

    Info: Handling connection from x.x.x.x port 53515 on Thu Jan  4 17:23:19 2024.

    81 81 2024-01-04 17:23:20 101.168 NXSERVER User ‘dev’ logged in from ‘x.x.x.x’ using authentication method NX-password.

    117 117 2024-01-04 17:23:20 547.129 NXSERVER Connected from remote machine ‘x.x.x.x’ using protocol ‘NX’.

    146 146 17:23:20 649 nxexecExecNode: WARNING! Failed setting priority ‘-20’.

    609 609 17:23:21 413 nxexecExecNode: WARNING! Failed setting priority ‘-20’.

    117 117 2024-01-04 17:23:21 675.561 NXSERVER WARNING! NXLocalSession: Cannot retrieve node socket for session C971B2AF441522CCA3817AC4AE433371.

    Info: Connection from x.x.x.x port 53515 closed on Thu Jan  4 17:23:21 2024.

    Info: Handler with pid 81 terminated on Thu Jan  4 17:23:21 2024.

    29 29 17:27:25 052.073 Redis: 100 changes in 300 seconds. Saving….

    836 836 17:27:25 054.445 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:25 154.249 Redis: Background saving error.

    29 29 17:27:31 064.318 Redis: 100 changes in 300 seconds. Saving….

    837 837 17:27:31 066.702 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:31 166.448 Redis: Background saving error.

    29 29 17:27:37 074.033 Redis: 100 changes in 300 seconds. Saving….

    838 838 17:27:37 076.384 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:37 176.152 Redis: Background saving error.

    29 29 17:27:43 084.071 Redis: 100 changes in 300 seconds. Saving….

    839 839 17:27:43 086.445 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:43 186.214 Redis: Background saving error.

    29 29 17:27:49 094.830 Redis: 100 changes in 300 seconds. Saving….

    840 840 17:27:49 097.185 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:49 196.959 Redis: Background saving error.

    29 29 17:27:55 006.117 Redis: 100 changes in 300 seconds. Saving….

    841 841 17:27:55 008.489 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:27:55 108.240 Redis: Background saving error.

    29 29 17:28:01 016.533 Redis: 100 changes in 300 seconds. Saving….

    842 842 17:28:01 018.913 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:28:01 118.655 Redis: Background saving error.

    29 29 17:28:07 027.093 Redis: 100 changes in 300 seconds. Saving….

    843 843 17:28:07 029.476 Redis: Failed opening .rdb for saving: Bad file descriptor.

    29 29 17:28:07 129.226 Redis: Background saving error.

    #46727
    Britgirl
    Keymaster

    The recurring Redis errors like Failed opening .rdb for saving: Bad file descriptor suggest that Redis is unable to write to its dump file (.rdb).  This could be due to insufficient permissions, disk space issues, or problems with the file system within the Docker container.  Here are some steps to troubleshoot:

    i) Check Disk Space: Ensure there’s enough disk space in the Docker container.

    ii) Check /usr/NX/etc directory permissions and ownership. Make sure this path is accessible and writable by user nx.

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

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