cancel
Showing results for 
Search instead for 
Did you mean: 

Locked out of GUI

I unticked the 'Allow a GUI server to attach to this node' and now can't load the web GUI.

I have SSH enabled so what do I need to update to reverse my actions.

Thx

Sample errors:

Issue while trying to connect to McAfee Web Gateway server.
Please restart MWG (/etc/init.d/mwg restart) and reload applet.

at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)
2012-02-27 10:47:50,968 [FATAL] Could not start Konfigurator:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)
2012-02-27 10:56:15,659 [ERROR] attaching to the Coordinator failed
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)
2012-02-27 10:56:15,698 [FATAL] Could not start Konfigurator:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)
2012-02-27 11:05:10,387 [ERROR] attaching to the Coordinator failed
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)
2012-02-27 11:05:10,389 [FATAL] Could not start Konfigurator:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at com.scur.k.server.ww.adapter.AbstractAdapter.send(AbstractAdapter.java:130)
at com.scur.k.server.ww.WwCommunicationManager.getOwnUUID(WwCommunicationManager.java:95)
at com.scur.k.server.Konfigurator.<init>(Konfigurator.java:189)
at com.scur.k.server.InitialisationManager.initKonfigurator(InitialisationManager.java:34)
at com.scur.k.server.InitialisationManager.access$000(InitialisationManager.java:5)
at com.scur.k.server.InitialisationManager$1.run(InitialisationManager.java:26)

0 Kudos
13 Replies
asabban
Level 17

Re: Locked out of GUI

Hi Iain,

thats a bit tricky, but I have instructions for it. I will send you a PM.

Best,

Andre

0 Kudos
smalldog
Level 12

Re: Locked out of GUI

Hi I have the same errors, could you send me instrusions? Thanks!

0 Kudos

Re: Locked out of GUI

Hi, i've sent you a PM.

Cheers

0 Kudos
smalldog
Level 12

Re: Locked out of GUI

Thanks! But i haven't got Central Management. and is this instrusions still effective?

0 Kudos

Re: Locked out of GUI

I guess depends how you managed to lock it out. This solution is when you have deselected the check box under central management called 'allow a gui server to attach to this node'. If that's not what's happened then best calling support or raising your own discussion.

Cheers

0 Kudos
smalldog
Level 12

Re: Locked out of GUI

Ok thanks for your support!

Cheers

0 Kudos

Re: Locked out of GUI

Even I need the PM. Can you please send me  ?

Regards,

Shridhar

0 Kudos
generaltesta
Level 7

Re: Locked out of GUI

Even I need the PM. Thank you very much.

0 Kudos

Re: Locked out of GUI

Here's the instruction, I take no responsibility if it doesn't work or makes things worse. However it worked for me.

Enable GUI again after locked due to Cluster setup
If you setup a Central Management it may happen that you find yourself locked out and unable to access any GUI on either of the nodes part of the CM. This happens because attaching the GUI to the Coordinator gets disabled. You can enable if again following these steps.

You need to have enabled SSH or alternatively you will need to plug a laptop directly into webgateway

1. Log on to box with root and password
2. run

dmidecode | grep UUIDto get the UUID of this device

3. stop MWG completely:

/etc/init.d/mwg stop

4. Change into the most recent configuration:

cd `cat /opt/mwg/storage/active_configuration`(If that does not work look into /opt/mwg/storage/active_configuration to get the path to the active configuration. Change into that folder).(Note: the command "current" should do the trick for you in newer MWG versions)- cd into the folder holding the appliance specific configuration:

cd globalcd <UUID> (replace <UUID> with the UUID you have looked up in the first step)cd cfg

5. Edit the configuration:

vi com.scur.engine.cmclusternode.configuration.xmlSearch for "enableGUI". You will find that setting set to "false". Set it to "true". Save the changes.- Now run

/opt/mwg/bin/mwg-coordinator -F "file:IN=`cat /opt/mwg/storage/active_configuration`"

6. Check the /opt/mwg/log/mwg-errors/mwg-coordinator.errors.log logfile. It should tell you

OK - enforced as folder '/opt/mwg/storage/default/xxxxxxxxxxxxxxxx'.

7. Start MWG again:

/etc/init.d/mwg start

8. Try to access the GUI again.