Running R scripts from local machine while server in admin mode

LabKey Support Forum (Inactive)
Running R scripts from local machine while server in admin mode juan anaya  2017-05-03 07:56
Status: Closed
 
We have a development server and a production server and when I implement new scripts into the development server, I want to put the server into administrator mode so nobody can login while I'm doing the testing. However, when I try to run the scripts from the local machine, I get a 401 error, even though my account information is in the script and my account is an admin account. Here is the error that I get:

Error in processResponse(mydata, header, handle) :
  HTTP request was unsuccessful. Status code = 401, Error message = Found

It works fine when I run the script while not in admin mode.
 
 
Jon (LabKey DevOps) responded:  2017-05-04 13:36
Hi Juan,

I'm not able to reproduce the conditions you described.

When I set my Dev server to Admin Only mode, my external R query connects without issue.

How are you running your script exactly? Are you using a .netrc file per our documentation? (https://www.labkey.org/Documentation/wiki-page.view?name=netrc)

When you stated that your account information is in the script, does that mean you're trying to use the script to pass your credentials across into LabKey rather than use a netrc file?

Regards,

Jon
 
juan anaya responded:  2017-05-05 05:16
I'm sorry I did mean the .netrc file. We just recently upgraded to v.16.3 for production and the dev server is still in 15.1x. I just tested it on the production server when it is in admin mode and it worked fine. Looks like I just need to upgrade the dev server. Thanks,

Juan