[英]Jetbrains' Team Tools Setup
I have tried to install Jetbrains' Team Tools a couple of time, with sort of an success, but most of the features didn't work. 我曾尝试安装Jetbrains的Team Tools几次,取得了一些成功,但大多数功能都没有用。
This time I purchased a separate server for couple of reasons, including nothing else being able to not make it work. 这次我出于几个原因购买了一台单独的服务器,包括其他任何无法使其工作的服务器。 but I think the real problem is me not understanding how to set it up correctly.
但我认为真正的问题是我不理解如何正确设置它。
I'm running a Linode
server with Ubuntu 16.04
and have nginx
installed. 我正在使用
Ubuntu 16.04
运行Linode
服务器并安装了nginx
。
I have changed my real domain name with example.com in this question我已在此问题中使用example.com更改了我的真实域名
Downloaded and unzipped Jetbrains' Hub in /opt/hub/
在
/opt/hub/
下载和解压缩Jetbrains的中心
Created a proxy to access the web page under /etc/nginx/sites-enabled/jetbrains
创建了一个代理来访问
/etc/nginx/sites-enabled/jetbrains
## Hub server { listen 2222; server_name hub.example.com; location / { proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_pass http://localhost:1111; } }
/opt/hub/bin/hub.sh configure --listen-port 1111 --base-url http://hub.example.com:2222 /opt/hub/bin/hub.sh run --no-browser
Opened http://hub.example.com:2222
and set it up. 打开
http://hub.example.com:2222
并进行设置。
Everything good so far. 到目前为止一切都很好。 So I made the Hub service run on it's own from now on.
所以我从现在开始就让Hub服务独立运行。
/opt/hub/bin/hub.sh start
Downloaded and unzipped Jetbrains' Upsource in /opt/upsource/
在
/opt/upsource/
下载并解压缩Jetbrains的Upsource
Created a proxy to access the web page under the same file /etc/nginx/sites-enabled/jetbrains
创建了一个代理来访问同一文件
/etc/nginx/sites-enabled/jetbrains
## Hub server { ... } ## Upsource server { listen 2222; server_name upsource.example.com; location / { proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; # to proxy WebSockets in nginx proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_pass_header Sec-Websocket-Extensions; proxy_pass http://localhost:1112; } }
/opt/upsource/bin/upsource.sh configure --listen-port 1112 --base-url http://upsource.example.com:2222 /opt/upsource/bin/upsource.sh run --no-browser
Opened http://upsource.example.com:2222
and set it up. 打开
http://upsource.example.com:2222
并进行设置。
When asked for the Hub, I chose the external one and filled in http://hub.example.com:2222
and it got verified. 当被问到Hub时,我选择了外部的并填写了
http://hub.example.com:2222
并得到了验证。
After that you get the Booting page where it stopped when trying to start the Upsource Frontend
with following log: 之后,当您尝试使用以下日志启动
Upsource Frontend
时,您将获得Booting页面停止的Upsource Frontend
:
* Starting Upsource Frontend upsource-frontend: [Upsource Frontend Error] log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender. upsource-frontend: [Upsource Frontend Error] log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender. upsource-frontend: [Upsource Frontend Error] [2016-08-06 13:54:51,067] ERROR APP-WRAPPER] Proxy 1 er.auth.api.AuthManagerFactory - Cannot configure Authentication module. HubUrlExt=http://hub.example.com:2222/hub, HubUrlInt=http://hub.example.com:2222/hub upsource-frontend: [Upsource Frontend Error] javax.ws.rs.client.ResponseProcessingException: Failed to convert a response into an exception. upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1033) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:816) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation.access$700(JerseyInvocation.java:92) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.internal.Errors.process(Errors.java:315) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.internal.Errors.process(Errors.java:297) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.internal.Errors.process(Errors.java:228) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:420) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:316) upsource-frontend: [Upsource Frontend Error] at jetbrains.jetpass.client.oauth2.OAuth2Client.getHubScope(OAuth2Client.java:54) upsource-frontend: [Upsource Frontend Error] at jetbrains.jetpass.client.hub.HubClient.getAccountsClient(HubClient.java:118) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.server.auth.impl.HubProviderImpl.createAccountsClient(HubProviderImpl.java:392) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.server.auth.impl.HubProviderImpl.(HubProviderImpl.java:102) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.server.auth.api.AuthManagerFactory.createAuthManager(AuthManagerFactory.java:49) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.buildMainContainer(UpsourceApplicationEnvironment.java:261) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.(UpsourceApplicationEnvironment.java:97) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.backend.cli.UpsourceApplicationEnvironmentDaemonBase.startDaemon(UpsourceApplicationEnvironmentDaemonBase.java:13) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:144) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:234) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.upsource.frontend.server.UpsourceFrontendDaemon.start(UpsourceFrontendDaemon.java:83) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.launcher.AppProxy$6$1.call(AppProxy.java:99) upsource-frontend: [Upsource Frontend Error] at com.jetbrains.launcher.AppProxy$6$1.call(AppProxy.java:97) upsource-frontend: [Upsource Frontend Error] at java.util.concurrent.FutureTask.run(FutureTask.java:266) upsource-frontend: [Upsource Frontend Error] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) upsource-frontend: [Upsource Frontend Error] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) upsource-frontend: [Upsource Frontend Error] at java.lang.Thread.run(Thread.java:745) upsource-frontend: [Upsource Frontend Error] Caused by: java.lang.IllegalStateException: Entity input stream has already been closed. upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.message.internal.EntityInputStream.ensureNotClosed(EntityInputStream.java:228) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.message.internal.InboundMessageContext.bufferEntity(InboundMessageContext.java:886) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.InboundJaxrsResponse.bufferEntity(InboundJaxrsResponse.java:161) upsource-frontend: [Upsource Frontend Error] at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:987) upsource-frontend: [Upsource Frontend Error] ... 27 more
Thanks already for anyone wanting to help. 非常感谢任何想要帮助的人。
I set up upsource without using the external Hub and it still crashed. 我在没有使用外部Hub的情况下设置了upsource,它仍然崩溃了。 Now I'm getting the error message when it starts booting the
upsource-monitor
. 现在我开始启动
upsource-monitor
时收到错误消息。
The important lines are the 2 first ones 重要的是第一条线
upsource-cluster-init: [Upsource Cluster Initialize Service Error] log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender. upsource-cluster-init: [Upsource Cluster Initialize Service Error] log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender.
The problem was that I was running a 2GB RAM server instead of a 8GB RAM as the documentation mentioned. 问题是我正在运行2GB RAM服务器而不是8GB RAM,如文档所述。 8GB are a must apparently, services are too heavy for less.
8GB显然是必须的,服务太重,不能少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.