Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create web apps in Azure #23420

Closed
kobayashikazu opened this issue Aug 3, 2022 · 11 comments
Closed

Cannot create web apps in Azure #23420

kobayashikazu opened this issue Aug 3, 2022 · 11 comments
Assignees
Labels
app-service-logging-monitoring Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp

Comments

@kobayashikazu
Copy link

kobayashikazu commented Aug 3, 2022

Related command
az webapp up --runtime PYTHON:3.9 --sku FREE --logs

Describe the bug
The error urllib3.exceptions.ProtocolError: is printed.

To Reproduce
(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>pip install -r requirements.txt

(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>az login
(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>az webapp up --runtime PYTHON:3.9 --sku FREE --logs

The webapp 'zealous-wave-' doesn't exist
Creating Resource group 'user_
' ...
Resource group creation complete
Creating AppServicePlan 'user_' ...
Creating webapp 'zealous-wave-
' ...
Configuring default logging for the app, if not already enabled
Creating zip with contents of dir C:\Users\user_\msdocs-python-flask-webapp-quickstart ...
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202
You can launch the app at Http://zealous-wave-*********.azurewebsites.net
Configuring default logging for the app, if not already enabled
2022-08-03T03:15:43 Welcome, you are now connected to log-streaming service.
Exception in thread Thread-1 (_get_log):
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 697, in _update_chunk_length
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 438, in _error_catcher
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 764, in read_chunked
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 701, in _update_chunk_length
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 2613, in _get_log
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 572, in stream
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 752, in read_chunked
File "contextlib.py", line 153, in exit
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 455, in _error_catcher
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

ProtocolError:" error and does not proceed to the next process.

Expected behavior

I want to create a web app in Azure.

Environment summary

OS version:Windows 10

Python Virtual Environment:Python 3.9.13

azure cli version:

azure-cli 2.39.0
core 2.39.0
telemetry 1.0.6 *

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\user_.azure\cliextensions'

Python (Windows) 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 15:58:59) [MSC v.1929 32 bit (Intel)]

※I am using a free Azure account.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp CXP Attention This issue is handled by CXP team. Auto-Assign Auto assign by bot Account az login/account labels Aug 3, 2022
@ghost ghost assigned jiasli Aug 3, 2022
@ghost ghost added this to the Backlog milestone Aug 3, 2022
@ghost ghost added the Installation label Aug 3, 2022
@yonzhan yonzhan removed Account az login/account Installation labels Aug 3, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 3, 2022

route to CXP team

@SaurabhSharma-MSFT
Copy link
Member

@kobayashikazu We are looking into it and get back to you for any additional information.

@kobayashikazu
Copy link
Author

@SaurabhSharma-MSFT Thank you.

@SatishBoddu-MSFT
Copy link

Hello @kobayashikazu Thanks for reaching out on this issue!

Is this the below document that you have followed?
Quickstart: Deploy a Python (Django or Flask) web app to Azure App Service

@kobayashikazu
Copy link
Author

Quickstart: Deploy a Python (Django or Flask) web app to Azure App Service

Hello @SaurabhSharma-MSFT Follow the documentation.

py -3.9 -m venv .venv
az webapp up --runtime PYTHON:3.9 --sku Free --logs
Where it differs somewhat is in the above commands.

Configuring default logging for the app, if not already enabled
2022-08-10T03:26:00  Welcome, you are now connected to log-streaming service.
Exception in thread Thread-1 (_get_log):
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 697, in _update_chunk_length
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 438, in _error_catcher
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 764, in read_chunked
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 701, in _update_chunk_length
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 2613, in _get_log
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 572, in stream
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 752, in read_chunked
  File "contextlib.py", line 153, in __exit__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 455, in _error_catcher
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

※The process does not proceed with urllib3.exceptions.ProtocolError being displayed.

@jbrandesLS
Copy link

I'm currently having the same issue in the Azure web UI. I've been trying for weeks now to upload my code via zip. I'm getting this error. Any progress on a solution?

snippet 081622

@SatishBoddu-MSFT SatishBoddu-MSFT removed their assignment Aug 25, 2022
@SatishBoddu-MSFT SatishBoddu-MSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention This issue is handled by CXP team. labels Aug 25, 2022
@ghost
Copy link

ghost commented Aug 25, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

Issue Details

Related command
az webapp up --runtime PYTHON:3.9 --sku FREE --logs

Describe the bug
The error urllib3.exceptions.ProtocolError: is printed.

To Reproduce
(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>pip install -r requirements.txt

(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>az login
(.venv) C:\Users\user_\msdocs-python-flask-webapp-quickstart>az webapp up --runtime PYTHON:3.9 --sku FREE --logs

The webapp 'zealous-wave-' doesn't exist
Creating Resource group 'user_
' ...
Resource group creation complete
Creating AppServicePlan 'user_' ...
Creating webapp 'zealous-wave-
' ...
Configuring default logging for the app, if not already enabled
Creating zip with contents of dir C:\Users\user_\msdocs-python-flask-webapp-quickstart ...
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202
You can launch the app at Http://zealous-wave-*********.azurewebsites.net
Configuring default logging for the app, if not already enabled
2022-08-03T03:15:43 Welcome, you are now connected to log-streaming service.
Exception in thread Thread-1 (_get_log):
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 697, in _update_chunk_length
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 438, in _error_catcher
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 764, in read_chunked
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 701, in _update_chunk_length
urllib3.exceptions.InvalidChunkLength: InvalidChunkLength(got length b'', 0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/custom.py", line 2613, in _get_log
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 572, in stream
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 752, in read_chunked
File "contextlib.py", line 153, in exit
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/response.py", line 455, in _error_catcher
urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))

ProtocolError:" error and does not proceed to the next process.

Expected behavior

I want to create a web app in Azure.

Environment summary

OS version:Windows 10

Python Virtual Environment:Python 3.9.13

azure cli version:

azure-cli 2.39.0
core 2.39.0
telemetry 1.0.6 *

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\user_.azure\cliextensions'

Python (Windows) 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 15:58:59) [MSC v.1929 32 bit (Intel)]

※I am using a free Azure account.

Author: kobayashikazu
Assignees: -
Labels:

Web Apps, Service Attention, customer-reported, Auto-Assign

Milestone: Backlog

@Nazarius1
Copy link

Hello Azure team,

I am having the same problem.
Is there already any explanation about the error?
Thank you.

@panchagnula
Copy link
Contributor

from the original issue reported & stack trace, the app was created successfully, the --logs is the one causing exception & I believe this might be because logstreaming is not supported on Free SKU. Please run the same command without --logs & see if that works.

@panchagnula
Copy link
Contributor

I'm currently having the same issue in the Azure web UI. I've been trying for weeks now to upload my code via zip. I'm getting this error. Any progress on a solution?

snippet 081622

Sorry this needs to be reported to the portal team - maybe create a support case.

@tulikac
Copy link

tulikac commented Sep 20, 2023

Duplicate of #25599. We will be tracking the linked issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-service-logging-monitoring Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp
Projects
None yet
Development

No branches or pull requests