Cannot create snapshot repository

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
tomasvalenta
Posts: 20
Joined: Tue Jan 31, 2017 5:17 am

Cannot create snapshot repository

Post by tomasvalenta »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Cannot create snapshot repository

Post by ssax »

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:

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

Post by tomasvalenta »

latest version 2.0.5
ls -ld /lsbackup/
drwxrwx--- 2 nagios nagios 0 Oct 29 15:12 /lsbackup/
ls -l /lsbackup/
total 0
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Cannot create snapshot repository

Post by ssax »

I labbed it up with those exact settings/version and it's working on mine.

What is the output of these commands:

Code: Select all

grep nag /etc/group
grep "User \|Group " /etc/httpd/conf/httpd.conf
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.
tomasvalenta
Posts: 20
Joined: Tue Jan 31, 2017 5:17 am

Re: Cannot create snapshot repository

Post by tomasvalenta »

Good news, it is working now. After restart of both servers in the cluster it is fixed.
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

Post by scottwilkerson »

tomasvalenta wrote:Good news, it is working now. After restart of both servers in the cluster it is fixed.
Thanks for your help.
Tomas
Glad to hear it is resolved!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked