maas-http service changing perms on system nginx paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Alberto Donato | ||
2.7 |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
I see this option set in /var/lib/
# LP: #1796224 - Use a different path otherwise this will
# conflict with the system's nginx daemon.
client_
However, there are 4 other paths which need to be added as well.
proxy_temp_path /var/lib/
fastcgi_
scgi_temp_path /var/lib/
uwsgi_temp_path /var/lib/
Here is what happens if they aren't.
1. Correct perms on system nginx
root@node:
total 28
drwxr-xr-x 7 root root 4096 Oct 2 16:18 .
drwxr-xr-x 50 root root 4096 Nov 27 10:13 ..
drwx------ 2 www-data root 4096 Oct 2 16:18 body
drwx------ 2 www-data root 4096 Oct 2 16:18 fastcgi
drwx------ 9 www-data root 4096 Mar 10 14:49 proxy
drwx------ 2 www-data root 4096 Oct 2 16:18 scgi
drwx------ 2 www-data root 4096 Oct 2 16:18 uwsgi
2. Restart maas-http service and perms get changed on the other 4 dirs
root@node:
root@node:
total 28
drwxr-xr-x 7 root root 4096 Oct 2 16:18 .
drwxr-xr-x 50 root root 4096 Nov 27 10:13 ..
drwx------ 2 www-data root 4096 Oct 2 16:18 body
drwx------ 2 nobody root 4096 Oct 2 16:18 fastcgi
drwx------ 9 nobody root 4096 Mar 10 14:49 proxy
drwx------ 2 nobody root 4096 Oct 2 16:18 scgi
drwx------ 2 nobody root 4096 Oct 2 16:18 uwsgi
3. Restart system nginx and they go back to normal
root@node:
root@node:
total 28
drwxr-xr-x 7 root root 4096 Oct 2 16:18 .
drwxr-xr-x 50 root root 4096 Nov 27 10:13 ..
drwx------ 2 www-data root 4096 Oct 2 16:18 body
drwx------ 2 www-data root 4096 Oct 2 16:18 fastcgi
drwx------ 9 www-data root 4096 Mar 10 14:49 proxy
drwx------ 2 www-data root 4096 Oct 2 16:18 scgi
drwx------ 2 www-data root 4096 Oct 2 16:18 uwsgi
Related branches
- Alberto Donato (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 17 lines (+5/-1)1 file modifieddebian/extras/nginx.conf (+5/-1)
- MAAS Lander: Approve
- Björn Tillenius: Approve
-
Diff: 17 lines (+5/-1)1 file modifieddebian/extras/nginx.conf (+5/-1)
Changed in maas: | |
status: | New → Triaged |
assignee: | nobody → Alberto Donato (ack) |
importance: | Undecided → Medium |
milestone: | none → 2.8.0b1 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |