This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
I am trying to create, update and build a package using curl commands, but build steps fail with response curl: (22) The requested URL returned error: 503
On /crx/packmgr when I check it shows package last built time stamp, but even on retrying build fails.
On building directly from /crx/packmgr build is successful in nearly 75s
Package size - 25.3 MB
Here are my curl commands:
curl --fail -u "$AUTH_USERNAME":"$AUTH_PASSWORD" -X POST $STG/crx/packmgr/update.jsp -F path=/etc/packages/my_packages/content-sync.zip -F packageName=content-sync -F groupName=my_packages -F filter="[{\"root\":\"/content/abc/website\", \"rules\":[{\"modifier\" : \"exclude\", \"pattern\" : \"/content/abc/website/de\"},{\"modifier\" : \"exclude\", \"pattern\" : \"/content/abc/website/ef\"} ] } ]" -F '_charset_=UTF-8'
Response - {"success":true,"msg":"Package updated successfully","path":"/etc/packages/my_packages/content-sync.zip"}
curl --fail --retry 2 --retry-delay 100 -u "$AUTH_USERNAME":"$AUTH_PASSWORD" -X POST $STG/crx/packmgr/service/.json/etc/packages/my_packages/content-sync.zip?cmd=build
Response -
curl: (22) The requested URL returned error: 503
Warning: Transient problem: HTTP error Will retry in 100 seconds. 2 retries
Warning: left.
curl: (22) The requested URL returned error: 503
Warning: Transient problem: HTTP error Will retry in 100 seconds. 1 retries
Warning: left.
curl: (22) The requested URL returned error: 503
Is there any size limit only for curl commands? or any other way to do this?
Solved! Go to Solution.
Views
Replies
Total Likes
I am not sure if you can change that, you must check with Adobe.
For AMS or locally hosted, we used to access the AEM using direct AEM Author url i.e. host:port
Hi @vdeora ,
It works fine with the command. See below screen shot with time.
curl -u admin:admin -X POST http://localhost:4502/crx/packmgr/service/.json/etc/packages/mypackage/testPackage.zip?cmd=build
For reference: https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/curl.html?lan...
This command works fine for me as well in other cases, this is a particular case where it is failing where I feel the size of package built is large.
I am trying this on AEM cloud. Yes you are correct, to me also it seems like package is built but timeout gives 503, but even after multiple retries it fails.
How can I avoid timeout? Already increased it to delay of 100s.
Views
Likes
Replies