Skip to content

Conversation

@ObadaS
Copy link
Collaborator

@ObadaS ObadaS commented Mar 26, 2025

A brief description of the purpose of the changes contained in this PR.

Added a maintenance mode to Codabench using Caddy and a maintenance.on file that is created (and deleted) when needed.

A checklist for hand testing

  • Create the maintenance.on file in the new maintenance_mode folder then check the homepage
  • Delete the maintenance.on file to make sure the homepage goes back to normal

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • CircleCi tests are passing
  • Ready to merge

…nance.on file in the maintenance_mode/ directory
@ObadaS
Copy link
Collaborator Author

ObadaS commented Mar 27, 2025

@Didayolo We can use this to deploy the next update instead of shutting down Caddy. At least like this, people can see that the site is on maintenance instead of just having a generic "Bad Gateway" message

@Didayolo Didayolo self-assigned this Mar 27, 2025
@Didayolo
Copy link
Member

@ObadaS We need to document this in the Wiki

@ObadaS
Copy link
Collaborator Author

ObadaS commented Mar 27, 2025

Yes, I will update the wiki page for Administrators to explain this feature and show how to use it.

@Didayolo
Copy link
Member

Didayolo commented Apr 8, 2025

@ObadaS

J'ai essayé d'ajouter sur maintenance.html:

  • une image "offline.png" pour donner un peu de style
  • mettre le favicon de la plateforme

Cependant ça ne fonctionne pas, je pense que quelque chose m'échappe dans la gestion des chemins par le Caddyfile.

Une idée ?

@Didayolo Didayolo changed the title Maintenance mode option added in Caddyfile, used by creating a mainenance.on file in the maintenance_mode/ directory Maintenance mode option added in Caddyfile, used by creating a maintenance.on file in the maintenance_mode/ directory Apr 8, 2025
@ObadaS
Copy link
Collaborator Author

ObadaS commented Apr 9, 2025

@Didayolo I have fixed the problem.
try_files was not allowing any other files to be loaded (so offline.png was not usable). I changed the caddy directive to redir (a redirect) to allow other files to be loaded at the same time as the maintenance.html file.

@Didayolo Didayolo merged commit 914f5e3 into develop Apr 9, 2025
1 check passed
@Didayolo Didayolo deleted the maintenance_mode branch April 9, 2025 09:37
curious-broccoli added a commit to curious-broccoli/codabench that referenced this pull request May 27, 2025
* show server error instead of fronend parsing error

* show back button in edit only. Show help in create only

* do not allow special chars in usernames

* Enable/Disable competition forum (codalab#1774)

* forum enable/disable functionality added

* new forum_enabled field added to competition dump data

* Email in lowercase (codalab#1769)

* on signup email stored in lower case letters. Whitelist emails conveted to lowercased

* whitespace removed

* convert email to lowercased during login

* latest competition fields added to dump (codalab#1786)

Co-authored-by: Adrien Pavão <adrien.pavao@gmail.com>

* User quota is updated to GB from Bytes (codalab#1749)

* user assigned quota will now be in GB instead of bytes

* unused counter removed

* File Sizes cleanup (codalab#1752)

* sizes Kib to Bytes, size formatting functions cleanup

* space between size and unit, removed factor multiplication from size calcualtion

* file_size to bytes in SubmissionDetail

* added missing migration

* migration conflict resolved

* reseting file sizes task removed

* Resource interface: quota unit is now GB instead of B

* Create CODE_OF_CONDUCT.md

* Added log rolling to limit log size to 5GB for now, can be changed

* Maintenance mode option added in Caddyfile, used by creating a maintenance.on file in the maintenance_mode/ directory (codalab#1799)

* Maintenance mode option added in Caddyfile, used by creating a maintenance.on file in the maintenance_mode/ directory

* Add offline.png

* Fixed image not loading

---------

Co-authored-by: Obada Haddad <obada.haddad@lisn.fr>
Co-authored-by: didayolo <adrien.pavao@gmail.com>

* Update version.json for release 1.18.0

* Add remove button for cancelled submissions (codalab#1808)

* Add remove button for cancelled submissions

* Allow remove of cancelled submissions

* Update compute_worker.py

* Add permissions check for bulk download

* flake8 fix

* Add hide_score_output option (codalab#1838)

* Add hide_score_output option

* Update test

* Add the options for v1 bundles

* Make more generic tests (v1, v2)

* version update workflow removed

* Add hide_prediction_output feature

* Calendar lock fixed, additional check added for start and end date

* Simplify code

* Version bump

* Removed time and updated date to today

---------

Co-authored-by: Ihsan Ullah <ihsan2131@gmail.com>
Co-authored-by: Adrien Pavão <adrien.pavao@gmail.com>
Co-authored-by: Obada Haddad <obada.haddad@lisn.fr>
Co-authored-by: Obada Haddad-Soussac <11889208+ObadaS@users.noreply.github.com>
Co-authored-by: GitHub Actions <actions@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants