RED5 demos not working, caused by "scope not found" - ubuntu-14.04

I am trying to run RED5 (version 1.0.7) on UBUNTU 14.04, the server is working but all demos are broken. Most of them fail with a scope problem, example:
org.red5.server.net.rtmp.RTMPHandler - Scope bwcheck not found
I thing i need to modify something in the configuration, maybe in red5-web.xml as i see it an other post :
change
<bean id="web.scope" class="org.red5.server.scope.WebScope" init-method="register">
to
<bean id="web.scope" class="org.red5.server.WebScope" init-method="register">
Or should i move demos in an other place because the html files used are in $RED5_HOME/webapps/root/demos, but some parts of the demo seems to be located in $RED5_HOME/webapps eg (chat, live, vod)
well i don't really know tomcat and the java logic but some help will really be welcome.
Thanks
Log:
[WARN] [RTMPConnectionExecutor-4] org.red5.server.net.rtmp.RTMPHandler - Scope not found
org.red5.server.exception.ScopeNotFoundException: Scope not found: bwcheck in null
at org.red5.server.scope.ScopeResolver.resolveScope(ScopeResolver.java:112)
at org.red5.server.Context.resolveScope(Context.java:158)
at org.red5.server.net.rtmp.RTMPHandler.onCommand(RTMPHandler.java:323)
at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:116)
at org.red5.server.net.rtmp.ReceivedMessageTask.call(ReceivedMessageTask.java:72)
at org.red5.server.net.rtmp.ReceivedMessageTask.call(ReceivedMessageTask.java:38)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[INFO] [RTMPConnectionExecutor-4] org.red5.server.net.rtmp.RTMPHandler - Scope bwcheck not found on localhost
[WARN] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaIoHandler - Destination connection was null, it is already disposed. Session id: DSNGKAODSPSGV
[INFO] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaConnection - Connection is closed: DSNGKAODSPSGV
[WARN] [NioProcessor-14] org.red5.server.net.rtmp.RTMPMinaIoHandler - Connection was not found for DSNGKAODSPSGV
[INFO] [pool-4-thread-1] org.red5.server.tomcat.WarDeployer - Deploy wars with app start
[INFO] [pool-4-thread-1] org.red5.server.tomcat.WarDeployer - Deploy wars with app start

In this case it probably means that you're missing the bwcheck app; by that I mean you should have a directory named bwcheck in red5/webapps and it should have various files in it, such as WEB-INF/red5-web.xml and WEB-INF/web.xml. If the files are there and its still not found, then the app didn't load / start for some reason; in that case you have to debug it by reading the logs and possibly increasing the log level.
Lastly, you should identify which version of Red5 you're using.

Related

Android studio proxy settings

I'm using ubuntu 16 and I downloaded and installed the last version of android-studio (file android-studio-ide-181.5056338-linux.zip).
I'm running android-studio behind a corporate proxy. I unzipped the file and I launched the studio.sh and I configured the proxy by following these links https://developer.android.com/studio/intro/studio-config#proxy and link https://www.jetbrains.com/help/idea/2018.1/settings-http-proxy.html
Note I configured also my proxy authentication (both username and password) as showed in this image:
When I check the connection if I use some unsecure URLs (e.g. http://www.google.it) all works pretty good; the check is OK. If I use secure URLs (e.g. https://www.google.it) I get a 407 error (authentication required)
as showed in this image
Then I saved the settings and closed the IDE. Note I created no project yet... I just installed the IDE.
Now every time I start the IDE in the idea.log I see the following error:
2018-10-24 10:21:40,985 [e-1136-b06] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2018-10-24 10:21:48,630 [d thread 2] INFO - ateSettings.impl.UpdateChecker - Status: 407
com.intellij.util.io.HttpRequests$HttpStatusException: Status: 407. Status=407, Url=https://dl.google.com/android/studio/patches/updates.xml?uid=a40d2545-8f35-41af-bfbd-4bb898d2dc21&os=Linux+4.4.0-138-generic&build=AI-181.5540.7.32.5056338
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:512)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:49)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:278)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:287)
at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:305)
at com.intellij.util.io.HttpRequests$RequestImpl.getReader(HttpRequests.java:298)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$checkPlatformUpdate$1.process(UpdateChecker.kt:176)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$checkPlatformUpdate$1.process(UpdateChecker.kt:54)
at com.intellij.util.io.HttpRequests.lambda$doProcess$0(HttpRequests.java:403)
at com.intellij.util.net.ssl.CertificateManager.runWithUntrustedCertificateStrategy(CertificateManager.java:335)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:403)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:383)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:49)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:252)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.checkPlatformUpdate(UpdateChecker.kt:174)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.doUpdateAndShowResult(UpdateChecker.kt:120)
at com.intellij.openapi.updateSettings.impl.UpdateChecker.access$doUpdateAndShowResult(UpdateChecker.kt:54)
at com.intellij.openapi.updateSettings.impl.UpdateChecker$updateAndShowResult$2.run(UpdateChecker.kt:97)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
at com.intellij.openapi.progress.impl.CoreProgressManager$5.run(CoreProgressManager.java:434)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$null$10(ApplicationImpl.java:565)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2018-10-24 10:21:48,631 [d thread 2] INFO - ateSettings.impl.UpdateChecker - Connection failed (Status: 407). Please check network connection and try again.
So it seems that my proxy settings are not used by the update phase. Note i tried also to use unsecure connections but the error remains.
Ho can I solve this issue?
Thank you
Angelo
Try this.
Change your Proxy settings like this.
And test your connection again.
https://developer.android.com/studio/intro/studio-config#proxy

Nodejs to Couchbase Server timed out

My app is actually running fine when I started it and keep an eye on it for few hours.
BUT later time(I'm not sure what exact time of inactivity), It does show "Server timed out" (I crop some logs below)
[ERROR] (server - L:463) <node.mycouchbase.server:11210> (SRV=0x2111c60,IX=4) Server timed out. Some commands have failed
[INFO] (confmon - L:166) Not applying configuration received via CCCP. No changes detected. A.rev=152466, B.rev=152466
[INFO] (cccp - L:110) Re-Issuing CCCP Command on server struct 0x2116980
[ERROR] (cccp - L:133) <NOHOST:NOPORT> Got I/O Error=0x17
[INFO] (cccp - L:110) Re-Issuing CCCP Command on server struct 0x2185e30
All just working fine again when I restart my Node.js app (Expressjs app).
This problem seem regularly happening
Please give me some suggestion what could be actually problems behind.
Thanks

While deploying more than one Spring Boot application in a single Tomcat server means showing exception. How to solve this?

I am using Spring Boot in my Java application, and to deployment used Tomcat 7. I was trying to deploy multiple Spring Boot projects in the same server it showing exceptions. But deploy one Spring Boot application and another one was Spring application means it's working.
The exception is:
2016-01-22 08:05:18.301 INFO 16021 --- [ost-startStop-1] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'environmentManager' has been autodetected for JMX exposure
2016-01-22 08:05:18.303 INFO 16021 --- [ost-startStop-1] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'environmentManager': registering with JMX server as MBean [org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager]
2016-01-22 08:05:18.312 INFO 16021 --- [ost-startStop-1] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/classes/, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/activation-1.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/antlr-2.7.7.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aopalliance-1.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aopalliance-repackaged-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/apns-0.1.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/asm-all-repackaged-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aspectjrt-1.8.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/aspectjweaver-1.8.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bcpkix-jdk15on-1.47.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bcprov-jdk15on-1.47.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/bean-validator-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/class-model-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/classmate-1.0.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/com.ibm.jbatch-tck-spi-1.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-beanutils-1.9.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-codec-1.9.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-collections-3.2.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-digester-2.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-fileupload-1.3.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-io-2.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-lang-2.4.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-logging-1.0.4.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/commons-validator-1.3.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/config-types-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/core-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/dom4j-1.6.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hamcrest-core-1.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-commons-annotations-4.0.5.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-core-4.3.10.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-entitymanager-4.3.10.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-jpamodelgen-4.3.10.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hibernate-validator-5.1.3.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-api-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-config-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-locator-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-runlevel-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hk2-utils-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-commons-2.4.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-core-client-2.4.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-jms-client-2.4.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-journal-2.4.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hornetq-native-2.4.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/hsqldb-2.3.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/httpclient-4.5.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/httpcore-4.4.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/imgscalr-lib-4.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-annotations-2.4.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-core-2.4.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-core-asl-1.4.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-databind-2.4.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-jaxrs-base-2.3.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-jaxrs-json-provider-2.3.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-mapper-asl-1.4.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jackson-module-jaxb-annotations-2.3.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jandex-1.1.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javassist-3.18.1-GA.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.annotation-api-1.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.batch-api-1.0.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.inject-1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.inject-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.transaction-api-1.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/javax.ws.rs-api-2.0.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-annotations-api_1.2_spec-1.0.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-jms-api_2.0_spec-1.0.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-logging-3.1.3.GA.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-logging-annotations-1.2.0.Beta1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jboss-websocket-api_1.1_spec-1.1.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jcl-over-slf4j-1.7.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-bean-validation-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-client-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-common-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-container-servlet-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-container-servlet-core-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-guava-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-media-json-jackson-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-media-multipart-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-server-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jersey-spring3-2.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jettison-1.2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jgroups-3.3.4.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/json-simple-1.1.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/jul-to-slf4j-1.7.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/junit-4.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/log4j-over-slf4j-1.7.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/logback-classic-1.1.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/logback-core-1.1.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mail-1.4.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mimepull-1.9.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/mysql-connector-java-5.1.35.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/neo4j-cypher-compiler-2.1-2.1.5.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/netty-all-4.0.13.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/opencsv-2.3.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/osgi-resource-locator-1.0.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/parboiled-core-1.1.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/parboiled-scala_2.10-1.1.6.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/scala-library-2.10.4.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/slf4j-api-1.7.12.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/snakeyaml-1.14.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-aop-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-aspects-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-batch-core-3.0.4.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-batch-infrastructure-3.0.4.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-beans-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-actuator-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-autoconfigure-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-actuator-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-aop-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-batch-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-data-jpa-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-hornetq-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-jdbc-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-jersey-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-logging-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-security-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-undertow-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-boot-starter-web-1.2.5.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-bridge-2.3.0-b10.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-commons-1.0.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-context-1.0.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-security-1.0.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-1.0.3.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-oauth2-1.0.3.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-cloud-starter-security-1.0.3.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-context-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-core-4.1.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-data-commons-1.9.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-data-jpa-1.7.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-expression-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-jms-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-messaging-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-orm-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-retry-1.1.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-config-3.2.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-core-3.2.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-crypto-3.2.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-jwt-1.0.3.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-oauth2-2.0.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-security-web-3.2.7.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-social-core-1.1.2.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-tx-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-web-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/spring-webmvc-4.1.6.RELEASE.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tiger-types-1.4.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tomcat-jdbc-8.0.23.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/tomcat-juli-8.0.23.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-core-1.1.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-servlet-1.1.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/undertow-websockets-jsr-1.1.7.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/validation-api-1.1.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xml-apis-1.0.b2.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xmlpull-1.1.3.1.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xnio-api-3.3.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xnio-nio-3.3.0.Final.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xpp3_min-1.1.4c.jar, file:/usr/local/apache-tomcat-7.0.34/webapps/sunbox/WEB-INF/lib/xstream-1.4.2.jar]
2016-01-22 08:05:18.317 INFO 16021 --- [ost-startStop-1] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report enable debug logging (start with --debug)
2016-01-22 08:05:18.324 ERROR 16021 --- [ost-startStop-1] o.s.boot.SpringApplication : Application startup failed
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.springframework.cloud.context.environment.EnvironmentManager#5edb3f8d] with key 'environmentManager'; nested exception is javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)
at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550)
at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.context.web.SpringBootServletInitializer.run(SpringBootServletInitializer.java:119)
at org.springframework.boot.context.web.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:110)
at org.springframework.boot.context.web.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:69)
at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5274)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1655)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: javax.management.InstanceAlreadyExistsException: org.springframework.cloud.context.environment:name=environmentManager,type=EnvironmentManager
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:195)
at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:678)
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)
... 25 common frames omitted
I think what happens when you deploy multiple Spring Boot applications is those apps try to register to jmx on the same jvm using the same name.
Check this issue for the solution https://github.com/spring-cloud/spring-cloud-config/issues/118
Copy-paste from DavidBiesack's solution
(regarding application.properties or application.yaml)
I was able to solve this by defining the following in my application.properties
spring.application.name=my-app-name
spring.jmx.default-domain=my-app-name
Or for application.yaml:
spring:
application:
name: my-app-name
jmx:
default-domain: my-app-name
In my case, we need to have two of the same application online during updates before cutting over sessions to maintain 100% uptime. In this case, you cannot just specify a unique name (unless you update it for each potential deployment). Instead, I disabled jmx with the following setting in my application.yml file for all profiles:
spring:
jmx:
enabled: false
I think the jmx doesn't allow 2 beans with the same objectName to be created.
You have 2 options.
Turn off JMX and try to start it again.
Change the name of the bean environmentManager(and any other duplicated bean) on one of the applications you are putting in the same container

NEO4J local server does not start

I am running Linux in VirtualBox and am having an issue that I did not encounter on my machine with Linux as the primary OS.
When launching the neo4j service through sudo ./neo4j start in /opt/neo4j-community-2.3.1/bin I get a timeout with the message Failed to start within 120 seconds. Neo4j Server may have failed to start, please check the logs
my log from /opt/neo4j-community-2.3.1/data/graph.db/messages.log says:
http://pastebin.com/wUA715QQ
and data/log/console.log says:
2016-01-06 02:07:03.404+0100 INFO Successfully started database
2016-01-06 02:07:03.603+0100 INFO Successfully stopped database
2016-01-06 02:07:03.604+0100 INFO Successfully shutdown Neo4j Server
2016-01-06 02:07:03.608+0100 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.security.auth.FileUserRepository#9ab182' was successfully initialized, but failed to start. Please see attached cause exception. Starting Neo4j failed: Component 'org.neo4j.server.security.auth.FileUserRepository#9ab182' was successfully initialized, but failed to start. Please see attached cause exception.
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.security.auth.FileUserRepository#9ab182' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:67)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:234)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:97)
at org.neo4j.server.CommunityBootstrapper.start(CommunityBootstrapper.java:48)
at org.neo4j.server.CommunityBootstrapper.main(CommunityBootstrapper.java:35)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.security.auth.FileUserRepository#9ab182' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:462)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:194)
... 3 more
Caused by: java.nio.file.AccessDeniedException: /opt/neo4j-community-2.3.1/data/dbms/auth
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.Files.readAllBytes(Files.java:3152)
at org.neo4j.server.security.auth.FileUserRepository.loadUsersFromFile(FileUserRepository.java:208)
at org.neo4j.server.security.auth.FileUserRepository.start(FileUserRepository.java:73)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
... 5 more
Any idea why the server won't start?
Check the permissions on /opt/neo4j-community-2.3.1/data/dbms/auth
See the line that says:
Caused by: java.nio.file.AccessDeniedException: /opt/neo4j-community-2.3.1/data/dbms/auth

Apache Spark compile failed while installing Netty

We untar spark-0.9.0-incubating.tgz and trying to build it for use with Yarn.
SPARK_HADOOP_VERSION=2.0.0-cdh4.6.0 SPARK_YARN=true sbt/sbt assembly
...
[info] Resolving io.netty#netty-all;4.0.13.Final ...
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-all/4.0.13.Final/netty-all-4.0.13.Final.pom
[error] Server access Error: Connection timed out url=https://oss.sonatype.org/service/local/staging/deploy/maven2/io/netty/netty-all/4.0.13.Final/netty-all-4.0.13.Final.pom
...
If I just cut-paste the url into a browser, I get:
404 - ItemNotFoundException
Retrieval of /io/netty/netty-all/4.0.13.Final/netty-all-4.0.13.Final.pom from M2Repository(id=snapshots) is forbidden by repository policy SNAPSHOT.
org.sonatype.nexus.proxy.ItemNotFoundException: Retrieval of /io/netty/netty-all/4.0.13.Final/netty-all-4.0.13.Final.pom from M2Repository(id=snapshots) is forbidden by repository policy SNAPSHOT.
at org.sonatype.nexus.proxy.maven.AbstractMavenRepository.doRetrieveItem(AbstractMavenRepository.java:380)
at org.sonatype.nexus.proxy.maven.maven2.M2Repository.doRetrieveItem(M2Repository.java:396)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:765)
at org.sonatype.nexus.proxy.repository.AbstractRepository.retrieveItem(AbstractRepository.java:608)
at org.sonatype.nexus.proxy.router.DefaultRepositoryRouter.retrieveItem(DefaultRepositoryRouter.java:155)
at org.sonatype.nexus.web.content.NexusContentServlet.doGet(NexusContentServlet.java:359)
at org.sonatype.nexus.web.content.NexusContentServlet.service(NexusContentServlet.java:331)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
I have seen this reported in a number of places but no solution. Is this error because we are behind a corporate firewall, or is this due to something else? Please advise.
I had proxy set as environment variables, but it appears they are not being picked up. Adding them in sbt directly worked for me.
Edit $SPARK_HOME/sbt/sbt
For example,
EXTRA_ARGS="-Dhttp.proxySet=true -Dhttp.proxyHost=myproxy.mycompany.com -Dhttp.proxyPort=80 -Dhttps.proxySet=true -Dhttps.proxyHost=myproxy.mycompany.com -Dhttps.proxyPort=80 -Dftp.proxySet=true -Dftp.proxyHost=myproxy.mycompany.com -Dftp.proxyPort=80 -Dhttp.nonProxyHosts=mydomain -Dhttps.nonProxyHosts=mydomain -Dftp.nonProxyHosts=mydomain"

Resources