Knowledge Base
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot backup UNC station - getting an error "java.net.ConnectException".

Issue

Cannot do a Save Runtime DB. - getting the following error: 
   java.net.ConnectException: Connection refused: connect 
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.(Unknown Source)
    at java.net.Socket.(Unknown Source)
    at tridium.nre.drivers.SocketDriver$TcpSocketFactory.createSocket(SocketDriver.java:690)
    at tridium.nre.drivers.SocketDriver.create(SocketDriver.java:216)
    at tridium.nre.drivers.SocketDriver$ConnectThread.run(SocketDriver.java:510)
 

Environment

Niagara R2, UNC-520, UNC-410

Cause

The connection error typically occurs during a database backup when the port used by the UNC has been changed from the default port 80.

Resolution

If this is the case, a line must be added to the station.properties file to specify the new port value.

  1. Open the Admin Tool and log into the UNC (not the station database).
  2. Right-click on the station name that indicates "running" and select Edit > Properties.
    • The station.properties window will open (typically indicates autoStart=true and autoRestart=true).
  3. Add a line to this file that specifies the new port.
    • Example: If the station database was configured to use port 8080, the line would read ... httpPort=8080
  4. Choose File > Close and save when prompted.
  5. Reboot the UNC for change to take place
     

You should now be able to successfully backup the database. The details of this procedure are located in the documentation (Niagara Networking and Connectivity Guide).
 

Tags (1)
Labels (1)
Version history
Revision #:
1 of 1
Last update:
2 weeks ago
Updated by: