Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Adobe Stock issue after integration

Avatar

Level 5

Hi There,

 

We are facing an issue while searching the Adobe stock assets after integration. Please find below a snapshot of the error and logs on the same.

Error snap:

MicrosoftTeams-image.png

Log entries

 

19.01.2023 03:54:13.404 *INFO* [ForkJoinPool.commonPool-worker-1] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect
19.01.2023 03:54:13.404 *INFO* [ForkJoinPool.commonPool-worker-1] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://stock.adobe.io:443
19.01.2023 03:54:13.405 *INFO* [[0:0:0:0:0:0:0:1] [1674118453351] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect
19.01.2023 03:54:13.405 *INFO* [[0:0:0:0:0:0:0:1] [1674118453351] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://stock.adobe.io:443
19.01.2023 03:54:13.406 *INFO* [ForkJoinPool.commonPool-worker-1] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect
19.01.2023 03:54:13.406 *INFO* [ForkJoinPool.commonPool-worker-1] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://stock.adobe.io:443
19.01.2023 03:54:13.406 *INFO* [ForkJoinPool.commonPool-worker-7] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect
19.01.2023 03:54:13.406 *INFO* [ForkJoinPool.commonPool-worker-7] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://stock.adobe.io:443
19.01.2023 03:54:13.407 *INFO* [[0:0:0:0:0:0:0:1] [1674118453351] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect
19.01.2023 03:54:13.407 *INFO* [[0:0:0:0:0:0:0:1] [1674118453351] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://stock.adobe.io:443
19.01.2023 03:54:13.407 *ERROR* [ForkJoinPool.commonPool-worker-3] com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl Error getting a search result.
com.adobe.stock.exception.StockException: Permission denied: connect
    at com.adobe.stock.apis.HttpUtils.doGet(ApiUtils.java:238) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFilesAPIHelpers.searchFiles(SearchFiles.java:245) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFiles.doApiCall(SearchFiles.java:454) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFiles.getNextResponse(SearchFiles.java:557) [com.adobe.stock.api:1.0.5]
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.executeSearch(StockSearchServiceImpl.java:294) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.lambda$executeApiCallAndCollectResults$0(StockSearchServiceImpl.java:274) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952)
    at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926)
    at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
    at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
    at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
    at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
    at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
19.01.2023 03:54:13.407 *INFO* [ForkJoinPool.commonPool-worker-7] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://stock.adobe.io:443: Permission denied: connect

19.01.2023 03:54:13.409 *ERROR* [[0:0:0:0:0:0:0:1] [1674118453351] GET /mnt/overlay/granite/ui/content/shell/omnisearch/searchresults.html HTTP/1.1] com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl Error getting a search result.
com.adobe.stock.exception.StockException: Permission denied: connect
    at com.adobe.stock.apis.HttpUtils.doGet(ApiUtils.java:238) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFilesAPIHelpers.searchFiles(SearchFiles.java:245) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFiles.doApiCall(SearchFiles.java:454) [com.adobe.stock.api:1.0.5]
    at com.adobe.stock.apis.SearchFiles.getNextResponse(SearchFiles.java:557) [com.adobe.stock.api:1.0.5]
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.executeSearch(StockSearchServiceImpl.java:294) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.lambda$executeApiCallAndCollectResults$0(StockSearchServiceImpl.java:274) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:952)
    at java.base/java.util.stream.ReduceOps$ReduceTask.doLeaf(ReduceOps.java:926)
    at java.base/java.util.stream.AbstractTask.compute(AbstractTask.java:327)
    at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
    at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
    at java.base/java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:408)
    at java.base/java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:736)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateParallel(ReduceOps.java:919)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.executeApiCallAndCollectResults(StockSearchServiceImpl.java:279) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at com.day.cq.dam.stock.integration.impl.service.StockSearchServiceImpl.searchAssets(StockSearchServiceImpl.java:165) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at com.day.cq.dam.stock.integration.impl.omnisearch.StockOmniSearchHandler.getResults(StockOmniSearchHandler.java:104) [com.day.cq.dam.cq-dam-stock-integration:1.2.8]
    at com.adobe.granite.omnisearch.impl.core.OmniSearchServiceImpl.getSearchResults(OmniSearchServiceImpl.java:141) [com.adobe.granite.omnisearch.core:1.0.91.CQ650-B0004]
    at org.apache.jsp.libs.granite.ui.components.shell.omnisearch.datasource.searchdatasource.searchdatasource_jsp._jspService(searchdatasource_jsp.java:199)

 

 

Thanks,

Ravi Joshi

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@ravi_joshi Ya I believe it's licensed, you can probably connect with the product team for more clarity on the enterprise plan part.

View solution in original post

6 Replies

Avatar

Community Advisor

Hi @ravi_joshi 

 

It's an issue with the Adobe IO stock connection with AEM. Would you please perform the health check for the Adobe IMS configuration that you have created for Adobe Stock in your AEM instance. If the health check is failing that means there is an issue with the configuration. Kindly go through the video mentioned in the below link to understand in detail about the Adobe Stock integration with AEM.

 

https://experienceleague.adobe.com/docs/experience-manager-learn/assets/creative-workflows/adobe-sto... 

 

Hope this helps.

 

Hope this helps

 

Avatar

Level 5

Hi @Avinash_Gupta_ ,

We have performed a health check on the configuration and it is showing as  "healthy configuration - token received successfully". But the issue still persists.

I think it is able to retrieve the access token from auth server but when it tries to connect with the Adobe Stock API it is throwing the below error as mentioned in the stack trace.

https://stock.adobe.io:443: Permission denied: connect

Please do share your suggestions on the same.

Thanks,

Ravi Joshi

 

Avatar

Community Advisor

@ravi_joshi This seems to be related to the security certificate i.e. w.r.t "HTTPS".

Avatar

Level 5

Hi @Manu_Mathew_ ,

I am also thinking the same. But can you please help me out with where I can check those permissions?

Because I can see the configuration is a healthy one and Auth server is also giving us the token but when we are searching the Adobe Stock assets it is trying to fetch the details from the adobe stock API and at that time it is throwing the permission error.

Our understanding on that note is that we do not have an active enterprise plan that could cause this issue or we might need to provide API access to the users on the API level.

Please do let me know your suggestions on the same.

Thanks,

Ravi Joshi

Avatar

Correct answer by
Community Advisor

@ravi_joshi Ya I believe it's licensed, you can probably connect with the product team for more clarity on the enterprise plan part.