nginxinc / nginx-s3-gateway

NGINX S3 Caching Gateway
Apache License 2.0
515 stars 127 forks source link

`nginx: [emerg] open() "/etc/nginx/conf.d/gateway/s3_location_common.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/default.conf:1` #222

Closed akashgreninja closed 7 months ago

akashgreninja commented 7 months ago

Describe the bug On running the standalone_ubuntu_oss_install.sh script i get the below error nginx: [emerg] open() "/etc/nginx/conf.d/gateway/s3_location_common.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/default.conf:1 .

To Reproduce Steps to reproduce the behavior:

  1. i copied the standalone_ubuntu_oss_install.sh script on my x86_64 x86_64 x86_64 GNU/Linux vm
  2. ran the sudo env $(cat settings.env) sh s3-gateway.sh command
  3. Saw the above error

Expected behavior It was supposed to start the nginx server with all configured s3 gateway

Your environment

Additional context i did fix it by adding the missing file ie touch /etc/nginx/conf.d/gateway/s3_location_common.conf and it started working as expected

4141done commented 7 months ago

Hi @akashgreninja , thank you for reporting this bug. I have pushed a fix for the bug here https://github.com/nginxinc/nginx-s3-gateway/pull/226

Apologies for any confusion this may have caused.

4141done commented 7 months ago

I'm going to close this issue for now. Please feel free to reopen if the issue persists with the latest commit.