Table of Contents |
---|
System Profile
...
Table of Contents |
---|
System Profile
System Full Name | Canadian Port State Control System |
Product Owner(s) | Bill Henderson |
Business Owner | Naim Nazha |
Technology Assessment
Database Platform and Version | Oracle 18c |
Development Language and Framework | Classic ASP Javascript HTML Visual Basic 6 (COM) Fytek PDF Writer DLL |
Operating System and Version | Windows Server 2016 |
Environment Access Information
DEV
User (admin): greenj
Pass: See RDIMS #13232403
...
- CPSCS-INNAV web service: http://wwwappsmssdev/Saf-Sec-Sur/4/tc-cpscs-ws/service.asmx (used for internal testing only - does not communicate with INNAV)
- CPSCS-THETIS web service: http://wwwappsmssdev/saf-sec-sur/4/cpscs-ws/service.asmx (which communicates with THETIS pre-prod site - https://portal-pp.emsa.europa.eu/)
- CPSCS-APCIS web service: http://wwwappsmssdev/saf-sec-sur/4/cpscs-apcis-ws/apcisproxyws.asmx (which communicates with APCIS test site - https://apcis.tmou.org/APCIS-TEST/)
ACC
User (admin): greenj
Pass: See RDIMS #13232403
...
- CPSCS-INNAV web service: https://wwwappstest/Saf-Sec-Sur/4/tc-cpscs-ws/service.asmx (used for internal testing only - does not communicate with INNAV)
- CPSCS-THETIS web service: https://wwwappstest/saf-sec-sur/4/cpscs-ws/service.asmx (which communicates with THETIS pre-prod site - https://portal-pp.emsa.europa.eu/)
- CPSCS-APCIS web service: https://wwwappstest/saf-sec-sur/4/cpscs-apcis-ws/apcisproxyws.asmx (which communicates with APCIS test site - https://apcis.tmou.org/APCIS-TEST/)
PROD
User (admin): greenj
Pass: See RDIMS #13232403
...
- CPSCS-INNAV web service: https://wwwapps.tc.gc.ca/Saf-Sec-Sur/4/tc-cpscs-ws/service.asmx (used for internal testing only - does not communicate with INNAV)
- CPSCS-THETIS web service: https://wwwapps.tc.gc.ca/saf-sec-sur/4/cpscs-ws/service.asmx (which communicates with THETIS production site - https://portal.emsa.europa.eu/)
- CPSCS-APCIS web service: https://wwwapps.tc.gc.ca/saf-sec-sur/4/cpscs-apcis-ws/apcisproxyws.asmx (which communicates with APCIS production site - https://apcis.tmou.org)
Source Code:
Dev
...
:
System
Overview
<…either point to some document or put some info / diagram here>
Good To Know
Installation of new THETIS certificate
...
- Ask Web Group to create a valid CSR that can be sent to EMSA. This CSR is used by EMSA to generate a new certificate to allow communication with THETIS.
- Send the CSR to EMSA along with any provided forms filled out in conjunction with the CPSCS business owner.
- EMSA will create a signed digital certificate (*.pem) and send that back to the CPSCS business owners.
- Send the PEM file to the Web Group and ask them to use the PEM file to generate the PFX file.
- Using the PFX file, the certificate can be installed on the appropriate servers. Be sure to refer to "CPSCS - <NO IM> - CPSCS-THETIS web service cannot access THETIS web service" below for further instructions when installing the certificate on the server. Long story short: explicit permission must be given to the app pool requesting to use the certificate for communication with THETIS.
- Ask the Web Group to install the certificate on ACC servers (wwwappstest).
- Ask the Web Group to send us the PFX file and password so that we can install the certificate on the appropriate dev server (hosting the CPSCS-THETIS web service).
- Note: latest certificates for CPSCS-THETIS web service can be found in the following directory and subdirectories: \\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates.
Test Vessel
When performing testing, particularly in production, care must be taken to avoid corrupting or polluting the CPSCS database. Testing is generally performed using the Douglas Bay (or Douglas Bay - Test) vessel - IMO number 7411636. This vessel and its inspections are ignored in reporting - and should be ignored if you are creating new reports for the CPSCS stakeholders.
If you need an account for user testing, you should log into the CPSCS web application as an admin user (see RDIMS #13232403) to locate a test user account. When in doubt, contact the client admin to identify a good account to use for testing.
Log Files
Log files for CPSCS and its associated web services and can be found in the following locations:
...
Testing: Inspection Types
When creating test inspections, it is best to stick with the following inspection types:
...
All other inspection types may result in testing issues and are not compatible with THETIS and APCIS (as of October 2019).
Testing: Operational Controls
Please note that operational controls can not be selected for Initial inspections. In addition, changing the inspection type to Initial will clear all currently selected operational controls associated with the inspection you are working with on the CPSCS web site.
How-To and Fixes
CPSCS - IM295914 - PAC - NADKARC - urgent - CPSCS Inspection creation (submission) error
Problem: Client got an error trying to submit a saved inspection:
...
CPSCS - <NO IM> - CPSCS-THETIS web service cannot access THETIS web service
Problem:
On calling the thetis webservice this error is returned: [GetShipParticulars Error] Unexpected error has occured: '(5): The request was aborted: Could not create SSL/TLS secure channel.
...
- Start - Run "mmc".
- Add snap-ins for Certificates: My User and Computer LocalComputer Account.
- For both My User and Local Computer Account:
- Right-click Personal - All Tasks - Import.
- Browse and select "cpscs-ws.tc.gc.ca.pfx".Password can be found here: \\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates\March 2018\Certificate Installation Instruction.txt
- Web team will provide you the password
- Next right-click Intermediate Certificate Authorities - All Tasks - Import.
- Browse and select emsa-prod.ca-bundle.cer and install to Intermediate Certificates.
- Look under the Intermediate Certificates and double-click on the MarApps Production Intermediate - SHA256 certificate.
- Open the Certification Path tab and double-click on the EMSA Root CA certificate.
- Install this certificate to the Trusted Root Certification Authorities.> All Tasks> Manage Private Keys
- Add 'iis apppool\cpscs-ws'
- That should be it. Test the certificate by running the web service
To grant access:
- Use elevated powershell to find the Guid key for this certificate inC:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\
- $Cert = Get-Item Cert:\LocalMachine\My\<Thumbprint of Certificate>
- $Cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
<Thumbprint of Certificate> can be found from MMC: Certificates(Local Computer)->Personal->Certificates->cpscs-ws.tc.gc.ca
In Certificate property window, it’s at the bottom of the Details tab
If a key is not returned, the certificate may not have been properly installed and need to be reinstalled.
- Full path to key is C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\<key returned>
- To to grant access, run following with key returned:
ICACLS <Full path to key> "IIS AppPool\CPSCS-Thetis:R"
Info from DOS:
...
- Install Certificate in Dev LocalMachine
- Instructions located here:\\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates\March 2018
- If this certificate is not installed, you'll get: Unexpected error has occured: '(91): Object reference not set to an instance of an object. when service is called.
- It is possible for a certificate to exist in MMC console but missing a file entry in C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
- Find certificate path using tool FindPrivateKey.exe
- Copy the tool FindPrivateKey.exe from\\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates\March 2018 to a location on Dev server
- open command prompt as administrator, navigate to location of tool.
- Run command: FindPrivateKey.exe My LocalMachine -n "MarApps Production Intermediate - SHA256" -a
- Copy and save the result: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\ff85bd97ae6a76c3dcbc4925e3eb6ca3_518d76a8-4ded-49de-b4a9-d981cc355562
- Use ICALS to grant IIS AppPool access to the .cer file, with path:
- ICACLS C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\ff85bd97ae6a76c3dcbc4925e3eb6ca3_518d76a8-4ded-49de-b4a9-d981cc355562 /grant "IIS AppPool\CPSCS-Thetis:R"
- Confirm result: Successfully processed 1 files; Failed processing 0 files
...
$Cert = Get-Item Cert:\LocalMachine\My\<Thumbprint of Certificate>
$Cert.PrivateKey.CspKeyContainerInfo.UniqueKeyContainerName
Where <Thumbprint of Certificate> can be found from MMC: Certificates(Local Computer)->Personal->Certificates->cpscs-ws.tc.gc.ca
In Certificate property window, it’s at the bottom of the Details tab. See attached image.
If a key is not returned, the certificate may not have been properly installed.
Right click and delete it from the console. Install the certificate again. Instructions can be found here:
Once the certificate is installed, this command should be able to return a full path to the key:
FindPrivateKey.exe My LocalMachine -n "MarApps Production Intermediate - SHA256" -a
To to grant access, run following with key returned:
ICACLS <Full path to key> "IIS AppPool\CPSCS-Thetis:R"
- Install Certificate in Prod LocalMachine
- Instructions located here:\\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates\March 2018
- If this certificate is not installed, you'll get: Unexpected error has occured: '(91): Object reference not set to an instance of an object. when service is called.
- Find certificate path using tool FindPrivateKey.exe
- Copy the tool FindPrivateKey.exe from\\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\THETIS\Certificates\March 2018 to a location on server
- open command prompt as administrator, navigate to location of tool.
- Run command: FindPrivateKey.exe My LocalMachine -n "MarApps Production Intermediate - SHA256" -a
- Copy and save the result: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\ff85bd97ae6a76c3dcbc4925e3eb6ca3_518d76a8-4ded-49de-b4a9-d981cc355562
- Use ICALS to grant IIS AppPool access to the .cer file, with path:
- ICACLS C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\ff85bd97ae6a76c3dcbc4925e3eb6ca3_518d76a8-4ded-49de-b4a9-d981cc355562 /grant "IIS AppPool\CPSCS-Thetis":R
- Confirm result: Successfully processed 1 files; Failed processing 0 files
Error: Call Sign must confirm to Basic and ITU data validation standards
Problem:
On updating Vessel Tombstone page user getting error, Call Sign must confirm to Basic and ITU data validation standards, for the call sign J8QY1.
...
THETIS Export Error: Invalid Procedure Call or argument
Problem:
While user export the inspection to THETIS its throwing error Invalid Procedure Call or argument. Issue occurs only if no deficiency has been reported in the inspection.
...
CPSCS-IM287825-NCR - Tower C 10-D125 -JONESSI- CPSCS glitch - ORIENT SKY (IMO 9792022)
Problem:
- 0 of 1 inspections successfully sent to THETIS
- Inspection ID 731326: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Deficiencies: ISM deficiency 15150 - ISM but no deficiency marked as ISM Related (IMO: 9792022)
...
- 0 of 1 inspections successfully sent to THETIS
- Inspection ID 731326: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Deficiencies: ISM deficiency 15150 - ISM but no deficiency marked as ISM Related (IMO: 9792022)
CIC Questionnaire Glitch: when NO or N/A is selected as answer its not saving
Problem:
While adding new inspection if user select No or N/A as the answer of CIC Questionnaire, the info doesn't save.
...
- Login to the CPSCS Production as Admin user.
- From the Menu Select Admin
- Click on the Questionnaire Button from the left panel.
- Click on the Action button for CIC on Emergency Systems and Procedures which populate the cic questions.
- Here, the issue is with the first question. Click on modify Action Button.
- For the "Possible values if you selected radio buttons " there is a space between the answers. i.e. YES; NO; N/A
- Remove the spaces, Click Update and checked in the inspection. Now its showing the option N/A is selected.
- Because of the space the correct data was not retrieved and selection was not populated.
- Send email to the user about resolution.
APCIS Export Error A.IE.2: : Conversion failed when converting date and/or time from character string.
Problem:
The inspection could not be exported to APCIS and giving APCIS Export Error A.IE.2: Conversion failed when converting date and/or time from character string. (IMO: 9433315)<br />WARNING: Certificate code 524 is not a valid APCIS certificate.
...
THETIS Export Error: Deficiencies: value of Default Description is not valid
Problem:
The inspection could not be exported to THETIS because Deficiencies: value of Default Description is not valid (IMO:XXXXXXX)
...
CPSCS :APCIS webservice Ro Related Detainable Defects Bug
Problem:
On exporting detention inspection to APCIS, its sending RO related deficiencies even though inspector has not selected RO related deficiency.
...
from vessel where vessel_id = 743759
from vessel where vessel_id = 743759
APCIS Export Error: APCIS asking for certificate which is not on the inspection report
Problem:
The inspection could not be exported to APCIS because APCIS asking for certificate 530 when there is no Code 530 certificate in the inspection report.
...
- Login as CPSCS admin and search for IMO 9794680. From the URL get the inspection id = 729870
- SELECTsct.title_id,sct.code,sct.english_valueFROMs_certificate_title sct,certificates cWHEREc.title_id = sct.title_idAND c.inspection_id = 729870;
- The result contains certificate 530 Civil Liability for Oil Pollution Damage. Title_ID=600126
- select * from certificates where title_id = 600126 and inspection_id = 729870;
- Check the date of Inspection.
- select DATE_OF_INSPECTION from inspection where inspection_id = 729870;
- So here date of issue is after date of first visit. Lets search for the certificate where issue date is higher than date of inspection.
- SELECTc.certificate_id,c.title_id,c.date_issued,i.date_of_inspection,sct.title_id,sct.code,sct.english_valueFROMcertificates c,inspection i,s_certificate_title sctWHEREc.inspection_id = i.inspection_idAND c.date_issued > i.date_of_inspectionAND c.title_id = sct.title_idAND i.inspection_id = 729870;
- These both certificates are not showing up on the inspection report. Lets reset the date and inform the client to correct the date of certificate issue.
- update certificates set date_issued = to_date('2019-01-01','YYYY-MM-DD') where certificate_id in(904712,904713);
commit; - Now verify both the certificates are shows up in CPSCS (https://wwwapps2.tc.gc.ca/saf-sec-sur/4/cpscs-scepc).
Multiple issues, one after the other was fixed:
Problem:
- 0 of 1 inspections successfully sent to APCIS<br /><hr width="100%">Inspection ID 729507: ERROR: APCIS Export Error A.IE.2: Inspection Actions shall not be empty (IMO: 9283538)<br />WARNING: Certificate code 526 is not a valid APCIS certificate. (IMO: 9283538)
- 0 of 1 inspections successfully sent to APCIS<br /><hr width="100%">Inspection ID 729507: ERROR: APCIS Export Error A.IE.2: Invalid Deficiency Convention Code '5001' shall not according code deficiency '1209' (IMO: 9283538)
- 0 of 1 inspections successfully sent to APCIS<br /><hr width="100%">Inspection ID 729507: ERROR: APCIS Export Error A.IE.2: There are more than one certificate with code '510' (IMO: 9283538)
...
Get all the deficiencies and their associated default descriptions
Solution:
...
CPSCS: Duplicate MMSI Numbers.
Problem:
Client want to change the MMSI number to 371518000 for vessel SALINAS, IMO 9805324. But MMSI 371518000 is already using by some other vessel.
...
CPSCS: Export Error - THETIS certificates [DOS 2267]
Problem:
Client gets and invalid certificate error when exporting to THETIS:
...
THETIS export issue: THETIS Export Error T.IE.5: Deficiencies: The Convention SOLAS ch. II-1 Parts C, D, E, F is not valid for deficiency 04111- Damage control plan
Problem:
Client encounters an issue when attempting to export an inspection to THETIS. Error code T.IE.5 (convention issue).
...
- Let's get the inspection ID from the CSPCS Web site and Login as Admin.
- Go to Vetting - Export Queue. Look for IMO 9397858 under THETIS heading and click on the inspection..
- Grab the inspection id from the URL. Here IID=729867
- Check all the conventions associated with inspection ID 729867:
- SELECTsdc.code DEFCODE,sdc.thetis_cd,sc.convention_id,sc.english_value Convention,sc.reference Reference,sc.thetis_cd Con_Thetis_CdFROMdeficiency d,s_deficiency_code sdc,s_convention scWHEREd.inspection_id = 729867AND d.def_code_id = sdc.def_code_idAND sc.convention_id=d.convention_id;
- For the deficiency 04111 the convention_id 2117 and THETIS_CODE=01022, Convention Detail= SOLAS ch. II-1, Reference=SOLAS CHII-1 Reg 19.
- Let's check for this code in \\tc4s0b\Groups\ MS_APPS\CPSCS\CODE EXTRACTS\THETIS\JULY 4 2019 (PROD)\Conventions.xls does the code refers to correct description.
- In the Convention table the description is The Convention SOLAS ch. II-1 Parts C, D, E, F refers to THETIS CODE 01022 .
- Now lets check the deficiency exist for thetis_code 01022.
- Select def_code_id,english_value from s_convention where thetis_cd = '01022' and def_code_id='04111';
- The result shows the there is no record found.
- The Inspection has SOLAS ch. II-1 selected. Let's check how many times this convention is used? Convention_Id=2117
- select * from deficiency where convention_id=2117;
- Result shows this convention is used two times.
- SOLAS 06 Amend / II-1 / Reg. 19 (IID=724131, Date_Created=19-02-21)
SOLAS 89/90 Amend / II-1 / Reg. 23-1 (IID=729867, Date_Created=19-08-01) - 724131 was inspected in February. Was this sent to THETIS? Yes.
- What conventions are valid for deficiency code 04111?
- Check \\tc4s0b\Groups\AFCCB\MS_APPS\CPSCS\THETIS\Paris MoU Deficiencies 01112016.pdf
- According to that document, only SOLAS ch. II-1 Parts A, A-1, B, B-1,B-2, B-3, B-4 is valid. This maps to THETIS_CODE 01021.
- def_code_id = 245 (select def_code_id from s_deficiency_code where code=04111;)
- Can we change the convention_id for 245? How many times is 245 used?
- select * from deficiency where def_code_id = 245;
Used a lot. Convention reference (Paris MoU Deficiencies 01112016.pdf) is dated 2016. When were the deficiencies (245) recorded?
select * from inspection i, deficiency d where d.def_code_id = 245 and d.inspection_id = i.inspection_id;
Three inspections recorded after 2016: 729867,724812,724131
- To fix this issue, we need to change the mapping in s_convention:(But after consulting with Product owner)
- update s_convention set thetis_cd='01021', apcis_cd='01021' where convention_id = 2117;
commit; - Received confirmation from the client so lets apply the above query.
THETIS export issue: THETIS Export Error T.IE.5: Statutory Certificates: value of Title is not valid
Problem:
Client encounters an issue when attempting to export an inspection to THETIS (or APCIS). Error code T.IE.5 (certificate title issue).
...
- Go to https://portal.emsa.europa.eu/login.html
- Login using the username/password to access the EMSA THETIS portal. Credentials found in RDIMS 13232403: see the Prod App Credentials for the CPSCS-THETIS WS.
- Using the menu towards the top of the screen, click Portals - THETIS - Homepage.
- Click "Documents" in the menu bar.
- Click the "Code Extracts" link.
- Click the "Background Tables DDMMYYYY.zip" link. The associated date in the link changes monthly to reflect the current codes in use by THETIS.
- Click the Download link.
- Extract the download ZIP file to a new CODE EXTRACT folder: \\tc4s0b\groups\afccb\ms_apps\cpscs\CODE EXTRACTS\{Month Day Year).
THETIS export issue: THETIS Export Error T.IE.2 (and possibly other issues related to THETIS and APCIS inspection exports):
Problem:
Client encounters an issue when attempting to export an inspection to THETIS (or APCIS). Error code T.IE.2.
...
...
Solution:
CPSCS: How-to add a new PMOU manual revision
How-To: Get latest code extracts from EMSA THETIS portal
- Go to https://portal.emsa.europa.eu/login.html
- Login using the username/password to access the EMSA THETIS portal. Credentials found in RDIMS 13232403: see the Prod App Credentials for the CPSCS-THETIS WS.
- Using the menu towards the top of the screen, click Portals - THETIS - Homepage.
- Click "Documents" in the menu bar.
- Click the "Code Extracts" link.
- Click the "Background Tables DDMMYYYY.zip" link. The associated date in the link changes monthly to reflect the current codes in use by THETIS.
- Click the Download link.
- Extract the download ZIP file to a new CODE EXTRACT folder: \\tc4s0b\groups\afccb\ms_apps\cpscs\CODE EXTRACTS\{Month Day Year).
How-To: Get latest code extracts from APCIS portal
- Contact product owner / business owner for CPSCS and ask for the latest code extract from APCIS.
- Product owner / business owner identified in RDIMS #14140748.
- Once extracts are received, create a new directory (Current Month + Year) in the following directory: \\tc4s0b\Groups\AFCCB\MS_APPS\CPSCS\CODE EXTRACTS\APCIS
- Place the code extracts in that folder.
To: Step through and debug the CPSCS VB6 dll
1. Open cpscsgroup.vbg.
...
Oracle Database Account Locked
Problem:
Clients appear to be locked out of the web application due to the following error: ORA-28000: the account is locked.
...
THETIS Export: The MMSI contains too many digits when exporting, inspection stuck in THETIS export queue.
Problem:
Client is locked out of the vessel tombstone and cannot complete the export due to issue above.
...
Generate XML for inspection sent to APCIS
Problem:
Client needs to have the XML for an inspection exported to APCIS.
...
- Back in the cmdTest_Click function, you'll want to make a call to the APCIS object's InspectionExport function: call apc.InspectionExport("727159","E") - make sure that all other function and sub-procedure calls are commented out. You do not want to accidentally run any further code.
- In the InspectionExport function, place a breakpoint on the following line: strResult = PostWebservice(strAPCISServer, strSoapAction, strXML)
- Go back to the cmdTest_Click function in Project1 and click the Start button.
- When the form opens, be sure to select the PROD database radio button then click CPSCS Test button.
- Step-through until you hit the breakpoint in the InspectionExport function.
- In the Immediate window, type "?strParam" and hit Enter: this will display the full JSON call for the current inspection being exported. Grab a copy of that JSON data and save it elsewhere.
- Stop the debugger: you will not actually send anything to APCIS at this time.
THETIS Export: Place of last survey is not valid
Problem:
Client gets the following error when attempting to upload an inspection to THETIS: "Inspection ID XXXXX: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Statutory Certificates: value of Place of last survey is not valid (IMO: YYYYYYY)", where XXXXXX is the inspection ID and YYYYYYY is the vesssel IMO number.
...
THETIS Export: Date of issue must be before date of first visit
Problem:
Client gets the following error when attempting to upload an inspection to THETIS: "Inspection ID XXXXX: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Statutory Certificates: Date of issue must be before date of first visit (IMO: YYYYYYY)", where XXXXXX is the inspection ID and YYYYYYY is the vesssel IMO number.
...
APCIS Export: Empty Deficiency Action List error
Problem:
Client gets the following error when attempting to export a CPSCS inspection to APCIS: "APCIS Export Error A.IE.1: Empty deficiency action list () for deficiency #YY (IMO: XXXXXXX)" (where XXXXXXX is the inspection vessel's IMO number and YY is the number of the deficiency as reported by the CPSCS).
...
Delete a CPSCS Inspection
Problem:
Delete an inspection from CPSCS given IMO number and inspection date.
...
...
...
...
...
Default Descriptions listing Error on THETIS export
Problem:
0 of 1 inspections successfully sent to THETIS<br /><hr width="100%">Inspection ID 724621: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Deficiencies: value of Default Description is not valid (IMO: 9321914)
Solution:
See TFS 14115 or TFS 14005 for appropriate solutions.
Deficiency Action Error on THETIS Upload
Problem:
Inspection ID 724621: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Deficiencies: Deficiency Actions is missing (IMO: 9321914)
Solution:
See TFS 14165 for an appropriate solution.
Nature of Defect Issue
Problem:
Inspection ID 723726: ERROR: THETIS Export Error T.IE.5: [PostInspectionResultsJson Error] Deficiencies: The Nature of Defect Fee not paid for delivery cargo residues is not valid for deficiency 01102 - Cargo Ship Safety Construction (including exempt.) (IMO: 6725432)
...
http://tfsprod:8080/tfs/Marine Safety/Marine Safety Portfolio/_workitems?id=14006
Default Descriptions Error on THETIS Export
Problem:
Receiving the following error on export to THETIS:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=14005
CPSCS - IM268001 - VTP Issues
Problem:
Last week we had our CPSCS - VTP finally come back as there was problem since the ORCALE Migration and now over the weekend there was the “Security Patch” and systems went down. CPSCS’s VTP did not come back up.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13995
CPSCS - IM267488 - CPSCS Active Port Calls not working
Problem:
Please pass on to Marine Safety IT to investigate why the Active Port Calls are not working in CPSCS, I have checked a number of the regions and district offices and no port calls are being displayed. See below Vancouver.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13942
CPSCS - <NO IM> - THETIS and APCIS Export/Import not working following DB migration
Problem:
Client reports that THETIS and APCIS exports are not working following the Oracle migration on January 19, 2019.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13901
CPSCS-EXCEL: Spreadsheet not working following DB migration
Problem:
Spreadsheet stopped responding after Oracle migration. See Discussion for steps used to solve the issues and Acceptance criteria for solution.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13889
CPSCS - IM263543 - NCR - Tower C - 10 - D127 - HENDERW - Issue With Link in RuleCheck
Problem:
Hello,
The Transport Canada Marine Inspectors are all currently experiencing an error with the ‘EMSA RuleCheck’ hyper-link.
The link seems to be broken and does not take them to the right place. Currently the link goes to https://rulecheck.emsa.europa.eu/emsaweb/srcweb/checkdeficiencies/RcCheckItems.jsp?shipType=340&constructionDate=29/10/2003&deficiencyCode=04118
This appears to go nowhere and none of the inspectors are able to access RuleCheck.
Al Rushwan suggested that I could contact you for assistance in this case. Here is an image with the hyperlink in blue.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13522
CPSCS - IM263215 - GOTLAN SOFIA - IMO 9328144 - Export Error URGENT
Problem:
Fixed initial error but new error on upload:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13456
CPSCS- IM261825 - QUE - RMK - NM - CPSCS - Guay, Mathieu - Port de Rimouski disparu de la liste.
Problem:
24 hours as important in Rimouski office as not getting the arrival information to target vessels.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13292
CPSCS - IM261581 - NCR - Tower C - 10 - D127 - HENDERW - Error Submitting ATENI, IMO 9656175 - Prince Rupert to CPSCS
Problem:
NCR - Tower C - 10 - D127 - HENDERW - Error Submitting ATENI, IMO 9656175 - Prince Rupert to CPSCS
William D Henderson - 6139797809
IMO 9656175 is not allowing submission to CPSCS.
Attached is email with error message in it.
...
NCR - Tower C - 10 - D127 - HENDERW - Error Submitting ATENI, IMO 9656175 - Prince Rupert to CPSCS
William D Henderson - 6139797809
IMO 9656175 is not allowing submission to CPSCS.
Attached is email with error message in it.
CPSCS - IM261600 - Submission Reports in CPSCS Web (SALDANHA BAY, IMO 9458377)
Problem:
Dear Service Desk:
Please pass on to Marine Safety IT – Inspector in Sept-iles second one in last couple days can not submit completed inspection reports into CPSCS. The vessel in question is SALDANHA BAY, IMO 9458377 - user Denis Rodrigue. The error message returned is below.
Inspection is in User’s saved inspections. I tried it here at HQ and get the same error.
Regards
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13107
CPSCS - IM260498 - NCR - Tower C - 10 - D127 - HENDERW - Connection with APCIS Webservice - URGENT
Problem:
NCR - Tower C - 10 - D127 - HENDERW - Connection with APCIS Webservice - URGENT
William Henderson - 6139797809
...
NCR - Tower C - 10 - D127 - HENDERW - Connection with APCIS Webservice - URGENT
William Henderson - 6139797809
CPSCS - IM258313 - NCR - Tower C-8-D101-HENDERW-APCIS error reporting - Defect Photos
Problem:
Could you let me know before I go to TMOU meeting the problem we are having with the uploading of Deficiency photos is it our side or APCIS side.
Example of the error follows:
4 of 6 inspections successfully sent to APCIS<br /><hr width="100%">Inspection ID 720769: ERROR: APCIS Export Error A.IE.2: Error : UploadInspectionReport : ??????? "http://server.soap.apcis.tmou.org/inspection/v1:ShipDeadweight" ??????????????: ????????
"0" ??????????????? ? ????? ?????? ??? ???? ?????? "http://server.soap.apcis.tmou.org/inspection/v1:T_ShipDeadweight" — ???? ??????????? MinInclusive. (IMO: 7235707)<br /><hr width="100%">Inspection ID 720771: OK (IMO: 9597563)<br /><hr width="100%">Inspection ID 720773: ERROR: APCIS Export Error A.IE.2: Invalid Surveying Authority value in certificate with code '503' (IMO: 9679799)<br />WARNING: Certificate code 528 is not a valid APCIS certificate.
(IMO: 9679799)<br /><hr width="100%">Inspection ID 720787: OK (IMO: 9537628)<br /><hr width="100%">Inspection ID 720786: OK (IMO: 9207443)<br /><hr width="100%">Inspection ID 720770: ERROR: APCIS Export Error A.IE.3: Error : UploadDeficiencyImages :
Access Denied for putReportDeficiencyPhotos methodERROR: APCIS Export Error A.IE.3: Error : UploadDeficiencyImages : Access Denied for putReportDeficiencyPhotos method (IMO: 9595888)<br />WARNING: Certificate code 531 is not a valid APCIS certificate.
(IMO: 9595888)
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12679
CPSCS - IM257341 - CPSCS list of Vessel with Defect Photos - URGENT
Problem:
Dear service Desk:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12421
CPSCS - IM256472 - ATL NS DAR - George M Anderson - CPSC Report List of Vessels
Problem:
ATL NS DAR - George M Anderson - CPSC Report List of Vessels
Attached full email.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12395
CPSCS - IM256403 - Three uploads to THETIS failed due to Default Description errors
Problem:
See attached THETIS error:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12262
CPSCS - IM256332 - COSRICH Lake IMO 9646986 - MMSI Duplicate - URGENT
Problem:
Dear Service Desk:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12248
CPSCS - IM256232 - PSC Inspection Changes - Error Message - Can't change deficiency action code
Problem:
Please pass on to Marine Safety IT to investigate why I can not change a deficiency action taken code from code 17 to Code 15 and add the next port. See attached what should be changed to and the error message.
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12244
CPSCS - IM256258 - CPSCS inspection submission error - MESABI, IMO 9359600
Problem:
Dear Service desk:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12235
CPSCS - IM255238 - NCR - Tower C - 10 D127 - HENDERW - APCIS Export Error investigate why
Problem:
NCR - Tower C - 10 D127 - HENDERW - APCIS Export Error investigate why
William D Henderson - 61397978
See attachment
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12203
CPSCS - IM255287 - NCR - Tower C - 10 - D127 - HENDERW - APCIS EXPORT FOR Detention CAP PASADO, IMO 9311799 - -RO RELAT
Problem:
Dear Service Desk:
Could you please pass this on to Marine Safety IT to determine why RO Related was uploaded to APCIS via the batch as per comments from APCIS (attached) when in fact looking at the report in CPSCS the related Deficiencies does not have RO related checked.
Please determine why and let us know the result.
Regards
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=12201
CPSCS - IM267488 - CPSCS Active Port Calls not working
Problem:
Dear service Desk:
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13942
CPSCS - IM261600 - Submission Reports in CPSCS Web (SALDANHA BAY, IMO 9458377)
Problem:
Dear Service Desk:
Please pass on to Marine Safety IT – Inspector in Sept-iles second one in last couple days can not submit completed inspection reports into CPSCS. The vessel in question is SALDANHA BAY, IMO 9458377 - user Denis Rodrigue. The error message returned is below.
Inspection is in User’s saved inspections. I tried it here at HQ and get the same error.
Regards
...
http://tfsprod:8080/tfs/Marine%20Safety/Marine%20Safety%20Portfolio/_workitems?id=13107
CPSCS - IM310089 - CPSCS: Server Certificate Expiring
Problem:
The SSL certificate for apcis.tmou.org which is installed on our web servers – for the CPSCS web application - will expire on June 11, 2020.
Solution:
Provide a replacement certificate before it expires:
In Dev
- Create a new folder under \\tc4s0b\groups\AFCCB\MS_APPS\CPSCS\CERTIFICATES\ and store the new APCIS certificate (apcis.tmou.org.cer) in that folder, ex. July 2021.
- Ensure that you can access the file when you Remote into NCRWS535
- Remote into NCRWS535.
- From NCRWS535, open the Certificate Manager, under Personal/Certificates, find the existing apcis.tmou.org
...
<add key="serverCertificateSubject" value="CN=apcis.tmou.org, OU=IT, O=FGBU AMP Primorskogo Kraya i Vostochnoy Arktiki, L=Vladivostok, S=Primorskiy kray, C=RU"/>
<add key="serverCertificateIssuer" value="CN=GeoTrust RSA CA 2018, OU=www.digicert.com, O=DigiCert Inc, C=US"/>
2. Add the following three lines to the web.config below the removed keys. Note that the info in Green is taken from
<!-- CERT UPDATE - DOS 110024-->
<add key="serverCertificateSubject" value="CN=apcis.tmou.org, O=FSI PRIMORSKY REGION MARITIME PORT ADMINISTRATION, L=Vladivostok, S=Primorsky Krai, C=RU"/>
<add key="serverCertificateIssuer" value="CN=GeoTrust RSA CA 2018, OU=www.digicert.com, O=DigiCert Inc, C=US"/>
...
To verify in ACC, go to the Vetting.Export Queue Tab and select one of the vessels, then click export
After ACC confirmed, request that the certificate be installed in PROD by the web team. Also request access to the web.config to make changes (compare/kdiff) etc.
To verify in PROD, ask the client to check in CPSCS
CPSCS - IM312504 - A list of the inspectors in Marine Safety (by specific role, or for all).
Problem:
Is there a way of getting a list (Excel or CV) all of the inspectors in Marine Safety with a designation of “Port State Control Officer”?
Solution:
This solution could apply to any specific type of inspector role, or for all.
The list of possible inspector roles can be found in the S_USER_ROLE table in the CPSCSP database. In the case of this ticket we were looking for the "PSCO" (Port State Control Officer) role.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Select * from S_USER_ROLE; |
...
The returned data from the above can then be exported or copied into whatever file format the requester is asking for.
CPSCS - IM312526 - Remove (or modify) a deficiency. Find a deficiency in the DB from the website or client given deficiency #
Problem:
The client will give you a deficiency # that is not the same as what you need to drill for in the database to get to the same record.
" I am attempting to modify two deficiencies in the 2020-07-02 inspection report for the GOLDEN ARCUS (IMO 9743162). I am trying to delete deficiency 15150, and I am trying to remove the “ISM-related” mark from deficiency 10138. "
Solution:
Log into CPSCSWEB : https://wwwapps2.tc.gc.ca/saf-sec-sur/4/cpscs-scepc/ using the login/pw from the password file.
Click on "Vessel Search" and search the IMO# given in the ticket.
Click on the Details button:
Click on the Inspections button:
Click on the Details button:
Click on the Deficiencies tab:
Look for the deficiencies # that client stipulated and press the details button:
The pop-up will have the actual DB value ("DID") to query against:
Logged into CPSCSP.world:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
select * from cpscsw.deficiency t where t.Deficiency_ID = 719372; |
(as per the example above)
From this point the deficiency record can be modified or deleted.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
--15150 deficiency # from client select * from cpscsw.deficiency t where t.Deficiency_ID = 719372; --deleteing a defeciancy requires this order; delete from CPSCSW.deficiency_description where Deficiency_ID = 719372; delete from CPSCSW.deficiency_images where Deficiency_ID = 719372; delete from CPSCSW.deficiency_action_code where Deficiency_ID = 719372; delete from CPSCSW.deficiency where Deficiency_ID = 719372; |
CPSCS - IM321375 - APCIS Export Failure: "Empty deficiency action list() for deficiency #xxxxx (IMO XXXXXXX)"
Problem:
Export failure for an inspection with deficiencies.
"Inspection report for the CALLISTO (IMO 9040077) failed to export to APCIS."
Solution:
The solution is based on a previous one described above.
APCIS does not allow Code 30 (“Grounds for detention") and Code 17 (“Rectify deficiency before departure”) on the same deficiency.
...
Advise client that the code 17 (“Rectify deficiency before departure”) should be removed from all deficiencies where both it and "Grounds for detention" are used, and then try the export to APCIS again.
CPSCS - Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed
Problem:
When running CPSCS locally in Visual Studio you get the following error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed
Solution:
The solution is to open a command prompt 'run as administrator' and unregister and re-register the DLL using the following commands:
Code Block |
---|
regsvr32 -u C:\Users\graingm\source\repos\CPSCS\src\CPSCS_ROOT\CPSCS\CPSCS_Objects\cpscs6010.dll regsvr32 C:\Users\graingm\source\repos\CPSCS\src\CPSCS_ROOT\CPSCS\CPSCS_Objects\cpscs6010.dll |
Then rerun the application.
CPSCS - Application is down
Problem:
CPSCS is down
Solution:
Contact the web services team. They will do the following to resolve the issue:
...
Step #3/4 seems to be the common fix for this type of problem: the component services are being hung-up, so the team restarts the server
CPSCS - Application is down - EXPLAINED
Problem:
CPSCS is down
Solution:
CPSCS might have become inaccessible because the printing function will sometimes freeze up and stall the entire website. In this case, we follow the steps provided in solution, above.
...
To summarize, we want to remove and conflicting COM+ Components from the server (build.Report.1 / aspSmartUpload / CPSCS6010.dll) and utilize these dlls by registering them in CMD Prompt instead: regsvr32 [path to dll]. You will need to shut down the application pool and running components before attempting.
CPSCS - Vetting Vessel Needs to be put back in the Export Queue
Problem:
ON occasion, we may need to put a record back in the APCIS Export Queue, to do so Bill H will provide the IMO NO and the Inspection ID. Make sure they are both in the select otherwise you will get several records that shouldn't be processed
...
update inspection
set export_to_apcis = 1
where imo_no in (9413913,9323065,9566382)
and inspection_id in(754927,754987,755087);
CPSCS - DLL register Failed
Problem:
When running regsvr32 cpscs6010.dll returns error:
Error "The module "cpscs6010.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005"
Solution:
1. Click Start and type command in the Search box
2. Right-click command prompt and click Run as administrator
3. Change folder by issuing the following command :
For Windows 32-bit: cd C:\windows\System32
For Windows 64-bit: cd C:\windows\SysWow64
4. Type the following command and press Enter:
regsvr32 jscript.dll
5. Type the following command and press Enter:
regsvr32 vbscript.dll
6. Attempt to install the program again
Code Block |
---|
regsvr32 C:\Users\xxx\source\repos\CPSCS\src\CPSCS_ROOT\CPSCS\CPSCS_Objects\cpscs6010.dll |
CPSCS - DLL access denied
Problem:
after registering cpscs6010.dll on the Dev server tcapps2mssdev, the CPSCS app doesn't run. It returns error: ---------------------------- Server object error 'ASP 0178 : 80070005' Server.CreateObject Access Error /LM/W3SVC/3/ROOT/SAF-SEC-SUR/4/CPSCS-SCEPC/global.asa, line 163 The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
Solution:
Login to the server console on NCRWS497
Open IIS Manager
Stop the CPSCS application pool
Launch command prompt as an administrator
Run this command regsvr32 E:\wwwappsroot\saf-sec-sur\4\cpscs-scepc\CPSCS_Objects\cpscs6010.dll
Start the application pool
Test the application http://wwwapps2mssdev/saf-sec-sur/4/cpscs-scepc/sso.asp?L=E