Uploading to a task doesn't work in docker #583

Closed
opened 2020-06-12 22:25:52 +00:00 by fulgerul · 4 comments

I followed https://vikunja.io/docs/docker-walkthrough/

Error:
Cannot read property '$notify' of undefined

Info:
http:///api/v1/info
{"version":"0.13.1+50-a0ffe89056","frontend_url":"","motd":"","link_sharing_enabled":true,"max_file_size":"20MB","registration_enabled":true,"available_migrators":null,"task_attachments_enabled":true,"enabled_background_providers":null,"totp_enabled":true}

I followed https://vikunja.io/docs/docker-walkthrough/ Error: Cannot read property '$notify' of undefined Info: http://<host-ip or url>/api/v1/info {"version":"0.13.1+50-a0ffe89056","frontend_url":"","motd":"","link_sharing_enabled":true,"max_file_size":"20MB","registration_enabled":true,"available_migrators":null,**"task_attachments_enabled":true**,"enabled_background_providers":null,"totp_enabled":true}
Owner

What frontend version are you running? You can find that by opening the dev console (F12), there should be a log message something like Vikunja frontend version ....

I was not able to reproduce this on try which also runs on docker - and the error you had indicates a problem in the frontend.

Did you modify the docker-compose file from the docker walkthrough?

What frontend version are you running? You can find that by opening the dev console (F12), there should be a log message something like `Vikunja frontend version ...`. I was not able to reproduce this on [try](https://try.vikunja.io) which also runs on docker - and the error you had indicates a problem in the frontend. Did you modify the docker-compose file from the docker walkthrough?
Author

Vikunja frontend version 0.13+46-b2a9c13897

Other than paths I havent changed anything:

version: '3'

services:
db:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: supersecret
MYSQL_DATABASE: vikunja
volumes:
- /mnt/ceph/docker-images/vikunja-todo_list/config/mysql:/var/lib/mysql
restart: unless-stopped
api:
image: vikunja/api
environment:
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: supersecret
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: root
VIKUNJA_DATABASE_DATABASE: vikunja
volumes:
- /mnt/ceph/docker-images/vikunja-todo_list/config/vikunja:/app/vikunja/files
depends_on:
- db
restart: unless-stopped
frontend:
image: vikunja/frontend
restart: unless-stopped
proxy:
image: nginx
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- api
- frontend
restart: unless-stopped

nginx.conf
server {
listen 80;

location / {
    proxy_pass http://frontend:80;
}

location /api/ {
    proxy_pass http://api:3456;
}

}

Vikunja frontend version 0.13+46-b2a9c13897 Other than paths I havent changed anything: version: '3' services: db: image: mariadb:10 environment: MYSQL_ROOT_PASSWORD: supersecret MYSQL_DATABASE: vikunja volumes: - /mnt/ceph/docker-images/vikunja-todo_list/config/mysql:/var/lib/mysql restart: unless-stopped api: image: vikunja/api environment: VIKUNJA_DATABASE_HOST: db VIKUNJA_DATABASE_PASSWORD: supersecret VIKUNJA_DATABASE_TYPE: mysql VIKUNJA_DATABASE_USER: root VIKUNJA_DATABASE_DATABASE: vikunja volumes: - /mnt/ceph/docker-images/vikunja-todo_list/config/vikunja:/app/vikunja/files depends_on: - db restart: unless-stopped frontend: image: vikunja/frontend restart: unless-stopped proxy: image: nginx ports: - 80:80 volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - api - frontend restart: unless-stopped **nginx.conf** server { listen 80; location / { proxy_pass http://frontend:80; } location /api/ { proxy_pass http://api:3456; } }
Owner

There have been a few smaller changes to the frontend since your version. Could you try updating to see if the error persists?

docker-compose pull
docker-compose down
docker-compose up -d
docker-compose logs -f

(Also don't forget to update the frontend in browser, you'll see a prompt for that)

There have been a few smaller changes to the frontend since your version. Could you try updating to see if the error persists? ``` docker-compose pull docker-compose down docker-compose up -d docker-compose logs -f ``` (Also don't forget to update the frontend in browser, you'll see a prompt for that)
Owner

Closing due to inactivity, feel free to reopen if the issue persists.

Closing due to inactivity, feel free to reopen if the issue persists.
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#583
No description provided.