Salvatore Avanzo
Salvatore Avanzo

Reputation: 2786

Django on AWS elastic beanstalk: failed to generate rsyslog file with error Procfile could not be parsed

I am trying to add a custom Procfile to my Django elastic beanstalk environment but I am receiving the following error during the deploy:

022/06/02 08:14:22.827519 [INFO] Generating rsyslog config from Procfile

2022/06/02 08:14:22.827557 [ERROR] failed to generate rsyslog file with error Procfile could not be parsed

2022/06/02 08:14:22.827564 [ERROR] An error occurred during execution of command [app-deploy] - [GetToggleForceRotate]. Stop running the command. Error: failed to generate rsyslog file with error Procfile could not be parsed

The Procfile I am using is the following:

web: gunicorn --bind 127.0.0.1:8000 --workers=1 --threads=10 myapp.wsgi:application

And the option I previously used in my .ebextentions configuration was

option_settings:
  aws:elasticbeanstalk:environment:proxy:staticfiles:
    /static: static
  aws:elasticbeanstalk:container:python:
    WSGIPath: myapp.wsgi:application
    NumProcesses: 1
    NumThreads: 10

and it was running successfully. Any guess? Thank you

Upvotes: 4

Views: 1291

Answers (1)

blim747
blim747

Reputation: 81

I had this same issue, the issue was I had a comment at the beginning of my Procfile, removing that comment fixed it for me. Make sure your Procfile only contains the plain text command(s)

Upvotes: 7

Related Questions