Using postman to create repository

Hello Team,

I am running postman query to create a repository where i have used a plan, and in archive i am givng a path but the query fails saying not able to access the path permission denied.

I have 3 nodes cluster and have a nfs mount mounted on all 3 nodes at same location i…e, /folder1, and i am using that as archive location.
I am able to access the folder and create files at same location but the postman query fails.
Is there any documentation or any link which help out about setting in postman queries? or can some one help me out here?

Hello @Jayesh ,

Great to see you trying out the Backup Service. What is the error being returned?

Hello @pvarley,

Thanks for reply.
I am getting following error
{
“status”: 500,

"msg": "Location not accessible by all nodes",

"extras": "node 4b6148745a879a8f9d60c76e210f8d23 cannot access location /nfsshare/postmanbackup: could not write node file: open /nfsshare/postmanbackup/.cbbs-9e5cca1f91a37cd9244977a2447d0577/node-4b6148745a879a8f9d60c76e210f8d23-1627980217624048633: permission denied"

}

That error suggests that one of the nodes does have the correct permissions to /nfsshare/postmanbackup.

  • Is the folder owned by the couchbase user?
  • Does the couchbase user have the same uid on all nodes?

Please note that we have change that error message, to print the node name instead of the uuid to make debugging easier in the future.

Sorry but got confused, this means if we are running postman query with administrator user then we should have permissions for administrator for the archive folder? and it should be with same uid on all the nodes ?

this means if we are running postman query with administrator user then we should have permissions for administrator for the archive folder?

No, let me explain what I meant. Like all running processes on an operating system, Couchbase Server runs as a user called couchbase. That operating system user needs to have the correct permissions to the archive folder. Please also note that the archive folder should be network file share i.e NFS or CIFS.

Hi @pvarley ,

Its still not working.
I have a nfs mount point, under which i have a folder which has user couchbase and all the permissions.

[root@localhost ~]# ls -l /nfsshare/
total 0
drwxr-xr-x. 4 root      root 52 Aug  3 00:09 couchbase
drwxrwxrwx. 3 couchbase root 52 Aug  3 04:43 postmanbackup

I created plan and while creating repo with following body it fails :

{
    "plan":"BackupPlan",
    "archive": "/nfsshare/postmanbackup",
    "bucket_name": "travel-sample"
}

Error that i get :

{
    "status": 500,
    "msg": "Location not accessible by all nodes",
    "extras": "node 4b6148745a879a8f9d60c76e210f8d23 cannot access location /nfsshare/postmanbackup: could not write node file: open /nfsshare/postmanbackup/.cbbs-9e5cca1f91a37cd9244977a2447d0577/node-4b6148745a879a8f9d60c76e210f8d23-1628575511847956754: permission denied"
}

i did checked the folder and found that the folder created under the postmanbackup is with root permission. Does this mean that the couchbase command is running with root user ?

Can you provide the output of ls -l /nfsshare/postmanbackup/.cbbs-9e5cca1f91a37cd9244977a2447d0577/node-4b6148745a879a8f9d60c76e210f8d23-1628575511847956754 from all three nodes please.

Hello @pvarley ,

today when i try i am getting some different error :

Node 1 :

[root@localhost ~]# mount 172.16.60.162:/nfsserver /nfsshare/
[root@localhost ~]# ls -l /nfsshare/
total 0
drwxr-xr-x. 4 root      root 52 Aug  3 00:09 couchbase
drwxr-xr-x. 3 couchbase root 52 Aug 16 00:10 postmanbackup
[root@localhost ~]# ls -l /nfsshare/postmanbackup/
total 0

Node 2 :

[root@localhost ~]# mount 172.16.60.162:/nfsserver /nfsshare/
[root@localhost ~]# ls -l /nfsshare/
total 0
drwxr-xr-x. 4 root      root 52 Aug  3 00:09 couchbase
drwxr-xr-x. 3 couchbase root 52 Aug 16 00:10 postmanbackup
[root@localhost ~]# ls -l /nfsshare/postmanbackup/
total 0

Node 3 :

[root@localhost ~]# mount 172.16.60.162:/nfsserver /nfsshare/
[root@localhost ~]# ls -l /nfsshare/postmanbackup/
total 0
[root@localhost ~]# ls -l /nfsshare
total 0
drwxr-xr-x. 4 root      root 52 Aug  3 00:09 couchbase
drwxr-xr-x. 3 couchbase root 52 Aug 16 00:10 postmanbackup

There is no folder created and the error i get on the postman is as follows :

{
    "status": 500,
    "msg": "Location not accessible by all nodes",
    "extras": "node 4b6148745a879a8f9d60c76e210f8d23 cannot access location /nfsshare/postmanbackup: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing dial tcp 172.16.61.154:9124: connect: connection refused\""
}

Hello @pvarley ,

Thanks for the help. it seems the pervious error was due to some cluster error. After recovering the cluster i tried to create the repo via postman it worked.

Once again thanks for help.

Glad to hear that it’s working now.

The new error tcp 172.16.61.154:9124: connect: connection refused basically means that not all backup nodes could talk to each other, in this case node with IP 172.16.61.154 was refusing the connection on port 9124.