Page 1 of 1

VMWare appliance not connecting to client - web UI works.

Posted: Mon Apr 20, 2020 12:31 am
by ECJB
Telnetting into the appliance connects, but all commands are met with "ERROR: Unknown command or variable 'xxx'"

Code: Select all

Welcome to the Folding@home Client command server.
> help
ERROR: unknown command or variable 'help'
> info
ERROR: unknown command or variable 'info'
> configured
ERROR: unknown command or variable 'configured'
> exit
Connection closed by foreign host.
I sshed into the appliance and the /etc/fahclient/config.xml looks like it should work as my 10.0.0.0/24 network is in the allow list, and I can connect on port 7396 via the browser.

I tried posting my config.xml (minus the passkey) and it wouldn't let me submit the post since I'm new here.

Any suggestions?

Re: VMWare appliance not connecting to client - web UI works

Posted: Mon Apr 20, 2020 1:57 pm
by skillk01
Hi Eric,
Did you set a password when you deployed the appliance, try removing the password set in FAH Advanced Control/FAH Control client and see if it connects. It will also use port 36330 to connect to the appliance in FAH Control which is different to the default web client port.

Re: VMWare appliance not connecting to client - web UI works

Posted: Mon Apr 20, 2020 10:11 pm
by ECJB
The FAHClient does not connect to the appliance (as mentioned above). I had removed the connect password when it did work, but it no longer connects. The FAH instance in VMWare is running. I can SSH into the appliance, and can view the web page, but as above, telnet does not work, even though it connects.

Code: Select all

root@fah [ ~ ]# cat /etc/fahclient/config.xml
<config>
  <!-- Folding Slot Configuration -->
  <client-type v=''/>

  <!-- HTTP Server -->
  <allow v='127.0.0.1 10.0.0.0/24'/>

  <!-- Network -->
  <proxy v=':8080'/>

  <!-- Remote Command Server -->
  <command-allow-no-pass v='127.0.0.1 10.0.0.0/24'/>
  <password v=''/>

  <!-- Slot Control -->
  <power v='full'/>

  <!-- User Information -->
  <passkey v='--CENSORED--'/>
  <team v='223518'/>
  <user v='ECJB'/>

  <!-- Web Server -->
  <web-allow v='0.0.0.0/0'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>

Re: VMWare appliance not connecting to client - web UI works

Posted: Tue Apr 21, 2020 7:23 am
by skillk01
I tested telnet on my appliance which is connecting to FAH Control remotely without issue. I can connect via telnet to port 36330 and then I get the same behaviour as you with each command returning the message unknown command or variable. The fact it connects shows that the port is accessible though so the appliance is functioning.

My config file is similar to yours. I use a password for remote connections in FAH Control and on the appliance itself via the config file. Any changes to the config file require the service to be restarted on the appliance before they take effect. So if I remove the password in FAH Control I can still connect to the appliance remotely until the service restarts and the config file is read again. Here's my config file with sensitive information removed:

Code: Select all

cat /etc/fahclient/config.xml 
<config>
  <!-- Folding Slot Configuration -->
  <client-type v=""/>

  <!-- HTTP Server -->
  <allow v='127.0.0.1 0.0.0.0/0'/>

  <!-- Network -->
  <proxy v=':8080'/>

  <!-- Remote Command Server -->
  <password v='<password>'/>

  <!-- User Information -->
  <passkey v='<passkey>'/>
  <team v='<team>'/>
  <user v='<user>'/>

  <!-- Web Server -->
  <web-allow v='0.0.0.0/0'/>

  <!-- Folding Slots -->
  <slot id='0' type='CPU'>
  </slot>
</config>

Re: VMWare appliance not connecting to client - web UI works

Posted: Tue Apr 21, 2020 8:26 am
by ECJB
So does this mean that telnet to the remote FAHClient on 36330 doesn't work, only on localhost?

Nevermind. After connecting via SSH and issuing a 'reboot' now telnet works as expected and the FAHControl connects to the FAHClient.