DOMjudge / domjudge-packaging

DOMjudge packaging for (Linux) distributions and live image
32 stars 40 forks source link

When I uploaded the banner, a 500 Internal Server Error occurred #115

Closed Dup4 closed 2 years ago

Dup4 commented 2 years ago

NOTE: If this is a discussion starter, you need any installation help or have a question on how to accomplish something, rather post at our discussion channel or send an email to our DOMjudge-devel mailinglist instead of filing an issue here.

Description of the problem

Replace this line with a short description.

I try to upload a banner to a contest, contest_id is 3.

But a 500 Internal Server Error occurred.

image

BTW, I use docker to run domserver.

I checked the user and group to which the corresponding folder belongs.

image

And I also check the nginx.conf.

image

So I changed the user group of the banners folder, and the upload was successful,like below:

image

But if you change the user configuration item in nginx.conf to user domjudge;, it should also be work.

So which kind of change do you think we should make better?

Your environment

Include details about your installation here.

  • DOMjudge version (e.g. 7.0.0 or a github commit hash)
  • Operating system / Linux distribution and version (e.g. Ubuntu 18.04)
  • Webserver (e.g. Apache or nginx)

Steps to reproduce

Replace this with a description how we can reproduce your bug.

  • Step 1
  • Step 2
  • Step 3

Expected behaviour

Replace this line with what you would expect to happen.

Actual behaviour

Replace this line with what happens instead.

Any other information that you want to share?

Please include webserver, symfony and judgedaemon log snippets here as appropriate. Screenshots may help in case of UI bugs.

nickygerritsen commented 2 years ago

I think we should change the folder to www-data or even better use setfacl to add permissions