Page 1 of 1

Which user executes the CLI commands internally?

Posted: Sun Apr 24, 2022 10:49 am
by paralosreg
I'm having a problem due to a reinstall of postgresql (viewtopic.php?f=14&p=85920#p85920). From what I have been able to find out, the error is related to the fact that the execution of the command does not find the psql command. I have added the path to the admin PATH variable via .bashrc, it works fine when run in terminal but it still fails on v-commands.

Re: Which user executes the CLI commands internally?

Posted: Wed Apr 27, 2022 12:18 pm
by sandro
I don't use PostgreSQL with my VestaCP, but I believe the problem might have been caused by uninstalling version 9.2.

If I'm not mistaken Postgres uses some user and db settings to allow (or not) access to the database.

Deleting version 9.2 may have changed this, as before everything worked and only after the update did the problem appear. Correct?

Check the configuration in the /usr/local/vesta/data/users/admin/db.conf file, which is used in the v-add-database script.