Hello,
I'm using AWS EB and the zip provided for metabase to deploy. (https://downloads.metabase.com/v0.39.1/metabase-aws-eb.zip)
However I was surprised that none of my query could run more than 60 second despite the nginx configuration step in the zip.
When I looked closely at the start up logs, I realized that the configuration of nginx fails :
2021-05-12 06:00:15,838 P3250 [INFO] ============================================================
2021-05-12 06:00:15,839 P3250 [INFO] Command 01_server_https
2021-05-12 06:00:15,845 P3250 [INFO] -----------------------Command Output-----------------------
2021-05-12 06:00:15,846 P3250 [INFO] .ebextensions/metabase_config/metabase-setup.sh: line 36: cd: /etc/nginx/sites-available/: No such file or directory
2021-05-12 06:00:15,846 P3250 [INFO] ------------------------------------------------------------
2021-05-12 06:00:15,846 P3250 [INFO] Completed successfully.
That's because the AWS Linux image does not install nginx with sites-available folder but with conf.d.
So I updated the init command to have the nginx configuration files installed in /etc/nginx/conf.d/ instead. Now the command run without errors but he validation of the nginx conf files fails :
2021-05-12 14:41:33,152 P4050 [INFO] Test for Command 05_try_nginx
2021-05-12 14:41:33,257 P4050 [INFO] -----------------------Command Output-----------------------
2021-05-12 14:41:33,257 P4050 [INFO] nginx: [warn] duplicate MIME type "text/html" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-proxy.conf:11
2021-05-12 14:41:33,257 P4050 [INFO] nginx: [emerg] host not found in upstream "docker" in /etc/nginx/conf.d/elasticbeanstalk-nginx-docker-proxy.conf:23
2021-05-12 14:41:33,257 P4050 [INFO] nginx: configuration file /etc/nginx/nginx.conf test failed
2021-05-12 14:41:33,257 P4050 [INFO] ------------------------------------------------------------
2021-05-12 14:41:33,257 P4050 [ERROR] Exited with error code 1
... and my queries can't run for longer than 60 still.
Could you advise on how to modify the metabase-setup.sh file to have a valid nginx conf ?
Thanks a lot for your help
Edit : here is the documentation for writing the configuration files for deploying to Elasticbean https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html