go-vikunja / vikunja

Mirror of vikunja from https://code.vikunja.io/api
GNU Affero General Public License v3.0
1.03k stars 71 forks source link

Uploading attachements doens´t work #362

Open Japhys opened 3 hours ago

Japhys commented 3 hours ago

Description

I just installed Vikunja and I am a fan already! Very fast, very clean, yet very flexible because of the views and filters! There is one thing i can´t get to work and that is uploads. Once I select a file and hit upload for a second it looks like it is going to upload but nothing actually happens.

Vikunja Version

0.24.5

Browser and version

Firefox Min-001 1.0 and Chromium Versie 130.0.6723.58 for Mint

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

It does work on the demo site so I guess it has something to do wit my setup

Docker compose

version: '3.8'

services:
  vikunja:
    image: vikunja/vikunja:latest
    container_name: vikunja
    environment:
      - VIKUNJA_DATABASE_TYPE=postgres
      - VIKUNJA_DATABASE_HOST=db
      - VIKUNJA_DATABASE_PORT=5432
      - VIKUNJA_DATABASE_USER=johndoe
      - VIKUNJA_DATABASE_PASSWORD=K5tKwyKcKfrfserfser23
      - VIKUNJA_DATABASE_NAME=vikunja
      - VIKUNJA_SERVER_HOST=0.0.0.0
      - VIKUNJA_SERVER_PORT=3456
    ports:
      - "9191:3456"
    depends_on:
      - db
    restart: unless-stopped

  db:
    image: postgres:latest
    container_name: vikunja_db
    environment:
      - POSTGRES_USER=johndoe
      - POSTGRES_PASSWORD=K5tKwyKcKfrfserfser23
      - POSTGRES_DB=vikunja
    volumes:
      - /srv/vikunja/db_data:/var/lib/postgresql/data
    restart: unless-stopped

volumes:
  db_data:

I am using Nginx Proxy Manager and used the recommended settings.

This is what I see in console

2024-11-24_14-59

kolaente commented 3 hours ago

Is there anything you see in the network tab upload response or in the server logs?

Japhys commented 3 hours ago

I tried it again, twice actually. This is what the network tab shows. 200 Ok? Thatś strange

No attachments in the task

2024-11-24_15-12

In error.log of Nginx proxy manager I see this

2024/11/24 14:10:37 [warn] 212#212: *2113 a client request body is buffered to a temporary file /tmp/nginx/body/9/01/0000000019, client: removed-ip, server: projects.example.com, request: "PUT /api/v1/tasks/19/attachments HTTP/2.0", host: "projects.example.com", referrer: "https://projects..example.com/tasks/19"

kolaente commented 2 hours ago

If you click on the attachments request, what is the response from the server?

Japhys commented 2 hours ago

This is what I see in dev tools

2024-11-24_15-56

kolaente commented 2 hours ago

And in the server logs?

This looks like there's an error during the upload, but you should see a message about this in the fronted as well

Japhys commented 2 hours ago

You mean a different log than the one I posted above?

In error.log of Nginx proxy manager I see this

2024/11/24 14:10:37 [warn] 212#212: *2113 a client request body is buffered to a temporary file /tmp/nginx/body/9/01/0000000019, client: removed-ip, server: projects.example.com, request: "PUT /api/v1/tasks/19/attachments HTTP/2.0", host: "projects.example.com", referrer: "https://projects..example.com/tasks/19"

kolaente commented 2 hours ago

I mean in Vikunja, not in the proxy. The proxy is independent of Vikunja.

With docker, you can see these logs with docker logs <Containername>

Japhys commented 1 hour ago

Ah of course! Hmm permissions error...

2024-11-24T16:31:32Z: ERROR     ▶ af6 mkdir /app/vikunja/files/: permission denied
2024-11-24T16:31:32Z: WEB       ▶ removed-ip  PUT 200 /api/v1/tasks/8/attachments 12.117531ms - Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
2024-11-24T16:31:37Z: WEB       ▶ removed-ip  GET 200 /api/v1/notifications?page=1 1.502389ms - Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0