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

Couldn't load r.yml #200

Open
3 tasks
achuu126 opened this issue Mar 30, 2023 · 3 comments
Open
3 tasks

Couldn't load r.yml #200

achuu126 opened this issue Mar 30, 2023 · 3 comments

Comments

@achuu126
Copy link

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

What version of the buildpack you are using?

1.0.10

If you were attempting to accomplish a task, what was it you were attempting to do?

Trying to install R 3.6.0 while deploy my java api that calls R scripts.

What did you expect to happen?

Calling r-buildpack to install r 3.6.0

What was the actual behavior?

Got an error message

[/tmp/buildpacks/562c0325bb200290e28ffb4968680fdb/dependencies/adf6498b52f8fca9f3214c7040ffd3a2/r-v3.6.0-cflinuxfs3-5d41d2a3.tgz]

      [31;1m**ERROR**[0m Couldn't load r.yml: open /tmp/app/r.yml: no such file or directory

Failed to run all supply scripts: exit status 14

Exit status 225

Cell ec28f3c7-36dc-4e3b-b727-8272c730643d stopping instance b4a47885-b009-4f0e-8c21-b9496c0c456e

Cell ec28f3c7-36dc-4e3b-b727-8272c730643d destroying container for instance b4a47885-b009-4f0e-8c21-b9496c0c456e

FAILED

Please confirm where necessary:

  • I have included a log output

  • My log includes an error message

  • I have included steps for reproduction

@johnnyr0x
Copy link

@thitch97

@robdimsdale
Copy link
Member

@achuu126 do you have a sample app we can test this out on? What stack are you running on? It sounds like you're using a multi-buildpack with R and Java - if so can you share your Java buildpack version too?

@robdimsdale robdimsdale moved this from ❓ Not scoped to 📝 Todo in CF Buildpacks Workstreams Apr 25, 2023
@nathanweeks
Copy link

I have observed this error as well; adding an empty r.yml resolved the issue.

I'm not a Go programmer, but glancing at the relevant code, it appears that an r.yml may currently be effectively required?

yaml := libbuildpack.NewYAML()
path_to_ryml := filepath.Join(s.Stager.BuildDir(), "r.yml")
packages_to_install := Packages{}
if err := yaml.Load(path_to_ryml, &packages_to_install); err != nil {
s.Log.Error("Couldn't load r.yml: %s", err)
return fmt.Errorf("Couldn't load r.yml: %s", err)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📝 Todo
Development

No branches or pull requests

5 participants