Hi,
I had setup my local instance to interact with AWS S3 using this tutorial. http://cq-ops.tumblr.com/post/88962236474/how-to-configure-aem6-datastore-for-amazon-s3 and https://docs.adobe.com/docs/en/aem/6-1/deploy/platform/data-store-config.html.
However, when i start the instance i see the exception
30.11.2015 17:22:49.720 *ERROR* [qtp2026726933-60] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
30.11.2015 17:22:53.491 *ERROR* [qtp2026726933-61] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
30.11.2015 17:22:53.492 *ERROR* [qtp2026726933-61] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependenci
The S3 logs are coming up as
[senuser@marshall-assets-biztech01-assets-i-19c7a9c6 logs]$ cat error.log | grep 's3'
30.11.2015 17:16:00.074 *INFO* [OsgiInstallerImpl] crx-ext-s3 BundleEvent INSTALLED
30.11.2015 17:16:00.074 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Installed bundle crx-ext-s3 [248] from resource TaskResource(url=fileinstallad09f60708c0fb5aee04cdf46857bff9:/app/crx-quickstart/install/15/crx-ext-s3-1.0.44.jar, entity=bundle:crx-ext-s3, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:36:42:11:, Bundle-SymbolicName=crx-ext-s3, Bundle-Version=1.0.44], digest=1436426738000)
30.11.2015 17:16:00.075 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Set start level for bundle crx-ext-s3 [248] to 15
30.11.2015 17:16:00.094 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Started bundle crx-ext-s3 [248]
30.11.2015 17:16:17.130 *INFO* [FelixStartLevel] crx-ext-s3 BundleEvent RESOLVED
30.11.2015 17:16:17.897 *INFO* [FelixStartLevel] crx-ext-s3 BundleEvent STARTING
30.11.2015 17:16:17.901 *INFO* [FelixStartLevel] crx-ext-s3 BundleEvent STARTED
The Day CQ upgragde bundle is coming up as a fragment inside system bundles. Anything that i can be doing wrong?
I have not changed any repository.xml file settings i.e. no but only the s3 config that is residing within the install directory of crx-quickstart.
<
DataStore
class
=
"com.day.crx.cloud.s3.ds.S3DataStore"
>
<
param
name
=
"config"
value
=
"$\{rep.home\}/aws.properties"
/>
<
param
name
=
"secret"
value
=
"123456789"
/>
</
DataStore
>
Will appreciate any response.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
Some Quick pointers:-
1. Make sure all bundles are installed and running?Start any bundles that do not have the “ACTIVE” status and this should resolve the issue. Verify the same from http://dev.day.com/content/dam/day/onlinetool/COI.html
2. Check all your XML config files for CQ, especially if you remember editing one, "Content is not allowed in prolog" is a common error when the XML is malformed, or you have whitespace before the opening element of an XML file.
Link:- https://edivad.wordpress.com/2013/04/02/aemcq5-authenticationsupport-service-missing/
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi
Some Quick pointers:-
1. Make sure all bundles are installed and running?Start any bundles that do not have the “ACTIVE” status and this should resolve the issue. Verify the same from http://dev.day.com/content/dam/day/onlinetool/COI.html
2. Check all your XML config files for CQ, especially if you remember editing one, "Content is not allowed in prolog" is a common error when the XML is malformed, or you have whitespace before the opening element of an XML file.
Link:- https://edivad.wordpress.com/2013/04/02/aemcq5-authenticationsupport-service-missing/
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi Kautuksahni,
Any advice?
Views
Replies
Total Likes
Hi
Please have a look at this article :- http://www.weishao.me/blog/using-amazon-s3-as-the-datastore-in-adobe-aem
I hope this would work for you. Else i would recommend you to reach out to customer support for the same.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi Kautuk,
I got S3 working. The assets are being written over to S3. Thanks for your help. I was looking at keeping only a 1/2 GB worth of data in JCR and moving the other data into S3. However, I am not sure how to specify the cacheSize. I mean if I want only 1 GB what should i specify 1GB/1024MB/10000000 kb or only the number in KB or bytes?
Also, when the local cache size exceeds the limit, I see that AEM is getting rid of the data store. Does that mean it is also getting rid of version etc associated with the images because that's where they live isn't it?
Views
Replies
Total Likes
Hi
To answer to you questions:-
Q1 I am not sure how to specify the cacheSize?
Ans :- The Size must be specified in bytes, For 1 GB, cacheSize= 1,073,741,824 bytes.
Q2. when the local cache size exceeds the limit, I see that AEM is getting rid of the data store. Does that mean it is also getting rid of version etc associated with the images because that's where they live isn't it?
Ans:
The local cache has a size limit, specifiable by the cacheSize parameter. When the size of the cache exceeds the limit, it will automatically undergo purging in order to clear older items and reclaim space. During purging, the local cache makes sure that it doesn’t delete any in-progress asynchronous uploads.
Things to note about the local cache mechanism:
So, as per documentation it would get rid of everything except in-progress. I will ask internally with engineering team to give me exact answer to this question.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi Kautuk,
Any updates on the issue?
Cheers
Views
Replies
Total Likes
Hi samthadhani
I am waiting for the response from internal Engg team. I would get back to you soon,
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi
Please find below the reply from engineering team:-
Localcache purging is just cache purging. Binaries would be existing in S3.
Binaries deletion in S3 is govern by Oak’s revisionCleanup/GarbageCollection which deletes unreferenced(in oak) binaries.
and
For purging there are two factors:
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Thanks Kautuk,
Yes, the response was helpful so i can safely assume that only the binaries would be maintained within S3 and version etc would be deleted when the cache criteria etc are met as you have explained?
Cheers
Views
Replies
Total Likes
Yes, you get it right .
As this was conveyed to me by engineering team. If some want to delete binaries as well, Binaries deletion in S3 is govern by Oak’s revisionCleanup/GarbageCollection which deletes unreferenced(in oak) binaries.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi Samthadhani,
Even I'm struck up with the same issue.
*ERROR* [qtp398821604-63] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.
*ERROR* [qtp398821604-63] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.
Can you tell me the exact fix which you did to make it work? is it because of datastore folder is not created in repository? Appreciate your help. kautuksahni samthadhani
Thanks,
Vijay
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies