cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giri Prasad <g_p...@yahoo.com.INVALID>
Subject Re: Error running client of Cloudstackclient
Date Thu, 28 Aug 2014 09:14:11 GMT
Thanks for your answer.

 I am giving the tail of the logs, the problem is not quite that apparent.

Giri

management-server.log
****************************
2014-08-28 14:27:38,782 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null)
SeqA 3-17: Processing Seq 3-17:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n 
\"connections\": []\n}","wait":0}}] }
2014-08-28 14:27:38,880 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-9:null)
SeqA 3-17: Sending Seq 3-17:  { Ans: , MgmtId: 86406401324612, via: 3, Ver: v1, Flags: 100010,
[{"AgentControlAnswer":{"result":true,"wait":0}}] }
2014-08-28 14:27:39,339 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-8:null)
Ping from 1


2014-08-28 14:27:48,783 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-10:null)
SeqA 3-18: Processing Seq 3-18:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n 
\"connections\": []\n}","wait":0}}] }
2014-08-28 14:27:48,883 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-10:null)
SeqA 3-18: Sending Seq 3-18:  { Ans: , MgmtId: 86406401324612, via: 3, Ver: v1, Flags: 100010,
[{"AgentControlAnswer":{"result":true,"wait":0}}] }
2014-08-28 14:27:49,287 DEBUG [cloud.server.StatsCollector] (StatsCollector-2:null) VmStatsCollector
is running...
2014-08-28 14:27:49,831 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) StorageCollector
is running...
2014-08-28 14:27:49,887 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 4-616497161:
Received:  { Ans: , MgmtId: 86406401324612, via: 4, Ver: v1, Flags: 10, { GetStorageStatsAnswer
} }
2014-08-28 14:27:49,954 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1472987156:
Received:  { Ans: , MgmtId: 86406401324612, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer
} }
2014-08-28 14:27:51,146 DEBUG [cloud.server.StatsCollector] (StatsCollector-3:null) HostStatsCollector
is running...
2014-08-28 14:27:51,762 DEBUG [agent.transport.Request] (StatsCollector-3:null) Seq 1-1472987157:
Received:  { Ans: , MgmtId: 86406401324612, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer
} }
2014-08-28 14:27:58,785 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-14:null)
SeqA 3-19: Processing Seq 3-19:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n 
\"connections\": []\n}","wait":0}}] }
2014-08-28 14:27:58,868 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-14:null)
SeqA 3-19: Sending Seq 3-19:  { Ans: , MgmtId: 86406401324612, via: 3, Ver: v1, Flags: 100010,
[{"AgentControlAnswer":{"result":true,"wait":0}}] }
2014-08-28 14:28:03,735 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
Zone 1 is ready to launch secondary storage VM
2014-08-28 14:28:03,955 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null)
Zone 1 is ready to launch console proxy
2014-08-28 14:28:04,255 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 routers to update status. 
2014-08-28 14:28:04,256 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status. 
2014-08-28 14:28:04,271 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 routers to update status. 
2014-08-28 14:28:04,272 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null)
Found 0 networks to update RvR status. 
2014-08-28 14:28:08,786 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-15:null)
SeqA 3-20: Processing Seq 3-20:  { Cmd , MgmtId: -1, via: 3, Ver: v1, Flags: 11, [{"ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n 
\"connections\": []\n}","wait":0}}] }
2014-08-28 14:28:08,894 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-15:null)
SeqA 3-20: Sending Seq 3-20:  { Ans: , MgmtId: 86406401324612, via: 3, Ver: v1, Flags: 100010,
[{"AgentControlAnswer":{"result":true,"wait":0}}] }
2014-08-28 14:28:10,087 DEBUG [agent.manager.AgentManagerImpl] (AgentManager-Handler-1:null)
Ping from 4


access_log.2014-08-28.txt
********************************
XXX.XXX.XXX.5 - - [28/Aug/2014:14:29:14 +0530] "POST /client?apikey=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&command=listVirtualMachines
&response=json
&signature=CdefCdefCdefCdefCde1%2FucEpH6c%3D HTTP/1.1" 302 -
XXX.XXX.XXX.5 - - [28/Aug/2014:14:32:24 +0530] "POST /client?apikey=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&command=listVirtualMachines
&response=json
&signature=CdefCdefCdefCdefCde1%2FucEpH6c%3D HTTP/1.1" 302 -






________________________________
 From: Erik Weber <terbolous@gmail.com>
To: dev <dev@cloudstack.apache.org>; Giri Prasad <g_pr23@yahoo.com> 
Sent: Thursday, 28 August 2014 2:17 PM
Subject: Re: Error running client of Cloudstackclient
 


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_pr23@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 <terbolous@gmail.com>
>To: dev <dev@cloudstack.apache.org>; Giri Prasad <g_pr23@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_pr23@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 } }
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message