Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Strange Error Regarding Connection with roboRIO (http://www.chiefdelphi.com/forums/showthread.php?t=154684)

RyStrider 03-02-2017 19:32

Strange Error Regarding Connection with roboRIO
 
I keep getting this strange error:

BUILD FAILED
C:\Users\*******\wpilib\java\current\ant\build.xml :345: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect

Total time: 9 seconds

I've tried anything I can think of...

Anyone know what could be causing this? I believe it is my computer.

Thanks for your time,
Ryan

Peter Johnson 03-02-2017 19:40

Re: Strange Error Regarding Connection with roboRIO
 
There should be a message immediately in the build console before this error. Have you installed the JRE on your roboRio?

Quote:

Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only

RyStrider 03-02-2017 19:43

Re: Strange Error Regarding Connection with roboRIO
 
10 Minutes ago, I just re-imaged and reinstalled java on our roboRIO to see if that was the problem. It did not fix it. The only time I receive that error is when I attempt to connect wirelessly. Could it by my radio?

Ryan

Peter Johnson 03-02-2017 19:50

Re: Strange Error Regarding Connection with roboRIO
 
Quote:

Originally Posted by RyStrider (Post 1640113)
10 Minutes ago, I just re-imaged and reinstalled java on our roboRIO to see if that was the problem. It did not fix it. The only time I receive that error is when I attempt to connect wirelessly. Could it by my radio?

It could be, but does the DS connect? Can you ping the roboRio? Connect to the roboRio web console? If you're making it to that point in the script you should be able to get to the web console (as it makes a HTTP request to validate the image version immediately prior to that). Do you have any firewall software running? Might be worth downloading PuTTY and trying to ssh in manually to see if that works.

RyStrider 04-02-2017 13:57

Re: Strange Error Regarding Connection with roboRIO
 
I can connect to and enable the robot through a connection with the D-Link. However, I can only deploy code over a bridge, and I cannot deploy code through a connection with the D-Link.

When i attempted to connect to the roboRIO by the IP Address I saw in Eclipse (which worked in Eclipse), puTTY gave me a similar error: "Connection refused".

Not sure what to do from here except try other D-Links.

Thanks,
Ryan

euhlmann 04-02-2017 17:12

Re: Strange Error Regarding Connection with roboRIO
 
Could you post the full ant output please?

Mark McLeod 04-02-2017 17:19

Re: Strange Error Regarding Connection with roboRIO
 
Can you ping these DNS names:
- roboRIO-589-frc
- roboRIO-589-frc.local
- roboRIO-589-frc.lan
- roboRIO-589-frc.frc-robot.local

RyStrider 06-02-2017 21:31

Re: Strange Error Regarding Connection with roboRIO
 
Here's the Full Output:

Buildfile: C:\Users\rystr\FRC\589 Test Robot\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\rystr\FRC\589 Test Robot\build
[delete] Deleting directory C:\Users\rystr\FRC\589 Test Robot\dist
compile:
[mkdir] Created dir: C:\Users\rystr\FRC\589 Test Robot\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\rystr\wpilib\user\java\lib\CTRL ib.jar;C:\Users\rystr\wpilib\user\java\lib\niVisio nWPI.jar;C:\Users\rystr\wpilib\java\current\lib\WP ILib.jar;C:\Users\rystr\wpilib\java\current\lib\Ne tworkTables.jar;C:\Users\rystr\wpilib\java\current \lib\opencv.jar;C:\Users\rystr\wpilib\java\current \lib\cscore.jar to build
[javac] Compiling 8 source files to C:\Users\rystr\FRC\589 Test Robot\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\rystr\FRC\589 Test Robot\dist
[mkdir] Created dir: C:\Users\rystr\FRC\589 Test Robot\build\jars
[echo] [athena-jar] Copying jars to build/jars.
[copy] Copying 6 files to C:\Users\rystr\FRC\589 Test Robot\build\jars
[jar] Building jar: C:\Users\rystr\FRC\589 Test Robot\dist\FRCUserProgram.jar
get-target-ip:
[echo] Finding roboRIO, please ignore any [hostinfo] error messages
[echo] Trying DNS: roboRIO-589-FRC.lan
[echo] Trying mDNS: roboRIO-589-FRC.local
[echo] Trying USB: 172.22.11.2
[echo] Trying Static Ethernet: 10.5.89.2
[hostinfo] Error retrieving remote host information for host:roboRIO-589-FRC.lan.
[echo] Resolved mDNS to 10.5.89.51
[echo] roboRIO found at 10.5.89.51
dependencies:
[echo] roboRIO image version validated
[echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only
[sshexec] Connecting to 10.5.89.51:22

BUILD FAILED
C:\Users\rystr\wpilib\java\current\ant\build.xml:3 45: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect

Total time: 9 seconds


In Regards to pinging the four different addresses, all of them gave me the same error. (I pinged them using puTTY set on SSH, Let me know if that it the wrong type)

Thanks for your help so far. Still trying to figure this out!

Ryan

euhlmann 07-02-2017 11:39

Re: Strange Error Regarding Connection with roboRIO
 
Check your firewall on your computer. Temporarily disable it and see if deploying works. If yes, then re-enable your firewall and add a rule for outgoing port 21 connections.

If that doesn't work, try re-imaging your roboRIO


All times are GMT -5. The time now is 02:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi