rhub error includes '404 Not Found'

Hi,

I am updating my first (and only) package with a few bug fixes. The commands devtools::check() and devtools:: check_win_release() return no warnings, notes, etc. However, I'm getting the below message when I run devtools::check_rhub().

Re: the invalid URL, this is the link to the academic paper this package is based on. When I released the original version of the package, I was asked to add this and the package passed okay.

I'm not sure what the other issues are or how to fix them.

Thank you in advance!


> checking CRAN incoming feasibility ... NOTE
  Found the following (possibly) invalid URLs:
      From: DESCRIPTION
      Status: 406
    URL: https://www.aaai.org/ocs/index.php/ICWSM/ICWSM14/paper/view/8109/8122
  
      Message: Not Acceptable

0 errors ✓ | 0 warnings ✓ | 1 note x

── vader 0.0.2: PREPERROR

  Build ID:   vader_0.0.2.tar.gz-9846551033aa41b89457853d228bb2ef
  Platform:   Ubuntu Linux 16.04 LTS, R-release, GCC
  Submitted:  3m 16.4s ago
  Build time: 9s

> Build failed during preparation or aborted

[...]
Started by user r-hub Jenkins admin
Building remotely on 10.2.0.5-ca79fee5 (slave swarm linux) in workspace /home/ubuntu/workspace/vader_0.0.2.tar.gz-9846551033aa41b89457853d228bb2ef
[vader_0.0.2.tar.gz-9846551033aa41b89457853d228bb2ef] $ /bin/sh -xe /tmp/hudson6504221530567452368.sh
date -u +%Y-%m-%dT%H:%M:%SZ
wget https://builder.r-hub.io/build/in-progress/vader_0.0.2.tar.gz-9846551033aa41b89457853d228bb2ef/2020-05-07T05:33:03Z
--2020-05-07 05:33:03--  https://builder.r-hub.io/build/in-progress/vader_0.0.2.tar.gz-9846551033aa41b89457853d228bb2ef/2020-05-07T05:33:03Z
Resolving builder.r-hub.io (builder.r-hub.io)... 54.241.228.251
Connecting to builder.r-hub.io (builder.r-hub.io)|54.241.228.251|:443... connected.
HTTP request sent, awaiting response... 200 OK
Syntax error in Set-Cookie: r-hub frontend=s%3A1f3625d9-dba5-4809-8a8d-972b7f1becdf.hhw%2FmvM3sZIVqfz20UIR39i2xFol7bTSQQ4GzUva28Q; Path=/; Expires=Thu, 07 May 2020 15:33:03 GMT at position 0.
Length: unspecified [application/json]
Saving to: '2020-05-07T05:33:03Z'

     0K                                                        1.88M=0s

2020-05-07 05:33:03 (1.88 MB/s) - '2020-05-07T05:33:03Z' saved [15]

docker run --user docker --rm rhub/ubuntu-gcc-release bash -c echo $RHUB_PLATFORM
export RHUB_PLATFORM=linux-x86_64-ubuntu-gcc

─ Downloading and unpacking package file

wget -O vader_0.0.2.tar.gz https://builder.r-hub.io/file/e03115c7cc8c4bb79b8b4f5e7c66323d
--2020-05-07 05:33:04--  https://builder.r-hub.io/file/e03115c7cc8c4bb79b8b4f5e7c66323d
Resolving builder.r-hub.io (builder.r-hub.io)... 54.241.228.251
Connecting to builder.r-hub.io (builder.r-hub.io)|54.241.228.251|:443... connected.
HTTP request sent, awaiting response... 200 OK
Syntax error in Set-Cookie: r-hub frontend=s%3Ab6006660-310c-4069-84cb-9d08fe30e124.0o%2FmM7%2FjzBB1nr3hYg1D%2B73r2Q0WOkFyVC2513fhCn8; Path=/; Expires=Thu, 07 May 2020 15:33:04 GMT at position 0.
Length: 85503 (83K) [application/octet-stream]
Saving to: 'vader_0.0.2.tar.gz'

     0K .......... .......... .......... .......... .......... 59% 13.1M 0s
    50K .......... .......... .......... ...                  100% 14.6M=0.006s

2020-05-07 05:33:04 (13.6 MB/s) - 'vader_0.0.2.tar.gz' saved [85503/85503]

tar tzf vader_0.0.2.tar.gz
grep ^[^/]*/DESCRIPTION$
DESC=vader/DESCRIPTION
tar xzf vader_0.0.2.tar.gz vader/DESCRIPTION

─ Querying system requirements

Rscript -e library(sysreqs); cat(sysreq_commands("vader/DESCRIPTION"))
Error in utils::download.file(url, path, method = download_method(), quiet = quiet,  : 
  cannot download all files
Calls: cat ... get_cran_deps -> download_json -> download -> <Anonymous>
In addition: Warning message:
In utils::download.file(url, path, method = download_method(), quiet = quiet,  :
  URL 'https://crandeps.r-pkg.org:443/deps/vader,tm,R,spelling': status was '404 Not Found'
Execution halted
sysreqs=
Build step 'Execute shell' marked build as failure


── vader 0.0.2: PREPERROR

  Build ID:   vader_0.0.2.tar.gz-53579414c6294766a5b926681de4ca68
  Platform:   Fedora Linux, R-devel, clang, gfortran
  Submitted:  3m 16.4s ago
  Build time: 9.6s

> Build failed during preparation or aborted

[...]
Started by user r-hub Jenkins admin
Building remotely on 10.2.0.5-ca79fee5 (slave swarm linux) in workspace /home/ubuntu/workspace/vader_0.0.2.tar.gz-53579414c6294766a5b926681de4ca68
[vader_0.0.2.tar.gz-53579414c6294766a5b926681de4ca68] $ /bin/sh -xe /tmp/hudson8369015288561495012.sh
date -u +%Y-%m-%dT%H:%M:%SZ
wget https://builder.r-hub.io/build/in-progress/vader_0.0.2.tar.gz-53579414c6294766a5b926681de4ca68/2020-05-07T05:32:59Z
--2020-05-07 05:32:59--  https://builder.r-hub.io/build/in-progress/vader_0.0.2.tar.gz-53579414c6294766a5b926681de4ca68/2020-05-07T05:32:59Z
Resolving builder.r-hub.io (builder.r-hub.io)... 54.241.228.251
Connecting to builder.r-hub.io (builder.r-hub.io)|54.241.228.251|:443... connected.
HTTP request sent, awaiting response... 200 OK
Syntax error in Set-Cookie: r-hub frontend=s%3Aa55da239-afe1-48bd-beb0-2a4ad58d9feb.1jDh5rK5kzP0U2gJX%2FkM9n5kzaQFPSLOax5U7mCbH8g; Path=/; Expires=Thu, 07 May 2020 15:32:59 GMT at position 0.
Length: unspecified [application/json]
Saving to: '2020-05-07T05:32:59Z'

     0K                                                         722K=0s

2020-05-07 05:32:59 (722 KB/s) - '2020-05-07T05:32:59Z' saved [15]

docker run --user docker --rm rhub/fedora-clang-devel bash -c echo $RHUB_PLATFORM
export RHUB_PLATFORM=linux-x86_64-fedora-clang

─ Downloading and unpacking package file

wget -O vader_0.0.2.tar.gz https://builder.r-hub.io/file/e03115c7cc8c4bb79b8b4f5e7c66323d
--2020-05-07 05:33:00--  https://builder.r-hub.io/file/e03115c7cc8c4bb79b8b4f5e7c66323d
Resolving builder.r-hub.io (builder.r-hub.io)... 54.241.228.251
Connecting to builder.r-hub.io (builder.r-hub.io)|54.241.228.251|:443... connected.
HTTP request sent, awaiting response... 200 OK
Syntax error in Set-Cookie: r-hub frontend=s%3Aabba1de9-b583-435f-8e87-17ce31aa6cbc.EYePZ5XlDnY19BUrcaT7h6q87Q14lrsUgWpcpZ2c1rQ; Path=/; Expires=Thu, 07 May 2020 15:33:00 GMT at position 0.
Length: 85503 (83K) [application/octet-stream]
Saving to: 'vader_0.0.2.tar.gz'

     0K .......... .......... .......... .......... .......... 59% 11.7M 0s
    50K .......... .......... .......... ...                  100% 15.8M=0.006s

2020-05-07 05:33:00 (13.0 MB/s) - 'vader_0.0.2.tar.gz' saved [85503/85503]

tar tzfgrep vader_0.0.2.tar.gz
 ^[^/]*/DESCRIPTION$
DESC=vader/DESCRIPTION
tar xzf vader_0.0.2.tar.gz vader/DESCRIPTION

─ Querying system requirements

Rscript -e library(sysreqs); cat(sysreq_commands("vader/DESCRIPTION"))
Error in utils::download.file(url, path, method = download_method(), quiet = quiet,  : 
  cannot download all files
Calls: cat ... get_cran_deps -> download_json -> download -> <Anonymous>
In addition: Warning message:
In utils::download.file(url, path, method = download_method(), quiet = quiet,  :
  URL 'https://crandeps.r-pkg.org:443/deps/vader,tm,R,spelling': status was '404 Not Found'
Execution halted
sysreqs=
Build step 'Execute shell' marked build as failure
1 Like

I would try again. It looks like it might be a temporary network issue.

When I open https://crandeps.r-pkg.org:443/deps/vader,tm,R,spelling in a browser tab, it properly returns the JSON response.

Also note that various of the rhub platforms currently have issues. In particular:

Thus instead of running devtools::check_on_rhub(), I'd recommend running rhub::check() to check the individual platforms you are most interested in.

1 Like

Great, thank you - I appreciate your suggestion!

1 Like