I want to deploy a Shiny app on the Shiny server but not able to access the app from the local server URL.
This is the output of /var/log/shiny-server.log:
[2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
[2016-04-11 21:42:29.564] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:42:29.570] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:15.156] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:15.163] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:28.593] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:28.604] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:43:54.549] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:51:52.528] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:20.004] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:20.020] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:52:26.843] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:56:10.938] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2016-04-11 21:56:10.946] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
What is the problem?
I have run into this situation before when my R code was failing. Since I write my R code on a windows machine and run my shiny server on ubuntu, some packages work fine in on windows but fail in ubuntu or if I forget to install the package on the ubuntu machine. To find out when that's happening you have to go to the apps log not the servers log.
There should be a log specific to your app in:
\var\log\shiny-server\YourAppName-20191112-170851-44977.log
The numbers after App Name have to do with the timestamp of when the app tried to run. This log file will contain the R output if there are any errors with specific packages or your R code causing the app to fail.
Maybe you can have a look here.
I would focus on this error
[2016-04-11 21:39:24.302] [INFO] shiny-server - Starting listener on 0.0.0.0:3838
On the provided link you'll find that a couple of user double checked permissions: on port 3838 and on the shiny server.
Furthermore I recommend to have a look at this guide.
I was able to run my shiny app on an Ubuntu RStudio server by following it.
I ran into this problem and all of my logs were empty / unopenable. After much banging my head against the wall I was able to fix this by changing the shiny user in the conf file (/etc/shiny-server/shiny-server.conf).
I changed "run_as shiny;" to "run_as :HOME_USER: shiny;".
Also, this:
https://docs.rstudio.com/shiny-server/
was more helpful than anything I could find on stackoverflow, github, or google groups.
Related
The following build commands failed:
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /var/root/Library/Developer/Xcode/DerivedData/APPNAME-amivxpiudfokodaybfmgyefynkvt/Build/Intermediates.noindex/EzSchoolApps.build/Debug-iphonesimulator/EzSchoolApps.build/Script-2E6AFD309B981ED6E1842543.sh
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running sub process Cordova.
Cordova build iOS exited with exit code 65.
How to resolve above issue..?
I am trying to integrate jmeter with spring mvc. I have captured all the request using blazemeter and converted in .jmx file. I have placed this jmx file in test/jmeter folder. When I try to install, I am getting following error.
Executing test: Dagwidouthtml.jmx INFO 2016-07-06 14:10:59.229 [jmeter.e] (): Listeners will be started after enabling running version INFO 2016-07-06 14:10:59.230 [jmeter.e] (): To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false [info] Completed Test: Dagwidouthtml.jmx [info] [info] Building JMeter Report(s)... [info] [info] Raw results: /home/trina/git/framework_loadTest/target/jmeter/report/Dagwidouthtml-160706.jtl [info] Test report: /home/trina/git/framework_loadTest/target/jmeter/report/Dagwidouthtml-160706.jtl-report.html [INFO] [INFO] Test Results: [INFO] [INFO] Tests Run: 1, Failures: 6, Errors: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 46.269 s [INFO] Finished at: 2016-07-06T14:11:10-04:00 [INFO] Final Memory: 44M/481M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.lazerycode.jmeter:jmeter-maven-plugin:1.4.1:jmeter (jmeter-tests) on project framework: There were test failures. See the jmeter logs for details. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
So why you're posting Maven output here while it states the following:
There were test failures. See the jmeter logs for details
The log file is usually located at target/jmeter/logs/${yourscript}.log
Inspect the log file and if you won't be able to figure out the problem yourself.
The possible reason (apart from misconfiguration) I can think of is that jmeter-maven-plugin still depends on JMeter 2.13 so if you're trying to use features, introduced in JMeter 3.0 in your script - the failures are absolutely expected.
Also see documentation on JMeter Maven Plugin on Github - it is the most comprehensive source.
I am facing error while trying to deploy shiny app to shinyapps.io. Please suggest the workaround
deployApp(appName = "tweethunt")
Preparing to deploy application...DONE
Uploading bundle for application: 102109...DONE
Deploying bundle: 451828 for application: 102109 ...
Waiting for task: 181773387
building: Parsing manifest
building: Building image: 444041
building: Installing system dependencies
################################ Begin Task Log ################################
[2016-05-15T05:46:13.400250769+0000] Execute script: packages/build/tm.sh
+ set -e
+ apt-get update -qq
W: Size of file /var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty-updates_multiverse_binary-amd64_Packages.gz is not what the server reported 14288 14289
W: Size of file /var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty-security_universe_binary-amd64_Packages.gz is not what the server reported 165433 165443
W: Size of file /var/lib/apt/lists/us-east-1.ec2.archive.ubuntu.com_ubuntu_dists_trusty-security_multiverse_binary-amd64_Packages.gz is not what the server reported 4853 4855
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_main_source_Sources.gz is not what the server reported 143399 143405
W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty-security_universe_binary-amd64_Packages.gz is not what the server reported 165433 165443
W: Failed to fetch http://cran.rstudio.com/bin/linux/ubuntu/trusty/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
################################# End Task Log #################################
Error: Unhandled Exception: Child Task 181773388 failed: Error building image: Build exited with non-zero status: 100
I have a maven 2 job configured in Jenkins, and under the Build I use
clean test release:prepare ...
in the goals options. Jenkins runs these goals sequenctiallay, and when test runs, it prints (and works nice):
[WARNING] [LAUNCHER] Using regular flashplayer tests
But when it tries to run prepare I get,
[INFO] [WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Failed to launch Flash Player. Probably java was not able to find flashplayer.
[INFO] Make sure flashplayer is available on PATH
[INFO] or use -DflashPlayer.command=${flashplayer executable}
[INFO] Read more at: https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests
So the same jobs, same jenkins, same job configuration, how can I make it work so that prepare also works like the clean goal?
I have also tried what the error suggest, that is, putting:
-Dflex.flashPlayer.command=/opt/player_10/flashplayer", "-DflashPlayer.command=/opt/player_10/flashplayer
I am getting below error when I try to use hudson and maven, Any idea how to resolve?
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error occurred because there is no graphics environment available. Please set the headless-server setting in the Flex configuration file to true.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.InternalError: An error occurred because there is no graphics environment available.
Thanks
sharp
Under <compiler> tag in flex-config.xml add
<headless-server>true</headless-server>