Hello, I made a mojave update on my mac, and then I no longer have access to my sites, I’m afraid I have lost everything. Thank you for your help
Hey @Bigroman – Welcome to the Local Community Forums!
Can you try installing the latest version of Local and see if that fixes things?
If you still have issues, the latest version of Local, has a “Download Local Log” button on the “Support” tab. Can you upload the file that Local creates after clicking that button?
In addition to that log, can you let us know if this is happening for only one site in particular, or for all sites, even newly created, plain WordPress sites?
Does anything change if you create a new site in Local?
Thank you for your reply.
All the sites are broken and I created a new site and it is not working.
I reinstalled local in 6.1.7 and it still didn’t work (so I went back to 6.1.8)
I give you the local newspaper.
local-logs.zip (611.0 KB)
Hello I sent you the Local Log sheet.
cordially
Hey @Bigroman – It looks like in the Local log there are a number of lines that look like this:
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [alert] could not open error log file: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:48.687Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"2021/12/09 20:57:48 [emerg] 3642#0: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:48.694Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [alert] could not open error log file: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:49.212Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"2021/12/09 20:57:49 [emerg] 3644#0: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:49.250Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"nginx: [alert] could not open error log file: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:49.772Z"}
{"thread":"main","class":"Process","process":"nginx","level":"warn","message":"2021/12/09 20:57:49 [emerg] 3652#0: open() \"%%router.runPath%%/nginx/logs/error.log\" failed (13: Permission denied)","timestamp":"2021-12-09T19:57:49.792Z"}
Note this part:
nginx: [alert] could not open error log file: open() \"%%router.runPath%%/nginx/logs/error.log
I think that means that for some reason, the permissions of Local Router are set in a way that Local can’t start that process.
Since this is a mac, can you investigate what the permissions of that folder are? The easiest way is using a terminal and running this command:
ls -alh ~/Library/Application\ Support/Local/run/router/nginx/logs/
Here’s what I get for my Mac:
If you have a different value than your username, or if that folder doesn’t exist, then you’ll want to create that folder and have it be owned by your user so that Local can reference and use that error log!
With what is marked, what am I supposed to change?
cordially
Nice! Having that error.log
file owned by root
is what is causing the issue. To fix this:
- Stop Local if it’s running
- Open a Terminal and run the command below
- Start Local and start a site to get the Local Router running
The command for step 2 looks like:
sudo chown $USER ~/Library/Application\ Support/Local/run/router/nginx/logs/error.log
This will prompt you for the password for your User on the computer. If you’re curious what this is doing, it’s basically “changing ownership” (chown) of the file to your current user.
Let us know how that goes!
Hello, it worked, thank you very much. Merry Christmas!
cordially
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.