docs icon indicating copy to clipboard operation
docs copied to clipboard

problem_storage_root

Open joeyac opened this issue 8 years ago • 6 comments

when I manage problems through the site interface and upload test data, i found that the data was upload on site directory, but I set problem_storage_root to another path and the data between them can not sync, how can I solve this?

joeyac avatar Oct 14 '17 01:10 joeyac

Hi,

I'm not sure I quite understand your question. problem_storage_root in the judge should be set to whatever directory the site is uploading data to (specifically, that to which PROBLEM_DATA_ROOT is set in local_settings.py).

Xyene avatar Oct 14 '17 01:10 Xyene

Oh, i know……PROBLEM_DATA_ROOT not in the sample file: https://github.com/DMOJ/docs/blob/master/sample_files/local_settings.py I don't know that I should set it.

joeyac avatar Oct 14 '17 06:10 joeyac

And can you explain how to use the event server and what can it do? thank you.

joeyac avatar Oct 14 '17 06:10 joeyac

I'm sorry but another question has confused me,after I set problem_storage_root and PROBLEM_DATA_ROOT to a certain path, I upload test data through the site, (the problem code is '1000' and the problem's problem group id is 'simple'), I found that just a folder named '1000' inside with test data and init.yml. But when I start the judger, it seems that it can not found the problem, unless I create a folder named 'simple' and move the folder '1000' inside it, do you have any better suggestions?

joeyac avatar Oct 14 '17 06:10 joeyac

The following worked for me.

In judge/judge_conf.yml, I set problem_storage_root as follows:

problem_storage_root:
  - some_path/site/problems

In site/dmoj/local_setting.py, I added DMOJ_PROBLEM_DATA_ROOT at the end as follows:

DMOJ_PROBLEM_DATA_ROOT = 'some_path/site/problems'

Then, I restarted the web and judge servers , and using the web interface, test data were uploaded to problems folder, and the corresponding problem was identified by the judge.

jinhongjung avatar Mar 25 '21 07:03 jinhongjung

The following worked for me.

In judge/judge_conf.yml, I set problem_storage_root as follows:

problem_storage_root:
  - some_path/site/problems

In site/dmoj/local_setting.py, I added DMOJ_PROBLEM_DATA_ROOT at the end as follows:

DMOJ_PROBLEM_DATA_ROOT = 'some_path/site/problems'

Then, I restarted the web and judge servers , and using the web interface, test data were uploaded to problems folder, and the corresponding problem was identified by the judge.

I followed exactly what you mentioned, but the problems folder is still empty after creating a new problem through the site.

Elfsong avatar Jul 12 '24 08:07 Elfsong