response=Gateway Timeout issue while running -PautoinstallPackage

Avatar

Avatar
Validate 1
Level 1
ramaem12
Level 1

Like

1 like

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile

Avatar
Validate 1
Level 1
ramaem12
Level 1

Like

1 like

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Boost 1
View profile
ramaem12
Level 1

12-08-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

12-08-2020

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

Answers (4)

Answers (4)

Avatar

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

273 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Boost 250
MVP
ChitraMadan
MVP

Likes

273 likes

Total Posts

165 posts

Correct reply

67 solutions
Top badges earned
Boost 250
Establish
Ignite 1
Give Back 5
Give Back 3
View profile
ChitraMadan
MVP

12-08-2020

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>

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 likes

Total Posts

3,161 posts

Correct reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

13-08-2020

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?

Avatar

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
berliant
Employee

Likes

207 likes

Total Posts

315 posts

Correct reply

98 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
berliant
Employee

12-08-2020

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.

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

12-08-2020

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?