rspatial / geodata

download geographic data
GNU General Public License v3.0
147 stars 15 forks source link

The package cannot open connection to UC Davis database website #42

Closed QLLZ closed 1 year ago

QLLZ commented 1 year ago

Hi I was trying to run gadm function in geodata package, but since yesterday, it's been returnning connection errors:

Error in file(con, "r") : 
  cannot open the connection to 'https://geodata.ucdavis.edu/gadm/gadm4.1.txt'
In addition: Warning message:
In file(con, "r") :
  URL 'https://geodata.ucdavis.edu/gadm/gadm4.1.txt': Timeout of 6000 seconds was reached
trying URL 'https://geodata.ucdavis.edu/gadm/gadm4.1/pck/gadm41_MOZ_1_pk.rds'
Error in utils::download.file(url = url, destfile = filename, quiet = quiet,  : 
  cannot open URL 'https://geodata.ucdavis.edu/gadm/gadm4.1/pck/gadm41_MOZ_1_pk.rds'
download failed

Here's my code: moz <- geodata::gadm(country="MOZ", level=1, path=tempdir())

Not sure if this is because the serve is down or sometihng else?

mattwilliamson13 commented 1 year ago

+1 to this issue - I'm having the same error for the elevation datasets.

elev.us <- elevation_30s(country="USA", path=tempdir())
trying URL 'https://geodata.ucdavis.edu/geodata/elv/USA_elv_msk.zip'
Error in utils::download.file(url = url, destfile = filename, quiet = quiet,  : 
  cannot open URL 'https://geodata.ucdavis.edu/geodata/elv/USA_elv_msk.zip'
In addition: Warning message:
In utils::download.file(url = url, destfile = filename, quiet = quiet,  :
  URL 'https://geodata.ucdavis.edu/geodata/elv/USA_elv_msk.zip': Timeout of 6000 seconds was reached
Error in .downloadDirect(theurl, pzip, unzip = TRUE, ...) : 
  download failed
Username192837 commented 1 year ago

Yes, the website that hosts the WordClim datasets, geodata.ucdavis.edu, is currently down. The website I used to check whether geodata.ucdavis.edu was down or not stated geodata.ucdavis.edu has been down for a week...

Is this down for maintenance? And if so, when will it be back online?

rhijmans commented 1 year ago

Very sorry about that. I have lost my backup server for when this happens. The service should be back on no later than April 13.

Username192837 commented 1 year ago

The server is now operational and I am able to download data. Thank you.

QLLZ commented 1 year ago

yes, it's working now, thank you!

AMBarbosa commented 1 year ago

Oddly enough, now I'm getting a different, more self-explanatory but outdated message:

pt <- geodata::gadm("Portugal", path = "../outputs/maps")
The geodata server is down for maintenance. 
It is expected to be back online on April 13, 2023.

The output is NULL, even if the same map (with the same code) had been previously downloaded to that path (in which case it should be fetched in that path rather than the server).

I'm using the latest CRAN version of geodata (0.5-8), tried on both Linux Mint 21.1 and Windows 10 Home.

AMBarbosa commented 1 year ago

Just tried again and the problem seems to be fixed! Cheers

Diegoo21 commented 1 year ago

Just tried again and the problem seems to be fixed! Cheers

Hi, did you change anything? I'm still getting your first error message.

Thanks!

AMBarbosa commented 1 year ago

I didn't (consciously) change anything, but the following week, one of my students was getting the same message, though everyone else was OK.