CIF Processing: Difference between revisions
Line 36: | Line 36: | ||
* At the prompt, enter the following commands: | * At the prompt, enter the following commands: | ||
1. <code><user>@acumen-app-server:~$ cd ~/dockerise/</code> | ::1. <code><user>@acumen-app-server:~$ cd ~/dockerise/</code> | ||
2. <code><user>@acumen-app-server:~$ docker exec -ti dockerise_mysql_1 mysql -u tms_user -p</code> | ::2. <code><user>@acumen-app-server:~$ docker exec -ti dockerise_mysql_1 mysql -u tms_user -p</code> | ||
When prompted, enter the password: | ::When prompted, enter the password: | ||
3. <code>Enter password: <password></code> | ::3. <code>Enter password: <password></code> | ||
At the database prompt, enter the following commands: | ::At the database prompt, enter the following commands: | ||
4. <code>MariaDB [(none)]> USE cif_record;</code> | ::4. <code>MariaDB [(none)]> USE cif_record;</code> | ||
5. <code>MariaDB [(none)]> SELECT * FROM tbl_header;</code> | ::5. <code>MariaDB [(none)]> SELECT * FROM tbl_header;</code> |
Revision as of 15:56, 7 July 2020
Application servers connect to the NR PPTE (Network Rail - Pre Production Test Environment) to download the POINTA CIF.
Container Logs
As described in the Data Feeds section, the full CIF is taken and processed at initialisation and an incremental CIF is taken and processed at 01:00 Hrs each morning.
The service that obtains and processes the CIF is ran via a cron job and once the CIF is processed, the container stops running; despite this, Administrators can view the last container log entry thus:
- Start an ssh session to the relevant application server;
- At the prompt, enter the following commands:
<user>@acumen-app-server:~$ cd ~/dockerise/
<user>@acumen-app-server:~$ docker-compose logs download_cif
If there were any issues in downloading and processing the CIF, there would be a corresponding entry in the container logs.
Application Logs
To browse the application logs, follow the following steps:
- Identify the ip address of the server in the Administration page;
- Browse to the following url: http://<ip address>:8080/logs/download_cif/
There are numerous logs available that are of interest - the main ones being:
- download_pointa_cif.log;
- extract_cif.log;
- post_processing.log;
- assoc_post_processing.log.
Should any error messages or other log entries of concern be identified, Administrators are requested to update the support ticket with the details.
Check CIF Records in Database
- Start an ssh session to the relevant application server;
- At the prompt, enter the following commands:
- 1.
<user>@acumen-app-server:~$ cd ~/dockerise/
- 1.
- 2.
<user>@acumen-app-server:~$ docker exec -ti dockerise_mysql_1 mysql -u tms_user -p
- 2.
- When prompted, enter the password:
- 3.
Enter password: <password>
- 3.
- At the database prompt, enter the following commands:
- 4.
MariaDB [(none)]> USE cif_record;
- 4.
- 5.
MariaDB [(none)]> SELECT * FROM tbl_header;
- 5.