I'm deploying my Craft 3 application to an ec2 instance using elastic beanstalk. When I navigate to "/admin/install", I get the following error:
When I ssh into my ec2 instance to check the 404 logs, the stack trace I get is:
2018-03-02 11:47:03 [192.195.80.235][-][-][error][yii\web\HttpException:404] yii\web\NotFoundHttpException: Template not found: robots.txt in /var/app/current/vendor/craftcms/cms/src/controllers/TemplatesController.php:69 Stack trace: 0 [internal function]: craft\controllers\TemplatesController->actionRender('robots.txt', Array)
1 /var/app/current/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
2 /var/app/current/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
3 /var/app/current/vendor/craftcms/cms/src/web/Controller.php(74): yii\base\Controller->runAction('render', Array) 4 /var/app/current/vendor/yiisoft/yii2/base/Module.php(528): craft\web\Controller->runAction('render', Array)
5 /var/app/current/vendor/craftcms/cms/src/web/Application.php(237): yii\base\Module->runAction('templates/rende...', Array)
6 /var/app/current/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction('templates/rende...', Array)
7 /var/app/current/vendor/craftcms/cms/src/web/Application.php(226): yii\web\Application->handleRequest(Object(craft\web\Request))
8 /var/app/current/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
9 /var/app/current/web/index.php(21): yii\base\Application->run()
10 {main}
2018-03-02 11:47:03 [192.195.80.235][-][-][info][application] $_GET = [ 'p' => 'robots.txt' ]
Why is this happening and how can I fix it?