Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bench setup nginx does not create or link configuration files for sites in /etc/nginx/sites-available/ on Ubuntu 24.04 #1574

Open
zeuscs09 opened this issue Aug 13, 2024 · 3 comments
Labels

Comments

@zeuscs09
Copy link

Issue Summary:

The bench setup nginx command does not create the expected configuration file for the domain in /etc/nginx/sites-available/ and fails to link it to /etc/nginx/sites-enabled/.

Steps to Reproduce:

  1. Set up a Frappe Bench environment on Ubuntu 24.04.
  2. Run the command bench setup nginx after adding a site with bench new-site.
  3. Check the /etc/nginx/sites-available/ directory for the generated configuration file.

Expected Behavior:

A configuration file should be generated in /etc/nginx/sites-available/ and linked in /etc/nginx/sites-enabled/ for the added site.

Actual Behavior:

No configuration file is generated, and there is no symbolic link in /etc/nginx/sites-enabled/.

Environment:

  • OS: Ubuntu 24.04
  • Bench Version: 5.22.6
  • Python Version: 3.12

Additional Context:

The issue persists even after ensuring correct permissions for the /etc/nginx/ directory. No errors are logged in the bench.log.

@zeuscs09 zeuscs09 added the bug label Aug 13, 2024
@phot0n
Copy link
Contributor

phot0n commented Aug 28, 2024

you can do it by yourself btw: https://frappeframework.com/docs/user/en/bench/guides/setup-production#nginx

@chrisjameslennon
Copy link

chrisjameslennon commented Sep 4, 2024

bench setup nginx on ubuntu 24 fails with

ubuntu@ip-xxx:/etc/nginx/conf.d$ bench setup nginx

ERROR: [Errno 2] No such file or directory: '/etc/nginx/conf.d/sites'

@chrisjameslennon
Copy link

chrisjameslennon commented Sep 4, 2024

Also - in regards to the issue raised by @zeuscs09

Expected Behavior:
A configuration file should be generated in /etc/nginx/sites-available/ and linked in /etc/nginx/sites-enabled/ for the added site.

is this in fact the expected behaviour? My expectation is that a server block is added to /etc/nginx/conf.d/frappe-bench.conf However I don't think there is any documentation on what is expected with the bench setup nginx command

In any case the command doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants