I am getting this starnge error and my lets Encrypt was not auto-renewing and i still dont know why but i did used -clean then reinstalled it.
I am also using reverse proxy on one subdomain to point to node app. This is my root domain. And I am get this error. This error resolved itself if I used sudo. I saw this error earlier as well in the forum. Some how for the op it disappeared. ¿ .
"Dubious ownership in repository" made me use sudo ? But what could be the issue. And how to make sure that le auto-renews
ls -la shows
drwxr-xr-x 3 www-data www-data 4096 Jun 5 17:44 .
drwxr-xr-x 3 www-data www-data 4096 Jun 5 17:44 ..
drwxr-xr-x 7 root root 4096 Jun 5 17:49 .git
-rw-r--r-- 1 root root 704 Jun 5 17:44 ssl.conf
Traceback (most recent call last):
File "/usr/local/bin/wo", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/wo/lib/python3.12/site-packages/wo/cli/main.py", line 102, in main
app.run()
File "/opt/wo/lib/python3.12/site-packages/cement/core/foundation.py", line 882, in run
return_val = self.controller._dispatch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/wo/lib/python3.12/site-packages/cement/core/controller.py", line 471, in _dispatch
return func()
^^^^^^
File "/opt/wo/lib/python3.12/site-packages/cement/core/controller.py", line 471, in _dispatch
return func()
^^^^^^
File "/opt/wo/lib/python3.12/site-packages/cement/core/controller.py", line 477, in _dispatch
return func()
^^^^^^
File "/opt/wo/lib/python3.12/site-packages/wo/cli/plugins/site_create.py", line 652, in default
WOGit.add(self, ["{0}/conf/nginx".format(wo_site_webroot)],
File "/opt/wo/lib/python3.12/site-packages/wo/core/git.py", line 33, in add
status = wogit.status("-s")
^^^^^^^^^^^^^^^^^^
File "/opt/wo/lib/python3.12/site-packages/sh.py", line 1511, in __call__
rc = self.__class__.RunningCommandCls(cmd, call_args, stdin, stdout, stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/wo/lib/python3.12/site-packages/sh.py", line 734, in __init__
self.wait()
File "/opt/wo/lib/python3.12/site-packages/sh.py", line 796, in wait
self.handle_command_exit_code(exit_code)
File "/opt/wo/lib/python3.12/site-packages/sh.py", line 823, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_128:
RAN: /usr/bin/git -C /var/www/site.tld/conf/nginx status -s
STDOUT:
STDERR:
**fatal: detected dubious ownership in repository** at '/var/www/site.tld/conf/nginx'
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/site.tld/conf/nginx