response=Gateway Timeout issue while running -PautoinstallPackage | Community
Skip to main content
Level 3
Aug 12, 2020 8:46 AM UTC
Solved

response=Gateway Timeout issue while running -PautoinstallPackage

I am running below command to deploy my code package in aem instance 4502(which is up and running)

 

mvn clean install -PautoInstallPackage

 

but i am getting below error, any idea why it is happening?

[ERROR] Request to http://localhost:4502/crx/packmgr/service.jsp failed, response=Gateway Timeout

 

FYI- when i run mvn clean install it is showing success and i manually deployed in 4502 instance.

AEM version - 6.5.5

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SundeepKatepally
SundeepKatepallyAccepted solution
New Participant
Aug 13, 2020 3:35 AM UTC

if is because , in pom.xml your need to give the right user name , password and port number. Also check for proxy attribute.

6 replies

joerghoh
Employee
Aug 13, 2020 7:00 PM UTC

When you use the maven profile to deploy, do you see anything in the AEM logfile (error.log) which looks like that the package installation is running?

Translate
SundeepKatepally
SundeepKatepallyAccepted solution
New Participant
Aug 13, 2020 3:35 AM UTC

if is because , in pom.xml your need to give the right user name , password and port number. Also check for proxy attribute.

Translate
ChitraMadan
New Participant
Aug 12, 2020 5:34 PM UTC

Hi @ramaem12 ,

 

Can you please try to add <useProxy>false</useProxy> in the content package plugin

 

<!-- -->
<!-- V A U L T P A C K A G E P L U G I N -->
<!-- -->
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<extensions>true</extensions>
<version>1.0.2</version>
<inherited>true</inherited>
<configuration>
<verbose>false</verbose>
<failOnError>true</failOnError>
<userId>${cq.username}</userId>
<password>${cq.password}</password>
<timeout>10</timeout>
<useProxy>false</useProxy>
</configuration>
</plugin>
Translate
Employee
Aug 12, 2020 1:32 PM UTC

A project root pom.xml file includes a connection properties

<properties>

        <aem.host>localhost</aem.host>

        <aem.port>4502</aem.port>

        <aem.publish.host>localhost</aem.publish.host>

        <aem.publish.port>4503</aem.publish.port>

        <sling.user>admin</sling.user>

        <sling.password>admin</sling.password>

        <vault.user>admin</vault.user>

        <vault.password>admin</vault.password>

 

Make sure, that your host, port, user, and password are properly defined.

Translate
Vaibhavi_J
Level 7
Aug 12, 2020 9:42 AM UTC

Hi @ramaem12 , 

Looks like server is not responding when you try to deploy snapshot. 

This could be a problem with snapshot as well. 

Can you please have a look at logs? 

Translate
ramaem12Author
Level 3
Aug 12, 2020 1:17 PM UTC
As i mentioned snapshot is working when i manually upload in aem instance
Translate