Search code examples
npmibm-mobilefirst

IBM mfpdev CLI v8.0 issue in "mfpdev server add" in development environment


I tried below commands to add a server and run on console. Please help me to add and start the server successfully and open the console in the browser.

Pratimas-Mac-mini:~ pratima$ mfpdev server add devconsole -u http://192.168.1.144:10081 -l admin -p admin -c myapp -s Verifying server configuration... Cannot connect to server 'devconsole' at 'http://192.168.1.144:10081'. Missing runtime configuration details.: connect ECONNREFUSED 192.168.1.144:10081 Server profile 'devconsole' added successfully.

Pratimas-Mac-mini:~ pratima$ mfpdev server console devconsole Opening console for server 'devconsole'

It got opened in the browser

http://192.168.1.144:10081/mfpconsole/index.html#/dashboard&login=admin&password=admin

"This site can't be reached"

i read and followed the below link as well, still no luck.

https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/using-mobilefirst-cli-to-manage-mobilefirst-artifacts/#managing-mobilefirst-server-instances

Please let me know if i am missing something in the process


Solution

  • It seems to be your server is not running on Port 10081 which you can verify by running http://192.168.1.144:10081/mfpconsole in browser.

    Usually MFP 8.0 Server's runs on Port 9080 by default. Kindly verify on which port your MFP server is running before adding the server profile via MFPDev CLI.