Go to Post You know you've overdosed on FIRST when you set your alarm clock to your team # ex: 9:32 - bladetech932 [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
  #31   Spotlight this post!  
Unread 01-03-2016, 13:13
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 did put on updates and after that the error occurred. I thought it was just WPI plugins, but it looks like at some point between Feb 13 and Feb 29, the update also updated Eclipse to 4.5.2 4.5.2.20160218-0600
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #32   Spotlight this post!  
Unread 01-03-2016, 14:10
Astropolly Astropolly is offline
Registered User
FRC #1138
 
Join Date: Dec 2014
Location: Chatsworth CA
Posts: 1
Astropolly is an unknown quantity at this point
Re: Permission denied when pushing code

I'm having the same problem. Everything worked previously when I had Mars 1 installed. Now I have Mars 2 and I can't deploy code. I can't actually say if that is the problem though.
I used PuTTY to ssh into the roboRIO, and I used the chmod command as explained on these threads. I then tried to deploy code - without resetting anything, but I got the error
..\wpilib.cpp\current\ant\buil.xml:78: server indicted an error: scp: /home/lvuser//robotCommand: Permission denied .

the results of the ls -lah /home/lvuser/ command show
admin@roboRIO-1138-FRC:~# ls -lah /home/lvuser/
total 10292
drw-r--r-- 4 lvuser ni 656 Mar 1 10:39 .
drwxr-xr-x 5 admin administ 416 Jun 5 2015 ..
-rwxrwxrwx 1 lvuser ni 410 Apr 30 2015 .bashrc
-rwxrwxrwx 1 lvuser ni 152 Apr 30 2015 .profile
-rw-r--r-- 1 lvuser ni 10.0M Mar 1 10:39 FRCUserProgram
lrwxrwxrwx 1 admin ni 42 Dec 17 10:34 FRC_UserProgram.log -> /var/local/natinst/log/FRC_UserProgram.log
lrwxrwxrwx 1 admin ni 22 Dec 17 10:31 README_File_Paths.txt -> /README_File_Paths.txt
drwxrwxrwx 3 lvuser ni 232 Dec 17 10:34 frc
drwxrwxrwx 4 lvuser ni 296 Dec 17 10:35 natinst


I will try making the changes to the build.xml file, but I was expecting this to work at least the first time

I am so lost. Please help
Reply With Quote
  #33   Spotlight this post!  
Unread 01-03-2016, 14:37
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

log in with putty and issue the chmod 777 /home/lvuser/ command again. Then make the change to the build.xml file before trying to deploy code.

Add
<sshexec host="${target}"
username="admin"
password="${password}"
trust="true"
failonerror="false"
command="chmod 777 /home/lvuser"/>


right before this line:
<scp file="${wpilib.ant.dir}/robotCommand" todir="${username}@${target}:/home/lvuser/" password="${password}" trust="true"/>
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote
  #34   Spotlight this post!  
Unread 01-03-2016, 15:45
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Permission denied when pushing code

OK, so based on the inputs from several on this thread, I've created a new build.xml that solves all of the permission problems and successfully deploys code from within Eclipse. I've attached it to this post.

Simply, copy the build.xml.txt file to:

c:\Users\<username>\wpilib\cpp\current\ant\build.x ml

(Make sure to substitute your user name and it should be build.xml -- for some reason the formatting is inserting what looks like a space between the x and the ml)

And the deploy will start working again. This does 2 chmods and that seems to correct the problem until Brad & Co. can find the real fix.

HTH,

Mike A.
FRC #116
Attached Files
File Type: txt build.xml.txt (5.8 KB, 18 views)

Last edited by taichichuan : 01-03-2016 at 15:50.
Reply With Quote
  #35   Spotlight this post!  
Unread 01-03-2016, 17:19
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 586
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Permission denied when pushing code

We just published an update to the eclipse plugins, both the release and stable versions.

Can anyone with the problem with the C++ permissions please try to update your version of the eclipse plugins and verify that it's working for you? If you could reimage the roboRIO just to make sure that everything is reset back to the way it should be that would be helpful. The new version copies some of the files to the roboRIO slightly differently than before.

FYI: there is also an updated C++ camera server class and the version number has been bumped up from 4 to 5. Otherwise this and the previous version should be the same.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #36   Spotlight this post!  
Unread 01-03-2016, 17:35
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Permission denied when pushing code

Quote:
Originally Posted by BradAMiller View Post
We just published an update to the eclipse plugins, both the release and stable versions.

Can anyone with the problem with the C++ permissions please try to update your version of the eclipse plugins and verify that it's working for you? If you could reimage the roboRIO just to make sure that everything is reset back to the way it should be that would be helpful. The new version copies some of the files to the roboRIO slightly differently than before.

FYI: there is also an updated C++ camera server class and the version number has been bumped up from 4 to 5. Otherwise this and the previous version should be the same.

Brad
Hi Brad,

Sorry, the fix didn't seem to fix the problem. I'm using the Mars.2 release of Eclipse, BTW. Here's the output of the "Run as" output:


Buildfile: C:\Users\mike\workspace-2016\ExampleBoard\build.xml
Trying to override old definition of task classloader
get-target-ip:
[echo] Trying Target: roboRIO-116-FRC.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
deploy:
[sshexec] Connecting to roboRIO-116-FRC.local:22
[sshexec] cmd : rm -f /home/lvuser/FRCUserProgram
[sshexec] Could not chdir to home directory /home/lvuser: Permission denied
[sshexec] rm: can't stat '/home/lvuser/FRCUserProgram': Permission denied
[sshexec] Remote command failed with exit status 1
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-116-FRC.local:22

BUILD FAILED
C:\Users\mike\wpilib\cpp\current\ant\build.xml:67: server indicated an error: scp: /home/lvuser/FRCUserProgram: Permission denied

Total time: 5 seconds


Anything else you need to help debug the issue?

HTH,

MikeA
FRC #116
Reply With Quote
  #37   Spotlight this post!  
Unread 01-03-2016, 20:44
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Mendon
Posts: 142
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Permission denied when pushing code

Mike,

If the permissions were broken originally, the update likely won't fix them. It should prevent it from happening in future deploys, but if /home/lvuser doesn't have exec permissions currently, nothing in this update will fix it. Does manually running a chmod +x /home/lvuser as admin, then trying to redeploy fix it?
Reply With Quote
  #38   Spotlight this post!  
Unread 01-03-2016, 21:34
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Permission denied when pushing code

Quote:
Originally Posted by fsilberberg View Post
Mike,

If the permissions were broken originally, the update likely won't fix them. It should prevent it from happening in future deploys, but if /home/lvuser doesn't have exec permissions currently, nothing in this update will fix it. Does manually running a chmod +x /home/lvuser as admin, then trying to redeploy fix it?
OK, if I manually chmod the /home/lvuser directory to 0777, then the new plug-ins work.

Next, I reformatted and reinstalled V19 firmware and then reloaded V 3.0.0F0 firmware on the RoboRIO. I then tried the deploy and everything seems to work. So, you need to make sure that the RoboRIO is back to a pristine state and the new plugins seem to work.

Good work gang!

Thanks,

MikeA
Reply With Quote
  #39   Spotlight this post!  
Unread 01-03-2016, 22:38
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 586
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Permission denied when pushing code

Glad to hear it's working for you now. There was a hiccup with the Java part of the install, something broke in our build, and a new version is posted that should fix that issue. Just waiting to hear some confirmation that everything is OK now.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #40   Spotlight this post!  
Unread 02-03-2016, 10:31
rod@3711 rod@3711 is offline
Registered User
AKA: rod nelson
FRC #3711 (Iron Mustangs)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2014
Location: Trout Lake, WA
Posts: 64
rod@3711 is an unknown quantity at this point
Re: Permission denied when pushing code

Looks good, thanx
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 08: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