Skip to content
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

R release builds failing (3.3.0 "corrupted and unreadable") #68

Closed
achubaty opened this issue Jun 22, 2016 · 19 comments
Closed

R release builds failing (3.3.0 "corrupted and unreadable") #68

achubaty opened this issue Jun 22, 2016 · 19 comments

Comments

@achubaty
Copy link

I'm assuming this is a transient issue caused by the release of R 3.3.1 but I figure I should report it here anyway, in case an update is required on your end.

== 06/22/2016 15:12:13: Version: release
== 06/22/2016 15:12:14: URL path: 
== 06/22/2016 15:12:14: Downloading R from: https://cloud.r-project.org/bin/windows/base/R-3.3.0-win.exe
== 06/22/2016 15:12:15: Running R installer
This command cannot be run due to the error: The file or directory is corrupted and unreadable

Thank you.

@achubaty
Copy link
Author

looks like this is the same error as #62

@gaborcsardi
Copy link

That's probably me not updating rversions.r-pkg.org. I'll try to get to it today.

@achubaty
Copy link
Author

https://github.com/krlmlr/r-appveyor/blob/master/scripts/appveyor-tool.ps1#L68-L74

for appveyor builds using release, does it make more sense to use the persistent link CRAN provides to the release version?

https://cran.rstudio.com/bin/windows/base/release.htm

of course you can use a different CRAN mirror if desired.

@krlmlr
Copy link
Owner

krlmlr commented Jun 22, 2016

@achubaty: I find parsing r-pkg.org easier than parsing the persistent CRAN link, I guess the latter requires some web scraping. I'd review a PR, though.

@achubaty
Copy link
Author

@krlmlr sorry I should have been more clear. I meant to use the persistent link for the download. I'll take a closer look and see if a PR will make it clearer/cleaner. The goal is to ensure that release (and devel) always work, with fewer manual updates required.

achubaty added a commit to achubaty/r-appveyor that referenced this issue Jun 22, 2016
achubaty added a commit to achubaty/r-appveyor that referenced this issue Jun 22, 2016
@achubaty
Copy link
Author

hmm I can't get this to work...I don't know PowerShell enough to know whether it is able to correctly resolve the redirect URL to get the .exe.

@gaborcsardi
Copy link

@krlmlr Looks like you don't need to parse HTML, that link just redirects to the installer.

@achubaty
Copy link
Author

achubaty commented Jun 22, 2016

hmm I can't get this to work...I don't know PowerShell enough to know whether it is able to correctly resolve the redirect URL to get the .exe.

I see it's using curl -L which should follow the redirect. but see https://curl.haxx.se/docs/faq.html#Redirects_work_in_browser_but_no

@krlmlr
Copy link
Owner

krlmlr commented Jun 23, 2016

Contents of release.htm:

<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=R-3.3.1-win.exe">
<body></body>

Doesn't seem like CURL can do it (but then I didn't really look into it): http://stackoverflow.com/a/32939779/946850

@achubaty
Copy link
Author

@gaborcsardi does r-pkg.org use a cronjob or similar to update the json for r-release and r-oldrel? something along these lines would reduce the manual updating you otherwise have to do.

library(jsonlite)
library(rversions)
cat(toJSON(r_oldrel()), file = "r-oldrel.json")
cat(toJSON(r_release()), file = "r-release.json")

@gaborcsardi
Copy link

Should be OK now, just updated it to 3.3.1.

The reason for the manual update is that https://github.com/metacran/r-builder relies on it, so I have to make the new version available there.

This will solve it: r-hub/rversions.app#2

I just need to remember implementing it before the next R release time.....

@achubaty
Copy link
Author

achubaty commented Jun 26, 2016

Awesome, thanks!

@krlmlr
Copy link
Owner

krlmlr commented Jul 29, 2016

I guess this can be closed. Please comment or add a new issue if the problem persists.

@krlmlr krlmlr closed this as completed Jul 29, 2016
@gaborcsardi
Copy link

@krlmlr OK, so now we have the opposite problem. rversions reports the new version, 3.3.2, but no windows downloads are available just yet.

I am implementing r-hub/rversions.app#2 right now, FYI.

@gaborcsardi
Copy link

OK, so I guess you can query http://rversions.r-pkg.org/r-release-win now.

@krlmlr
Copy link
Owner

krlmlr commented Oct 31, 2016

Thanks. Does it make sense to have http://rversions.r-pkg.org/r-oldrel-win, too?

@gaborcsardi
Copy link

I think oldrel is fine. Older binaries are always available AFAICT.

@IndrajeetPatil
Copy link

I am getting the same error. What should I do? Is my R directory corrupt or something?
I ran devtools::check() and that did not give me any warnings, errors, or notes, so surprised that the build is faling.

[00:00:00] Build started
[00:00:00] $ErrorActionPreference = "Stop"
[00:00:00] Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
[00:00:00] Import-Module '..\appveyor-tool.ps1'
[00:00:00] 
[00:00:00] git clone -q --branch=master https://github.com/IndrajeetPatil/ggstatsplot.git C:\projects\ggstatsplot
[00:00:02] git checkout -qf ca469e3557262436f85cd61ce8877e5d26f2e485
[00:00:02] Running Install scripts
[00:00:02] Bootstrap
[00:00:02] == 03/11/2018 03:32:50: Bootstrap: Start
[00:00:02] == 03/11/2018 03:32:50: Adding GnuWin32 tools to PATH
[00:00:02] == 03/11/2018 03:32:50: Setting time zone
[00:00:02] UTC
[00:00:02] GMT Standard Time
[00:00:02] == 03/11/2018 03:32:50: Version: patched
[00:00:03] == 03/11/2018 03:32:51: URL path: 
[00:00:03] == 03/11/2018 03:32:51: Downloading R from: https://cloud.r-project.org/bin/windows/base/R-3.4.3patched-win.exe
[00:00:03] == 03/11/2018 03:32:51: Running R installer
[00:00:03] This command cannot be run due to the error: The file or directory is corrupted and unreadable.
[00:00:03] 7z a failure.zip *.Rcheck\*
[00:00:03] 
[00:00:03] 7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04
[00:00:03] 
[00:00:03] Scanning the drive:
[00:00:03] 0 files, 0 bytes
[00:00:03] 
[00:00:03] Creating archive: failure.zip
[00:00:03] 
[00:00:03] Items to compress: 0
[00:00:03] 
[00:00:03] 
[00:00:03] Files read from disk: 0
[00:00:03] Archive size: 22 bytes (1 KiB)
[00:00:03] Everything is Ok
[00:00:03] appveyor PushArtifact failure.zip
[00:00:11] 
[00:00:11] Uploading artifact failure.zip (22 bytes)...100%

@krlmlr
Copy link
Owner

krlmlr commented Mar 21, 2018

@IndrajeetPatil: This problem looks like a duplicate of #112.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants