TWCable / grabbit

Grabbit - Fast Content Sync tool for AEM/CQ
Apache License 2.0
125 stars 64 forks source link

Hi Team, while creating a new job to sync content between two AEM 6.3 instances curl command is failing. Any thoughts? #200

Open harish6959 opened 6 years ago

harish6959 commented 6 years ago

Thanks for taking the time to fill out an issue! To help the community solve your issue, please provide answers to the following questions, along with supporting log and configuration files.

``[aemadmin@lqec060cmaem01 author1]$ curl -v -f -X PUT --header 'Content-Type: text/plain' --data-binary "@/opt/jpm/adobe/author1/config.json" -u admin:admin -D /tmp/grabbit_headers http://localhost:14503/grabbit/job

What version of AEM are you running? AEM 6.3

How do you produce the issue? Please run grabbit.sh

Does the issue occur consistently? Yes

Any additional details?

harish6959 commented 6 years ago

Adding more logs:

curl -v -X PUT --header 'Content-Type: text/plain' --data-binary @/opt/jpm/adobe/author1/config.json -u admin:admin http://localhost:14503/grabbit/job

sagarsane commented 6 years ago

Hey @harish6959 thanks for reporting the issue. Can you try by installing the config package mentioned in the 3rd point here: https://github.com/TWCable/grabbit/blob/master/docs/AEMSupport.adoc#what-you-need-to-run-grabbit ?

That is needed for 6.3 as well. I'll update the documentation on it. Let me know how it goes!

harish6959 commented 6 years ago

@sagarsane, I already have "Grabbit-Deserialization-Firewall-Configuration-1.0" package installed on both AEM instances.

sagarsane commented 6 years ago

@harish6959 can you please check whether:

  1. Grabbit bundle is installed and active?
  2. Any exceptions in the error.log when you try to refresh the Grabbit bundle from the OSGi console?
praveenv2018 commented 6 years ago

I am also facing the same issue. Can anyone tell me how to solve this? @sagarsane i have validated bith 1 and 2, still the same issue.

mzgubin commented 6 years ago

@harish6959 @praveenv2018 Have you done the whitelisting? On AEM 6.3+ it appears it's something that needs to be done for grabbit. Perhaps this can be added to the setup instructions too for AEM 6.3+

1) in /system/console/configMgr 2) Find 'Apache Sling Login Admin Whitelist Configuration Fragment' 3) Add a new one 4) Name: grabbit 5) White Listed BSNs: com.twcable.grabbit

sagarsane commented 6 years ago

Thanks for the help @mzgubin .. adding Grabbit package to the Sling Login Admin Whitelist config is mentioned in the installation docs here : https://github.com/TWCable/grabbit/blob/master/docs/AEMSupport.adoc#what-you-need-to-run-grabbit

@harish6959 and @praveenv2018 as mentioned above please let us know if you are still having issues.

Thanks!