Cannot read properties of undefined (reading 'imprint_url') #968

Closed
opened 2021-09-06 00:32:24 +00:00 by Zoker · 2 comments

Hi there,

I just tried to get vikunja setup with docker, but I'm having some issues.

This is my composer file:

version: '3.8'
services:
  api:
    image: vikunja/api
    container_name: API
    restart: unless-stopped
    volumes:
      - ~/docker/vikunja/files:/app/vikunja/files
    environment:
      VIKUNJA_SERVICE_TIMEZONE: 'Europe/Berlin'
  frontend:
    image: vikunja/frontend
    container_name: Frontend
    ports:
      - 80:80/tcp
    restart: unless-stopped

The first issue is, that I get this error in the console:
image

This is the file:
image

When I try to register, I get this error:
image

I also have this empty message box at the login/register page:
image

I did not change anything. Just used this composer file above and started them. And then I get these errors.

Let me know, if you need more information.

Thanks,
Zoker

Hi there, I just tried to get vikunja setup with docker, but I'm having some issues. This is my composer file: ```yml version: '3.8' services: api: image: vikunja/api container_name: API restart: unless-stopped volumes: - ~/docker/vikunja/files:/app/vikunja/files environment: VIKUNJA_SERVICE_TIMEZONE: 'Europe/Berlin' frontend: image: vikunja/frontend container_name: Frontend ports: - 80:80/tcp restart: unless-stopped ``` The first issue is, that I get this error in the console: ![image](/attachments/1c058c0c-5a7f-4431-aa35-3c8549b3f1a4) This is the file: ![image](/attachments/99e1cee8-e8f3-4bad-bbe4-b495a353e66f) When I try to register, I get this error: ![image](/attachments/5a9776e8-f178-4f97-a76f-36978cd33d38) I also have this empty message box at the login/register page: ![image](/attachments/b74b9df6-6bdf-4790-835b-e5b97b2d880b) I did not change anything. Just used this composer file above and started them. And then I get these errors. Let me know, if you need more information. Thanks, Zoker
Owner

It looks like you did not expose the api ports. The browser accessing the frontend makes the requests to the api, so it needs to be able to reach it.

You can do this either with a reverse proxy (examples here) or by directly exposing port 3456 of the container to some outside port. You'll then need to either set the api URL on the frontend container or setting it manually each time you want to use Vikunja.

It looks like you did not expose the api ports. The browser accessing the frontend makes the requests to the api, so it needs to be able to reach it. You can do this either with a reverse proxy ([examples here](https://vikunja.io/docs/full-docker-example/)) or by directly exposing port 3456 of the container to some outside port. You'll then need to either [set the api URL on the frontend container](https://vikunja.io/docs/install-frontend/#api-url-configuration-in-docker) or setting it manually each time you want to use Vikunja.
konrad added the
question
label 2021-09-06 18:41:55 +00:00
Author

Yes that was the issue, thanks! 🙂

Yes that was the issue, thanks! 🙂
Zoker closed this issue 2021-09-29 11:37:45 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#968
No description provided.