Getting error "unable to access '/root/.config/git/ignore': Permission denied"

When I am trying to search the root/.config I am not able to find root/.config.Can some one help me to fix the issue.
oot@phx11-libmo-u01:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase FAIL
warning: unable to access ‘/root/.config/git/ignore’: Permission denied
error: Your local changes to the following files would be overwritten by merge:
html/install.php
Please, commit your changes or stash them before you can merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
root@phx11-libmo-u01:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase FAIL
warning: unable to access ‘/root/.config/git/ignore’: Permission denied
error: Your local changes to the following files would be overwritten by merge:
html/install.php
Please, commit your changes or stash them before you can merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
root@phx11-libmo-u01:/opt/librenms# CD …
CD: command not found
root@phx11-libmo-u01:/opt/librenms# cd …
root@phx11-libmo-u01:/opt# cd /root/config
-bash: cd: /root/config: No such file or directory
root@phx11-libmo-u01:/opt# cd /root
root@phx11-libmo-u01:~# unable to access ‘/root/.config/git/ignore’: Permission denied
unable: command not found
root@phx11-libmo-u01:~# cd /root
root@phx11-libmo-u01:~# cd .config
-bash: cd: .config: No such file or directory
root@phx11-libmo-u01:~# ls -l con*.*
ls: cannot access ‘con*.*’: No such file or directory
root@phx11-libmo-u01:~# dir

looks like your permissions are all out of whack.

Run the following

chown -R librenms:librenms /opt/librenms
setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs

then try ./daily.sh again

Thanks Kevin.But still getting the same error.

root@phx11-libmo-u01:~# chown -R librenms:librenms /opt/librenms
root@phx11-libmo-u01:~# setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs
root@phx11-libmo-u01:~# setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs
root@phx11-libmo-u01:~# cd /opt/librenms
root@phx11-libmo-u01:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase FAIL
warning: unable to access ‘/root/.config/git/attributes’: Permission denied
warning: unable to access ‘/root/.config/git/ignore’: Permission denied
error: Your local changes to the following files would be overwritten by merge:
html/install.php
Please, commit your changes or stash them before you can merge.
Aborting
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK
root@phx11-libmo-u01:/opt/librenms#

try running ./daily.sh with root. ?
or try ./scripts/github-remove

Which option should I choose?
github-apply github-remove git-pre-commit-hook.sh
root@phx11-libmo-u01:/opt/librenms/scripts# ./github-remove
usage: github-remove [-h] (-d | -s | -r) [-v]
github-remove: error: one of the arguments -d/–discard -s/–save -r/–restore is required

./scripts/github-remove -d

Now got this error
root@phx11-libmo-u01:/opt/librenms# ./daily.sh
Re-running /opt/librenms/daily.sh as librenms user
Updating to latest codebase FAIL
fatal: .git/index: index file open failed: Permission denied
Updating Composer packages OK
Updating SQL-Schema OK
Updating submodules OK
Cleaning up DB OK
Fetching notifications OK
Caching PeeringDB data OK

Hey, I also get this kind of error when updating the librenms to the latest codebase:

warning: unable to access ‘/root/.config/git/attributes’: Permission denied
warning: unable to access ‘/root/.config/git/ignore’: Permission denied

Do you have any findings to it?