-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build_news curl error schannel: next InitializeSecurityContext failed #2211
Comments
I've cloned your repository and do not get the error but I also see the changelog is empty in the resulting pkgdown website. The headers in https://github.com/hydrosolutions/riversCentralAsia/blob/master/NEWS.md?plain=1 are not in the format expected by pkgdown, see https://pkgdown.r-lib.org/reference/build_news.html I've made a PR hydrosolutions/riversCentralAsia#107 I'd also recommend not building the website locally yourself: instead you could rely on GitHub Actions. If you
then at each commit to the default branch, the website will be automatically built and deployed to the gh-pages branch. You might need to change the GitHub Pages settings of your repository. Then if you get a bug again, you can post a link to the log of the GitHub Actions run. 😸 |
(noting this does not solve the curl problem you saw 🤔 😅 ) |
Wow, fantastically quick! Thank you for noticing the formatting problem in NEWS.md I merged your fix. I also deleted docs and commited after use_github_action. It takes several minutest to set up the dependencies and after adding tidyverse to the Dependencies the pkgdown workflow runs through without error. However, there is still an older workflow pages-build-deployment which errrors because it doesn't find docs. I need to ask my colleague to remove that workflow. Hopefully this will solve the problem! Thanks a lot for your tips!! |
It was lucky timing. You're welcome! 😸 To fix the GitHub pages deployment you need to change the source of the GitHub Pages website from the docs folder to the gh-pages branch see https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-from-a-branch After you do that and when it works you can add the URL of the deployed pkgdown website to DESCRIPTION, |
Hi @maelle, have a similar issue for one of my R packages kwb.geosalz, where I have a cron job for pkgdown (which worked fine until 2022-10-14) also crashed today during rendering of NEWS.md. Here the GH actions log for
|
@gaborcsardi (happy to report this possible bug elsewhere!) pkgdown calls crandb.r-pkg.org Lines 259 to 280 in 7fe9e80
There have been two reports of errors (like in the comment right before this one). Could this be due to something intermittently wrong with the API? |
Could it be related to the new version of |
Which comment? The original message shows that miktex.org fails as well, so it is more like to be something in Windows or the curl binary. @mabesa does it work with base R? download.file("https://miktex.org", tmp <- tempfile()) EDIT: Actually, miktex.org seems to be OK, that message is not an error. Never mind then. |
the error was
Locally I didn't get it. |
@mrustl by the way why build the pkgdown website on Windows on GitHub Actions? |
@maelle because my vignette uses |
A workaround that probably works is to set the |
r-lib/pkgdown#2211 (comment)). Worked already locally on in my Win10 Pro OS
workaround CURL_SSL_BACKEND="openssl" (r-lib/pkgdown#2211 (comment))
I've also been getting this error for a couple weeks. I was getting it on multiple packages, and multiple versions of pkgdown. Finally I found a workaround by turning off the news release dates in the _pkdown.yml, like this: news: Now it is fixed on all my packages. I'm mentioning this to help anyone with the same error, but also give a clue regarding diagnosis/resolution. Ultimately, I'd like to get the release dates on my news files back. |
@dbosak01 Are you on Windows? Does the workaround suggested above work for you? |
This should be fixed now. |
@gaborcsardi Confirmed! Thanks much! |
Thanks @gaborcsardi! |
(and thanks @jeroen 😸) |
usethis::use_pkgdown() apparently successful, but pkgdown::build_site() fails with Error: ! in callr subprocess. Caused by error in `inDL(x, as.logical(local), as.logical(now), ...)`: ! unable to load shared object 'C:/R/R-4.3.2/library/httpuv/libs/x64/httpuv.dll': LoadLibrary failure: The specified procedure could not be found. Then usethis::use_pkgdown_github_pages() apparently successful. Following r-lib/pkgdown#2211 (comment), delete /docs and try pushing to initiate GHA.
Hello,
I'm getting the following an error from curl for a site to the package available here: https://github.com/hydrosolutions/riversCentralAsia/ that seems (to me) to point to a connection error (error message below). It might all be a curl problem but as the news page does not seem to be quite properly deployed on the package site: https://hydrosolutions.github.io/riversCentralAsia/news/index.html I thought I might dare to bother you here.
I would greatly appreciate any help.
Below are error message, version infos, and what I tried.
I'm working with R version 4.2.1 in RStudio 2022.07.1 Build 554, pkgdown is version 2.0.6
$ssl_version
[1] "(OpenSSL/1.1.1k) Schannel"
$libz_version
[1] "1.2.12"
$libssh_version
[1] "libssh2/1.9.0"
$libidn_version
[1] NA
$host
[1] "x86_64-w64-mingw32"
$protocols
[1] "dict" "file" "ftp" "ftps" "gopher" "http" "https" "imap" "imaps" "ldap"
[11] "ldaps" "pop3" "pop3s" "rtsp" "scp" "sftp" "smtp" "smtps" "telnet" "tftp"
$ipv6
[1] TRUE
$http2
[1] FALSE
$idn
[1] TRUE
I tried to test curl_fetch_memory following this thread jeroen/curl#261
Here is the output:
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=utf-8
< Server: Microsoft-IIS/10.0
< Strict-Transport-Security: max-age=2592000
< Date: Fri, 14 Oct 2022 15:01:40 GMT
< Content-Length: 21113
<
This is where it becomes a tick too geeky for me to follow up on.
The text was updated successfully, but these errors were encountered: