[MacPorts] #68596: After installing Nginx, I can't shut down Redis (also installed by port) because the error "Failed opening the temp RDB file temp-8712.rdb (in server root dir /opt/local/var/log/nginx) for saving: Permission denied"

MacPorts noreply at macports.org
Tue Oct 31 14:26:59 UTC 2023


#68596: After installing Nginx, I can't shut down Redis (also installed by port)
because the error "Failed opening the temp RDB file temp-8712.rdb (in
server root dir /opt/local/var/log/nginx) for saving: Permission denied"
--------------------------+-------------------------
  Reporter:  qiulang      |      Owner:  Schamschula
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  nginx redis  |
--------------------------+-------------------------

Comment (by qiulang):

 Sorry, it is really not a bug. It is just that I forgot redis will write a
 log to the directory when it is started and I happened to start redis at
 /opt/local/var/log/nginx/ so now I can't shut it down. I don't know how to
 close my ticket.

 But when I changed `#user nobody;` (per your suggestion) to my user and
 started nginx without sudo, I got the error the "user" directive makes
 sense only if the master process runs with super-user privileges, ignored
 in /opt/local/etc/nginx/nginx.conf:1


 I just want to know if it is possible I can nginx without sudo ?

-- 
Ticket URL: <https://trac.macports.org/ticket/68596#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list