# Kibana not starting after making service account changes for upgrade to 8

**URL:** <https://discuss.elastic.co/t/kibana-not-starting-after-making-service-account-changes-for-upgrade-to-8/297406>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [February 16, 2022, 6:49pm UTC](https://discuss.elastic.co/t/kibana-not-starting-after-making-service-account-changes-for-upgrade-to-8/297406 "2022-02-16T18:49:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Justin\_Cranford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_cranford/32/85302_2.png) [@Justin\_Cranford](https://discuss.elastic.co/u/Justin_Cranford)\
**Post date:** [February 16, 2022, 10:05pm UTC](https://discuss.elastic.co/t/kibana-not-starting-after-making-service-account-changes-for-upgrade-to-8/297406/4 "2022-02-16T22:05:00Z")

</div>

The CLI creates a service token in a file, which is not replicated.  
The API creates a service token in an index, which is replicated.

The URL method and path are of the form:  
`POST /_security/service/<namespace>/<service>/credential/token/<token_name>`

Perhaps one of these curl examples would work:  
`$ curl -s -X POST -u elastic:PASSWORD "ADDRESS:9200/_security/service/elastic/kibana/credential/token/token1"`

`$ curl -s -X POST -H 'Authorization: Bearer TOKEN' "ADDRESS:9200/_security/service/elastic/kibana/credential/token/token1"`

Here is a link to the doc page if that is helpful.

- [Create service account token API | Elasticsearch Guide [8.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html)

---

_[View the full topic](https://discuss.elastic.co/t/kibana-not-starting-after-making-service-account-changes-for-upgrade-to-8/297406)._
