[Bug]: 502 bad gateway on fresh install #501
Replies: 7 comments
-
Did you try isolating the PHP version? This usually works for me. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem here on my MacBookPro. At home, on my MacBookAir (more recent), I had not problem. I can't see no log either... Trying to secure a site (even a simple index.php with only a php command) doesn't work. Trying to change the PHP version doesn't work either. I uninstalled and reinstalled Herd. I have a pro license. |
Beta Was this translation helpful? Give feedback.
-
I have somewhat identified the cause. I had to allow Herd in the security settings. http links work, but not the https. |
Beta Was this translation helpful? Give feedback.
-
@dwabuu Can you elaborate here? How do we isolate the PHP version? Also not sure this will help here because this issue seems to be more permission related somehow. Follow up, we have already isolated PHP for this site
@GuyVervilleSpiria Where would we allow Herd in security settings? |
Beta Was this translation helpful? Give feedback.
-
@LarryBarker I allowed access to read/write. But I realized another thing. I can't have colima/ddev operating at the same time as Herd. When firing Herd, I lose access to my nginx engine in ddev (or ddev is killing the Herd nginx)... |
Beta Was this translation helpful? Give feedback.
-
@GuyVervilleSpiria still not following. You mean on macOS, system preferences > privacy and security? Interestingly enough, I just looked at my FPM logs on my personal laptop and I have the same error so it's not just related to a corporate device with LDAP. |
Beta Was this translation helpful? Give feedback.
-
@LarryBarker Yes, it's on macOS system preferences, privacy and security. But my main point is that Herd seems not "isolated", hence my comment about ddev (https://ddev.com/) and herd coexisting. |
Beta Was this translation helpful? Give feedback.
-
Operating system version
macOS
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.5.0 (23)
PHP Version
Any
Bug description
After a fresh install, visiting a site in the browser produces a 502 bad gateway error. FPM logs are below. This is a corporate laptop that uses LDAP to connect to corporate directory services, and likely the issue. We have tried force stopping services, enabling root user in macOS, switching PHP versions, etc. but continue to face the same error.
We have confirmed /etc/sudoers.d/herd exists and has the appropriate line:
It seems like there is an ownership issue with Herds application support files. See below:
Based on that it looks like Herd is owned by the
CORP\Domain Users
group?Steps to reproduce
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions