Skip to content

Sample 02.echobot can't run on app service #417

Closed
@sherlock666

Description

@sherlock666

Version

botbuilder python sdk4.5

Describe the bug

For Sample 02.echobot
Successfully run in local and bot framework emulator
but can not run on azure after deploy to app service
(I connect to bot channel and use test in web chat)

log show:

2019-11-05T01:39:55.458414062Z
2019-11-05T01:39:55.458496562Z   _____
2019-11-05T01:39:55.458502062Z   /  _  \ __________ _________   ____
2019-11-05T01:39:55.458505962Z  /  /_\  \___   /  |  \_  __ \_/ __ \
2019-11-05T01:39:55.458510062Z /    |    \/    /|  |  /|  | \/\  ___/
2019-11-05T01:39:55.458513962Z \____|__  /_____ \____/ |__|    \___  >
2019-11-05T01:39:55.458518062Z         \/      \/                  \/
2019-11-05T01:39:55.458540762Z
2019-11-05T01:39:55.458544462Z A P P   S E R V I C E   O N   L I N U X
2019-11-05T01:39:55.458548063Z
2019-11-05T01:39:55.458552163Z Documentation: http://aka.ms/webapp-linux
2019-11-05T01:39:55.458555863Z
2019-11-05T01:39:56.815906832Z Starting OpenBSD Secure Shell server: sshd.
2019-11-05T01:39:56.879851978Z App Command Line not configured, will attempt auto-detect
2019-11-05T01:39:56.880581883Z Launching oryx with: -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -bindPort 8000
2019-11-05T01:39:57.471166003Z Oryx Version : 0.2.20191004.5, Commit: 95ca7f51b147da7b085922507f46106c664ae2a3
2019-11-05T01:39:57.471984108Z
2019-11-05T01:39:57.510537377Z Found build manifest file at '/home/site/wwwroot/oryx-manifest.toml'. Deserializing it...
2019-11-05T01:39:57.518767735Z Build Operation ID: |Mgf/GA1X9ZE=.6cd603b5_
2019-11-05T01:39:57.535159549Z No framework detected; using default app from /opt/defaultsite
2019-11-05T01:39:57.535621452Z Generating `gunicorn` command for 'application:app'
2019-11-05T01:40:00.086740549Z Writing output script to '/opt/startup/startup.sh'
2019-11-05T01:40:00.198100826Z Found virtual environment .tar.gz archive.
2019-11-05T01:40:00.198694830Z Removing existing virtual environment directory /antenv...
2019-11-05T01:40:00.288933559Z Extracting to directory /antenv...
2019-11-05T01:40:04.376490474Z Using packages from virtual environment antenv located at /antenv.
2019-11-05T01:40:04.376803676Z Updated PYTHONPATH to ':/antenv/lib/python3.7/site-packages'
2019-11-05T01:40:06.081427668Z [2019-11-05 01:40:06 +0000] [41] [INFO] Starting gunicorn 19.9.0
2019-11-05T01:40:06.100083798Z [2019-11-05 01:40:06 +0000] [41] [INFO] Listening at: http://0.0.0.0:8000 (41)
2019-11-05T01:40:06.101004804Z [2019-11-05 01:40:06 +0000] [41] [INFO] Using worker: sync
2019-11-05T01:40:06.111977581Z [2019-11-05 01:40:06 +0000] [44] [INFO] Booting worker with pid: 44
2019-11-05T01:40:07.644092669Z 172.16.5.1 - - [05/Nov/2019:01:40:07 +0000] "GET /robots933456.txt HTTP/1.1" 404 232 "-" "-"
2019-11-05 01:39:49.044 INFO  - Starting container for site
2019-11-05 01:39:49.074 INFO  - docker run -d -p 42573:8000 --name linebotdemo02_1_20b6493b -e WEBSITE_SITE_NAME=linebotdemo02 -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=linebotdemo02.azurewebsites.net -e WEBSITE_INSTANCE_ID=2f82fcda71047f2cee039aca2508dd3ba4f1da517325421091357c6b28aa93c6 -e HTTP_LOGGING_ENABLED=1 appsvc/python:3.7_1908260522
2019-11-05 01:39:55.658 INFO  - Initiating warmup request to container linebotdemo02_1_20b6493b for site linebotdemo02
2019-11-05 01:40:07.637 INFO  - Container linebotdemo02_1_20b6493b for site linebotdemo02 initialized successfully and is ready to serve requests.
2019-11-05T01:54:01.102712852Z 172.16.5.1 - - [05/Nov/2019:01:54:01 +0000] "POST /api/messages HTTP/1.1" 404 232 "-" "BF-DirectLine (Microsoft-BotFramework/3.2 +https://botframework.com/ua)"

Test in web chat issue message:

There was an error sending this message to your bot: HTTP status code NotFound

Metadata

Metadata

Assignees

Labels

R7Release 7 - December 10th, 2019customer-replied-toIndicates that the team has replied to the issue reported by the customer. Do not delete.customer-reportedIssue is created by anyone that is not a collaborator in the repository.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions