Re: Re: blobs and ClientStorage
Sanjay Rao <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot. I figured out the configuration part. Your detailed
explanation helped me in understanding the behaviour.
On Friday, 19 August 2016 12:42:17 UTC+5:30, Thierry Florac wrote:
>
> ZEO clients can be remote clients without access to blobs directory; ZEO
> server serves it.
> But ZEO clients can manage a cache directory (that you can limit in size)
> to avoid too frequent access...
>
> When placed on the same server, I thing that ZEO clients can get a direct
> access to blobs directory without using the cache, using a configuration
> directive ("shared_blobs_dir" ?)...
>
> Regards,
> Thierry
>
>
> 2016-08-19 8:05 GMT+02:00 Sanjay Rao <[email protected] <javascript:>>:
>
>> If I use ZEO with blob then
>>
>> Does ZEO clients need direct access of blob_dir directory ?
>> or
>> blob_dir directory remains accessible to ZEO server and ZEO server serves
>> it ?
>>
>>
>> On Friday, 19 August 2016 10:47:07 UTC+5:30, Sanjay Rao wrote:
>>>
>>> How to get rid of this problem ?
>>> my zeo.conf
>>>
>>> <blobstorage 1>
>>> blob-dir $BLOBDIR
>>> <filestorage blobfilestore>
>>> path $DBFILEPATH
>>> </filestorage>
>>> </blobstorage>
>>>
>>> my zope.conf
>>>
>>> <zeoclient>
>>> server localhost:8670
>>> storage 1
>>> cache-size 20MB
>>> </zeoclient>
>>> </zodb>
>>>
>>> How can i correct my configurations ? Thanks a lot in advance.
>>>
>>>
>>> On Monday, 26 October 2015 04:52:31 UTC+5:30, Jim Fulton wrote:
>>>>
>>>> On Sun, Oct 25, 2015 at 4:09 PM, Bill Janssen <[email protected]>
>>>> wrote:
>>>> > I seem to be mishandling ClientStorage:
>>>> >
>>>> > File "/Library/Python/2.7/site-packages/ZODB/Connection.py", line
>>>> 572, in
>>>> > commit
>>>> > self._commit(transaction)
>>>> > File "/Library/Python/2.7/site-packages/ZODB/Connection.py", line
>>>> 628, in
>>>> > _commit
>>>> > self._store_objects(ObjectWriter(obj), transaction)
>>>> > File "/Library/Python/2.7/site-packages/ZODB/Connection.py", line
>>>> 680, in
>>>> > _store_objects
>>>> > '', transaction)
>>>> > File "/Library/Python/2.7/site-packages/ZEO/ClientStorage.py", line
>>>> 964,
>>>> > in storeBlob
>>>> > self.fshelper.getPathForOID(oid, create=True)
>>>> > AttributeError: 'NoneType' object has no attribute 'getPathForOID'
>>>> >
>>>> >
>>>> > I'm just using ClientStorage.ClientStorage(('127.0.0.1', 20110)) to
>>>> create
>>>> > the ClientStorage. Do I need to specify a blob_dir, as well?
>>>>
>>>> Yup.
>>>>
>>>> Jim
>>>>
>>>> --
>>>> Jim Fulton
>>>> http://jimfulton.info
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "zodb" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> http://www.imagesdusport.com -- http://www.ztfy.org
>
--
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.