You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Mike Nimer <mn...@gmail.com> on 2016/09/07 00:26:21 UTC

launchpad with FileDataStore

If I want to use the FileDataStore for blobs, with the
SegmentNodeStore.  What dependencies do I need to add to my
provisioning txt files, for launched 9-SNAPSHOT?

Config:
================
[configurations runModes=oak_tar]
  org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
    name="Default\ NodeStore"
    customBlobStore="true"

  org.apache.jackrabbit.core.data.FileDataStore
    minRecordLength="1024"
    cacheSize="10000000"
    path="sling/files"
===================

I thought this would do it:
org.apache.sling/org.apache.sling.installer.core/3.6.8


When I set CustomBlogStore="true" the server starts up without any
errors but I can not load the home page or /system/console app.  And I
noticed that under the sling home folder I don't have the
/repository/segmentstore folder or a /sling/files folder.

Thoughts?
--Mike

Re: launchpad with FileDataStore

Posted by Mike Nimer <mn...@gmail.com>.
Thank you that was it, I didn't catch the change to
"org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore". I'm
glad you spotted that.  And to answer your first question I was trying
this on a new system (c).

Thanks,
--mike


On Wed, Oct 12, 2016 at 3:40 AM, Julian Sedding <js...@gmail.com> wrote:
>  Hi Mike
>
>> I can load the /system/console, but not the .explorer.html app. If I
>> set customBlobStore=B"false" it works correctly again.
>
> Are you referring to
>
> (a) configuration being changed in a running system?
> (b) configuration changed in previously initialised system and a
> subsequent restart?
> (c) a completely new system with the changed configuration, started
> for the first time?
>
> I would only expect (c) to work. If it doesn't, go to
> /system/console/components and find the SegmentNodeStoreService, click
> on it and check that for the "Reference blobStore" is "Satisfied" and
> is "Bound" to a service with the PID
> org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.
>
> Note: in your original post you used
> org.apache.jackrabbit.core.data.FileDataStore as the configuration PID
> instead of org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.
> The change was in Robert's post, not sure if you noticed. Just
> verifying, but this could be a possible cause for your issues.
>
> Regards
> Julian
>
>
>
> On Thu, Oct 6, 2016 at 4:19 PM, Mike Nimer <mn...@gmail.com> wrote:
>> One problem when I  make this change Sling will not start correctly.
>> When I try to load an html page from my content bundle or the default
>> app I get this message
>>
>> "AuthenticationSupport service missing. Cannot authenticate request."
>>
>> I can load the /system/console, but not the .explorer.html app. If I
>> set customBlobStore=B"false" it works correctly again.
>>
>> any ideas?
>> --mike
>>
>>
>> On Mon, Oct 3, 2016 at 7:44 AM, Robert Munteanu <ro...@apache.org> wrote:
>>> Hi Mike,
>>>
>>> On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
>>>> If I want to use the FileDataStore for blobs, with the
>>>> SegmentNodeStore.  What dependencies do I need to add to my
>>>> provisioning txt files, for launched 9-SNAPSHOT?
>>>>
>>>> Config:
>>>> ================
>>>> [configurations runModes=oak_tar]
>>>>   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>>>     name="Default\ NodeStore"
>>>>     customBlobStore="true"
>>>>
>>>>   org.apache.jackrabbit.core.data.FileDataStore
>>>>     minRecordLength="1024"
>>>>     cacheSize="10000000"
>>>>     path="sling/files"
>>>> ===================
>>>>
>>>> I thought this would do it:
>>>> org.apache.sling/org.apache.sling.installer.core/3.6.8
>>>>
>>>>
>>>> When I set CustomBlogStore="true" the server starts up without any
>>>> errors but I can not load the home page or /system/console app.  And
>>>> I
>>>> noticed that under the sling home folder I don't have the
>>>> /repository/segmentstore folder or a /sling/files folder.
>>>
>>> The following minimal changes worked for me
>>>
>>> diff --git a/launchpad/builder/src/main/provisioning/oak.txt
>>> b/launchpad/builder/src/main/provisioning/oak.txt
>>> index 0d0d96b..49fde19 100644
>>> --- a/launchpad/builder/src/main/provisioning/oak.txt
>>> +++ b/launchpad/builder/src/main/provisioning/oak.txt
>>> @@ -83,6 +83,10 @@
>>>  [configurations runModes=oak_tar]
>>>    org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>>      name="Default\ NodeStore"
>>> +    customBlobStore=B"true"
>>> +
>>> +  org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
>>> +    minRecordLength=I"4096"
>>>
>>>  [configurations runModes=oak_mongo]
>>>    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService
>>>
>>> The main difference is that you would need to indicate the type of the
>>> configuration property - so I for numeric and B for boolean.
>>>
>>> After making this change and building a new launchpad the FDS writes
>>> the blobs under sling/repository/repository/datastore. By adding the
>>> 'path' configuration option you should be able to control its location.
>>>
>>> HTH and sorry for the late reply :-)
>>>
>>> Robert

Re: launchpad with FileDataStore

Posted by Julian Sedding <js...@gmail.com>.
 Hi Mike

> I can load the /system/console, but not the .explorer.html app. If I
> set customBlobStore=B"false" it works correctly again.

Are you referring to

(a) configuration being changed in a running system?
(b) configuration changed in previously initialised system and a
subsequent restart?
(c) a completely new system with the changed configuration, started
for the first time?

I would only expect (c) to work. If it doesn't, go to
/system/console/components and find the SegmentNodeStoreService, click
on it and check that for the "Reference blobStore" is "Satisfied" and
is "Bound" to a service with the PID
org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore.

Note: in your original post you used
org.apache.jackrabbit.core.data.FileDataStore as the configuration PID
instead of org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore.
The change was in Robert's post, not sure if you noticed. Just
verifying, but this could be a possible cause for your issues.

Regards
Julian



On Thu, Oct 6, 2016 at 4:19 PM, Mike Nimer <mn...@gmail.com> wrote:
> One problem when I  make this change Sling will not start correctly.
> When I try to load an html page from my content bundle or the default
> app I get this message
>
> "AuthenticationSupport service missing. Cannot authenticate request."
>
> I can load the /system/console, but not the .explorer.html app. If I
> set customBlobStore=B"false" it works correctly again.
>
> any ideas?
> --mike
>
>
> On Mon, Oct 3, 2016 at 7:44 AM, Robert Munteanu <ro...@apache.org> wrote:
>> Hi Mike,
>>
>> On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
>>> If I want to use the FileDataStore for blobs, with the
>>> SegmentNodeStore.  What dependencies do I need to add to my
>>> provisioning txt files, for launched 9-SNAPSHOT?
>>>
>>> Config:
>>> ================
>>> [configurations runModes=oak_tar]
>>>   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>>     name="Default\ NodeStore"
>>>     customBlobStore="true"
>>>
>>>   org.apache.jackrabbit.core.data.FileDataStore
>>>     minRecordLength="1024"
>>>     cacheSize="10000000"
>>>     path="sling/files"
>>> ===================
>>>
>>> I thought this would do it:
>>> org.apache.sling/org.apache.sling.installer.core/3.6.8
>>>
>>>
>>> When I set CustomBlogStore="true" the server starts up without any
>>> errors but I can not load the home page or /system/console app.  And
>>> I
>>> noticed that under the sling home folder I don't have the
>>> /repository/segmentstore folder or a /sling/files folder.
>>
>> The following minimal changes worked for me
>>
>> diff --git a/launchpad/builder/src/main/provisioning/oak.txt
>> b/launchpad/builder/src/main/provisioning/oak.txt
>> index 0d0d96b..49fde19 100644
>> --- a/launchpad/builder/src/main/provisioning/oak.txt
>> +++ b/launchpad/builder/src/main/provisioning/oak.txt
>> @@ -83,6 +83,10 @@
>>  [configurations runModes=oak_tar]
>>    org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>      name="Default\ NodeStore"
>> +    customBlobStore=B"true"
>> +
>> +  org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
>> +    minRecordLength=I"4096"
>>
>>  [configurations runModes=oak_mongo]
>>    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService
>>
>> The main difference is that you would need to indicate the type of the
>> configuration property - so I for numeric and B for boolean.
>>
>> After making this change and building a new launchpad the FDS writes
>> the blobs under sling/repository/repository/datastore. By adding the
>> 'path' configuration option you should be able to control its location.
>>
>> HTH and sorry for the late reply :-)
>>
>> Robert

Re: launchpad with FileDataStore

Posted by Robert Munteanu <ro...@apache.org>.
On Thu, 2016-10-06 at 09:19 -0500, Mike Nimer wrote:
> One problem when I��make this change Sling will not start correctly.
> When I try to load an html page from my content bundle or the default
> app I get this message
> 
> "AuthenticationSupport service missing. Cannot authenticate request."
> 
> I can load the /system/console, but not the .explorer.html app. If I
> set customBlobStore=B"false" it works correctly again.
> 
> any ideas?

Not without looking into more details.

Can you post a simple project which reproduces the issue on github ?

Thanks,

Robert

> --mike
> 
> 
> On Mon, Oct 3, 2016 at 7:44 AM, Robert Munteanu <ro...@apache.org>
> wrote:
> > Hi Mike,
> > 
> > On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
> > > If I want to use the FileDataStore for blobs, with the
> > > SegmentNodeStore.��What dependencies do I need to add to my
> > > provisioning txt files, for launched 9-SNAPSHOT?
> > > 
> > > Config:
> > > ================
> > > [configurations runModes=oak_tar]
> > > �
> > > org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
> > > ����name="Default\ NodeStore"
> > > ����customBlobStore="true"
> > > 
> > > � org.apache.jackrabbit.core.data.FileDataStore
> > > ����minRecordLength="1024"
> > > ����cacheSize="10000000"
> > > ����path="sling/files"
> > > ===================
> > > 
> > > I thought this would do it:
> > > org.apache.sling/org.apache.sling.installer.core/3.6.8
> > > 
> > > 
> > > When I set CustomBlogStore="true" the server starts up without
> > > any
> > > errors but I can not load the home page or /system/console
> > > app.��And
> > > I
> > > noticed that under the sling home folder I don't have the
> > > /repository/segmentstore folder or a /sling/files folder.
> > 
> > 
> > The following minimal changes worked for me
> > 
> > diff --git a/launchpad/builder/src/main/provisioning/oak.txt
> > b/launchpad/builder/src/main/provisioning/oak.txt
> > index 0d0d96b..49fde19 100644
> > --- a/launchpad/builder/src/main/provisioning/oak.txt
> > +++ b/launchpad/builder/src/main/provisioning/oak.txt
> > @@ -83,6 +83,10 @@
> > �[configurations runModes=oak_tar]
> > ���org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreServic
> > e
> > �����name="Default\ NodeStore"
> > +����customBlobStore=B"true"
> > +
> > +��org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
> > +����minRecordLength=I"4096"
> > 
> > �[configurations runModes=oak_mongo]
> > ���org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreServ
> > ice
> > 
> > The main difference is that you would need to indicate the type of
> > the
> > configuration property - so I for numeric and B for boolean.
> > 
> > After making this change and building a new launchpad the FDS
> > writes
> > the blobs under sling/repository/repository/datastore. By adding
> > the
> > 'path' configuration option you should be able to control its
> > location.
> > 
> > HTH and sorry for the late reply :-)
> > 
> > Robert


Re: launchpad with FileDataStore

Posted by Mike Nimer <mn...@gmail.com>.
One problem when I  make this change Sling will not start correctly.
When I try to load an html page from my content bundle or the default
app I get this message

"AuthenticationSupport service missing. Cannot authenticate request."

I can load the /system/console, but not the .explorer.html app. If I
set customBlobStore=B"false" it works correctly again.

any ideas?
--mike


On Mon, Oct 3, 2016 at 7:44 AM, Robert Munteanu <ro...@apache.org> wrote:
> Hi Mike,
>
> On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
>> If I want to use the FileDataStore for blobs, with the
>> SegmentNodeStore.  What dependencies do I need to add to my
>> provisioning txt files, for launched 9-SNAPSHOT?
>>
>> Config:
>> ================
>> [configurations runModes=oak_tar]
>>   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>     name="Default\ NodeStore"
>>     customBlobStore="true"
>>
>>   org.apache.jackrabbit.core.data.FileDataStore
>>     minRecordLength="1024"
>>     cacheSize="10000000"
>>     path="sling/files"
>> ===================
>>
>> I thought this would do it:
>> org.apache.sling/org.apache.sling.installer.core/3.6.8
>>
>>
>> When I set CustomBlogStore="true" the server starts up without any
>> errors but I can not load the home page or /system/console app.  And
>> I
>> noticed that under the sling home folder I don't have the
>> /repository/segmentstore folder or a /sling/files folder.
>
> The following minimal changes worked for me
>
> diff --git a/launchpad/builder/src/main/provisioning/oak.txt
> b/launchpad/builder/src/main/provisioning/oak.txt
> index 0d0d96b..49fde19 100644
> --- a/launchpad/builder/src/main/provisioning/oak.txt
> +++ b/launchpad/builder/src/main/provisioning/oak.txt
> @@ -83,6 +83,10 @@
>  [configurations runModes=oak_tar]
>    org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>      name="Default\ NodeStore"
> +    customBlobStore=B"true"
> +
> +  org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
> +    minRecordLength=I"4096"
>
>  [configurations runModes=oak_mongo]
>    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService
>
> The main difference is that you would need to indicate the type of the
> configuration property - so I for numeric and B for boolean.
>
> After making this change and building a new launchpad the FDS writes
> the blobs under sling/repository/repository/datastore. By adding the
> 'path' configuration option you should be able to control its location.
>
> HTH and sorry for the late reply :-)
>
> Robert

Re: launchpad with FileDataStore

Posted by Mike Nimer <mn...@gmail.com>.
No problem, thank you for the reply. I'll try this out right away.
--mike

On Mon, Oct 3, 2016 at 7:44 AM, Robert Munteanu <ro...@apache.org> wrote:
> Hi Mike,
>
> On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
>> If I want to use the FileDataStore for blobs, with the
>> SegmentNodeStore.  What dependencies do I need to add to my
>> provisioning txt files, for launched 9-SNAPSHOT?
>>
>> Config:
>> ================
>> [configurations runModes=oak_tar]
>>   org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>>     name="Default\ NodeStore"
>>     customBlobStore="true"
>>
>>   org.apache.jackrabbit.core.data.FileDataStore
>>     minRecordLength="1024"
>>     cacheSize="10000000"
>>     path="sling/files"
>> ===================
>>
>> I thought this would do it:
>> org.apache.sling/org.apache.sling.installer.core/3.6.8
>>
>>
>> When I set CustomBlogStore="true" the server starts up without any
>> errors but I can not load the home page or /system/console app.  And
>> I
>> noticed that under the sling home folder I don't have the
>> /repository/segmentstore folder or a /sling/files folder.
>
> The following minimal changes worked for me
>
> diff --git a/launchpad/builder/src/main/provisioning/oak.txt
> b/launchpad/builder/src/main/provisioning/oak.txt
> index 0d0d96b..49fde19 100644
> --- a/launchpad/builder/src/main/provisioning/oak.txt
> +++ b/launchpad/builder/src/main/provisioning/oak.txt
> @@ -83,6 +83,10 @@
>  [configurations runModes=oak_tar]
>    org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
>      name="Default\ NodeStore"
> +    customBlobStore=B"true"
> +
> +  org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
> +    minRecordLength=I"4096"
>
>  [configurations runModes=oak_mongo]
>    org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService
>
> The main difference is that you would need to indicate the type of the
> configuration property - so I for numeric and B for boolean.
>
> After making this change and building a new launchpad the FDS writes
> the blobs under sling/repository/repository/datastore. By adding the
> 'path' configuration option you should be able to control its location.
>
> HTH and sorry for the late reply :-)
>
> Robert

Re: launchpad with FileDataStore

Posted by Robert Munteanu <ro...@apache.org>.
Hi Mike,

On Tue, 2016-09-06 at 19:26 -0500, Mike Nimer wrote:
> If I want to use the FileDataStore for blobs, with the
> SegmentNodeStore.��What dependencies do I need to add to my
> provisioning txt files, for launched 9-SNAPSHOT?
> 
> Config:
> ================
> [configurations runModes=oak_tar]
> � org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
> ����name="Default\ NodeStore"
> ����customBlobStore="true"
> 
> � org.apache.jackrabbit.core.data.FileDataStore
> ����minRecordLength="1024"
> ����cacheSize="10000000"
> ����path="sling/files"
> ===================
> 
> I thought this would do it:
> org.apache.sling/org.apache.sling.installer.core/3.6.8
> 
> 
> When I set CustomBlogStore="true" the server starts up without any
> errors but I can not load the home page or /system/console app.��And
> I
> noticed that under the sling home folder I don't have the
> /repository/segmentstore folder or a /sling/files folder.

The following minimal changes worked for me

diff --git a/launchpad/builder/src/main/provisioning/oak.txt
b/launchpad/builder/src/main/provisioning/oak.txt
index 0d0d96b..49fde19 100644
--- a/launchpad/builder/src/main/provisioning/oak.txt
+++ b/launchpad/builder/src/main/provisioning/oak.txt
@@ -83,6 +83,10 @@
�[configurations runModes=oak_tar]
���org.apache.jackrabbit.oak.plugins.segment.SegmentNodeStoreService
�����name="Default\ NodeStore"
+����customBlobStore=B"true"
+
+��org.apache.jackrabbit.oak.plugins.blob.datastore.FileDataStore
+����minRecordLength=I"4096"
�
�[configurations runModes=oak_mongo]
���org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService

The main difference is that you would need to indicate the type of the
configuration property - so I for numeric and B for boolean.

After making this change and building a new launchpad the FDS writes
the blobs under sling/repository/repository/datastore. By adding the
'path' configuration option you should be able to control its location.

HTH and sorry for the late reply :-)

Robert