Expand my Community achievements bar.

SOLVED

Failure in building package via curl command (503), but successful when build from /crx/packmgr. Is there any size limit only for curl commands?

Avatar

Level 1

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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 

 



Arun Patidar

View solution in original post

5 Replies

Avatar

Level 1

Hi @BrijeshYadav 

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.

Avatar

Community Advisor

Are you trying this in local or hosted AEM?

It maybe possible that the package is building but due to timeout the 503 error shown.



Arun Patidar

Avatar

Level 1

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.

Avatar

Correct answer by
Community Advisor

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 

 



Arun Patidar