Skip to content

PTV xServer: license expire / network problem

Latest License update task:

Update PTV2 license to nightly and stable (https://app.clickup.com/t/86c70c0h5)


There is a file "/opt/xroute/xroute-x64-1.38.0.1/license.ptv" we need to replace this license with the new one.


on the current-old there is a part in the license where are defined ip addresses.

# NOTE: always end with no-net
hostList=172.31.0.86,192.168.1.100,192.168.31.194,172.31.1.53,172.31.0.104,no-net

If we don't have one of this in hostname -I server will not start.

I make script to fix-fake this check. I created script for every restart to add one of this ip's. For this script I created service for startup. xserver-ipadd.service

/opt/startup# cat startup_script.sh 
#!/bin/bash
# This is your startup script content
# Other commands you want to run
sudo ip addres add dev ens4 172.31.1.53

How to update license

  1. Upload new license.ptv and License.txt to PTVxServer
  2. copy/move it to
    1. /opt/xroute/xroute-x64-1.38.0.1
    2. /opt/xroute/xroute-x64-1.38.0.1_nightly
  3. Rename old license e.g. license-2023.ptv & License-2023.txt and name new license to license.ptv and text file to license.txt
    1. At least in live (/opt/xroute/xroute-x64-1.38.0.1) we have updated permissions to root:root
  4. Restart xroute server
sudo ./xroute.sh start
sudo ./xroute.sh stop
sudo ./xroute.sh status
  1. In AO side, do distance calculation and check that it works
  2. AO Backendsrv go to PTV Status Monitor to check new calculations and check License from Configuration ➝ License ➝ license.ptv
    1. PTV 1.0
      1. 10.170.0.52:50030 Stable
      2. 10.170.0.52:60030 Nightly
    2. PTV 2.0
      1. 10.170.0.52:50050 Stable
      2. 10.170.0.52:60050 Nightly

PTV xServer2 License update:

When you have new license: * go to :

/opt/ptvxserver2-testing/xserver-2.31.0
  • add license:
    • upload it or create new file
    • check it after
      cat 1715079736799.l4j
      

Restart service: sudo systemctl restart xserver-test_nightly.service

For network problem. xserver-ipadd.service