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.
[email protected]:/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
[email protected]:/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
[email protected]:/opt/librenms# CD …
CD: command not found
[email protected]:/opt/librenms# cd …
[email protected]:/opt# cd /root/config
-bash: cd: /root/config: No such file or directory
[email protected]:/opt# cd /root
[email protected]:~# unable to access ‘/root/.config/git/ignore’: Permission denied
unable: command not found
[email protected]:~# cd /root
[email protected]:~# cd .config
-bash: cd: .config: No such file or directory
[email protected]:~# ls -l con*.*
ls: cannot access ‘con*.*’: No such file or directory
[email protected]:~# 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.
[email protected]:~# chown -R librenms:librenms /opt/librenms
[email protected]:~# setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs
[email protected]:~# setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs
[email protected]:~# cd /opt/librenms
[email protected]:/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
[email protected]:/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
[email protected]:/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
[email protected]:/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?