Note that there are some explanatory texts on larger screens.

plurals
  1. POAWS Beanstalk django 1.5 application not working
    primarykey
    data
    text
    <p>I'm new to AWS so please help me. I'll write only the things which might matter for my problem. If you need more info, just write in comments section. When I ping ELB address or app address, I get "Request timeout".</p> <p>Server:</p> <pre><code>Instance type: micro Custom AMI: ami-c37474b7 </code></pre> <p>Load balancer:</p> <pre><code>Only HTTP, port 80 </code></pre> <p>And RDS, S3, ElastiCache, SQS.</p> <p>I use S3 also to store django's static files, which works, because I can see those files in my bucket.<br> RDS and SQS also works. The problem with ElastiCache is timeout, which libmemcached fired, but that isn't the main problem. </p> <p>sg-cced0da3 | SecurityGroup for ElasticBeanstalk environment.</p> <pre><code>22 (SSH) 0.0.0.0/0 80 (HTTP) sg-ceed0da1 </code></pre> <p>sg-ceed0da1 | ELB created security group used when no security group is specified during ELB creation - modifications could impact traffic to future ELBs</p> <pre><code>80 (HTTP) 0.0.0.0/0 </code></pre> <p>Config file</p> <pre><code>packages: yum: libevent: [] libmemcached: [] libmemcached-devel: [] container_commands: 01_collectstatic: command: "django-admin.py collectstatic --noinput" 02_syncdb: command: "django-admin.py syncdb --noinput" leader_only: true 03_createadmin: command: "utilities/scripts/createadmin.py" leader_only: true option_settings: - namespace: aws:elasticbeanstalk:container:python option_name: WSGIPath value: findtofun/wsgi.py - option_name: DJANGO_SETTINGS_MODULE value: findtofun.settings - option_name: AWS_ACCESS_KEY_ID value: ... - option_name: AWS_SECRET_KEY value: ... - namespace: aws:elasticbeanstalk:container:python:staticfiles option_name: /static/ value: static/ </code></pre> <p>LOGS</p> <hr> <h2>/var/log/eb-tools.log</h2> <ul> <li>2013-06-03 14:52:47,908 [INFO] (27814 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Script succeeded.</li> <li>2013-06-03 14:52:47,908 [INFO] (27814 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Executing script:</li> <li>/opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py</li> <li>2013-06-03 14:52:50,019 [INFO] (27814 MainThread) [directoryHooksExecutor.py-29] [root directoryHooksExecutor info] Output from script: New python executable in</li> <li>/opt/python/run/venv/bin/python2.6</li> <li>Installing</li> </ul> <hr> <h2>/var/log/httpd/error_log</h2> <ul> <li>Python/2.6.8 configured -- resuming normal operations</li> <li>[Mon Jun 03 16:53:06 2013] [error] Exception KeyError: KeyError(140672020449248,) in ignored</li> <li>[Mon Jun 03 14:53:06 2013] [notice] caught SIGTERM, shutting down</li> <li>[Mon Jun 03 14:53:08 2013] [notice] suEXEC mechanism enabled<br> (wrapper: /usr/sbin/suexec)</li> <li>[Mon Jun 03 14:53:08 2013] [notice] Digest: generating secret for digest authentication</li> <li>...</li> <li>[Mon Jun 03 14:53:08 2013] [notice] Digest: done</li> <li>[Mon Jun 03 14:53:08 2013] [notice] Apache/2.2.22 (Unix) DAV/2 mod_wsgi/3.2</li> <li>Python/2.6.8 configured -- resuming normal operations List item</li> </ul> <hr> <h2>/opt/python/log/supervisord.log</h2> <pre><code>2013-06-03 04:39:35,544 CRIT Supervisor running as root (no user in config file) 2013-06-03 04:39:35,650 INFO RPC interface 'supervisor' initialized 2013-06-03 04:39:35,651 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2013-06-03 04:39:35,651 INFO supervisord started with pid 3488 2013-06-03 04:39:36,658 INFO spawned: 'httpd' with pid 3498 2013-06-03 04:39:37,660 INFO success: httpd entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs) 2013-06-03 04:44:51,265 INFO stopped: httpd (exit status 0) 2013-06-03 04:44:52,280 INFO spawned: 'httpd' with pid 3804 2013-06-03 04:44:53,283 INFO success: httpd entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs) 2013-06-03 14:53:06,986 INFO stopped: httpd (exit status 0) 2013-06-03 14:53:08,000 INFO spawned: 'httpd' with pid 27871 2013-06-03 14:53:09,003 INFO success: httpd entered RUNNING state, process has stayed up for &gt; than 1 seconds (startsecs) </code></pre> <hr> <h2>/var/log/cfn-init.log</h2> <pre><code>2013-06-03 14:53:05,520 [DEBUG] Running test for command 03_createadmin 2013-06-03 14:53:05,535 [DEBUG] Test command output: 2013-06-03 14:53:05,536 [DEBUG] Test for command 03_createadmin passed 2013-06-03 14:53:05,986 [INFO] Command 03_createadmin succeeded 2013-06-03 14:53:05,987 [DEBUG] Command 03_createadmin output: 2013-06-03 14:53:05,987 [DEBUG] No services specified 2013-06-03 14:53:05,994 [INFO] ConfigSets completed 2013-06-03 14:53:06,000 [DEBUG] Not clearing reboot trigger as scheduling support is not available 2013-06-03 14:53:06,292 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.eu-west-1.amazonaws.com 2013-06-03 14:53:06,292 [DEBUG] Describing resource AWSEBAutoScalingGroup in stack arn:aws:cloudformation:eu-west-1:352769977590:stack/awseb-e-bwrsuih23z-stack/52c9b3c0-cbf6-11e2-ace7-5017c2ccb886 2013-06-03 14:53:06,489 [DEBUG] Not setting a reboot trigger as scheduling support is not available 2013-06-03 14:53:06,510 [INFO] Running configSets: Hook-EnactAppDeploy 2013-06-03 14:53:06,511 [INFO] Running configSet Hook-EnactAppDeploy 2013-06-03 14:53:06,512 [INFO] Running config Hook-EnactAppDeploy 2013-06-03 14:53:06,512 [DEBUG] No packages specified 2013-06-03 14:53:06,512 [DEBUG] No groups specified 2013-06-03 14:53:06,512 [DEBUG] No users specified 2013-06-03 14:53:06,513 [DEBUG] No sources specified 2013-06-03 14:53:06,513 [DEBUG] /etc/httpd/conf.d/01ebsys.conf already exists 2013-06-03 14:53:06,513 [DEBUG] Moving /etc/httpd/conf.d/01ebsys.conf to /etc/httpd/conf.d/01ebsys.conf.bak 2013-06-03 14:53:06,513 [DEBUG] Writing content to /etc/httpd/conf.d/01ebsys.conf 2013-06-03 14:53:06,514 [DEBUG] No mode specified for /etc/httpd/conf.d/01ebsys.conf 2013-06-03 14:53:06,514 [DEBUG] Running command aclean 2013-06-03 14:53:06,514 [DEBUG] No test for command aclean 2013-06-03 14:53:06,532 [INFO] Command aclean succeeded 2013-06-03 14:53:06,533 [DEBUG] Command aclean output: 2013-06-03 14:53:06,533 [DEBUG] Running command clean 2013-06-03 14:53:06,534 [DEBUG] No test for command clean 2013-06-03 14:53:06,547 [INFO] Command clean succeeded 2013-06-03 14:53:06,548 [DEBUG] Command clean output: 2013-06-03 14:53:06,548 [DEBUG] Running command hooks 2013-06-03 14:53:06,548 [DEBUG] No test for command hooks 2013-06-03 14:53:19,278 [INFO] Command hooks succeeded 2013-06-03 14:53:19,279 [DEBUG] Command hooks output: Executing directory: /opt/elasticbeanstalk/hooks/appdeploy/enact/ Executing script: /opt/elasticbeanstalk/hooks/appdeploy/enact/01flip.py Output from script: httpd: stopped httpd: started httpd RUNNING pid 27871, uptime 0:00:03 Script succeeded. Executing script: /opt/elasticbeanstalk/hooks/appdeploy/enact/09clean.sh Output from script: Script succeeded. </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload