Stuck at "Connecting to console"

I have set up a virtual Ubuntu 16.04 machine at paperspace.com.  In Pycharm I have set up a remote interpreter at this machine and it seems that Pycharm finds it and lists the installed packages correctly.  I have followed every step suggested in various JetBrains instructions for establishing a deployment configuration etc., but when issuing a command to run SW on the remote machine Pycharm hangs forever saying "Connecting to console".  My problem looks a lot like the one reported by Usman Bashir here: https://youtrack.jetbrains.com/issue/PY-31779#focus=streamItem-27-3244551-0-0

Any hints on what to do?

 

Lars

 

 

14 comments

Hi,

Also seems similar to the following issue:

https://youtrack.jetbrains.com/issue/PY-34093

Can you please send the logs according to https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files ?

Please upload to https://uploads.services.jetbrains.com/ and let me know the file name.

Or you can check yourself if the same exception is appearing in the log.

0

Hi,

 
seems like I have the same problem, here is from today's log:
 
Command line: ssh://paperspace@bonaguil.myddns.me:22/home/paperspace/anaconda3/bin/python -u /home/paperspace/.pycharm_helpers/pydev/pydevconsole.py --mode=server 
java.lang.Throwable: Process creation:
at com.intellij.execution.process.BaseOSProcessHandler.<init>(BaseOSProcessHandler.java:34)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:89)
at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:72)
at com.intellij.execution.process.ColoredProcessHandler.<init>(ColoredProcessHandler.java:54)
at com.intellij.execution.process.KillableColoredProcessHandler.<init>(KillableColoredProcessHandler.java:54)
at com.jetbrains.python.run.PythonProcessHandler.<init>(PythonProcessHandler.java:41)
at com.jetbrains.python.console.PyConsoleProcessHandler.<init>(PyConsoleProcessHandler.java:40)
at com.jetbrains.python.remote.console.PyRemoteConsoleProcessHandler.<init>(PyRemoteConsoleProcessHandler.java:46)
at com.jetbrains.python.remote.PyRemoteInterpreterManagerImpl.createConsoleProcessHandler(PyRemoteInterpreterManagerImpl.java:137)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:481)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:509)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
0

I will try to get at update from the developer, please follow the aforementioned ticket.

0

I have exactly the same problem, Quite annoying and is not the firewall as I open traffic for all ports.

2019-03-13 15:35:49,124 [ 135915] WARN - n.process.BaseOSProcessHandler - Process hasn't generated any output for a long time.
If it's a long-running mostly idle daemon process, consider overriding OSProcessHandler#readerOptions with 'BaseOutputReader.Options.forMostlySilentProcess()' to reduce CPU usage.
Command line: ssh://<username>:<host>22/eurekaverse/opt/conda_envs/agundez_r/python35-spark/bin/python -u /eurekaverse/home/agundez_r/.pycharm_helpers/pydev/pydevconsole.py --mode=server
java.lang.Throwable: Process creation:
at com.intellij.execution.process.BaseOSProcessHandler.<init>(BaseOSProcessHandler.java:34)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:89)
at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:72)
at com.intellij.execution.process.ColoredProcessHandler.<init>(ColoredProcessHandler.java:54)
at com.intellij.execution.process.KillableColoredProcessHandler.<init>(KillableColoredProcessHandler.java:54)
at com.jetbrains.python.run.PythonProcessHandler.<init>(PythonProcessHandler.java:41)
at com.jetbrains.python.console.PyConsoleProcessHandler.<init>(PyConsoleProcessHandler.java:40)
at com.jetbrains.python.remote.console.PyRemoteConsoleProcessHandler.<init>(PyRemoteConsoleProcessHandler.java:46)
at com.jetbrains.python.remote.PyRemoteInterpreterManagerImpl.createConsoleProcessHandler(PyRemoteInterpreterManagerImpl.java:137)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:481)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:509)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:3070)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.b(PydevConsoleRunnerImpl.java:502)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.runSync(PydevConsoleRunnerImpl.java:233)
at com.jetbrains.python.console.PythonConsoleToolWindowFactory$createToolWindowContent$1.run(PythonConsoleToolWindowFactory.kt:34)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$pollQueueLater$0(TransactionGuardImpl.java:74)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:668)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

0

@Rragundez

https://youtrack.jetbrains.com/issue/PY-34093 was closed as a duplicate for https://youtrack.jetbrains.com/issue/PY-33369, so please see the latter for this issue.

I've also marked your ticket as a duplicate. The issue should be fixed in version 2019.1

Please try our EAP build https://www.jetbrains.com/pycharm/nextversion/

0

Same issue  (I am using EAP)

java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:130)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:562)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:258)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
at java.lang.Thread.run(Thread.java:748)

0

@Slw07g

That seems like a different issue

Please try rebooting both your local and remote machines, and try again.

0

I'm having the same issue with the last version 2019.1

 

However I can run the code correctly (F10)

 

This is what I think it's relevant from the logs:


2019-03-27 19:54:34,810 [ 151037] WARN - n.process.BaseOSProcessHandler - Process hasn't generated any output for a long time.
If it's a long-running mostly idle daemon process, consider overriding OSProcessHandler#readerOptions with 'BaseOutputReader.Options.forMostlySilentProcess()' to reduce CPU usage.
Command line: ssh://luca@xxxxxx -u /home/luca/.pycharm_helpers/pydev/pydevconsole.py --mode=server
java.lang.Throwable: Process creation:
at com.intellij.execution.process.BaseOSProcessHandler.<init>(BaseOSProcessHandler.java:34)
at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:89)
at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:72)
at com.intellij.execution.process.ColoredProcessHandler.<init>(ColoredProcessHandler.java:54)
at com.intellij.execution.process.KillableColoredProcessHandler.<init>(KillableColoredProcessHandler.java:54)
at com.jetbrains.python.run.PythonProcessHandler.<init>(PythonProcessHandler.java:41)
at com.jetbrains.python.console.PyConsoleProcessHandler.<init>(PyConsoleProcessHandler.java:40)
at com.jetbrains.python.remote.console.PyRemoteConsoleProcessHandler.<init>(PyRemoteConsoleProcessHandler.java:46)
at com.jetbrains.python.remote.PyRemoteInterpreterManagerImpl.createConsoleProcessHandler(PyRemoteInterpreterManagerImpl.java:137)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:481)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.a(PydevConsoleRunnerImpl.java:509)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:3069)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.c(PydevConsoleRunnerImpl.java:502)
at com.jetbrains.python.console.PydevConsoleRunnerImpl.runSync(PydevConsoleRunnerImpl.java:233)
at com.jetbrains.python.console.PythonConsoleToolWindowFactory$createToolWindowContent$1.run(PythonConsoleToolWindowFactory.kt:34)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.jetbrains.python.console.PythonConsoleToolWindowFactory.createToolWindowContent(PythonConsoleToolWindowFactory.kt:34)
at com.intellij.openapi.wm.impl.ToolWindowImpl.ensureContentInitialized(ToolWindowImpl.java:530)
at com.intellij.openapi.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.java:354)
at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.processRequestFocus(RequestFocusInToolWindowCmd.java:50)
at com.intellij.openapi.wm.impl.commands.RequestFocusInToolWindowCmd.run(RequestFocusInToolWindowCmd.java:42)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.ToolWindowsPane$AddDockedComponentCmd.run(ToolWindowsPane.java:735)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.commands.FinalizableCommand.finish(FinalizableCommand.java:36)
at com.intellij.openapi.wm.impl.commands.ApplyWindowInfoCmd.run(ApplyWindowInfoCmd.java:50)
at com.intellij.openapi.wm.impl.CommandProcessor.runNext(CommandProcessor.java:78)
at com.intellij.openapi.wm.impl.CommandProcessor.run(CommandProcessor.java:59)
at com.intellij.openapi.wm.impl.CommandProcessor.execute(CommandProcessor.java:50)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.execute(ToolWindowManagerImpl.java:596)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.execute(ToolWindowManagerImpl.java:576)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow(ToolWindowManagerImpl.java:667)
at com.intellij.openapi.wm.impl.ToolWindowManagerImpl$MyInternalDecoratorListener.activated(ToolWindowManagerImpl.java:2224)
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.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:133)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:25)
at com.intellij.util.EventDispatcher$3.invoke(EventDispatcher.java:96)
at com.intellij.openapi.wm.impl.$Proxy95.activated(Unknown Source)
at com.intellij.openapi.wm.impl.InternalDecorator.fireActivated(InternalDecorator.java:239)
at com.intellij.openapi.wm.impl.StripeButton.actionPerformed(StripeButton.java:287)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6548)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3325)
at com.intellij.openapi.wm.impl.StripeButton.processMouseEvent(StripeButton.java:278)
at java.awt.Component.processEvent(Component.java:6313)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4903)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:719)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:664)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

0

@Luca

Is your remote host located behild NAT of firewall with port-forwarding?

Please try to deleting the "~/.pycharm_helpers" and recreate the interpreter.

0

@Andrey Resler

 

The remote host is behind a NAT with port forwarding.

 

The connection to the remote host works.

 

I'm able to run the code remotely (tensorflow is installed only in the remote venv, no chance of error):

 

It syncs correctly the files:

 

It is unable to connect to the console:

 

0

This looks like the following issue: https://youtrack.jetbrains.com/issue/PY-33369

It's supposed to be fixed in 2019.1 , but maybe we're hitting it again. Please try the workaround from the above ticket to create ssh tunnel (https://youtrack.jetbrains.com/issue/PY-33369#focus=streamItem-27-3244596.0-0), and let us know if it works.

0

@Andrey Resler

 

Yes, the ssh tunnel seems to work! (after a complete restart of pycharm)

Now I can connect to the remote console.

 

After a double check of the version I understood the problem.

I updated PyCharm through the Jetbrains toolbox, but apparently something went wrong since if I open PyCharm from the start menu it opens the old version of PyCharm.

 

I confirm that with the 2019.1 the problem seems to be solved!

 

 

1

I am still using 2018.3 on Mac OS X. I can confirm that the solution of @Alexander.Koshevoy in the linked comment (the SSH tunnel method) works for Google Compute Engine instances via the "gcloud compute ssh" command. Thanks!

0

Please sign in to leave a comment.