Go to Post Ahhh... the beauty of an exponential series... - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2015, 08:36
popcorn107 popcorn107 is offline
Registered User
FRC #2386
 
Join Date: Feb 2015
Location: Canada
Posts: 4
popcorn107 is an unknown quantity at this point
Suddenly cant push to roborio

Last night we attempted loading new code to our roborio. The night before we could push fine but now we keep getting told that no process in pidfile found. We tried re imaging the roborio and installing java again and the message persists. I have also updated all software after we got started getting this. The program is building sucsefully and locating the roborio on the network. We get two different errors normally.

Here are the two different build logs:

Code:
Buildfile: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
   [delete] Deleting directory C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist
compile:
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Brian/wpilib/java/current/lib/WPILib.jar:C:\Users\Brian/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 1 source file to C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build\jars
     [echo] [athena-jar] Copying jars from C:\Users\Brian/wpilib/java/current/lib/WPILib.jar:C:\Users\Brian/wpilib/java/current/lib/NetworkTables.jar to build/jars.
     [copy] Copying 2 files to C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build\jars
      [jar] Building jar: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-2386.local
     [echo] roboRIO found via mDNS
dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : killall netconsole-host
  [sshexec] killall: netconsole-host: no process killed
  [sshexec] Remote command failed with exit status 1
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
  [sshexec] no process in pidfile '/var/run/natinst/FRC_UserProgram.pid' found; none killed
BUILD SUCCESSFUL
Total time: 17 seconds
and:
Code:
Buildfile: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
   [delete] Deleting directory C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist
compile:
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Brian/wpilib/java/current/lib/WPILib.jar:C:\Users\Brian/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 1 source file to C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist
    [mkdir] Created dir: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build\jars
     [echo] [athena-jar] Copying jars from C:\Users\Brian/wpilib/java/current/lib/WPILib.jar:C:\Users\Brian/wpilib/java/current/lib/NetworkTables.jar to build/jars.
     [copy] Copying 2 files to C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\build\jars
      [jar] Building jar: C:\Users\Brian\Documents\Central Schoolwork\Robotics\frc 2015\programming\Teleop\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-2386.local
     [echo] roboRIO found via mDNS
dependencies:
     [echo] roboRIO image version validated
     [echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : killall netconsole-host
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
      [scp] Connecting to roboRIO-2386.local:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to roboRIO-2386.local:22
  [sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
  [sshexec] start-stop-daemon: warning: killing process 1795: No such process
BUILD SUCCESSFUL
Total time: 15 seconds
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2015, 08:42
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,679
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Suddenly cant push to roborio

There's probably a simpler solution, but we had that about a week ago, and after an hour or two of futzing with it we decided to re-image the 'RIO.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2015, 08:45
popcorn107 popcorn107 is offline
Registered User
FRC #2386
 
Join Date: Feb 2015
Location: Canada
Posts: 4
popcorn107 is an unknown quantity at this point
Re: Suddenly cant push to roborio

Quote:
Originally Posted by GeeTwo View Post
There's probably a simpler solution, but we had that about a week ago, and after an hour or two of futzing with it we decided to re-image the 'RIO.
This was one of the first things we attempted. We re imaged the rio and put java on it again and still get these error messages.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2015, 09:02
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Suddenly cant push to roborio

Both logs show a successful upload.

During the upload process, the roboRIO attempts to stop the previous version of the robot code, but it fails to do so. This may be because your code is crashing or there is an exception that causes the user program to stop running. This may also be because you have just reimaged the roborio and there is no code running yet.
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2015, 09:39
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 348
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: Suddenly cant push to roborio

Not sure what we did but we are now able to push our code to the robot.
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2015, 10:53
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Suddenly cant push to roborio

Those errors are normal and can be safely ignored, that is probably why you found that you could deploy code again.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2015, 13:47
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 167
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Suddenly cant push to roborio

Code:
  [sshexec] Remote command failed with exit status 1
We spent a fair amount of time trying to resolve this issue. Re-imaging may fix it for some but I don't think the issue is on the roboRIO, it's on the IDE side. When we synced our code to another machine it deployed fine.

Last night we discovered that it happens every time we try to deploy code the first time after running in debug. Deleting the bin, build, and dist directories for the project resolved the issue.
__________________
2015 Newton Semi-Finalist (3130, 2468, 3310, 537)
2015 Lubbock Regional Winner (2468, 3310, 4799)
2014 Galileo Quarter-Finalist (2052, 70, 3310, 3360)
2014 Colorado Regional Winner (1138, 3310, 2543)
2013 Texas Robot Roundup Winner (3310, 624, 2848)
2013 Archimedes Semi-Finalist (126, 3310, 1756)
2013 Dallas Regional Winner (148, 3310, 4610)
2012 Dallas West Regional Winner (935, 3310, 4206)
Reply With Quote
  #8   Spotlight this post!  
Unread 11-02-2015, 16:06
Jared's Avatar
Jared Jared is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Connecticut
Posts: 602
Jared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond reputeJared has a reputation beyond repute
Re: Suddenly cant push to roborio

Quote:
Originally Posted by Brian Selle View Post
Code:
  [sshexec] Remote command failed with exit status 1
We spent a fair amount of time trying to resolve this issue. Re-imaging may fix it for some but I don't think the issue is on the roboRIO, it's on the IDE side. When we synced our code to another machine it deployed fine.

Last night we discovered that it happens every time we try to deploy code the first time after running in debug. Deleting the bin, build, and dist directories for the project resolved the issue.
This isn't an error!

If it says build successful, it's worked.

This simply means that it can't find a normal running robot program to kill during the deploy process. It makes perfect sense because you were previously running a debug program, which is different.
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2015, 15:45
Brian Selle's Avatar
Brian Selle Brian Selle is offline
Mentor
FRC #3310 (Black Hawk Robotics)
Team Role: Engineer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Texas
Posts: 167
Brian Selle has a spectacular aura aboutBrian Selle has a spectacular aura aboutBrian Selle has a spectacular aura about
Re: Suddenly cant push to roborio

Never said it was an error, but you are correct it is not an error. The first time this appeared we were unable to deploy code to the roboRIO but it was coupled with another issue. Removing the files simply makes the message go away.
__________________
2015 Newton Semi-Finalist (3130, 2468, 3310, 537)
2015 Lubbock Regional Winner (2468, 3310, 4799)
2014 Galileo Quarter-Finalist (2052, 70, 3310, 3360)
2014 Colorado Regional Winner (1138, 3310, 2543)
2013 Texas Robot Roundup Winner (3310, 624, 2848)
2013 Archimedes Semi-Finalist (126, 3310, 1756)
2013 Dallas Regional Winner (148, 3310, 4610)
2012 Dallas West Regional Winner (935, 3310, 4206)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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