Getting Data In

Error when trying to upload a package in R Project

walkerhound
Path Finder

When I try to upload a package into R Project (from the packages tab) I get an error:

Cannot install package 'igraph'. Attempt to download CRAN description from 'http://cran.r-project.org/web/packages/igraph/DESCRIPTION': [Errno 11004] getaddrinfo failed

I have tried a few packages. The URL http://cran.r-project.org/web/packages/igraph/DESCRIPTION seems okay.

I suspect this is a proxy issue but I'm not sure how to fix it.

Tags (2)
0 Karma
1 Solution

MuS
Legend

Hi walkerhound,

this could be related to a proxy issue. If you must use a proxy server to get to the internet, set the http[s]_proxy user env for the user running Splunk like this for Windows:

set http_proxy=http://proxy.myproxy.com
set https_proxy=https://proxy.myproxy.com

For Linux:

export http_proxy=http://proxy.myproxy.com
export https_proxy=https://proxy.myproxy.com 

But the error code you get could also point to some trouble resolving the hostname, so check your DNS as well.

cheers, MuS

View solution in original post

MuS
Legend

Hi walkerhound,

this could be related to a proxy issue. If you must use a proxy server to get to the internet, set the http[s]_proxy user env for the user running Splunk like this for Windows:

set http_proxy=http://proxy.myproxy.com
set https_proxy=https://proxy.myproxy.com

For Linux:

export http_proxy=http://proxy.myproxy.com
export https_proxy=https://proxy.myproxy.com 

But the error code you get could also point to some trouble resolving the hostname, so check your DNS as well.

cheers, MuS

walkerhound
Path Finder

I got it to work. I had to put in the username and password for the proxy.

Thanks.

0 Karma

krwinters11
Path Finder

I have added the proxy with username and password and still can't get this solution to work. Any other ideas?

0 Karma
Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...