Server.lic license file — alternative location?

Forums / NoMachine for Linux / Server.lic license file — alternative location?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #37788
    vragosta
    Participant

    Hello,

    We deploy the NoMachine application to several hundred Linux workstations. When users upgrade, the server.lic license file is sometimes lost, resulting in the nxserver daemon not starting. Is there an alternative location that nxserver can / will look for the server.lic license file, that will not be affected by uninstalling / upgrading NoMachine?

    Thank you,

    Vincent

    #37820
    Britgirl
    Keymaster

    The licenses cannot be stored in another location. However, upgrading /updating the software as per the documentation’s instructions is a safe procedure and does not touch the server.lic files unless users remove the entire .nx directory.

    #38069
    vragosta
    Participant

    Hello — I just updated NoMachine, via the NoMachine interface, and the /usr/NX/etc/server.lic and /usr/NX/etc/node.lic files, which were present before the upgrade, are no longer present. Is this a bug?

    Thank you,

    Vincent

    #38096
    zaq
    Contributor

    Hello Vragosta,

    We weren’t able to reproduce the error.

    Could you gather logs from the affected host:

    $ sudo tar cvfz NoMachine-log.tar.gz /usr/NX/var/log

    and send to forum[at]nomachine[dot]com please?

    #38120
    vragosta
    Participant

    Hello, please find attached the requested log files.

    Thank you,

    Vincent

    #38125
    zaq
    Contributor

    Hi,

    In log files you have a line:

    NX> 701 Running: '/etc/NX/nxnode' --validate.

    I was able to reproduce it only when:
    – I don’t have /usr/NX/etc/node.lic,
    – but I have /usr/NX/etc/node.lic.sample.

    I haven’t reproduced a situation with disappearing server.lic. Probably there is also something wrong
    with your file. Maybe node.lic and server.lic were from different NoMachine products(?)

    Before update, your /usr/NX/etc/ lic files should look like this:

    $ ls -l /usr/NX/etc/*lic*
    -r-------- 1 nx   root 885 mar 31 18:35 /usr/NX/etc/node.lic
    -r-------- 1 root root 894 mar 31 18:35 /usr/NX/etc/node.lic.backup
    -r-------- 1 nx   root 817 mar 31 18:34 /usr/NX/etc/server.lic
    -r-------- 1 root root 823 mar 31 18:34 /usr/NX/etc/server.lic.backup
    $ sudo grep "Product Id:" /usr/NX/etc/*lic*
    /usr/NX/etc/node.lic:Product Id:            LEDSN
    /usr/NX/etc/node.lic.backup:Product Id:             LEDEN
    /usr/NX/etc/server.lic:Product Id:            LEDS
    /usr/NX/etc/server.lic.backup:Product Id:             LEDE

    There could be missing *lic.backup files if you didn’t use nxplayer’s GUI for replacing licenses.

    #38285
    vragosta
    Participant

    Before update, your /usr/NX/etc/ lic files should look like this:

    If I dpkg install the .deb installer, I see no backup files listed:

    blah@raven-5820:~$ ls -l /usr/NX/etc/*lic*
    
    -r-------- 1 nx root 876 Oct 7 2021 /usr/NX/etc/node.lic
    
    -r-------- 1 nx root 809 Oct 7 2021 /usr/NX/etc/server.lic
    
    blah@raven-5820:~$ sudo grep "Product Id" /usr/NX/etc/*lic*
    
    /usr/NX/etc/node.lic:Product Id: LEDSN
    
    /usr/NX/etc/server.lic:Product Id: LEDS

    Is this unexpected?

    #38300
    zaq
    Contributor

    Hello,
    Your license files look ok. You shouldn’t have problems during the update. To be sure that everything will be right after the update, you can check expiration dates:

    sudo grep Expiry: /usr/NX/etc/*lic

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

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