# Internal server error while launching dev environment first time

**URL:** <https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711>\
**Category:** Help\
**Created:** [March 8, 2023, 8:08am UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711 "2023-03-08T08:08:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitrii.erkin](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dmitrii.erkin](https://community.okteto.com/u/dmitrii.erkin)\
**Post date:** [March 8, 2023, 8:08am UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/1 "2023-03-08T08:08:11Z")

</div>

Hello,

This is my very first attempt to use okteto. I am trying to launch a dev environment using web:

`Successfully assigned okteto/installer-8a237630-212c-4bd1-bcb9-9ac85718c0a4-fsrjd to gke-cloud-dev-1-eebd98df-s4sd` `Created pod: installer-8a237630-212c-4bd1-bcb9-9ac85718c0a4-fsrjd` `Started container installer-bin` `Container image "okteto/pipeline-runner:1.0.0" already present on machine` `Created container installer` `Started container installer` `Deploying Dev Environment` `initialized kubernetes client with InClusterConfig` `adding https://apps.okteto.com as a helm repo` `"okteto" has been added to your repositories` `Hang tight while we grab the latest from your chart repositories...` `...Successfully got an update from the "okteto" chart repository` `Update Complete. ⎈Happy Helming!⎈` `checkout command: '[git clone --depth 1 https:// ***:*** @github.com/dmitrii-erkin/movies-with-compose.git -b main /okteto/src]' Cloning git repository 'https:// ***:*** @github.com/dmitrii-erkin/movies-with-compose.git' branch 'main'...` `Cloning into '/okteto/src'...` `Running okteto pipeline at:

- Commit: 460b90a8031a623d1a2d7741cd926d963afea616
- Message: Merge pull request #11 from NitishKumar06/Nitish/BrokenLink` `okteto information: ` `- okteto cli version: v2.13.0` `executing ‘okteto context’…` `! Initializing context with the value of OKTETO\_TOKEN, OKTETO\_URL and OKTETO\_NAMESPACE environment variables` `x Internal server error, please try again` `exit status 1`

I am getting the same error while using okteto cli on my local computer.

Any ideas what I am doing wrong?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![AgustinRamiroDiaz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/agustinramirodiaz/32/34_2.png) [@AgustinRamiroDiaz](https://community.okteto.com/u/AgustinRamiroDiaz)\
**Post date:** [March 8, 2023, 10:36am UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/2 "2023-03-08T10:36:35Z")

</div>

Hi @dmitrii.erkin !

What’s your output when running `okteto context` from the CLI? Are you using [cloud.okteto.com](http://cloud.okteto.com)?

---

<div class="post-metadata">

**Author:** ![dmitrii.erkin](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dmitrii.erkin](https://community.okteto.com/u/dmitrii.erkin)\
**Post date:** [March 8, 2023, 8:12pm UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/3 "2023-03-08T20:12:46Z")

</div>

Hi @AgustinRamiroDiaz

The output is:

```auto
$ okteto context
 ! Initializing context with the value of OKTETO_TOKEN environment variable
 x Internal server error, please try again

```

I downloaded config.json from [https://cloud.okteto.com/](https://cloud.okteto.com/) and saved it into /.okteto/context

---

<div class="post-metadata">

**Author:** ![AgustinRamiroDiaz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/agustinramirodiaz/32/34_2.png) [@AgustinRamiroDiaz](https://community.okteto.com/u/AgustinRamiroDiaz)\
**Post date:** [March 9, 2023, 11:00am UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/4 "2023-03-09T11:00:23Z")

</div>

@dmitrii.erkin there seems to be something going on with the `OKTETO_TOKEN` envvar

Since it’s a sensitive value, please check if the value of the `OKTETO_TOKEN` envvar from your shell matches with the `"token"` field (`contexts["https://cloud.okteto.com"].token` would be in JSON notation) from the `config.json` you’ve downloaded?

In summary, `echo ${OKTETO_TOKEN}` should be the same as the token defined in the `config.json`. If not, you should check if there’s something setting that envvar in your PC

---

<div class="post-metadata">

**Author:** ![dmitrii.erkin](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dmitrii.erkin](https://community.okteto.com/u/dmitrii.erkin)\
**Post date:** [March 11, 2023, 12:42pm UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/5 "2023-03-11T12:42:14Z")

</div>

Hi @AgustinRamiroDiaz

Now I can deploy the movies-with-compose app from my okteto web account, but it still fails when I am using okteto cli.  
It keeps saying “Your token is invalid. Generating a new one…” despite I am pretty sure I copied the token from the json file:

okteto up  
! Initializing context with the value of OKTETO\_TOKEN environment variable  
x Your token is invalid. Please run ‘okteto context use [https://cloud.okteto.com](https://cloud.okteto.com)’ and try again

okteto context use results in " ✓ Using context dmitrii-erkin @ [cloud.okteto.com](http://cloud.okteto.com)  
" but then okteto up fails again

---

<div class="post-metadata">

**Author:** ![AgustinRamiroDiaz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/agustinramirodiaz/32/34_2.png) [@AgustinRamiroDiaz](https://community.okteto.com/u/AgustinRamiroDiaz)\
**Post date:** [March 13, 2023, 3:18pm UTC](https://community.okteto.com/t/internal-server-error-while-launching-dev-environment-first-time/711/6 "2023-03-13T15:18:27Z")

</div>

Hi @dmitrii.erkin

I’ll try to reproduce. In the meantime, could you try out unsetting the envvar by running `unset OKTETO_TOKEN`?
