Problem with create DNS Cluster

Hello!
I try create DNS cluster, but command return error Permossion Denied:

v-add-remote-dns-host ns11.domain.com 8083 ‘key:secret’ ‘’ ‘api’ ‘ns11’

/usr/local/hestia/bin/v-add-remote-dns-host: line 130: /var/spool/cron/crontabs/hestiaweb: Permission denied

Hestia version 1.9.2
OS Ubuntu 22.04

This is resolved here.

Update line 130 in your file v-add-remote-dns-host in folder /usr/local/hestia/bin/

Current line 130:

echo "$min $hour * * * sudo /usr/local/hestia/bin/$cmd" > "/var/spool/cron/crontabs/hestiaweb"

Updated line 130:

sed -i -e "\$a$min $hour * * * sudo /usr/local/hestia/bin/$cmd" "/var/spool/cron/crontabs/hestiaweb"

2 Likes

Hi guys I have kind similar issue, is not permission denied, but pretty much is this way, I have 2 servers both with fresh installation of Ubuntu 22.04 and Hestia 1.9.2, I just restored all backups, on each server I created a user named: dns-cluster, both with different passwords, both with dns-sync role, then I have created api access in both places due to my error, first I done api keys under my renamed admin user and later directly on the dns-cluster user… I run command on my server01 using server02 details (subdomain, user, api key from server02) and what I get on the screen is: Error: api connection to server02.example.net failed

Update: I just installed 2 local servers, have edited line 130 of file, I have made 2 test.

  1. Created dns user on each server, set to avoid CP login, I have allowed IPs for API on each server and have connected both servers using legacy API by username and password, it worked
  2. Did same, both users, have created API key for both servers using admin user (In this test I kept admin user as admin itself), run the command and got api connection error even with everything autorized.
    At least I was able to make it work under legacy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.