# Snapshot - restore data stream

**URL:** <https://forum.opensearch.org/t/snapshot-restore-data-stream/12537>\
**Category:** OpenSearch\
**Tags:** troubleshoot\
**Created:** [February 16, 2023, 11:36am UTC](https://forum.opensearch.org/t/snapshot-restore-data-stream/12537 "2023-02-16T11:36:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcvythoulkas](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@dcvythoulkas](https://forum.opensearch.org/u/dcvythoulkas)\
**Post date:** [February 16, 2023, 11:36am UTC](https://forum.opensearch.org/t/snapshot-restore-data-stream/12537/1 "2023-02-16T11:36:27Z")

</div>

**Versions** :  
Snapshot taken from production server running OpenSearch 2.2.1 on Debian 11  
Datastream is being restores in lab server running OpenSearch 2.4.0 on Debian 11

**Describe the issue** :  
I have several times been able to (and still do) restore indexes from production to lab server. I can’t however restore data streams. The datastream in question is `"audiocodesva-logs"`. No such datastream is present in the lab environment and the datastream is visible from the lab server when I list the repository’s contents.

**Configuration** :

```auto
POST _snapshot/pcrepo/full_snap_20230214/_restore?wait_for_completion=false
{
  "indices": "audiocodesva-logs",
  "ignore_unavailable": true,
  "include_global_state": false
}

```

**Relevant Logs or Screenshots** :  
When I run the restore request I get the following response:

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=]"
      }
    ],
    "type" : "security_exception",
    "reason" : "no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=]"
  },
  "status" : 403
}

```

The same is if I run with my user that also has `all_access` and `manage_snapshot` privileges.

Is there something I am missing regarding datastreams vs indexes?
