[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 15:54:42 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 dgilman):

 I've run MacPorts nginx without sudo on a custom port before. You install
 the package but you don't run it via `port load`, instead you have to set
 up an nginx config directory in your home directory. I think I started
 with copying over the MacPorts distributed nginx.conf, changed the log
 dirs and root/location to something in my home dir and had it working.
 This is a bit cleaner than trying to edit the MacPorts nginx config as you
 can just leave that stuff alone, update nginx whenever you want, and don't
 have to possibly make any local portfile changes. If you want it to start
 automatically / on demand you'll have to put together the launchd script
 for it but you might be able to just copy the MacPorts one and change the
 paths but I have not done it personally.

 I have no idea why redis would be writing to nginx directories. You'll
 have to share your redis.conf and details on how you launched redis.

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


More information about the macports-tickets mailing list