medal-data:administrator-guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
medal-data:administrator-guide [2022/04/11 09:36] – Sylvain | medal-data:administrator-guide [2022/05/19 11:45] (current) – [Assign a role to a user] Sylvain | ||
---|---|---|---|
Line 24: | Line 24: | ||
It may happen that some users do not have two-factor authentication enabled on their account (mainly due to accounts created before the medAL-// | It may happen that some users do not have two-factor authentication enabled on their account (mainly due to accounts created before the medAL-// | ||
< | < | ||
- | php artisan 2fa: | + | sudo dokku enter < |
</ | </ | ||
, and confirm by typing '' | , and confirm by typing '' | ||
Line 35: | Line 35: | ||
To refresh a new two-factor authentication secret for a given user, follow these steps: | To refresh a new two-factor authentication secret for a given user, follow these steps: | ||
- Run the command: \\ < | - Run the command: \\ < | ||
- | php artisan 2fa: | + | sudo dokku enter < |
</ | </ | ||
- Enter the user's email address and press //Enter//. | - Enter the user's email address and press //Enter//. | ||
Line 55: | Line 55: | ||
- Click on '' | - Click on '' | ||
- | === Repair the database permission === | + | ==== Repair the database permission |
If you are missing permissions or if some permissions are not assigned to the right role. Or if some items are missing in the left menu. Run the command: | If you are missing permissions or if some permissions are not assigned to the right role. Or if some items are missing in the left menu. Run the command: | ||
< | < | ||
- | php artisan permission: | + | sudo dokku enter < |
</ | </ | ||
- | === Update of the algorithm | + | ==== Update of the algorithm |
If for some reason you find that the algorithm used by the tablets is not up to date. Run the command: | If for some reason you find that the algorithm used by the tablets is not up to date. Run the command: | ||
< | < | ||
- | php artisan HealthFacilitiesAlgo: | + | sudo dokku enter < |
- | php artisan update: | + | sudo dokku enter < |
</ | </ | ||
- | === production.ERROR: | + | ==== production.ERROR: |
If you spot this error in the log file, then you should run the command : | If you spot this error in the log file, then you should run the command : | ||
< | < | ||
- | php artisan json: | + | sudo dokku enter < |
</ | </ | ||
and then reload the failed json and confirm that it is now imported with : | and then reload the failed json and confirm that it is now imported with : | ||
< | < | ||
- | php artisan cases: | + | sudo dokku enter < |
</ | </ | ||
- | === The export date is not the current date === | + | ==== The export date is not the current date |
First we need to know why the export didn't work. For that open the log file at 03:20AM and communicate the error. | First we need to know why the export didn't work. For that open the log file at 03:20AM and communicate the error. | ||
To launch manually the export, run this command : | To launch manually the export, run this command : | ||
< | < | ||
- | php artisan export: | + | sudo dokku enter < |
</ | </ | ||
- | === Json Failure Folder Not Empty === | + | ==== JSON Failure Folder Not Empty ==== |
If you have some JSON inside the Failed Folder table, then please retrieve the error in the log file. You can search with the JSON file name. Share with us the error. | If you have some JSON inside the Failed Folder table, then please retrieve the error in the log file. You can search with the JSON file name. Share with us the error. | ||
- | When we have corrected the issue, then you can reload the failed folder with this commmand: | + | When we have corrected the issue, then you can reload the failed folder with this command: |
< | < | ||
- | php artisan cases: | + | sudo dokku enter < |
+ | </ | ||
+ | |||
+ | ==== Some Examples ==== | ||
+ | |||
+ | === Count the number of medical cases which are not yet synchronize with REDCap inside the PostgreSQL database === | ||
+ | <code bash> | ||
+ | dokku postgres: | ||
+ | </ | ||
+ | |||
+ | === Retrieve environment variable === | ||
+ | [[https:// | ||
+ | <code bash> | ||
+ | # Example to retrieve all environment variable | ||
+ | sudo dokku config:show < | ||
+ | # Example to retrieve CREATOR_ALGORITHM_URL environment variable | ||
+ | sudo dokku < | ||
+ | </ | ||
+ | |||
+ | === Set a environment variable === | ||
+ | <code bash> | ||
+ | sudo dokku config:set < | ||
+ | # You can also add the --no-restart flag to set STUDY_ID environment variable without restarting the app | ||
+ | sudo dokku config:set < | ||
</ | </ |
medal-data/administrator-guide.1649662563.txt.gz · Last modified: 2022/04/11 09:36 by Sylvain