Hello,
I prepared Samba based repository for snapshots, mounted it and configured permissions. I tested to create file in this repository under nagios account from Nagios LogServer and the result is OK. But when I tried to attach this repository from UI by button Create Repository I got error message The snapshot repository in directory /lsbackup could not be created. Possibly due to permissions. Make sure the nagios user can write to the location. But I see in Samba log there was connection from LogServer and successfully created and deleted several test files.
Thanks for any hint or help.
Tomas
Cannot create snapshot repository
Re: Cannot create snapshot repository
What version of Log Server are you running? You can grab it from the bottom left hand side of the web interface.
Please post the output of these commands as well:
Please post the output of these commands as well:
Code: Select all
ls -ld /lsbackup
ls -l /lsbackup-
tomasvalenta
- Posts: 20
- Joined: Tue Jan 31, 2017 5:17 am
Re: Cannot create snapshot repository
latest version 2.0.5
ls -ld /lsbackup/
drwxrwx--- 2 nagios nagios 0 Oct 29 15:12 /lsbackup/
ls -l /lsbackup/
total 0
ls -ld /lsbackup/
drwxrwx--- 2 nagios nagios 0 Oct 29 15:12 /lsbackup/
ls -l /lsbackup/
total 0
Re: Cannot create snapshot repository
I labbed it up with those exact settings/version and it's working on mine.
What is the output of these commands:
Are you using lsbackup as the name and /lsbackup as the location when adding through the web UI?
Please try to add it again and then PM me a copy of your profile from Admin > System Status so that I can take a look at your logs.
What is the output of these commands:
Code: Select all
grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
Please try to add it again and then PM me a copy of your profile from Admin > System Status so that I can take a look at your logs.
-
tomasvalenta
- Posts: 20
- Joined: Tue Jan 31, 2017 5:17 am
Re: Cannot create snapshot repository
Good news, it is working now. After restart of both servers in the cluster it is fixed.
Thanks for your help.
Tomas
Thanks for your help.
Tomas
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Cannot create snapshot repository
Glad to hear it is resolved!tomasvalenta wrote:Good news, it is working now. After restart of both servers in the cluster it is fixed.
Thanks for your help.
Tomas
Locking thread