plankanban / planka

The realtime kanban board for workgroups built with React and Redux.
https://planka.app
GNU Affero General Public License v3.0
8.03k stars 752 forks source link

[Bug]: File upload to card nothing happens #852

Open fraserw opened 2 months ago

fraserw commented 2 months ago

Where is the problem occurring?

I encountered the problem while using the application (Frontend)

What browsers are you seeing the problem on?

Firefox

Current behaviour

From the card edit panel, click upload attachment, select a file from the file selection window. From there only a grey spinning wheel and no upload activity occurs. No new entry in private is created for the attachment. Nothing listed in the logs either (logs are empty)

Uploads worked fine a few days ago, but upon a service restart, no new uploads will succeed.

File type does not seem to matter.

Behavior is the same for multiple users in or outside the local network where the planka service is hosted.

Desired behaviour

The selected file should upload appropriately, and appear in /var/www/planka/private

Steps to reproduce

From a browser, select a card, select attachment, provide an attachment, click upload.

Other information

Planka run as either a service or from the command line, installed locally in /var/www/planka, on a Ubuntu box 22.04. No SSL at the moment.

fraserw commented 2 months ago

Also tested and fails with chrome

fraserw commented 2 months ago

Discovered this was an issue with the npm run as a service. When run manually as the planka user uploads work fine

meltyshev commented 2 months ago

Hi! Are there any errors in the server logs when uploading attachments? It seems that the user under which this service is running doesn't have permission to write to the attachment folder.

fraserw commented 2 months ago

It seems the issue is with running it as a service for some reason. When run by hand as the planka user, everything works fine. But when launched as a service, seemingly also as the planka user, things bork.

wiiiteek commented 1 month ago

Check in logs if there is no problem with write permission for attachments folder. I had this case when was using docker image with external volumes.