Shiny error after packages update: Unknown `composition` type - r

After some packages update, I'm no longer able to start my shiny application. The error I'm receiving it's not very clear:
Warning: Error in : Internal error: Unknown composition type. 69:
Error : Internal error: Unknown composition type.
I'm quite sure that this error is related to some update as, the same application works fine within another machine with the same R version (4.0) and the same Shiny version (booth are MACos).
Do some of you know how to trouble-shooting this?

Related

Error when deploy Shiny: "An error has occurred. The application failed to start. exit status 1"

I encounter an error when trying to publish my shiny apps, the code runs perfectly in the local R studio. However when I tried to deploy the Shiny I had this error
"An error has occurred
The application failed to start.
exit status 1"
error image
I have tried to clean the global environment and rerun the codes but same issue still occur. There are no warning message or errors in the r studio console as well. Any thoughts on what is causing this error?
Thank you in advance.

using Xpress failed

when I type using Xpress it show me two errors. One is
LoadError: XPRESS cannot be loaded. Please run Pkg.build("Xpress")
and another is
Failed to precompile Xpress [9e70acf3-d6c9-5be6-b5bd-4e2c73e3e054] to C:\Users\cys\.julia\compiled\v1.6\Xpress\jl_7C6D.tmp.
I tried to solve it by Pkg.build("Xpress") but it show me
ERROR: Error building `Xpress`:
ERROR: LoadError: Unable to locate Xpress installation.
Please check your enviroment variable XPRESSDIR.
Note that Xpress must be obtained separately from fico.com.
using XpressPkg.build("Xpress")
Please follow the installation instructions mentioned here: https://github.com/jump-dev/Xpress.jl#install which go into the perquisites installs required before you can successfully type using Xpress.

Flyway migration throwing Validation error

While running migration through flyway command line in Jenkins I am getting below error:
ERROR: Unexpected error org.flywaydb.core.api.FlywayException:
Validate failed: Detected applied migration not resolved locally:
12.0.4
Currently I am trying to run 20.0.1 which is lagtest version and earlier versions are not present in the files location.
I observed by the info that there are applied higher versions than 12.0.4(which is base version) on DB which are in missing state.
Can anyone help me why this error is occurring and how to resolve this?

RSelenium Error in envRefInferField

I am struggling all day with RSelenium. I have read everything I could find on net about the issue. And after all I am getting some earnings and errors I didn't get in the first place. When I execute checkForServer(), I get the watning:
Warning message:
checkForServer is deprecated.
Users in future can find the function in file.path(find.package("RSelenium"), "example/serverUtils").
The sourcing/starting of a Selenium Server is a users responsiblity.
Options include manually starting a server see vignette("RSelenium-basics", package = "RSelenium")
and running a docker container see vignette("RSelenium-docker", package = "RSelenium")
When I execute startServer(), I get the same warning as above.
In the end, when I run the code remDr <-remoteDriver() and remDr$open(), I get error:
Selenium message: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: java.lang.IllegalStateException
Further Details: run errorDetails method
I have also tried with chrome, but without succes.

Error: Unhandled Exception: 'NoneType' object has no attribute '__getitem__'

I am loading one of the example apps from Shiny R into ShiniApps.io`
library(shinyapps)
shinyapps::setAccountInfo(name='xxx', token='xxx', secret='xxx')
deployApp("01_hello")
and then I get this error:
Error: Unhandled Exception: 'NoneType' object has no attribute 'getitem'
The app appeared in the web-page of Shinyapps.io as "undeployed".
Any clue what may be causing this error? the error is the same whether I run R 64 or 32 bit.
I had the same problem today. I wasn't able to successfully deploy a new app (getting the same error), but I was able to redeploy a previous app.
I have tried removing all packages and code from my new app (left only empty shinyServer and shinyUI functions uncommented) and still couldn't deploy.
Restarted R several times. Updated all packages. Nothing helped.
A few hours later I tried to deploy again and it passed without errors.
I know this is not exactly an answer but I suspect it was a server-side error because it failed during the "Starting instances" step of deployment.
So try to deploy it again, hope it works this time.

Resources