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.
at java.net.Socket.
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.
- Open the Admin Tool and log into the UNC (not the station database).
-
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).
-
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
- Choose File > Close and save when prompted.
-
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).