rr- / szurubooru

Image board engine, Danbooru-style.
GNU General Public License v3.0
664 stars 175 forks source link

Internal server error (newbie question) #631

Open vethwoop opened 5 months ago

vethwoop commented 5 months ago

Hi! I'm extremely new to using the command line in general, so I apologize in advance for my ignorance. This seems to be a common issue and should be simple to fix, but nothing I've found about it seems to work for me.

Info: I'm running macOS 14.2.1. I don't know what other data is needed to diagnose the issue, but please let me know and I'll provide it.

Issue: I've set up szurubooru on my computer, but when I try to upload an image, I get an internal server error.

And now I'm stuck. What should I do? Thank you so much in advance for your help!

Ziang-Liu commented 5 months ago

I solved this issue by manually creating 4 folders named "avatars", "generated-thumbnails", "posts" and "temporary-uploads" at the host mountpoint.

G1org1owo commented 5 months ago
  • My .env says: MOUNT_DATA=/var/local/szurubooru/data
  • In Terminal, I went to cd szuru and then tried chown -R 1000:1000 /var/local/szurubooru/data, but was told the directory did not exist.

I'm afraid this is because of a faulty installation, I'd advise you to reinstall szuru but I am not sure what went wrong during the install and caused this.

  • I created a new directory with that path (I'm not sure if this was what I was supposed to do).
  • Now when I try chown -R 1000:1000 /var/local/szurubooru/data, I get the message chown: /var/local/szurubooru/data: Operation not permitted

When you use chown to change the owner of a file, you need to invoke the command as root, what I'm guessing you did was simply write

$ chown -R 1000:1000 /var/local/szurubooru/data

As a rule of thumb you should avoid doing this if you are not sure what you are actually doing, but in this case you can safely bypass this problem by prefixing your command with sudo, which asks for your password and runs the command as root (super-user).

$ sudo chown -R 1000:1000 /var/local/szurubooru/data