You get: Uncaught exception 'CloudStackClientException' with message 'The server did not issue a json response.'
Is there anything in your mgmt server that can explain why it doesn't return with a json response? Erik On Thu, Aug 28, 2014 at 9:39 AM, Giri Prasad <g_p...@yahoo.com.invalid> wrote: > > > Thanks for the comment. I did, on Ubuntu 12.04 LTS: > > apt-get purge php5-mysqlnd > > /etc/init.d/apache2 restart > > > grep -Hrv ";" /etc/php5 | grep -i "extension=" > /etc/php5/apache2/conf.d/pdo_mysql.ini:extension=pdo_mysql.so > /etc/php5/apache2/conf.d/mysqli.ini:extension=mysqli.so > /etc/php5/apache2/conf.d/mcrypt.ini:extension=mcrypt.so > /etc/php5/apache2/conf.d/mysql.ini:extension=mysql.so > /etc/php5/apache2/conf.d/pdo.ini:extension=pdo.so > > /etc/php5/apache2/php.ini:extension=http.so > /etc/php5/fpm/conf.d/pdo_mysql.ini:extension=pdo_mysql.so > /etc/php5/fpm/conf.d/mysqli.ini:extension=mysqli.so > /etc/php5/fpm/conf.d/mcrypt.ini:extension=mcrypt.so > /etc/php5/fpm/conf.d/mysql.ini:extension=mysql.so > /etc/php5/fpm/conf.d/pdo.ini:extension=pdo.so > /etc/php5/conf.d/pdo_mysql.ini:extension=pdo_mysql.so > > > ............................. > ............................. > > > php index.php > > Including CloudStackClient.php program ..... Invoking the > CloudStackClient function to loginInvoking the ListVirutalMachines function > PHP Fatal error: Uncaught exception 'CloudStackClientException' with > message 'The server did not issue a json response.' in > /var/www/BaseCloudStackClient.php:95 > Stack trace: > #0 /var/www/CloudStackClient.php(280): > BaseCloudStackClient->request('listVirtualMach...', Array) > #1 /var/www/index.php(18): CloudStackClient->listVirtualMachines() > #2 {main} > thrown in /var/www/BaseCloudStackClient.php on line 95 > > > > > ________________________________ > From: Erik Weber <terbol...@gmail.com> > To: dev <dev@cloudstack.apache.org>; Giri Prasad <g_p...@yahoo.com> > Sent: Thursday, 28 August 2014 12:31 PM > Subject: Re: Error running client of Cloudstackclient > > > On Thu, Aug 28, 2014 at 8:52 AM, Giri Prasad <g_p...@yahoo.com.invalid> > wrote: > > > Hello, > > > > I have cs running fine accessible thru gui. > > > > I have installed cloudstackclient, and generated the php wrapper (using > > generator.php). When calling this wrapper function, some error comes up. > > Any indeas to fix this? > > > > Thanks & Regards, > > Giri > > > > The program > > *************** > > echo "Including CloudStackClient.php program ..... "; > > > > > > echo "Invoking the CloudStackClient function to login"; > > $cloudstack = new CloudStackClient( > > "http://XXX.XXX.XXX.5:8080/client/", > > > > > "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", > > > > > "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" > > ); > > > > echo "Invoking the ListVirutalMachines function "; > > $vms = $cloudstack->listVirtualMachines(); > > foreach ($vms as $vm) { > > echo("{$vm->id} : {$vm->name} {$vm->state}"); > > } > > > > > > Error Message > > ***************** > > php index.php > > PHP Warning: PHP Startup: Unable to load dynamic library > > '/usr/lib/php5/20090626/mysqlnd.so' - /usr/lib/php5/20090626/mysqlnd.so: > > cannot open shared object file: No such file or directory in Unknown on > > line 0 > > > > > You seem to miss the mysql module files. > > > > > > Including CloudStackClient.php program ..... Invoking the > > CloudStackClient function to loginInvoking the ListVirutalMachines > function > > PHP Fatal error: Uncaught exception 'CloudStackClientException' with > > message 'The server did not issue a json response.' in > > /var/www/BaseCloudStackClient.php:95 > > Stack trace: > > #0 /var/www/CloudStackClient.php(280): > > BaseCloudStackClient->request('listVirtualMach...', Array) > > #1 /var/www/index.php(18): CloudStackClient->listVirtualMachines() > > #2 {main} > > thrown in /var/www/BaseCloudStackClient.php on line 95 > > > > > > Management server log > > **************************** > > 2014-08-28 12:17:21,389 DEBUG [agent.manager.AgentManagerImpl] > > (AgentManager-Handler-4:null) SeqA 3-51: Processing Seq 3-51: { Cmd , > > MgmtId: -1, via: 3, Ver: v1, Flags: 11, > > [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n > > \"connections\": []\n}","wait":0}}] } > > 2014-08-28 12:17:21,490 DEBUG [agent.manager.AgentManagerImpl] > > (AgentManager-Handler-4:null) SeqA 3-51: Sending Seq 3-51: { Ans: , > > MgmtId: 59392206543736, via: 3, Ver: v1, Flags: 100010, > > [{"AgentControlAnswer":{"result":true,"wait":0}}] } > > 2014-08-28 12:17:28,115 DEBUG [cloud.server.StatsCollector] > > (StatsCollector-1:null) VmStatsCollector is running... > > 2014-08-28 12:17:29,240 DEBUG [cloud.server.StatsCollector] > > (StatsCollector-3:null) StorageCollector is running... > > 2014-08-28 12:17:29,297 DEBUG [agent.transport.Request] > > (StatsCollector-3:null) Seq 4-433651725: Received: { Ans: , MgmtId: > > 59392206543736, via: 4, Ver: v1, Flags: 10, { GetStorageStatsAnswer } } > > 2014-08-28 12:17:29,364 DEBUG [agent.transport.Request] > > (StatsCollector-3:null) Seq 1-218497053: Received: { Ans: , MgmtId: > > 59392206543736, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } } >