Fixed
Please update main source if it looks correct.
On Fri, Mar 20, 2015 at 1:11 PM, Gaurang Vyas <gdvyas@xxxxxxxxx> wrote:
If I run from command prompt it gives below error in $piece = rados_read($ioRados, 'TEMP_object',$pieceSize['psize'] ,0);------------------------------Segmentation fault (core dumped)------------------------------I have tried new version of librados too...------------------------------php --ri radosradosRados => enabledRados extension version => 0.9.3librados version (linked) => 0.69.1librados version (compiled) => 0.69.1Maximum length snapshot name => 64Maximum snapshots per pool => 256------------------------------Also tried new version of php too..------------------------------php5 -vPHP 5.6.6-1+deb.sury.org~trusty+1 (cli) (built: Feb 20 2015 11:22:10)Copyright (c) 1997-2015 The PHP GroupZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologiesphp5-fpm -vPHP 5.6.6-1+deb.sury.org~trusty+1 (fpm-fcgi) (built: Feb 20 2015 11:27:03)Copyright (c) 1997-2015 The PHP GroupZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies------------------------------On Wed, Mar 18, 2015 at 11:00 AM, Gaurang Vyas <gdvyas@xxxxxxxxx> wrote:Used from From MASTER branch./etc/php5/cli/conf.d/rados.iniradoslibrados version (linked) => 0.69.0librados version (compiled) => 0.69.0--------------------------Seems like the error is due torados_osd_op_timeoutorrados_mon_op_timeoutOn Mon, Mar 16, 2015 at 7:26 PM, Wido den Hollander <wido@xxxxxxxx> wrote:So what is the error exactly? Are you running phprados from the masterOn 03/16/2015 01:55 PM, Gaurang Vyas wrote:
> running on ubuntu with nginx + php-fpm
>
> <?php
> $rados = rados_create('admin');
>
>
> rados_conf_read_file($rados, '/etc/ceph/ceph.conf');
> rados_conf_set($rados, 'keyring','/etc/ceph/ceph.client.admin.keyring');
>
> $temp = rados_conf_get($rados, "rados_osd_op_timeout");
> echo "osd ";
> echo $temp;
> $temp = rados_conf_get($rados, "client_mount_timeout");
> echo "clinet " ;
> echo $temp;
> $temp = rados_conf_get($rados, "rados_mon_op_timeout");
> echo "mon " ;
> echo $temp;
>
> $err = rados_connect($rados);
> $ioRados = rados_ioctx_create($rados,'dev_whereis');
>
> $pieceSize = rados_stat($ioRados,'TEMP_object');
> var_dump($pieceSize);
>
> $piece = rados_read($ioRados, 'TEMP_object',$pieceSize['psize'] ,0);
>
branch on Github?
> echo $piece;
> ?>
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
--
Wido den Hollander
42on B.V.
Ceph trainer and consultant
Phone: +31 (0)20 700 9902
Skype: contact42on
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com