Nexus 2 Repository Manager web failed to start - repository

I have downloaded and installed Nexus 2 according to official guide.
Then run it. Nothing strange can't see in log files.
But when I can try to get web interface http://apphost:9990/nexus/, I see on the web page:
Directory: /nexus/
LICENSE.html 12043 bytes May 31, 2017 7:39:55 AM
WEB-INF/ 4096 bytes May 31, 2017 7:39:55 AM
favicon.ico 1150 bytes May 31, 2017 7:39:49 AM
favicon.png 1179 bytes May 31, 2017 7:39:49 AM
images/ 4096 bytes May 31, 2017 7:39:55 AM
robots.txt 86 bytes May 31, 2017 7:39:49 AM
It seems Java is not running correctly, because it shows just static content.
Screenshot
Java is installed:
[opt]$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Nexus home:
echo $NEXUS_HOME
/opt/nexus
Log file:
jvm 1 | 2017-06-01 05:20:43,496-0700 DEBUG [jetty-main-1] *SYSTEM org.sonatype.nexus.NxApplication - Started
jvm 1 | 2017-06-01 05:20:43,496-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.webapp.WebappBootstrap - Initialized
jvm 1 | 2017-06-01 05:20:43,552-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.InstrumentedSelectChannelConnector - Metrics enabled
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started InstrumentedSelectChannelConnector#0.0.0.0:9990
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Running
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Started
jvm 1 | 2017-06-01 05:20:47,915-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing expired connections
jvm 1 | 2017-06-01 05:20:47,916-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing connections idle longer than 30000 MILLISECONDS
Thanks for any advice

I have resolved the issue.
I guess archive was corrupted.
Nexus were successfully run after complete reinstall.

Related

IntelliJ Ultimate closes unexpectedly [provided Log]

Im using
IntelliJ IDEA 2018.2 (Ultimate Edition) Build #IU-182.3684.101, built
on July 24, 2018 JRE: 1.8.0_152-release-1248-b8 amd64 JVM: OpenJDK
64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
Last month a problem occurs frequently. While I am coding the IDE closes and the progress i have made is not saved. This is really annoying. I have read carefully the log of IDEA and I cannot understand whats the problem. I attach the log file (only the lines that affect the problem). If there is any experience from anyone else who had the same problem please let me know. I have also sent a request to intellij but no aswer so far.
The attached log file lines
2018-08-31 19:44:25,283 [1209634] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2018-08-31 19:44:25,320 [1209671] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2018-08-31 19:44:25,322 [1209673] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2018-08-31 19:44:25,323 [1209674] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2018-08-31 19:44:25,326 [1209677] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2018-08-31 19:44:25,330 [1209681] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2018-08-31 19:44:25,330 [1209681] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
sometimes also this message appears in log but I'm not sure if its relevant:
ide.actions.ShowFilePathAction exit code 1

Logs tab not showing up in IntelliJ 2017.1EAP

This worked fine with previous intelliJ versions. Logs tab is not activated after GlassFish is started. Restore Layout button does not help.
UPDATE
Here is a part of idea.log with exceptions(not sure if it's related to the issue):
*2017-02-09 15:19:01,969 [3649406] INFO - notification.NotificationGroup - Notification group JavaEE is already registered
java.lang.Throwable
at com.intellij.notification.NotificationGroup.<init>(NotificationGroup.java:65)
at com.intellij.notification.NotificationGroup.<init>(NotificationGroup.java:50)
at com.intellij.notification.NotificationGroup.toolWindowGroup(NotificationGroup.java:82)
at com.intellij.notification.NotificationGroup.toolWindowGroup(NotificationGroup.java:87)
at com.intellij.javaee.oss.server.JavaeeServerInstanceImpl.createConnectErrorNotification(JavaeeServerInstanceImpl.java:358)
at com.intellij.javaee.oss.server.JavaeeServerInstanceImpl$ConnectLogger.reportError(JavaeeServerInstanceImpl.java:544)
at com.intellij.javaee.oss.server.JavaeeServerInstanceImpl.disconnect(JavaeeServerInstanceImpl.java:186)
at com.intellij.javaee.oss.server.JavaeeServerConnector.shutdown(JavaeeServerConnector.java:115)
at com.intellij.javaee.run.execution.J2EEProcessHandlerHelper.destroy(J2EEProcessHandlerHelper.java:199)
at com.intellij.javaee.run.execution.LocalJavaeeServerProcessHandler.destroyProcessImpl(LocalJavaeeServerProcessHandler.java:157)
at com.intellij.javaee.run.execution.LocalJavaeeServerProcessHandler.detachProcessImpl(LocalJavaeeServerProcessHandler.java:167)
at com.intellij.execution.process.ProcessHandler$2.run(ProcessHandler.java:126)
at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:260)
at com.intellij.execution.process.ProcessHandler.detachProcess(ProcessHandler.java:121)
at com.intellij.javaee.run.execution.LocalJavaeeServerProcessHandler.destroyProcess(LocalJavaeeServerProcessHandler.java:78)
at com.intellij.javaee.run.execution.J2EEProcessHandlerWrapper$4.onProcess(J2EEProcessHandlerWrapper.java:194)
at com.intellij.javaee.run.execution.J2EEProcessHandlerWrapper$ProcessCall.lambda$new$0(J2EEProcessHandlerWrapper.java:360)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
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)
2017-02-09 15:19:14,501 [3661938] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2017-02-09 15:19:14,627 [3662064] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [system]: "C:\Program Files\Java\jbsdk8u112b657_windows_x64\jre\bin\java" -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\"... (many lines)
2017-02-09 15:19:15,084 [3662521] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/JetBrains/IntelliJ IDEA 171.2014.21/lib/jps-launcher.jar;C:/Program Files/Java/jbsdk8u112b657_windows_x64/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 171.2014.21/lib/optimizedFileManager.jar
2017-02-09 15:19:25,665 [3673102] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 11175 ms: 0 min 11sec
2017-02-09 15:19:25,666 [3673103] INFO - CompilerBackwardReferenceIndex - C:\Users\***\.IntelliJIdea2017.1\system\compile-server\***_pom_b5d31051\backward-refs\version (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Users\***\.IntelliJIdea2017.1\system\compile-server\***_pom_b5d31051\backward-refs\version (The system cannot find the path specified)
at java.io.FileInputStream.$$YJP$$open0(Native Method)
at java.io.FileInputStream.open0(FileInputStream.java)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.jetbrains.jps.backwardRefs.CompilerBackwardReferenceIndex.versionDiffers(CompilerBackwardReferenceIndex.java:155)
at com.intellij.compiler.backwardRefs.CompilerReferenceReader.exists(CompilerReferenceReader.java:109)
at com.intellij.compiler.backwardRefs.CompilerReferenceReader.create(CompilerReferenceReader.java:116)
at com.intellij.compiler.backwardRefs.CompilerReferenceServiceImpl.a(CompilerReferenceServiceImpl.java:359)
at com.intellij.compiler.backwardRefs.CompilerReferenceServiceImpl.access$600(CompilerReferenceServiceImpl.java:70)
at com.intellij.compiler.backwardRefs.CompilerReferenceServiceImpl$2.b(CompilerReferenceServiceImpl.java:126)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
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)
2017-02-09 15:19:25,669 [3673106] INFO - ntellij.analysis.SonarLintTask - Running SonarLint Analysis for 9 files in 2 modules
2017-02-09 15:19:25,715 [3673152] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [system]: "C:\Program Files\Java\jbsdk8u112b657_windows_x64\jre\bin\java" -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\".... (many lines)
2017-02-09 15:19:26,196 [3673633] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files (x86)/JetBrains/IntelliJ IDEA 171.2014.21/lib/jps-launcher.jar;C:/Program Files/Java/jbsdk8u112b657_windows_x64/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA 171.2014.21/lib/optimizedFileManager.jar
2017-02-09 15:19:27,597 [3675034] INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\***\Pom\.idea\sonarlint\.sonartmp' was not found.
2017-02-09 15:19:31,779 [3679216] INFO - ntellij.analysis.SonarLintTask - SonarLint analysis done
2017-02-09 15:19:58,557 [3705994] INFO - svn.commandLine.CommandRuntime - Detected warning - svn: warning: W155010: The node 'C:\***\Pom\.idea\sonarlint\.sonartmp' was not found.*
I had a .bat script (which stops glassfish domain and deletes old logs) set to be executed before launch in GlassFish server configuration, and IntelliJ for some reason does not load recreated (during deploy process) log files. It loads only those existed before starting deploy.

CruiseControl.Net restarts after project with msbuild task

I'm trying to setup a fairly simple CruiseControl.NET build server and I'm seeing strange behavior with a project using MSBuild. Everytime the project's build is run and it executes msbuild (either through forcing or through a change in source control), the build completes successfully but CCNet also restarts. I notice this because the 'Next Build Time' of all the projects are moved ahead to the current time + initialSeconds.
This behavior appears whether I'm running CCNet as a serivce or through the command line executable.
When running on the command line, the debug output doesn't give me anything useful - it just immediately jumps from the last line of the project's build to the 'startup' output.
Additional information:
TFS is the source control server
My build is only hitting the working directory
My publish is just copying from the working directory to the artifact directory
If I comment out the msbuild task, running the project build does not restart CruiseControl
Not hitting or updating the Server or State directories of CruiseControl during build
Nothing useful in Event Viewer when this happens and I'm running as a service. CCService doesn't report stopping/starting - it's like cruise control is internally restarting.
And here is the msbuild configuration:
<tasks>
<msbuild>
<executable>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe</executable>
<workingDirectory>$[$CCNetWorkingDirectory]\$(PathToSolution)</workingDirectory>
<projectFile>$(SolutionFile)</projectFile>
<buildArgs>/p:Configuration=Release /v:d</buildArgs>
<timeout>900</timeout>
</msbuild>
</tasks>
Finally, here is the trace log at the end of the msbuild process / restart of server.
Done building target "Build" in project "MYAPP.sln".
Done Building Project "C:\CCNet\WD\NET\Main\MYAPP\MYAPP.sln" (default targets).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.35
2014-08-26 20:11:41,881 [NET.App.MYAPP] [INFO] - Delete merged file 'C:\CCNet\BuildArtifacts\NET.App.MYAPP\msbuild-results-dcf002da-d0d0-4d0a-8b86-fb25adaf1ac3.xml'.
2014-08-26 20:11:46,478 [NET.App.MYAPP] [INFO] - Integration complete: Success - 8/26/2014 8:11:41 PM
2014-08-26 20:11:46,579 [NET.App.MYAPP] [INFO] - Integrator for project: NET.App.MYAPP is now stopped.
2014-08-26 20:11:57,444 [257] [INFO] - CruiseControl.NET Server 1.8.5.0 -- .NET Continuous Integration Server
2014-08-26 20:11:57,465 [257] [INFO] - Copyright © 2003 - 2014 ThoughtWorks Inc. All Rights Reserved.
2014-08-26 20:11:57,466 [257] [INFO] - .NET Runtime Version: 2.0.50727.5477 Image Runtime Version: v2.0.50727
2014-08-26 20:11:57,467 [257] [INFO] - OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1 Server locale: English (United States)
2014-08-26 20:11:57,467 [257] [INFO] - Reason: File change delay finished
2014-08-26 20:11:57,944 [CCNet Server] [INFO] - Reading configuration file "C:\CCNet\Server\ccnet.config"
2014-08-26 20:11:58,347 [CCNet Server] [WARN] - Configuration does not have any version information - assuming the configuration is for version 1.8
2014-08-26 20:11:58,800 [CCNet Server] [INFO] - Log cache time set to 5 minutes
2014-08-26 20:11:58,990 [CCNet Server] [INFO] - Registered channel: tcp
2014-08-26 20:11:58,991 [CCNet Server] [INFO] - CruiseManager: Listening on url: tcp://32.32.29.129:21234/CruiseManager.rem
2014-08-26 20:11:58,992 [CCNet Server] [INFO] - Registered channel: tcp
2014-08-26 20:11:58,993 [CCNet Server] [INFO] - CruiseServerClient: Listening on url: tcp://32.32.29.129:21234/CruiseServerClient.rem
2014-08-26 20:11:58,994 [CCNet Server] [INFO] - Starting CruiseControl.NET Server
It looks like ccnet is noticing a change to a .dll file within the application directory and restarting to assimilate the changes.
Ccnet is looking for changes to any .dll file so if your build outputs at least one to this directory it would cause a restart.

Error starting Sonar

I'm using SONAR for my project.
While using "StartSonar.bat" for launch of Sonar, it is throwing the following exception.
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error occurred during initialization of VM
jvm 1 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 2 | Error occurred during initialization of VM
jvm 2 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 3 | Error occurred during initialization of VM
jvm 3 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 4 | Error occurred during initialization of VM
jvm 4 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 5 | Error occurred during initialization of VM
jvm 5 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds.
Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
Press any key to continue . . .
Using Java 1.7.0._09. Please help me in getting out of this.
Also, I tried configuring Sonar in IntelliJ IDEA 11 Community Edition. It fails in the startup of IDE. Are any plugins available for Community Edition to run Sonar.
what value do you have for the 'wrapper.java.command' in the wrapper.conf file? Seems like the is no JVM available
Are you sure you have installed a JDK, and not just the JRE?
Also Check JAVA_HOME is configured correctly. Make sure to set the JAVA_HOME environment variable to point to the JDK root folder.
Do one thing, go to <sonarDirectory>\conf and edit the wrapper.conf file and set these 2 lines:
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_20\bin\java
#wrapper.java.command=java

java.lang.OutOfMemoryError: requested 16 bytes for CHeapObj-new. Out of swap space?

I got this error on trying to get the Java search process UP(start a java process). I am setting the address space using the RLIMIT_AS.
Please help me to get past this error.
I have doubts about the VM Arguements. (See below).
Is there any way to get past this issue without changing the configurations. (VM Arguements)
A fatal error has been detected by the Java Runtime Environment:
java.lang.OutOfMemoryError: requested 16 bytes for CHeapObj-new.
Out of swap space?
Internal Error (allocation.inline.hpp:39), pid=16994,
tid=1097390400
Error: CHeapObj-new
JRE version: 6.0_21-b06
Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0-b16 mixed mode
linux-amd64 )
If you would like to submit a bug report, please visit:
http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x00000000489a7800):
JavaThread "main" [_thread_in_vm,
id=17043,
stack(0x000000004158d000,0x000000004168e000)]
Stack:
[0x000000004158d000,0x000000004168e000],
sp=0x00000000416897f0, free
space=3f10000000000000018k
VM state:not at safepoint (normal
execution)
VM Mutex/Monitor currently owned by a
thread: None
Heap PSYoungGen total 38208K,
used 24989K [0x00002aaae8f80000,
0x00002aaaeba20000,
0x00002aab03a20000) eden space
32768K, 76% used
[0x00002aaae8f80000,0x00002aaaea7e7518,0x00002aaaeaf80000)
from space 5440K, 0% used
[0x00002aaaeb4d0000,0x00002aaaeb4d0000,0x00002aaaeba20000)
to space 5440K, 0% used
[0x00002aaaeaf80000,0x00002aaaeaf80000,0x00002aaaeb4d0000)
PSOldGen total 87424K, used 0K
[0x00002aaab3a20000,
0x00002aaab8f80000,
0x00002aaae8f80000) object space
87424K, 0% used
[0x00002aaab3a20000,0x00002aaab3a20000,0x00002aaab8f80000)
PSPermGen total 21248K, used
10141K [0x00002aaaae620000,
0x00002aaaafae0000,
0x00002aaab3a20000) object space
21248K, 47% used
[0x00002aaaae620000,0x00002aaaaf007410,0x00002aaaafae0000)
VM Arguments: jvm_args: -Xms128M
-Xmx1280M -D.config=path -D.home=path1 -D .logfile=path2 java_command: com. .base.Server Launcher Type:
SUN_STANDARD
OS:CentOS release 5.5 (Final)
uname:Linux 2.6.18-194.el5 #1 SMP Fri
Apr 2 14:58:14 EDT 2010 x86_64
libc:glibc 2.5 NPTL 2.5 rlimit: STACK
10240k, CORE 1000001k, NPROC 24576,
NOFILE 4096, AS 1835008k load
average:1.87 0.45 0.22
CPU:total 2 (1 cores per cpu, 1
threads per core) family 6 model 46
stepping 6, cmov, cx8, fxsr, mmx, sse,
sse2, sse3, ssse3, sse4.1, sse4.2,
popcnt
Memory: 4k page, physical
2959608k(2057540k free), swap
4096532k(4096532k free)
vm_info: Java HotSpot(TM) 64-Bit
Server VM (17.0-b16) for linux-amd64
JRE (1.6.0_21-b06), built on Jun 22
2010 01:10:00 by "java_re" with gcc
3.2.2 (SuSE Linux)
time: Tue Mar 22 03:08:27 2011 elapsed
time: 5 seconds
What I did was google the Internal Error (allocation.inline.hpp:39) mesage and found this page http://forums.oracle.com/forums/thread.jspa?messageID=5203404 suggesting the swap space limit was causing the problem (even it shouldn't do so) after removing the limit, the problem went away.