misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
9.94k stars 1.34k forks source link

v2024.5.0 Can not upload anything to Drive #14107

Closed spirillen closed 2 months ago

spirillen commented 3 months ago

💡 Summary

Phasing the same issue out of the blue, seems weird, I haven't touched the system what so ever, when this error occurs.

This is not a file permission issue however

drwxr-xr-x  2 misskey misskey 113401856 Jun 30 19:15 files/

What is more weird is the file permission the files within the folder however as that varies from -rw------- (100600) to -rw-r--r-- (100644)

Replicate of https://github.com/misskey-dev/misskey/issues/9629

🥰 Expected Behavior

Being able to upload contents to drive and a error message that is human readable.

🤬 Actual Behavior

INTERNAL_ERROR 5d37dbcb-891e-41ca-a3d6-e690c97775ac, unable to add content to ./files/ by upload

📝 Steps to Reproduce

  1. run missket
  2. do not touch the system
  3. try uploading contents and it fails

💻 Frontend Environment

* Model and OS of the device(s): Ubuntu 22.04
* Browser: tor, FF-esr, ungoogle-chrome
* Server URL: https://matrix.rocks/
* Misskey: v2024.5.0

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service: bash script
* Misskey: v2024.5.0
* Node: v20.15.0
* PostgreSQL: 15
* Redis: 7
* OS and Architecture: same as above... :arrow_up:

Do you want to address this bug yourself?

spirillen commented 3 months ago

A little update... This only appears to be bound to some users, while the diskspace assigned are leaving plenty of room.

here is a few screenshot

affected users (Admin and moderators) image

image

NOT affected (Admin and moderators) image

spirillen commented 3 months ago
{"ip": "1.2.3.4","host": "matrix.rocks","path": "/api/drive/files/create","status": "500","referrer": "https://matrix.rocks/","user_agent": "Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/115.0","length": 350,"generation_time_milli": 0.061,"date": "2024-06-30T21:04:35+00:00"}

{"ip": "1.2.3.4","host": "matrix.rocks","path": "/api/drive/files/create","status": "500","referrer": "https://matrix.rocks/","user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36","length": 350,"generation_time_milli": 0.376,"date": "2024-06-30T21:06:33+00:00"}
kakkokari-gtyih commented 3 months ago

What did you try to upload (e.g. picture, video, audio, etc.)?

spirillen commented 3 months ago

What did you try to upload (e.g. picture, video, audio, etc.)?

Just a jpg/webp, by copy/paste and by url


Update, this now only affect one user account...

kakkokari-gtyih commented 2 months ago

Closing this in favor of reopening https://github.com/misskey-dev/misskey/issues/9629