R app run well in Rstudio but not in shiny server

Could anybody help me please?

I have RStudio and Shiny Server run into AWS. I am trying to run an app in Shiny Server, this app run well into Rstudio but when I run the same app into Shiny Server shows me this issue:
"An error has occurred
The application failed to start.
The application exited during initialization."

And into the log file has this:

su: ignoring --preserve-environment, it's mutually exclusive with --login
Error in strsplit(Psraws, "=")[[1]][[2]] : subscript out of bounds
Calls: runApp ... doTryCatch -> tryCatchList -> tryCatchOne ->
Execution halted

I have no idea what is happenning.