Skip to main content
Topic: Cannot get postgresql to start (dinit) (Read 101 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot get postgresql to start (dinit)

I installed postgresql. I changed the postgres user password. I switched to the postgres user and initialized the database cluster. But when I try to enable the service with "dinitctl enable postgresql", I get the following error:

dinitctl: connecting to socket: /run/user/1000/dinitctl: No such file or directory
dinitctl: perhaps no user instance is running?

How can I get postgresql going?

Thanks

Re: Cannot get postgresql to start (dinit)

Reply #1
At first glance, you should use "sudo dinitctl enable postgresql" since without sudo, you are controlling the user-instance of dinit (if you use it).

Re: Cannot get postgresql to start (dinit)

Reply #2
Thank you for your reply. When I include sudo, I get this error:

dinitctl: failed to find service description.
dinitctl: check service description file exists / service name spelling.

Re: Cannot get postgresql to start (dinit)

Reply #3
Maybe a dumb question but have you installed the package "postgresql-dinit"?

If so check in /etc/dinit.d to see if the name of the service description file is indeed "postgresql"

 
Artix forum uses a single cookie to remember youOK