zend-patterns / ZendServerSDK

Pure ZF2 CLI for zpk creation and webapi client.
BSD 3-Clause "New" or "Revised" License
22 stars 17 forks source link

addTarget error: File '/root/.zsapi.ini' doesn't exist or not readable #76

Closed zvikazend closed 8 years ago

zvikazend commented 9 years ago

Error

/usr/local/zend/bin/zs-client.sh addTarget --target=local --zskey=admin --zssecret=<SECRET> --zsversion=8.0
======================================================================
   The application has thrown an exception!
======================================================================
 Zend\Config\Exception\RuntimeException
 File '/root/.zsapi.ini' doesn't exist or not readable

Same goes for regular user (non-root)

 File '/home/username/.zsapi.ini' doesn't exist or not readable

Manual fix

touch /home/username/.zsapi.ini
run addTarget command again.