Log Server does not create backups (Split topic)

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Log Server does not create backups (Split topic)

Post by tohan41 »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... 38&t=39929
In the future, please create a new thread and link to the old one instead of adding on.


I am having the same issue. when running curator in debug mode I get http://localhost:9200/_snapshot/<reposi ... e>/_verify {status: 500} Failed to verify all nodes have repository access

Permissions are fine as I can write to the cifs share from Servers using nagios account.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server does not create backups (Split topic)

Post by mcapra »

This error message can almost exclusively be traced back to issues with the mount point (permissions or otherwise).

Can you share the output of an ls -al of the repository?
Former Nagios employee
https://www.mcapra.com/
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Re: Log Server does not create backups (Split topic)

Post by tohan41 »

ls -la
drwxrwxrwx 3 nagios users 0 Aug 25 08:38 .
drwxr-xr-x. 5 root root 4096 Aug 25 12:45 ..
-rw-r--r-- 1 nagios nagios 0 Aug 24 11:52 tests-alB6FxxwT3KU50a7zpidQw-master
-rw-r--r-- 1 nagios nagios 0 Aug 25 08:38 tests-Pwo3MbxET8q9X5EJY9-Fpw-master
-rw-r--r-- 1 nagios nagios 0 Aug 24 11:56 tests-q8sMfcq-QBeG8lbf9vLdtA-master
-rw-r--r-- 1 nagios nagios 0 Aug 24 11:52 tests-rjcg7HxORNy9KrpNRw5sCg-master
-rw-r--r-- 1 nagios nagios 0 Aug 24 11:55 tests--rYjQl4xRY-FXqSRM56WRA-master
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server does not create backups (Split topic)

Post by mcapra »

Can I also see an ls -al of the next path up? Specifically I would like to make sure the users group also has write permissions on this path.
Former Nagios employee
https://www.mcapra.com/
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Re: Log Server does not create backups (Split topic)

Post by tohan41 »

[root@cfslx01 Archive]# ls -la
total 514689
drwxrwxrwx 3 root root 1024 Aug 12 11:08 .
drwxr-xr-x. 9 root root 4096 Aug 12 15:49 ..
drwxrwxrwx 3 nagios nagios 0 Aug 26 08:41 NagiosLSBackups
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server does not create backups (Split topic)

Post by mcapra »

See if adding the users group changes things. Run the same curator command afterwards and share the output.
Former Nagios employee
https://www.mcapra.com/
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Re: Log Server does not create backups (Split topic)

Post by tohan41 »

Failed to verify all nodes have repository access
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Log Server does not create backups (Split topic)

Post by mcapra »

Here's the fstab entry for a CIFS mount i've been using for a bit now:

Code: Select all

\\192.168.1.1\NLSBackup /mnt/bkk cifs user,uid=nagios,gid=nagios,rw,suid,file_mode=0770,dir_mode=0770,credentials=/root/cifspass.txt 0 0
See if replicating that, specifically the uid=nagios,gid=nagios,rw,suid,file_mode=0770,dir_mode=0770 directives, and remounting solves the issue.
Former Nagios employee
https://www.mcapra.com/
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Re: Log Server does not create backups (Split topic)

Post by tohan41 »

The CIFS share is not mounted via fstab. It is a Caringo Swarm Cluster using Caringo Content File Server. I'll have to check with them to see if I can change the mount process/settings
tohan41
Posts: 6
Joined: Fri Nov 07, 2014 4:43 pm

Re: Log Server does not create backups (Split topic)

Post by tohan41 »

I have tested your mount settings by creating a new separate cifs mount point and it still gives the same failed to verify all nodes have repository access.
Locked