Games in Progress: 3 | Players logged in: 4 | Players Registered: 37413 | Games Played Total: 68656
Print Page - OpenSuSE: SOCKET EXCEPTION (RESOLVED)

Planet M.U.L.E.

Planet Mule 1 => Bugs 1.2.0 => Topic started by: drakkoth on January 10, 2010, 05:46



Title: OpenSuSE: SOCKET EXCEPTION (RESOLVED)
Post by: drakkoth on January 10, 2010, 05:46
Hi,

I am unable to create or join any games.  I always receive the message:  "SOCKET EXCEPTION: Operation not supported"

I have tried:

* Disabling ipv6
* Running as root
* OpenJDK and Sun Java 1.6 <--- SEE BELOW
* Same problem with previous version.

Running OpenSuSE 11.2 amd64.  Please let me know if I can do anything to help troubleshoot.  I tried to strace but it seemed to be stuck in a loop and the output was at 350M when I killed it.

Thx!


Title: Re: OpenSuSE: SOCKET EXCEPTION: Operation not supported
Post by: tomguru on January 12, 2010, 09:25
Quote from: log file
  INFO [GameController.setModel]                     ++++++++ New Model: CONNECT #0 +++++++++++++++++++++++++++++++++++++++++++
  INFO [Server.<init>]                               Server: Creating
  INFO [Server.<init>]                               Server: Started on TCP address /0.0.0.0:6260
  INFO [Server.<init>]                               Server: Started on UDP address /0.0.0.0:6260
  INFO [Client.connect]                              Client connects...
  INFO [Client.connect]                              Client UDP local address: 0.0.0.0/0.0.0.0:6261
  INFO [Client.connect]                              Client: Connects TCP: /127.0.0.1:6260 UDP: /127.0.0.1:6260
  WARNING [ConnectPhase.begin]                       Client failed to connect to server: SOCKET EXCEPTION: Operation not supported

Looks like you successfully started a local server and the client then tried to connect to it but failed while setting up the connection socket with "Operation not supported". Have you checked whether this can be related to AppArmor?


Title: Re: OpenSuSE: SOCKET EXCEPTION: Operation not supported
Post by: drakkoth on January 12, 2010, 23:19
I didn't think to check app armor.  It was enabled.  Disabling did not help, though.  I receive the same error with app armor disabled.

apparmor_status
apparmor module is loaded.
0 profiles are loaded.
0 profiles are in enforce mode.
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode :
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.


Title: Re: OpenSuSE: SOCKET EXCEPTION: Operation not supported
Post by: drakkoth on January 12, 2010, 23:30
Well,

Apparently I had an ssh session open to another computer when I removed openjdk and installed Sun Java.  I checked again and found that I never actually made the switch.  I removed openjdk, installed sun-java, executed ./mule.sh and everything is now working perfectly.  In short:

rpm -e --nodeps java-1_6_0-openjdk java-1_6_0-openjdk
zypper install java-1_6_0-sun java-1_6_0-sun-alsa java-1_6_0-sun-plugin

Fixed my problem.

Thanks!