PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Network is unreachable

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Fri Jul 09, 2010 2:48 pm    Post subject: Network is unreachable Reply with quote

Hi,

I'm trying to run pgdbg on my amd64 workstation running Debian Squeeze.
I get the following error:


PGDBG 10.6-0 x86-64 (Workstation, 8 Process)
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at SplashLoader$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Network is unreachable
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at jpgdbg.main(Unknown Source)
... 6 more

What can I do to fix this? Thanks!
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Mon Jul 12, 2010 7:45 pm    Post subject: Reply with quote

It looks like a possible cause for this error could be failure of the gethostname(2) call in the debugger. This might happen with an extremely long host name, or if the network for the given hostname isn't configured.

What is the output of the hostname(1) command on your system? Also, "uname -n"?

thanks
--Don
Back to top
View user's profile
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Tue Jul 13, 2010 6:26 pm    Post subject: Reply with quote

Here they are:

varda-lionel:hostname
varda
varda-lionel:uname -n
varda
varda-lionel:
Back to top
View user's profile
donb



Joined: 20 Jul 2004
Posts: 88
Location: The Portland Group, Inc.

PostPosted: Wed Jul 14, 2010 10:53 am    Post subject: Reply with quote

I suspect some kind of network config issue. "Network unreachable" implies that the network stack cannot find the requested destination. In this case we just want to go to the local host, but we are using its hostname (varda), as opposed to "localhost".

Can you check to see if you have a firewall (or other security software) running that could be blocking local access via TCP sockets?

thanks
--Don
Back to top
View user's profile
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Wed Jul 14, 2010 3:19 pm    Post subject: Reply with quote

Google came to the rescue!

sun-java6-jre: net.ipv6.bindv6only=1 breaks java networking


I typed

sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \
/etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart


and now it works.

Cheers,

RL
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group