I ran into almost the same problem as yours. As far as I can see, there can be two reasons for this. Please try again with
sudo -u 'username' renderd -f -c /usr/local/etc/renderd.conf
after applying one of the proposed solutions. Replace "username" for the username running renderd:
Reason # 1 No write permissions
You probably do not have write permissions to the /var/run/renderd/renderd.sock file.
A solution for you would change the owner of the directory:
sudo chown 'username' /var/run/renderd
and / or change the owner of the file by typing
sudo chown 'username' /var/run/renderd/renderd.sock
where "username" denotes the user who will run renderd.
Reason number 2 missing directory
I have an almost identical error message like you.
In my case, I was not in the / var / run / renderd directory . In my case, the solution was to create the / var / run / renderd directory and then change its owner:
sudo mkdir /var/run/renderd sudo chown 'username' /var/run/renderd
where "username" is the user who will runnng renderd.
source share