无法在我的专用服务器上启动 Upsource

Can't launch Upsource on my dedicated server

对于我的工作,我想使用 Upsource。但是我无法在我的服务器上启动应用程序。

Upsource 启动并加载了很多服务,但是当它尝试加载 Upsource Frontend 时出现很多错误,Upsource 停止了所有服务。在我的本地计算机上使用 Upsource 没有问题。

upsource-frontend: [Upsource Frontend Error] Error initializing messaging server
[2016-08-27 18:28:01,936] upsource-frontend: Upsource Frontend failed to start
[2016-08-27 18:28:01,937] * Error while starting JetBrains Upsource 3.0: 
Not allowed exit code 255 from process: bin/upsource-frontend start 
[2016-08-27 18:28:01,947] * Stopping Upsource PSI 
[2016-08-27 18:28:04,625] upsource-psi: Upsource PSI Service is not running
[2016-08-27 18:28:04,626] * Stopping Upsource Frontend 
[2016-08-27 18:28:07,256] upsource-frontend: Upsource Frontend is not running
[2016-08-27 18:28:07,257] * Stopping Upsource Monitoring 
[2016-08-27 18:28:15,216] upsource-monitoring: Upsource Monitoring has shut down
[2016-08-27 18:28:15,227] * Stopping Upsource Analyzer 
[2016-08-27 18:28:21,026] upsource-analyzer: Upsource Analyzer has shut down
[2016-08-27 18:28:21,026] * Stopping Upsource Cluster Initialize Service 
[2016-08-27 18:28:23,632] upsource-cluster-init: Upsource Cluster Initialize Service is not running
[2016-08-27 18:28:23,642] * Stopping Apache Cassandra 
[2016-08-27 18:28:29,216] cassandra: Apache Cassandra has shut down
[2016-08-27 18:28:29,216] * Stopping Bundle Hub Configurator 
[2016-08-27 18:28:29,216] * Stopping Hub 
[2016-08-27 18:28:29,411] 18:28:29,407 WARN  [EventsMultiplexer             ] Can't access events multiplexer: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eventsMultiplexer': Bean creation not allowed while this factory is in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
[2016-08-27 18:28:29,412] 18:28:29,408 WARN  [EventsMultiplexer             ] Can't access events multiplexer: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eventsMultiplexer': Bean creation not allowed while this factory is in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
[2016-08-27 18:28:29,412] 18:28:29,408 WARN  [EventsMultiplexer             ] Can't access events multiplexer: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eventsMultiplexer': Bean creation not allowed while this factory is in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
[2016-08-27 18:28:29,423] 18:28:29,422 WARN  [EventsMultiplexer             ] Can't access events multiplexer: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'eventsMultiplexer': Bean creation not allowed while this factory is in destruction (Do not request a bean from a BeanFactory in a destroy method impleenter code herementation!)

[Upsource Frontend Error] Failed to invoke "main" method of the class "com.jetbrains.launcher.ep.AppStarter": null
[Upsource Frontend Error] java.lang.reflect.InvocationTargetException
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Upsource Frontend Error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Upsource Frontend Error]     at java.lang.reflect.Method.invoke(Method.java:498)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppWrapperBootstrap2.main2(AppWrapperBootstrap2.java:35)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Upsource Frontend Error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Upsource Frontend Error]     at java.lang.reflect.Method.invoke(Method.java:498)
[Upsource Frontend Error]     at com.jetbrains.launcher.util.BootstrapUtil.doCallMain2(BootstrapUtil.java:51)
[Upsource Frontend Error]     at com.jetbrains.launcher.util.BootstrapUtil.callMain2(BootstrapUtil.java:18)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.Bootstrap.main(Bootstrap.java:15)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppWrapperBootstrap.main(AppWrapperBootstrap.java:11)
[Upsource Frontend Error] Caused by: java.lang.OutOfMemoryError: unable to create new native thread
[Upsource Frontend Error]     at java.lang.Thread.start0(Native Method)
[Upsource Frontend Error]     at java.lang.Thread.start(Thread.java:714)
[Upsource Frontend Error]     at com.jetbrains.launcher.JLThread.start(JLThread.java:48)
[Upsource Frontend Error]     at com.jetbrains.launcher.DiagnosticServiceImpl.(DiagnosticServiceImpl.java:15)
[Upsource Frontend Error]     at com.jetbrains.launcher.BaseApplicationContext.(BaseApplicationContext.java:11)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.(AppStarter.java:43)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.(AppStarter.java:22)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.run(AppStarter.java:33)
[Upsource Frontend Error]     at com.jetbrains.launcher.Initializer.runWithContext(Initializer.java:34)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.main(AppStarter.java:29)
[Upsource Frontend Error]     ... 13 more
Unexpected exit. Restarting. Run time was: 1.562 sec.
[Upsource Frontend Error] Failed to invoke "main" method of the class "com.jetbrains.launcher.ep.AppStarter": null
[Upsource Frontend Error] java.lang.reflect.InvocationTargetException
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Upsource Frontend Error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Upsource Frontend Error]     at java.lang.reflect.Method.invoke(Method.java:498)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppWrapperBootstrap2.main2(AppWrapperBootstrap2.java:35)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[Upsource Frontend Error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[Upsource Frontend Error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[Upsource Frontend Error]     at java.lang.reflect.Method.invoke(Method.java:498)
[Upsource Frontend Error]     at com.jetbrains.launcher.util.BootstrapUtil.doCallMain2(BootstrapUtil.java:51)
[Upsource Frontend Error]     at com.jetbrains.launcher.util.BootstrapUtil.callMain2(BootstrapUtil.java:18)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.Bootstrap.main(Bootstrap.java:15)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppWrapperBootstrap.main(AppWrapperBootstrap.java:11)
[Upsource Frontend Error] Caused by: java.lang.OutOfMemoryError: unable to create new native thread
[Upsource Frontend Error]     at java.lang.Thread.start0(Native Method)
[Upsource Frontend Error]     at java.lang.Thread.start(Thread.java:714)
[Upsource Frontend Error]     at com.jetbrains.launcher.JLThread.start(JLThread.java:48)
[Upsource Frontend Error]     at com.jetbrains.launcher.DiagnosticServiceImpl.(DiagnosticServiceImpl.java:15)
[Upsource Frontend Error]     at com.jetbrains.launcher.BaseApplicationContext.(BaseApplicationContext.java:11)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.(AppStarter.java:43)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.(AppStarter.java:22)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.run(AppStarter.java:33)
[Upsource Frontend Error]     at com.jetbrains.launcher.Initializer.runWithContext(Initializer.java:34)
[Upsource Frontend Error]     at com.jetbrains.launcher.ep.AppStarter.main(AppStarter.java:29)
[Upsource Frontend Error]     ... 13 more
Unexpected exit. Restarting. Run time was: 1.248 sec.
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.jetbrains.launcher.util.BootstrapUtil.doCallMain2(BootstrapUtil.java:51)
    at com.jetbrains.launcher.util.BootstrapUtil.callMain2(BootstrapUtil.java:18)
    at com.jetbrains.launcher.ep.Bootstrap.main(Bootstrap.java:15)
    at com.jetbrains.launcher.ep.LauncherBootstrap.main(LauncherBootstrap.java:11)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start0(Native Method)
    at java.lang.Thread.start(Thread.java:714)
    at com.jetbrains.launcher.run.AgentStatusWatcherImpl.(AgentStatusWatcherImpl.java:22)
    at com.jetbrains.launcher.run.AgentRunner.startWatchingAgentStatus(AgentRunner.java:61)
    at com.jetbrains.launcher.run.AgentRunner.run(AgentRunner.java:23)
    at com.jetbrains.launcher.ep.commands.Run.run(Run.java:82)
    at com.jetbrains.launcher.lock.AppLockFactory.withLock(AppLockFactory.java:19)
    at com.jetbrains.launcher.ep.commands.Run.doRun(Run.java:69)
    at com.jetbrains.launcher.ep.commands.BaseCommand.runCommand(BaseCommand.java:77)
    at com.jetbrains.launcher.ep.commands.BaseCommand.run(BaseCommand.java:61)
    at com.jetbrains.launcher.ep.Main.run(Main.java:26)
    at com.jetbrains.launcher.Initializer.runWithContext(Initializer.java:16)
    at com.jetbrains.launcher.ep.Main.doMain(Main.java:20)
    at com.jetbrains.launcher.ep.Main.main(Main.java:16)
    at com.jetbrains.launcher.ep.LauncherBootstrap2.main2(LauncherBootstrap2.java:11)
    ... 8 more
Upsource Frontend failed to start

upsource-stdout.log

upsource-frontend/all.log

你能帮帮我吗? 谢谢

我的服务器:6 x86 64 位内核,8GB 内存 运行 Ubuntu 16.04

看来您可能会在 Ubuntu 上经历 a bug which hits systemd users of Ubuntu 16.04. The bug is related to the change of default values in configuration of systemd 的后果。

根据大约两周前发布的另一个 bug report, this bug should be fixed in systemd 229-6ubuntu1,因此您可能应该尝试更新您的系统。

如果出于某种奇怪的原因不想更新系统,可以使用以下设置修改 systemd 配置:

[Service]
TasksMax=infinity

正如 the first bug report 中所建议的那样。