Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Cannot get postgresql to start (dinit) (Read 172 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"

Re: Cannot get postgresql to start (dinit)

Reply #4
Since I'm new to Artix, nothing is a dumb question. I installed postgresql-dinit. I looked in /etc/dinit.d like you said. Nothing was labelled as a service description, per se, but I did see a file called postgres (as opposed to postgresql). So I tried the command on that, and it is started now.

Thank you.

 
Artix forum uses a single cookie to remember youOK