I have been living in hell for 2 days now. I've tried everything. Originally, I was getting an error that involved some kind of postmaster.pid file, that didn't exist. It looked like something caused the server to stop unexpectedly which caused all sorts of problems. Then I was having issues logging in, and no matter what I did, I kept getting a wrong password error. Just for doing psql it was asking for password. I don't remember needing to do that & I'd prefer to not need a password for that.
I have tried restarting my computer and completely uninstalling ALL postgres files and apps and everything, and redownloading it all, and I still get error after error. I just want the server to start and I want the psql command to work in the terminal (MacOS btw).
This is the latest error I'm getting. The server won't start and tells me to look at the logs.
This is the logs:
2021-12-24 17:50:46.439 PST [1242] LOG: starting PostgreSQL 14.1 on xxxx, compiled by Apple clang version 12.0.5 (xxxx), 64-bit
2021-12-24 17:50:46.444 PST [1242] LOG: listening on IPv6 address "xxxx", port 5432
2021-12-24 17:50:46.444 PST [1242] LOG: listening on IPv4 address "xxxxx", port 5432
2021-12-24 17:50:46.446 PST [1242] FATAL: could not open lock file "/tmp/.s.PGSQL.5432.lock": Permission denied
2021-12-24 17:50:46.448 PST [1242] LOG: database system is shut down
What do I do? Please, I will try anything!
Edit: I found something online that says to remove the lock file. How do I do that? Is it as simple as rm /tmp/.s.PGSQL.5432.lock ? After I did that, I got a message saying override rw------- 503/wheel for /tmp/.s.PGSQL.5432.lock? what do I do to answer that?
/tmpdir, such asls -al /tmplrwxr-xr-x@ 1 root wheel 11 Jan 1 2020 /tmp -> private/tmpCan you please help me from here? I have no idea what I'm doing.sudo chown -R postgres:postgres /var/run/postgresqland I get the followingchown: postgres: illegal group nameWhat do I do now?