GithubHelp home page GithubHelp logo

fortuna-oj-doc's Introduction

Documents for Fortuna Online Judge (Unofficial)

中文文档

  1. How to solve "Failed to write session data" problem?

    fortuna-oj uses redis to handle with session data (and submissions). Usually problem occurs because the AOF file of redis is corrupted, due to accidental reboots of the web server.

    To identify this problem, please check redis log (usually in /var/log/redis/redis-server.log).

    To solve this:

    1. Go to /var/lib/redis in terminal, find "appendonly.aof"

    2. Execute sudo redis-check-aof --fix appendonly.aof to fix the AOF file

    3. Execute sudo service redis-server restart to restart redis background service

    4. Kill php and restart yaujpushd service to reset the submission queue if necessary

      • sudo killall php
      • sudo service yaujpushd start
      • Rejudge all submissions that are pending to be judged in the webpage
  2. Some of the submissions are being judged, but way slower than usual.

    fortuna-oj uses vfk_uoj_sandbox for running submissions' programs. Due to an unknown issue (most probably because I'm too garbage :( ), the sandbox will become much slower when judging a specific kind of Pascal programs which have I/O problems (e.g. reading too much data from input).

    Unfortunately there is no way to completely solve this problem. But still, stopping users submitting wrong Pascal programs (especially submitting them repeatedly) might be the best solution.

fortuna-oj-doc's People

Contributors

mchobbylong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.