Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Failed to Deploy, File Permission Error (http://www.chiefdelphi.com/forums/showthread.php?t=138456)

cjcraigy 08-10-2015 06:28

Failed to Deploy, File Permission Error
 
1 Attachment(s)
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;

Attachment 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.

Alan Anderson 08-10-2015 11:13

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".

cjcraigy 08-10-2015 11:14

The same problem occurs when running as start up as well.

jhersh 09-10-2015 04:18

Re: Failed to Deploy, File Permission Error
 
Quote:

Originally Posted by cjcraigy (Post 1499121)
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

cjcraigy 09-10-2015 14:53

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?

Greg McKaskle 09-10-2015 19:15

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

cjcraigy 09-10-2015 20:37

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.

orangemoore 09-10-2015 23:23

Re: Failed to Deploy, File Permission Error
 
Quote:

Originally Posted by cjcraigy (Post 1499378)
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?

cjcraigy 10-10-2015 08:24

No we didn't restart the code. That could have been the problem.


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

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