-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Documentation:Developer] Reorganize troubleshooting #565
Changes from 7 commits
2693637
0160ff0
c4c9ca5
5a610dc
2e00a55
de7a495
a000a39
601fb9d
a49fc87
7fa9534
623cad3
b98d252
608d394
2a13d61
535b58c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ complicated and expensive steps at the bottom of the page._ | |
|
||
Please also see [Installation Version Notes](/sysadmin/installation/version_notes) | ||
|
||
Please also see [Re-Installation Troubleshooting](/developer/troubleshooting/reinstallation_troubleshooting) | ||
|
||
--- | ||
|
||
|
@@ -204,133 +205,6 @@ autograding configuration, you'll probably need to: | |
|
||
--- | ||
|
||
## System Clock Testing & Troubleshooting | ||
|
||
* If the VM has a clock skew (incorrect time) | ||
|
||
``` | ||
sudo service ntp stop | ||
sudo ntpd -gq | ||
sudo service ntp start | ||
``` | ||
|
||
|
||
* If you need to test time and/or date dependent elements, you can | ||
change it in the vagrant machine so you don't have to wait. To | ||
remove the syncing and set your own time: | ||
|
||
``` | ||
sudo systemctl disable ntp | ||
timedatectl set-ntp 0 | ||
sudo date -s "<year>-<month>-<day> <hour>:<minute>:<seconds> | ||
``` | ||
|
||
To check the date, helpful to make sure the date and time you set has stuck: | ||
|
||
``` | ||
date | ||
``` | ||
|
||
To sync back with the current time: | ||
|
||
``` | ||
sudo systemctl enable ntp | ||
timedatectl set-ntp 1 | ||
``` | ||
|
||
--- | ||
|
||
## System Re-Configuration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but the instructions for teting changes to configure_submitty.py & etc should stay here |
||
|
||
If recent development changes include modifications to files affecting | ||
the system installation process (e.g., changes to | ||
`CONFIGURE_SUBMITTY.py`, `install_system.sh`, `Vagrantfile`), you will | ||
need to either re-provision or re-build your VM from scratch to test | ||
these changes. | ||
|
||
* To re-run the initial configuration step of Submitty, use this command: | ||
|
||
``` | ||
sudo python3 /usr/local/submitty/GIT_CHECKOUT/Submitty/.setup/CONFIGURE_SUBMITTY.py | ||
``` | ||
|
||
* To update existing databases: | ||
|
||
``` | ||
sudo python3 /usr/local/submitty/GIT_CHECKOUT/Submitty/.setup/update_database.py | ||
``` | ||
|
||
|
||
--- | ||
|
||
## Re-Creating All Sample Course Data | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and the instructions for rebuilding sample course data should stay here |
||
|
||
* If you've changed the script to create a new course | ||
(`create_course.sh`), or the schema for the master database | ||
(`submitty_db.sql`), or the schema for the course databases | ||
(`course_tables.sql`), or you changed student/gradeable data | ||
we need to delete all courses and recreate | ||
the course databases, users, and sample submission uploads. | ||
|
||
_NOTE: Make sure you are not be connected to any DBs (e.g., through | ||
pgAdmin) or else running the below scripts could put things into a | ||
broken state._ | ||
|
||
Run this command: | ||
|
||
``` | ||
sudo bash /usr/local/submitty/GIT_CHECKOUT/Submitty/.setup/bin/recreate_sample_courses.sh | ||
``` | ||
|
||
You can append the `--no_submissions` flag to the above command to | ||
skip creation of any sample submission data in the sample courses. | ||
This will accelerate the completion of this command, but you will be | ||
missing the hundreds of sample student submissions present in the | ||
full installation. | ||
|
||
|
||
NOTE: This command will also have to be run twice a year on July 1st and January 1st when the test semester will change from fall to spring or vice versa. | ||
|
||
|
||
See also: [Sample Course Data](/developer/development_instructions/sample_data) | ||
|
||
--- | ||
|
||
## Complete System Re-Installation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and system re-installation instructions should stay here |
||
|
||
* To re-provision your VM, exit the VM, and from a terminal your host | ||
machine within the Submitty GIT repository type: | ||
|
||
``` | ||
vagrant reload --provision | ||
``` | ||
|
||
Or if the VM is not already running: | ||
|
||
``` | ||
vagrant up --provision | ||
``` | ||
|
||
This is will be faster than doing a full `destroy`/`up`, however | ||
depending on the changes you've done to the VM, could leave it | ||
potentially unstable. | ||
|
||
* Alternatively, re-build your VM from scratch: | ||
|
||
``` | ||
vagrant destroy | ||
vagrant up | ||
``` | ||
|
||
_NOTE: This process will take a bit of time (45 minutes or more), | ||
and requires an internet connection. It will delete any assignments | ||
you've uploaded to your VM installation. And it will erase any | ||
files you have created/edited within your VM that are not part of | ||
the shared directory of the Submitty working repository. It will | ||
also destroy the databases, and any grading configuration or grading | ||
work that has been done._ | ||
|
||
--- | ||
|
||
## Virtual Machine Recovery using Snapshots | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,5 +72,4 @@ You may also need to edit test cases in Cypress, Selenium, etc. | |
|
||
--- | ||
|
||
See also: [Re-Creating All Sample Course Data](/developer/development_instructions/index#re-creating-all-sample-course-data) | ||
|
||
See also: [Re-Creating All Sample Course Data](/developer/troubleshooting/reinstallation_troubleshooting) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so we will revert this change |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree with moving the system clock troubleshooting to another file