Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error in mfunc: attempt to apply non-function #458

Closed
daattali opened this issue Oct 31, 2022 · 8 comments · Fixed by #459
Closed

Error in mfunc: attempt to apply non-function #458

daattali opened this issue Oct 31, 2022 · 8 comments · Fixed by #459

Comments

@daattali
Copy link
Contributor

daattali commented Oct 31, 2022

I have a shiny server pro v1.5.10.990 installed on an ubuntu machine.

A few weeks ago all the shiny apps hosted on the server started returning a 500 error.

The error logs for any app that I attempted to visit all had the same short contents:

Warning: Error in mfunc: attempt to apply non-function
  1: runApp

@wch told to me on Twitter that {bslib} has a function called "mfunc" so I might want to look there on my troubleshooting journey. It turns out that when I have {bslib} v0.4.0 installed, the above error happens. When I install v0.3.0, my shiny server works fine.

@cpsievert
Copy link
Collaborator

Thanks for the report! Can you repro the issue with a "hello world" app (e.g., shiny::runExample("01_hello"))?

@daattali
Copy link
Contributor Author

I can repro the issue with an app.R file that has shiny::shinyApp("test", function(input,output){})

@daattali
Copy link
Contributor Author

And similarly, with an Rmd file that has nothing other than frontend YAML

@cpsievert
Copy link
Collaborator

And what R version is this running on?

@daattali
Copy link
Contributor Author

3.6.1

@cpsievert
Copy link
Collaborator

cpsievert commented Oct 31, 2022

I can repro this issue (outside of SSP/SSO) with {memoise} 1.1.0 (on R 3.5.3) by running this app. Upgrading to the latest CRAN release (2.0.1) fixes it

@cpsievert cpsievert changed the title {bslib} v0.4.0 causes shiny server to return 500 error page for all apps Error in mfunc: attempt to apply non-function Oct 31, 2022
@daattali
Copy link
Contributor Author

Can confirm being on {bslib} 0.4.0 with memoise 2.0.0 works

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please open a new issue (with a reproducible example or feature request) and link to this issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants