[my_gcs_repository] repository type [gcs] does not exist

I'm trying to follow Google Cloud Storage Repository Plugin and while at step: Create a Repository I'm getting following error:

# curl -XPUT 'elk:9200/_snapshot/my_gcs_repository?pretty' -H 'Content-Type: application/json' -d'
{
  "type": "gcs",
  "settings": {
    "bucket": "my_bucket"
  }
}
'
{
  "error" : {
    "root_cause" : [
      {
        "type" : "repository_exception",
        "reason" : "[my_gcs_repository] repository type [gcs] does not exist"
      }
    ],
    "type" : "repository_exception",
    "reason" : "[my_gcs_repository] repository type [gcs] does not exist"
  },
  "status" : 500
}
# 

Installation:

# /opt/elasticsearch/bin/elasticsearch-plugin install repository-gcs
-> Downloading repository-gcs from elastic
[=================================================] 100%   
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission accessDeclaredMembers
* java.lang.RuntimePermission setFactory
* java.lang.reflect.ReflectPermission suppressAccessChecks
* java.net.URLPermission http://www.googleapis.com/* *:
* java.net.URLPermission https://www.googleapis.com/* *:
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
-> Installed repository-gcs
# echo $?
0
# 

Please advise.

ha! I didn't read it carefully

The plugin must be installed on every node in the cluster, and each node must be restarted after installation.

after I read and restart each node, that's no longer an issue)

thanks a lot me!)

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.