错误:传输错误202:绑定失败:无法分配请求的地址

时间:2019-05-25 19:57:46

标签: scala intellij-idea sbt

当我尝试在intelliJ中使用sbt shell时,会出现以下错误消息:

enter image description here

我会错过任何设置吗?

更新

netstat -planet
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name    
tcp        0      0 0.0.0.0:41351           0.0.0.0:*               LISTEN      1000       353424     573/java            
tcp        0      0 127.0.0.1:63342         0.0.0.0:*               LISTEN      1000       355674     573/java            
tcp        0      0 0.0.0.0:33295           0.0.0.0:*               LISTEN      1000       354289     573/java            
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      101        16065      -                   
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          34359      -                   
tcp        0      0 127.0.0.1:6942          0.0.0.0:*               LISTEN      1000       354471     573/java            
tcp        0      0 10.0.2.15:42510         151.101.193.69:443      ESTABLISHED 1000       305742     5102/chromium-brows 
tcp        0      0 10.0.2.15:44344         104.66.167.140:443      ESTABLISHED 1000       345081     5102/chromium-brows 
tcp        0      0 10.0.2.15:37646         198.252.206.25:443      ESTABLISHED 1000       353330     5102/chromium-brows 
tcp        0      0 10.0.2.15:41480         104.16.29.34:443        ESTABLISHED 1000       349198     5102/chromium-brows 
tcp      564      0 10.0.2.15:43148         172.217.168.42:443      ESTABLISHED 1000       377410     5102/chromium-brows 
tcp        0      0 10.0.2.15:59768         54.246.222.93:443       ESTABLISHED 1000       368480     5102/chromium-brows 
tcp        0      0 10.0.2.15:40474         216.58.215.226:443      ESTABLISHED 1000       327204     5102/chromium-brows 
tcp        0      0 10.0.2.15:37728         198.252.206.25:443      ESTABLISHED 1000       376381     5102/chromium-brows 
tcp        0      0 10.0.2.15:40470         216.58.215.226:443      ESTABLISHED 1000       327196     5102/chromium-brows 
tcp        0      0 10.0.2.15:56458         34.193.164.107:443      ESTABLISHED 1000       352517     5102/chromium-brows 
tcp        0      0 10.0.2.15:52954         91.228.74.181:443       ESTABLISHED 1000       377413     5102/chromium-brows 
tcp        0      0 10.0.2.15:52956         91.228.74.181:443       ESTABLISHED 1000       377416     5102/chromium-brows 
tcp        0      0 10.0.2.15:39020         172.217.168.66:443      ESTABLISHED 1000       324280     5102/chromium-brows 
tcp        0      0 10.0.2.15:39324         216.58.215.230:443      ESTABLISHED 1000       375801     5102/chromium-brows 
tcp        0      0 10.0.2.15:38640         172.217.168.38:443      ESTABLISHED 1000       352610     5102/chromium-brows 
tcp        0      0 10.0.2.15:50876         172.217.168.46:443      ESTABLISHED 1000       343823     5102/chromium-brows 
tcp        0      0 10.0.2.15:36630         198.252.206.25:443      ESTABLISHED 1000       327486     5102/chromium-brows 
tcp        0      0 10.0.2.15:40544         216.58.215.227:443      ESTABLISHED 1000       318302     5102/chromium-brows 
tcp        0      0 10.0.2.15:47506         151.101.194.49:443      ESTABLISHED 1000       353343     5102/chromium-brows 
tcp      311      0 10.0.2.15:38920         13.32.166.42:443        ESTABLISHED 1000       377418     5102/chromium-brows 
tcp        0      0 10.0.2.15:54224         192.30.253.125:443      ESTABLISHED 1000       317858     5102/chromium-brows 
tcp        0      0 10.0.2.15:49846         172.217.168.46:443      ESTABLISHED 1000       327213     5102/chromium-brows 
tcp        0      0 10.0.2.15:56456         34.193.164.107:443      ESTABLISHED 1000       351738     5102/chromium-brows 
tcp       32      0 10.0.2.15:42114         52.207.55.4:443         CLOSE_WAIT  1000       374681     5102/chromium-brows 
tcp6       0      0 :::43209                :::*                    LISTEN      1000       355214     772/java            
tcp6       0      0 ::1:631                 :::*                    LISTEN      0          34358      -                   
tcp6       0      0 127.0.0.1:30107         :::*                    LISTEN      1000       355213     772/java            
tcp6       0      0 127.0.0.1:43906         127.0.0.1:33295         TIME_WAIT   0          0          -                   
tcp6       0      0 127.0.0.1:43904         127.0.0.1:33295         TIME_WAIT   0          0          -                   
tcp6       0      0 127.0.0.1:43922         127.0.0.1:33295         TIME_WAIT   0          0          -

更新2

我必须设置什么:

enter image description here

1 个答案:

答案 0 :(得分:0)

这曾经(2015年)建议已使用的端口(如ensime/ensime-server issue 921
例如,您有same error with JBoss

ERROR: transport error 202: bind failed: Cannot assign requested address
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized

确保没有在其他地方(netstat -planet)上运行的sbt shell。