Recovering Internal Apps or Services

If you upgraded your SmartServer IoT and lost Internal Apps or Services because the files were overwritten during the upgrade process, perform the following steps to recover your files.

  1. Connect to the SmartServer IoT.

  2. Go to the pointmonitor.conf file and remove the entry that specifies the location of the Internal Apps or Services, shown in the third line below that begins with command=node.

    pointmonitor.conf
    ;pointmonitor
    [program:pointmonitor]
    command=node /var/apollo/data/apps/point-monitor/pointmonitor.js
    priority=500
    autostart=true
    startsecs=10
    autorestart=unexpected
    exitcodes=0
    stopsignal=TERM
    user=apollo
    stdout_logfile=/var/log/supervisor/stdout-pointmonitor.log
    stderr_logfile=/var/log/supervisor/stderr-pointmonitor.log
    stdout_logfile_backups=2
    stdout_logfile_maxbyte=1MB
    stderr_logfile_backups=3
    stderr_logfile_maxbyte=1MB
    
  3. Save the file.

  4. Reboot the SmartServer.

  5. Place the Internal Apps or services somewhere under the /var/apollo directory (such as /var/apollo/data/apps).

  6. Save the file.

  7. Reboot the SmartServer.