Go to Post Either way, I'll stay a FIRSTer for life. =) - Adare180 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 14-01-2016, 11:54
Jameel Jameel is offline
Registered User
FRC #5024 (Raider Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: London, Ontario
Posts: 2
Jameel is an unknown quantity at this point
Permission denied when pushing code

Our team is running into a few issues pushing code to the roboRIO so we thought we could post here to find help. When we try to 'clean project' an error occurs saying "Cannot run program "rm": Launching failed.

When we try to deploy we get "Remote command failed with exit status 1." There is also "Permission denied" printed on every other line in the console.

We can't seem to solve these problems and any help would be greatly appreciated

Thanks!!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2016, 21:22
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Permission denied when pushing code

Windows or Mac or Linux?
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2016, 21:24
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Permission denied when pushing code

Have you set a password on your roboRIO for the admin account?
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2016, 23:34
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Permission denied when pushing code

I see the Cannot run program "rm": Launching failed message as well, on windows, but the project does get cleaned. I also asked about it in another thread.
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #5   Spotlight this post!  
Unread 15-01-2016, 09:00
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Quote:
Originally Posted by RufflesRidge View Post
Have you set a password on your roboRIO for the admin account?
Or the lvuser account.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-01-2016, 15:44
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 88
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
Having this same problem on a freshly imaged roborio, with windows. Anybody have any ideas?
Reply With Quote
  #7   Spotlight this post!  
Unread 16-01-2016, 16:46
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Permission denied when pushing code

Quote:
Originally Posted by snekiam View Post
Having this same problem on a freshly imaged roborio, with windows. Anybody have any ideas?
Can you please post the complete download log from the Eclipse window?
Reply With Quote
  #8   Spotlight this post!  
Unread 22-01-2016, 02:32
Jameel Jameel is offline
Registered User
FRC #5024 (Raider Robotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: London, Ontario
Posts: 2
Jameel is an unknown quantity at this point
Re: Permission denied when pushing code

A few things I failed to mentioned.
- We are using Windows 7
- The roboRIO has a fresh 2016 image
- This happens on all of the laptops we try to use

After trying a bunch of things, we managed to fix this by using PuTTY to SSH into the roboRIO. We then used the "cd" command to move to the home directory for lvuser and ran "chmod u+x /home/lvuser" which essentially gives write permissions to the owner of that directory.

This is a very weird way of solving the problem but it works and I am not sure why no one else got this issue
Reply With Quote
  #9   Spotlight this post!  
Unread 26-02-2016, 21:48
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Permission denied when pushing code

Quote:
Originally Posted by Jameel View Post
A few things I failed to mentioned.
- We are using Windows 7
- The roboRIO has a fresh 2016 image
- This happens on all of the laptops we try to use

After trying a bunch of things, we managed to fix this by using PuTTY to SSH into the roboRIO. We then used the "cd" command to move to the home directory for lvuser and ran "chmod u+x /home/lvuser" which essentially gives write permissions to the owner of that directory.

This is a very weird way of solving the problem but it works and I am not sure why no one else got this issue

I just received this issue after updating (repeatedly) the firmware and image on our practice robot RoboRIO. I tried your fix but it did not seem to work. Please see below for a screenshot of the errors.

I know at least a few others on CD have reported similar to identical "permission denied" errors. I am not a hardcore programmer at all, so pretend I'm very unfamilar with Linux and SSH and all that jazz and please help me (and others) diagnose this problem quickly. Thanks in advance for the prompt assistance!

EDIT (twice...) - I was able to log in to the roboRIO using PuTTY and the admin login. I was also able to login using lvuser, but when I did, I got the same "permission denied" errors upon typing "lvuser" and pressing enter. See the other screenshot below.

Is there any chmod command or other such magic that can be employed against this impenetrable directory stronghold? Help me toss 8 boulders at this thing.

And please don't tell me to reimage the roboRIO without giving me a valid reason why I should. I've done that already.
Attached Thumbnails
Click image for larger version

Name:	2-26-16 C++ Deploy Error.jpg
Views:	33
Size:	267.4 KB
ID:	20207  Click image for larger version

Name:	2-26-16 PuTTY Output.jpg
Views:	32
Size:	47.8 KB
ID:	20208  
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner

Last edited by Travis Hoffman : 26-02-2016 at 22:03.
Reply With Quote
  #10   Spotlight this post!  
Unread 26-02-2016, 22:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Permission denied when pushing code

Quote:
Originally Posted by Travis Hoffman View Post
And please don't tell me to reimage the roboRIO without giving me a valid reason why I should. I've done that already.
Travis, you've modified the build files. In order for people to help, you'll need to detail the changes you've made. My suggestion is to reimage and reinstall wpilib so the original build files are restored.
Reply With Quote
  #11   Spotlight this post!  
Unread 26-02-2016, 22:32
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Permission denied when pushing code

Quote:
Originally Posted by Joe Ross View Post
Travis, you've modified the build files. In order for people to help, you'll need to detail the changes you've made. My suggestion is to reimage and reinstall wpilib so the original build files are restored.
I initiated a reimage before you posted while I was waiting for someone to reply.

How does one correctly uninstall/reinstall wpilib?

Is there anything I need to do to my project after wpilib is reinstalled? Remove files? Rebuild?

Speaking of wpilib, I was prompted to update the WPILib plugins in Eclipse today. Did they push a new release?
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner
Reply With Quote
  #12   Spotlight this post!  
Unread 26-02-2016, 23:05
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Permission denied when pushing code

Quote:
Originally Posted by Travis Hoffman View Post
I initiated a reimage before you posted while I was waiting for someone to reply.

How does one correctly uninstall/reinstall wpilib?
In eclipse, go to help->installation details and select Robot C++ Development (and Java if it's also installed), and press uninstall. Then, for good measure, delete c:\users\<user>\wpilib

Quote:
Originally Posted by Travis Hoffman View Post
Is there anything I need to do to my project after wpilib is reinstalled? Remove files? Rebuild?

Speaking of wpilib, I was prompted to update the WPILib plugins in Eclipse today. Did they push a new release?
Just a rebuild.
Last wpilib release was 2/11. I did see an eclipse update today.
Reply With Quote
  #13   Spotlight this post!  
Unread 27-02-2016, 10:15
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Permission denied when pushing code

Quote:
Originally Posted by Joe Ross View Post
In eclipse, go to help->installation details and select Robot C++ Development (and Java if it's also installed), and press uninstall. Then, for good measure, delete c:\users\<user>\wpilib
Quote:
Just a rebuild.
Last wpilib release was 2/11. I did see an eclipse update today.
Done, thanks. I have reinstalled wpilib and rebuilt my project, and I will go into the school shortly to try it out. Any ideas on what to do if the problem persists?

Also, any thoughts on how I might have altered the build configuration files? I did play around in there but only after the original problem popped up and I searched for threads on this problem on CD.

FYI, I did add very basic navX MXP stuff to the include and library settings early yesterday, before the issue, but I followed the instructions on their site. I will refrain from doing any of that until I can deploy code again. I'll save the project and then play.
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner
Reply With Quote
  #14   Spotlight this post!  
Unread 27-02-2016, 11:51
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Permission denied when pushing code

Just for fun, I got the roboRIO off our 2015 competition robot, updated the firmware and imaged it EXACTLY per the instructions (i.e. how I did everything before), and I'm still getting permission denied error. This time, however, it seems to proceed to the "kill all" part of the deploy routine before faulting. See attached, updated screenshot.


Please keep the suggestions coming - I'm at the school all day today and can try anything out quickly. Obviously, this is a problem that needs solving ASAP.
Attached Thumbnails
Click image for larger version

Name:	2-27-16 Deploy Error.jpg
Views:	22
Size:	245.5 KB
ID:	20212  
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner

Last edited by Travis Hoffman : 27-02-2016 at 13:30. Reason: Updated information.
Reply With Quote
  #15   Spotlight this post!  
Unread 27-02-2016, 15:33
Travis Hoffman's Avatar Unsung FIRST Hero
Travis Hoffman Travis Hoffman is offline
O-H
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Engineer
 
Join Date: Sep 2001
Rookie Year: 2001
Location: Warren, Ohio USA
Posts: 4,045
Travis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond reputeTravis Hoffman has a reputation beyond repute
Re: Permission denied when pushing code

I just installed Eclipse et al on another laptop and used some old version of my code that worked prior to this problem, and the permission denied error occurred on deploy exactly as before.

Still hoping for some good ideas here from the community!
__________________

Travis Hoffman, Enginerd, FRC Team 48 Delphi E.L.I.T.E.
Encouraging Learning in Technology and Engineering - www.delphielite.com
NEOFRA - Northeast Ohio FIRST Robotics Alliance - www.neofra.com
NEOFRA / Delphi E.L.I.T.E. FLL Regional Partner
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 03:48.

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