Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: I can't use PostgreSQL with Herd on Windows 11, Herd 1.11.0 #1023

Open
ahajicek07 opened this issue Sep 22, 2024 · 4 comments
Open

[Bug]: I can't use PostgreSQL with Herd on Windows 11, Herd 1.11.0 #1023

ahajicek07 opened this issue Sep 22, 2024 · 4 comments
Labels
needs more information Further information is requested Stale windows

Comments

@ahajicek07
Copy link

Platform

Windows

Operating system version

Windows 11 Pro 10.0.22631 Build 22631

System architecture

Intel (x86)

Herd Version

1.11.0

PHP Version

PHP 8.3

Bug description

I can't use PostgreSQL with Herd, it was working, but when I updated to the latest version I can't run it anymore. When I try to turn on PostgreSQL services it turns back to red with error log.

Steps to reproduce

I've tried to delete and reinstall the service, and it doesn't work.

Relevant log output

Starting PostgreSQL (PostgreSQL) on port 5432 with datapath 7ab49abb-5c94-4232-ab07-466157cf5d56Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises.  See the documentation for
more information on how to properly start the server.
@issuelabeler issuelabeler bot added the windows label Sep 22, 2024
@mechelon
Copy link
Member

Can you try to force-quit all PostgreSQL services and then restart, as shown in the screenshot?

CleanShot 2024-09-23 at 08 30 52

@mechelon mechelon added the needs more information Further information is requested label Sep 23, 2024
@ahajicek07
Copy link
Author

So I got it to work on 1 of 2 computers. My home computer worked by start herd and not using, "run as administrator" but it doesn't work on my work computer as a way to get this to work.

So I did the force quit, and deleted the service and tried to reinstall the PostgreSQL and it gives me this error

"Herd was unable to setup the service. Please check your log files and try again."

PostgreSQL-Install-Error

Then I get the same error when I try to start it in the error log:

"Starting PostgreSQL (PostgreSQL) on port 5432 with datapath 52d6303c-63e9-4786-b0fe-292c45b38928Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises. See the documentation for
more information on how to properly start the server."

@mechelon mechelon removed the needs more information Further information is requested label Sep 24, 2024
@mpociot
Copy link
Member

mpociot commented Sep 25, 2024

@ahajicek07 but you are not running Herd as an Administrator, right?

@mpociot mpociot added the needs more information Further information is requested label Sep 25, 2024
@ahajicek07
Copy link
Author

ahajicek07 commented Sep 25, 2024

@mpociot I was able to get it to work on my work machine. This was the difference, where-as on my home machine fixed things to just run herd without explicitly clicking 'run as administrator' by right clicking herd and clicking 'run as administrator,' at work, because its on a 'work domain' and my user is an 'administrator' I had to right click herd and click 'Run as a different user' and login to a new user that isn't my default at work 'administrator,' Doing that I can't access the user folder I currently have my projects, but I'll just move them. Hopefully this fixes things for now since I can now run PostgreSQL.

P.S. Thank you for helping me with this, and beyond excited for what you're doing with dumping all the variables on the laravel error page you've been demo'ing on Laravel. Would be a huge productivity boost when working through new code.

@github-actions github-actions bot added the Stale label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information Further information is requested Stale windows
Projects
None yet
Development

No branches or pull requests

3 participants