Go to Post There are "Problems", and then there are "Solutions". Understand the Problem, and keep your mind open to alternative solutions. Don't get married to a Solution. - rich2202 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 08-10-2015, 06:28
cjcraigy cjcraigy is offline
Registered User
FRC #5603 (Rise Of The Warrior Bots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Michigan
Posts: 6
cjcraigy is an unknown quantity at this point
Failed to Deploy, File Permission Error

Over the past week or so, we have had some problems deploying with LabVIEW. At this point we are in a rush with a competition coming up this Saturday. There is no problem building the code, but every time I try to deploy the code it fails And shows;

Click image for larger version

Name:	uploadfromtaptalk1444300328612.JPG
Views:	53
Size:	1.98 MB
ID:	19344

LabVIEW: File permission error. You do not have the correct permissions for this file.

However running the main vi works fine and we aren't having any connection issues. I've tried reformatting the Rio, using different cables like Ethernet and USB B, running LabVIEW as an administrator, and changing the build file location, but nothing has worked. If it helps any, I've attached a picture of the deployment window after its failed to deploy. Any help would be greatly appreciated. Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-10-2015, 11:13
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Failed to Deploy, File Permission Error

I don't recognize the error. Are you trying to "Deploy" the code? If so, don't do that. After you Build it, just "Run As Startup".
Reply With Quote
  #3   Spotlight this post!  
Unread 08-10-2015, 11:14
cjcraigy cjcraigy is offline
Registered User
FRC #5603 (Rise Of The Warrior Bots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Michigan
Posts: 6
cjcraigy is an unknown quantity at this point
The same problem occurs when running as start up as well.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-10-2015, 04:18
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Failed to Deploy, File Permission Error

Quote:
Originally Posted by cjcraigy View Post
The same problem occurs when running as start up as well.
How interesting. I just started seeing this too - but in the 2016 beta. We'll get to the bottom of it, but in the mean time, you can work around it by going to a Linux shell and changing the owner of all files and folders in the /home/lvuser dir to lvuser.

Code:
chown -R lvuser:ni /home/lvuser
Reply With Quote
  #5   Spotlight this post!  
Unread 09-10-2015, 14:53
cjcraigy cjcraigy is offline
Registered User
FRC #5603 (Rise Of The Warrior Bots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Michigan
Posts: 6
cjcraigy is an unknown quantity at this point
Changing the permissions results in the same problem. The code will build fine, but can not deploy or "run as startup". Is it possible to build the LabVIEW code to a binary that would be able to be put on the roborio manually?
Reply With Quote
  #6   Spotlight this post!  
Unread 09-10-2015, 19:15
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Failed to Deploy, File Permission Error

Are you sure that you changed ownership as Joe suggested? Can you ls -l the /home/lvuser directory and post the results?

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 09-10-2015, 20:37
cjcraigy cjcraigy is offline
Registered User
FRC #5603 (Rise Of The Warrior Bots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Michigan
Posts: 6
cjcraigy is an unknown quantity at this point
We changed the ownership of the files by ssh into the roborio. The file permission error is gone, but it doesn't deploy all the code. It says it successfully has deployed the code but the robot code light in the driver station doesn't turn green, it stays red

UPDATE:
One of the tech people here at the competition helped us out and we reformatted and updated the firmware on the roborio and now it magically works. Thank you Aaron, if you ever read this.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-10-2015, 23:23
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,308
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: Failed to Deploy, File Permission Error

Quote:
Originally Posted by cjcraigy View Post
We changed the ownership of the files by ssh into the roborio. The file permission error is gone, but it doesn't deploy all the code. It says it successfully has deployed the code but the robot code light in the driver station doesn't turn green, it stays red

UPDATE:
One of the tech people here at the competition helped us out and we reformatted and updated the firmware on the roborio and now it magically works. Thank you Aaron, if you ever read this.
Did you remember to restart the robot code once you deployed?
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
Reply With Quote
  #9   Spotlight this post!  
Unread 10-10-2015, 08:24
cjcraigy cjcraigy is offline
Registered User
FRC #5603 (Rise Of The Warrior Bots)
Team Role: Programmer
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Michigan
Posts: 6
cjcraigy is an unknown quantity at this point
No we didn't restart the code. That could have been the problem.
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:51.

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