Fresh install, frontend issues #1819

Closed
opened 2021-09-06 03:50:58 +00:00 by mvaldes14 · 6 comments

Fresh install via docker and as soon as i log in i keep seeing messages in the console and the pop ups stating things like.

index.93fec5c1.js:18 Uncaught (in promise) TypeError: e.forEach is not a function

when trying to add a task it requires a namespace, so trying to create a namespace throws out error

TypeError: t.namespaces.namespaces.filter is not a function

Not sure what i'm doing wrong and the logs just state something like

2021-09-06T03:40:08.501549926Z: NOTICE	▶ middleware/1 18e Tried to update while not having the rights for it (User: &{1  <user>  <email> Active  0   false false false false 0 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC <nil>})
Fresh install via docker and as soon as i log in i keep seeing messages in the console and the pop ups stating things like. ``` index.93fec5c1.js:18 Uncaught (in promise) TypeError: e.forEach is not a function ``` when trying to add a task it requires a namespace, so trying to create a namespace throws out error ``` TypeError: t.namespaces.namespaces.filter is not a function ``` Not sure what i'm doing wrong and the logs just state something like ``` 2021-09-06T03:40:08.501549926Z: NOTICE ▶ middleware/1 18e Tried to update while not having the rights for it (User: &{1 <user> <email> Active 0 false false false false 0 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC 0 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC <nil>}) ```
Owner

Could you share your config and compose file? (Assuming you're using compose)

Could you share your config and compose file? (Assuming you're using compose)
Author

compose.yml

version: '3'
services:
  dbt:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1000
    networks:
      - traefik-proxy
    environment:
      MYSQL_ROOT_PASSWORD: supersupersecret 
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: supersecret
      MYSQL_DATABASE: vikunja
    volumes:
      - /opt/vikunja/db:/var/lib/mysql
    restart: unless-stopped
    deploy:
      placement:
        constraints:
          - node.labels.name == server
  
  api:
    image: vikunja/api
    environment:
      VIKUNJA_DATABASE_HOST: dbt
      VIKUNJA_DATABASE_PASSWORD: supersecret
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_FRONTENDURL: https://mydomain/
      VIKUNJA_SERVICE_ENABLEREGISTRATION: 0
    volumes: 
      - /opt/vikunja/api:/app/vikunja/files
    networks:
      - traefik-proxy
    restart: unless-stopped
    deploy:
      placement:
        constraints:
          - node.labels.name == server
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.vikunja-api.entrypoints=websecure"
        - "traefik.http.routers.vikunja-api.tls=true"
        - "traefik.http.routers.vikunja-api.tls.certresolver=myresolver"
        - "traefik.http.routers.vikunja-api.rule=Host(`mydomain`) && PathPrefix(`/api/v1`, `/dav/`, `/.well-known/`)"
        - "traefik.http.services.vikunja-api.loadbalancer.server.port=3456"
        - "traefik.docker.network=traefik-proxy"
      
  frontend:
    image: vikunja/frontend
    networks:
      - traefik-proxy
    restart: unless-stopped
    deploy:
      placement:
        constraints:
          - node.labels.name == pi
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.vikunja.entrypoints=websecure"
        - "traefik.http.routers.vikunja.tls=true"
        - "traefik.http.routers.vikunja.tls.certresolver=myresolver"
        - "traefik.http.routers.vikunja.rule=Host(`mydomain`)"
        - "traefik.http.services.vikunja.loadbalancer.server.port=80"
        - "traefik.docker.network=traefik-proxy"

networks:
  traefik-proxy:
    external: true

have other services running that use postgresql and mysql and those were named database and db so in order to prevent collisions i ended up naming it dbt - did see in those other db logs attempts from vikunja to auth so that solved it.

oddly enough if i look at the site on my phone everything works perfectly, seems like somehow the vue app is weird on desktop?

compose.yml ``` version: '3' services: dbt: image: mariadb:10 command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1000 networks: - traefik-proxy environment: MYSQL_ROOT_PASSWORD: supersupersecret MYSQL_USER: vikunja MYSQL_PASSWORD: supersecret MYSQL_DATABASE: vikunja volumes: - /opt/vikunja/db:/var/lib/mysql restart: unless-stopped deploy: placement: constraints: - node.labels.name == server api: image: vikunja/api environment: VIKUNJA_DATABASE_HOST: dbt VIKUNJA_DATABASE_PASSWORD: supersecret VIKUNJA_DATABASE_TYPE: mysql VIKUNJA_DATABASE_USER: vikunja VIKUNJA_DATABASE_DATABASE: vikunja VIKUNJA_SERVICE_FRONTENDURL: https://mydomain/ VIKUNJA_SERVICE_ENABLEREGISTRATION: 0 volumes: - /opt/vikunja/api:/app/vikunja/files networks: - traefik-proxy restart: unless-stopped deploy: placement: constraints: - node.labels.name == server labels: - "traefik.enable=true" - "traefik.http.routers.vikunja-api.entrypoints=websecure" - "traefik.http.routers.vikunja-api.tls=true" - "traefik.http.routers.vikunja-api.tls.certresolver=myresolver" - "traefik.http.routers.vikunja-api.rule=Host(`mydomain`) && PathPrefix(`/api/v1`, `/dav/`, `/.well-known/`)" - "traefik.http.services.vikunja-api.loadbalancer.server.port=3456" - "traefik.docker.network=traefik-proxy" frontend: image: vikunja/frontend networks: - traefik-proxy restart: unless-stopped deploy: placement: constraints: - node.labels.name == pi labels: - "traefik.enable=true" - "traefik.http.routers.vikunja.entrypoints=websecure" - "traefik.http.routers.vikunja.tls=true" - "traefik.http.routers.vikunja.tls.certresolver=myresolver" - "traefik.http.routers.vikunja.rule=Host(`mydomain`)" - "traefik.http.services.vikunja.loadbalancer.server.port=80" - "traefik.docker.network=traefik-proxy" networks: traefik-proxy: external: true ``` have other services running that use postgresql and mysql and those were named database and db so in order to prevent collisions i ended up naming it `dbt` - did see in those other db logs attempts from vikunja to auth so that solved it. oddly enough if i look at the site on my phone everything works perfectly, seems like somehow the vue app is weird on desktop?
Owner

That definitely sounds odd. As there's some things not enabled on mobile it is still possible that this is a desktop only issue. Do you have the same problems with try?

That definitely sounds odd. As there's some things not enabled on mobile it is still possible that this is a desktop only issue. Do you have the same problems with [try](https://try.vikunja.io)?
konrad added the
question
label 2021-09-06 19:00:47 +00:00
Author

tried it in different browsers and it works correctly, not sure whats going on with chromium so i guess ill defer to using this on mobile for now.

can provide more details if needed.

tried it in different browsers and it works correctly, not sure whats going on with chromium so i guess ill defer to using this on mobile for now. can provide more details if needed.
Owner

In the past there was an issue like this when the user had an "edge-casey" api configuration (a configuration I did not test). The docker compose file you shared does not have that so I'm not quite sure what to look for.

How did you create the user you're logging in with? Through the normal registration flow or with the cli?

In the past there was an issue like this when the user had an "edge-casey" api configuration (a configuration I did not test). The docker compose file you shared does not have that so I'm not quite sure what to look for. How did you create the user you're logging in with? Through the normal registration flow or with the cli?
Author

Yeah this is weird, ended up using chrome and the problems went away.
Oddly enough in my laptop i still use chromium and it doesnt present the same problems.

Guess we can close this out.

Yeah this is weird, ended up using chrome and the problems went away. Oddly enough in my laptop i still use chromium and it doesnt present the same problems. Guess we can close this out.
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#1819
No description provided.