Help with .netrc on Linux and RLabkey data access

LabKey Support Forum (Inactive)
Help with .netrc on Linux and RLabkey data access laurapas  2015-10-12 10:58
Status: Closed
 
We're trying to set up a .netrc on a Linux system and a simple test (see below) shows that it's not working. Is there anything we need to do on the LabKey server side to enable this? I also posted this

restibco@rescomp5007>pwd
/gne/home/restibco

restibco@rescomp5007>cat .netrc
machine labkey-test.roche.com login OMNIBD01 xxxxxx
machine labkey-dev.roche.com login OMNIBD01 xxxxxx


restibco@rescomp5007>ftp labkey-dev.roche.com
ftp: connect: Connection refused
 
 
Jon (LabKey DevOps) responded:  2015-10-12 11:11
Hi Laura,

Are you seeing an error message when trying to run a connection through R using the RLabkey library? Are both labkey-test and labkey-dev sites running on HTTPS or HTTP? Are they running on any special ports like 8080 or 8443?

The netrc file appears to look okay for multiple entries.

Regards,

Jon
 
laurapas responded:  2015-10-12 11:17
Hi Jon,
Port 8443. The same .netrc works fine on my Mac laptop. So, I don't know why it doesn't work on the Linux system.
 
Jon (LabKey DevOps) responded:  2015-10-12 11:28
Hi Laura,

Can you do an ls -al on the HOME directory you're in so we can see the permissions of the .netrc file?

Also, the .netrc file should actually have a password designation, just like how you have the machine and login designation:

machine labkey-test.roche.com login OMNIBD01 password xxxxxx
machine labkey-dev.roche.com login OMNIBD01 password xxxxxx

Regards,

Jon
 
jeckels responded:  2015-10-12 13:35
Hi Laura,

LabKey Server doesn't act as an FTP server, so unless you have separately installed something for FTP it's completely expected that you won't be able to connect via FTP.

Are you seeing authentication problems from inside of R?

As Jon mentioned, there are requirements on the file permissions for .netrc. It be readable only by the user account:

https://www.labkey.org/wiki/home/Documentation/page.view?name=netrc

Thanks,
Josh