azure-maven-plugins icon indicating copy to clipboard operation
azure-maven-plugins copied to clipboard

Cannot deploy app service app via maven from intellij

Open wesoos opened this issue 2 years ago • 5 comments

Plugin name and version

azure-webapp-maven-plugin 1.12.0

Plugin configuration in your pom.xml

<schemaVersion>V2</schemaVersion>
<region>centralus</region>
                    <resourceGroup>...</resourceGroup>
                    <appName>...</appName>

                    <deploymentSlotSetting>
                      <name>stage</name>
                      <configurationSource>parent</configurationSource>
                    </deploymentSlotSetting>

                    <runtime>
                        <os>linux</os>
                        <javaVersion>jre8</javaVersion>
                        <webContainer>TOMCAT 8.5</webContainer>
                    </runtime>
                    <deployment>
                        <resources>
                            <resource>
                                <directory>${project.basedir}/target</directory>
                                <includes>
                                    <include>*.war</include>
                                </includes>
                            </resource>
                        </resources>
                    </deployment>

Expected behavior

Deploy app to Azure successfully

Actual behavior

This just started recently. But every time I try to deploy my app now, I get the below error. okhttp3.internal.http2.StreamResetException: stream was reset: NO_ERROR

Steps to reproduce the problem

Install app via maven Deploy via azure maven plugin

wesoos avatar Aug 08 '22 15:08 wesoos

@wesoos Thanks for your report, I'll investigate this issue soon

Flanker32 avatar Aug 10 '22 01:08 Flanker32

@wesoos Really sorry for the late response for this issue, this seems to be an issue of ok http client while we have migrated to use netty in the new releases, could you please upgrade to the latest version (v2.6.1) and try again? Many thanks!

Flanker32 avatar Aug 30 '22 07:08 Flanker32

Hello, I'm getting the following error when upgrading to 2.7.0

Failed to execute goal com.microsoft.azure:azure-webapp-maven-plugin:2.7.0:deploy (default-cli) on project tekcontrol-portal-ui: Execution default-cli of goal com.microsoft.azure:azure-webapp-maven-plugin:2.7.0:deploy failed. NullPointerException

wesoos avatar Oct 05 '22 14:10 wesoos

Adding the -e switch, I'm seeing this:

502 - Web server received an invalid response while acting as a gateway or proxy server.

wesoos avatar Oct 05 '22 14:10 wesoos

@wesoos Thanks for your report, could you please share the detail stack trace to help us better investigate this issue?

Adding the -e switch, I'm seeing this:

502 - Web server received an invalid response while acting as a gateway or proxy server.

Could this issue be stable reproduced after switch to another site or with other toolkit like azure toolkit for IntelliJ or azure cli?

Flanker32 avatar Oct 09 '22 13:10 Flanker32