# Cannot access app: Error while refreshing user info (Docker)

**URL:** <https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708>\
**Category:** Support\
**Created:** [13 October 2023 08:19 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708 "2023-10-13T08:19:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 08:19 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/1 "2023-10-13T08:19:11Z")

</div>

Hi! I’ve used a few days Vikunja without any problem, deployed with a Portainer Stack. Now I can’t access to the app/web page.  
Thins is the message in the app/web page.

 ![vikunja](https://community.vikunja.io/uploads/default/original/1X/1b81ec14bc6900cb828b305f5b8f11abe1d2f135.png)

I’ve found in api and db logs a error related to users, but i’m totally newbie with this things and i can’t interpretate it and how to solve it.

[Vikunja db log](https://pastebin.com/8tzyqP0m)

[Vikunja API logs](https://pastebin.com/Fjz0PSGJ)

Any idea how to solve it? Thanks

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [13 October 2023 12:16 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/2 "2023-10-13T12:16:39Z")

</div>

Does it work in a private tab?

You have this entry in your logs:

```auto
 112 User does not exist [user id: 1]

```

Did you recreate the container?

---

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 13:46 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/3 "2023-10-13T13:46:32Z")

</div>

I’m not in private tab. I’ve tested it in chrome normal tab, windows desktop and android app. All the same.

Recreate doesn’t solve it

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [13 October 2023 13:58 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/4 "2023-10-13T13:58:30Z")

</div>

> [@doctorase](#):
>
> I’m not in private tab.

Yes, but does it work if you check it in a private tab?

Can you share your config?

---

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 14:24 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/5 "2023-10-13T14:24:50Z")

</div>

Sorry, i didn’t understand it. It works in private mode.  
My config is my docker compose?

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [13 October 2023 14:36 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/6 "2023-10-13T14:36:01Z")

</div>

Yes, your docker compose file.

If it works in a private tab then it will probably work when you clear the local storage of your browser and try again.

---

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 14:47 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/7 "2023-10-13T14:47:57Z")

</div>

version: ‘3’

services:  
db:  
image: postgres:13  
environment:  
PUID: 1027  
PGID: 100  
POSTGRES\_PASSWORD: secret  
POSTGRES\_USER: vikunja  
volumes:  
- /volume3/docker/vikunja/db:/var/lib/mysql  
restart: unless-stopped  
api:  
image: vikunja/api  
environment:  
PUID: 1027  
PGID: 100  
VIKUNJA\_DATABASE\_HOST: db  
VIKUNJA\_DATABASE\_PASSWORD: secret  
VIKUNJA\_DATABASE\_TYPE: postgres  
VIKUNJA\_DATABASE\_USER: vikunja  
VIKUNJA\_DATABASE\_DATABASE: vikunja  
VIKUNJA\_SERVICE\_JWTSECRET: XXXX  
VIKUNJA\_SERVICE\_FRONTENDURL: [https://XXXXX.synology.me/](https://XXXXX.synology.me/)  
ports:  
- 3456:3456  
volumes:  
- /volume3/docker/vikunja/data:/app/vikunja/files  
depends\_on:  
- db  
restart: unless-stopped  
frontend:  
image: vikunja/frontend  
ports:  
- 4441:80  
environment:  
PUID: 1027  
PGID: 100  
VIKUNJA\_API\_URL: [https://XXXXX.synology.me/api/v1](https://XXXXX.synology.me/api/v1)  
restart: unless-stopped

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [13 October 2023 16:48 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/8 "2023-10-13T16:48:02Z")

</div>

You’re using postgres but the volume you use to store the data is pointing to the path of a mysql database. That means every time you recreate your stack it will remove all data.

Check out one of the examples for the correct path: [Full docker example | Vikunja](https://vikunja.io/docs/full-docker-example/)

---

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 17:19 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/9 "2023-10-13T17:19:41Z")

</div>

I’ve edited the docker compose to this new one. Also i’ve deleted db folder.

[Docker compose](https://pastebin.com/XtaeKDPk)

But if fails with another errors. The web loads, but I can’t create an account with error “Internal sever error” in the same web.

[Vikunja API log 2](https://pastebin.com/BWcQfLwR)

---

<div class="post-metadata">

**Author:** ![doctorase](https://community.vikunja.io/user_avatar/community.vikunja.io/doctorase/32/913_2.png) [@doctorase](https://community.vikunja.io/u/doctorase)\
**Post date:** [13 October 2023 18:48 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/10 "2023-10-13T18:48:16Z")

</div>

Finally it’s working. But it shows this on logs

2023-10-13 18:37:44.416 UTC [208] ERROR: relation “users” does not exist at character 447  
2023-10-13 18:37:44.416 UTC [208] STATEMENT: SELECT “id”, “name”, “username”, “password”, “email”, “status”, “avatar\_provider”, “avatar\_file\_id”, “issuer”, “subject”, “email\_reminders\_enabled”, “discoverable\_by\_name”, “discoverable\_by\_email”, “overdue\_tasks\_reminders\_enabled”, “overdue\_tasks\_reminders\_time”, “default\_project\_id”, “week\_start”, “language”, “timezone”, “deletion\_scheduled\_at”, “deletion\_last\_reminder\_sent”, “frontend\_settings”, “export\_file\_id”, “created”, “updated” FROM “users” WHERE “username”=$1 LIMIT 1  
2023-10-13 18:38:36.612 UTC [210] ERROR: relation “users” does not exist at character 447  
2023-10-13 18:38:36.612 UTC [210] STATEMENT: SELECT “id”, “name”, “username”, “password”, “email”, “status”, “avatar\_provider”, “avatar\_file\_id”, “issuer”, “subject”, “email\_reminders\_enabled”, “discoverable\_by\_name”, “discoverable\_by\_email”, “overdue\_tasks\_reminders\_enabled”, “overdue\_tasks\_reminders\_time”, “default\_project\_id”, “week\_start”, “language”, “timezone”, “deletion\_scheduled\_at”, “deletion\_last\_reminder\_sent”, “frontend\_settings”, “export\_file\_id”, “created”, “updated” FROM “users” WHERE “username”=$1 LIMIT 1

I don’t know if i need to solve this. I don’t want that app fails again

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [17 October 2023 16:02 UTC](https://community.vikunja.io/t/cannot-access-app-error-while-refreshing-user-info-docker/1708/11 "2023-10-17T16:02:11Z")

</div>

Can you run `docker compose exec api ./vikunja migrate`, restart and check if it works?
