django - eb deploy error - chown /var/app/staging/venv/bin/python: no such file or directory - TagMerge
4eb deploy error - chown /var/app/staging/venv/bin/python: no such file or directoryeb deploy error - chown /var/app/staging/venv/bin/python: no such file or directory

eb deploy error - chown /var/app/staging/venv/bin/python: no such file or directory

Asked 9 months ago
0
4 answers

Th second answer here worked for me: AWS Elastic Beanstalk chown PythonPath error

I added a file caled .ebignore into my main project directory:

~/ebdjango/
|-- .ebignore
|-- .ebextensions
|   `-- django.config
|-- ebdjango
|   |-- __init__.py
|   |-- settings.py
|   |-- urls.py
|   `-- wsgi.py
|-- db.sqlite3
|-- manage.py
`-- requirements.txt

the contents of the file are only one line:

venv

Source: link

0

ERROR: The request could not be satisfied
Generated by cloudfront (CloudFront)
Request ID: i4XdJRYgRAAj9x71GSHBYOFYK_Q8yK9n0T6sz12dQMLjWUBwiTzQAA==

Source: link

0

[플라스크 -ElasticBeansatalk] 오류 : Chown /VAR /APP /준비 /HIMASUI_APP /HIMASUI_VENV /BIN /Python : 해당 파일 또는 디렉토리 없음
An error occurred during execution of command [self-startup] -[StageApplication]. Stop running the command. Error: chown /var/app/staging/app_name/app_name_venv/bin/python: no such file or directory
[플라스크 -ElasticBeansatalk] 오류 : Chown /VAR /APP /준비 /HIMASUI_APP /HIMASUI_VENV /BIN /Python : 해당 파일 또는 디렉토리 없음
import os
# Flask
DEBUG= True
# SQLAlchemy
SQLALCHEMY_DATABASE_URI     = 'mysql+pymysql://{user}:{password}@{host}/app_development?charset=utf8'.format(**{
    'user'      : os.getenv('DB_USER', 'root'),
    'password'  : os.getenv('DB_PASSWORD', ''),
    'host'      : os.getenv('DB_HOST', 'localhost'),
})
SQLALCHEMY_TRACK_MODIFICATIONS= False
SQLALCHEMY_ECHO             = False
# SECRET_KEY
SECRET_KEY= 'foo'
# BasicAuthUser
BASIC_AUTH_USER= 'admin'
BASIC_AUTH_PASSWORD= 'admin1234'
[플라스크 -ElasticBeansatalk] 오류 : Chown /VAR /APP /준비 /HIMASUI_APP /HIMASUI_VENV /BIN /Python : 해당 파일 또는 디렉토리 없음
app
├  __pycache__
|
├  elasticbeanstalk
|  └  config.yml
|
├  config
|  ├  __pycache__
|  ├  __init__.py
|  ├  local.py
|  └  production.py
|
├  functions
|  ├  func1
|  |  ├  __pycache__
|  |  ├  templates
|  |  ├  __init__.py
|  |  └  controller.py
|  ├  func2
|  ├  func3
|  └  …
|
├  app_venv
|  ├  bin
|  ├  include
|  ├  lib
|  └  pyvenv.cfg
|
├  migrations
|  ├  __pycache__
|  ├  versions
|  ├  alembic.ini
|  ├  env.py
|  ├  READEME
|  └  script.py.mako
|
├  models
|  ├  __pycache__
|  ├  __init__.py
|  ├  models.py
|  └  setting.py
|
├  static
|  ├  images
|  ├  javascript
|  └  stylesheets
|
├  templates
├  .DS_Store
├  .ebignore
├  .gitignore
├  application.py
├  database.py
├  httpauth.py
├  methods.py
├  requirements.txt
└  variable.py

Source: link

0

error
2021/03/15 22:49:08.925837 [INFO] Executing instruction: StageApplication
2021/03/15 22:49:09.877646 [INFO] extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/
2021/03/15 22:49:09.877695 [INFO] Running command /bin/sh -c /usr/bin/unzip -q -o /opt/elasticbeanstalk/deployment/app_source_bundle -d /var/app/staging/
2021/03/15 22:49:18.870026 [INFO] finished extracting /opt/elasticbeanstalk/deployment/app_source_bundle to /var/app/staging/ successfully
2021/03/15 22:49:18.872859 [ERROR] An error occurred during execution of command [app-deploy] - [StageApplication]. Stop running the command. Error: chown /var/app/staging/bin/python: no such file or directory

Source: link

Recent Questions on django

    Programming Languages