Idea plugin: No project detected

I'm doing a trial of Upsource to see if it meets our needs and I can't get Idea to see the project.

Upsource 3.5.3510

Idea 2016.2.4

Idea Upsource plugin 3.5.3514.3

 

Whenever I click on the Up icon I get "Upsource Request Error: No project detected Choose Manually"

When I try to choose manually, I get an empty popup.

Note: when I configure the Upsource plugin in Idea, it successfully connects the server.

I've got a project configured on Upsource.

I followed the steps for getting logs. Here's the relevant lines:

 

2016-10-25 14:59:39,010 [1538252]  DEBUG -            io.socket.client.IO - ignoring socket cache for http://upsource.com:8080/
2016-10-25 14:59:39,012 [1538254]  DEBUG -       io.socket.client.Manager - readyState CLOSED
2016-10-25 14:59:39,012 [1538254]  DEBUG -       io.socket.client.Manager - opening http://upsource.com:8080/
2016-10-25 14:59:39,012 [1538254]  DEBUG -       io.socket.client.Manager - connection attempt will timeout after 40000
2016-10-25 14:59:39,014 [1538256]  DEBUG - .socket.engineio.client.Socket - creating transport 'websocket'
2016-10-25 14:59:39,014 [1538256]  DEBUG - .socket.engineio.client.Socket - setting transport websocket
2016-10-25 14:59:39,203 [1538445]  DEBUG - .socket.engineio.client.Socket - socket error io.socket.engineio.client.EngineIOException: websocket error
2016-10-25 14:59:39,203 [1538445]  DEBUG -       io.socket.client.Manager - connect_error
2016-10-25 14:59:39,203 [1538445]  DEBUG -       io.socket.client.Manager - cleanup
2016-10-25 14:59:39,203 [1538445]   WARN - nt.impl.UpsourceConnectionImpl -  
io.socket.engineio.client.EngineIOException: websocket error
    at io.socket.engineio.client.Transport.onError(Transport.java:71)
    at io.socket.engineio.client.transports.WebSocket.access$500(WebSocket.java:28)
    at io.socket.engineio.client.transports.WebSocket$2$5.run(WebSocket.java:150)
    at io.socket.thread.EventThread$2.run(EventThread.java:80)
    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)
Caused by: java.net.ProtocolException: Expected 'Connection' header value 'Upgrade' but was 'null'
    at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:128)
    at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)
    at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)
    at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133)
    at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
    ... 3 more
2016-10-25 14:59:39,204 [1538446]   INFO - nt.impl.UpsourceConnectionImpl - Socket disconnected. Reconnecting.
2016-10-25 14:59:39,204 [1538446]  DEBUG - .socket.engineio.client.Socket - socket close with reason: transport error
2016-10-25 14:59:39,205 [1538447]  DEBUG -       io.socket.client.Manager - disconnect
2016-10-25 14:59:39,205 [1538447]  DEBUG -       io.socket.client.Manager - cleanup
2016-10-25 14:59:39,514 [1538756]  DEBUG - dea.UpsourceProjectIdsDetector - Searching for Upsource projects: getting history from VCS
2016-10-25 14:59:52,781 [1552023]  DEBUG - dea.UpsourceProjectIdsDetector - Searching for Upsource projects: choosing commits for detection
2016-10-25 14:59:52,782 [1552024]  DEBUG - dea.UpsourceProjectIdsDetector - old commits map size is 1
2016-10-25 14:59:52,782 [1552024]  DEBUG - dea.UpsourceProjectIdsDetector - Searching for Upsource projects: getting revisions from server
2016-10-25 14:59:52,782 [1552024]  DEBUG - dea.UpsourceProjectIdsDetector -  
java.lang.Exception: com.jetbrains.upsource.client.impl.UpsourceException: Socket is not connected
    at com.jetbrains.upsource.idea.util.Util.reportErrorNotification(Util.java:121)
    at com.jetbrains.upsource.idea.util.NotifyingThrowableConsumer.consume(NotifyingThrowableConsumer.kt:58)
    at com.jetbrains.upsource.idea.util.NotifyingThrowableConsumer.consume(NotifyingThrowableConsumer.kt:20)
    at com.jetbrains.upsource.idea.client.UpsourceRevisionsClientImpl.findCommits(UpsourceRevisionsClientImpl.java:106)
    at com.jetbrains.upsource.idea.client.UpsourceClientCache.findFullCommits(UpsourceClientCache.java:84)
    at com.jetbrains.upsource.idea.client.UpsourceClientCache.findShortCommits(UpsourceClientCache.java:53)
    at com.jetbrains.upsource.idea.client.UpsourceConnector.findShortCommits(UpsourceConnector.java:132)
    at com.jetbrains.upsource.idea.UpsourceProjectIdsDetector$MyTask.findMarkerCommitsInUpsource(UpsourceProjectIdsDetector.java:526)
    at com.jetbrains.upsource.idea.UpsourceProjectIdsDetector$MyTask.computeProjectId2RootAndFileIdPrefix(UpsourceProjectIdsDetector.java:556)
    at com.jetbrains.upsource.idea.UpsourceProjectIdsDetector$MyTask.computeProjectId2RootMap(UpsourceProjectIdsDetector.java:452)
    at com.jetbrains.upsource.idea.UpsourceProjectIdsDetector$MyTask.scanProjectIds(UpsourceProjectIdsDetector.java:259)
    at com.jetbrains.upsource.idea.UpsourceProjectIdsDetector$MyTask.run(UpsourceProjectIdsDetector.java:210)
    at com.jetbrains.upsource.idea.util.Util$5.run(Util.java:310)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:635)
    at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
    at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:128)
    at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:307)
    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)
Caused by: com.jetbrains.upsource.client.impl.UpsourceException: Socket is not connected
    at com.jetbrains.upsource.client.impl.UpsourceConnectionImpl$RpcExecutorImpl.sendRequest(UpsourceConnectionImpl.java:379)
    at com.jetbrains.upsource.client.impl.UpsourceConnectionImpl$RpcExecutorImpl.makeCall(UpsourceConnectionImpl.java:355)
    at com.jetbrains.upsource.client.rpc.model.generated.UpsourceRPC.findCommits(UpsourceRPC.java:368)
    at com.jetbrains.upsource.idea.client.UpsourceRevisionsClientImpl.findCommits(UpsourceRevisionsClientImpl.java:101)
    ... 22 more
2016-10-25 14:59:52,783 [1552025]  DEBUG - dea.UpsourceProjectIdsDetector - revisions got from Upsource: []

 

 

 

2 comments

Hello,

Despite of test connection button, Upsource plugin communicates with the server through websockets. From the given log it looks like you have issues exactly with websockets. In most cases it's related to misconfiguration of the proxy server, that is configured in front of Upsource server. Could you please check that?

0

That was it. I had Idea's proxy settings enabled and they were fighting with our network's proxy settings.

0

Please sign in to leave a comment.