You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/developer/development_instructions/automated_grading.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,12 +118,14 @@ number:
118
118
119
119
---
120
120
121
-
## Debugging
121
+
## Debugging
122
122
123
123
To debug new features for autograding, it can be helpful to run
124
124
`submitty_autograding_shipper.py` and `submitty_autograding_worker.py`
125
125
interactively and inspect the output.
126
126
127
+
_NOTE: A cron job runs hourly to detect autograding shipper outages on the primary machine. To avoid interference during debugging, this job should be disabled before proceeding. See [Capture Cron Error Messages](/sysadmin/installation/system_customization#capture-cron-error-messages) for instructions on disabling the script._
128
+
127
129
To do this:
128
130
129
131
1. Stop the daemons (on each server, as appropriate)
Copy file name to clipboardExpand all lines: _docs/developer/testing/install_php.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ you will need to have PHP installed on your host machine first.
8
8
9
9
### Linux & WSL:
10
10
11
-
*If you're distro cannot find the correct package or installs the wrong version you may have to specify php7.0 in each package name*
11
+
*If you're distro cannot find the correct package or installs the wrong version you may have to specify php8.1 in each package name*
12
12
13
13
```bash
14
14
sudo apt-get update
@@ -23,6 +23,10 @@ If you are missing extensions you can install them with `PECL` which will be
23
23
installed automatically with PHP, but you should have everything required by
24
24
default.
25
25
26
+
### Windows
27
+
28
+
Download [php 8.1](https://windows.php.net/download/) as a zip file under the thread safe category. Then extract the contents of the zip to a folder, and add the path to that folder to your path system variable. It's suggested that one extracts the contents of the zip to a folder called `php`, which can be put at `C:\php` for simplicity. You can then add `C:\php` to your path system environment variable.
29
+
26
30
-------------
27
31
28
32
Verify you have PHP installed correctly, submitty requires a version greater than 7.0
Copy file name to clipboardExpand all lines: _docs/sysadmin/installation/system_customization.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,25 @@ You may want to back up more of `/var/local/submitty` to save configurations and
28
28
29
29
## Capture cron error messages
30
30
31
-
The `submitty_daemon` user runs the [sbin/send_email.py](https://github.com/Submitty/Submitty/blob/master/sbin/send_email.py)
32
-
script. Console output from this script can be emailed to a sysadmin to help ensure that errors can be reported and addressed.
31
+
To ensure the reliability of the various Submitty services, such as the WebSocket server, their health status is monitored and restarted hourly via the [sbin/repair_services.sh](https://github.com/Submitty/Submitty/blob/master/sbin/repair_services.sh) script run by the `submitty_daemon` user. This script leverages `systemctl` along with various health-check utility scripts to verify the active state of these services, triggering a restart if an inactive state is detected.
33
32
34
-
The first line should be set as `MAILTO=` with a valid email address. For example:
33
+
Service failures can occur for various reasons, including unhandled exceptions, memory leaks, port binding issues, or OS-level disruptions such as resource exhaustion. All failures are logged with their relevant timestamp, source, and last output within the `/var/log/services` directory for the given day in the format `YYYYMMDD.txt`.
34
+
35
+
To disable this auto-repair mechanism, comment out the relevant line in the source `.setup/submitty_crontab` file within your repository. Since the crontab is auto-generated during installation, any changes must be followed by a re-run of `submitty_install` to persist them.
36
+
37
+
```bash
38
+
# In .setup/submitty_crontab, comment out the repair_services.sh line:
_Note: This mechanism should only be disabled with caution in production environments._
46
+
47
+
The `submitty_daemon` user runs a variety of other scripts, such as [sbin/send_email.py](https://github.com/Submitty/Submitty/blob/master/sbin/send_email.py) to send pending emails every minute. Console output from these scripts can be emailed to a sysadmin to help ensure that errors can be reported and addressed.
48
+
49
+
The first line of the relevant script should be set as `MAILTO=` with a valid email address, as shown below.
0 commit comments