Prev | Next |
PCS Troubleshooting
Browser Test
For a simple check that the Pro Cloud Server is operating on the specified Ports defined in the configuration file, you can enter this address into a web browser:
<protocol>://<machineName>:<port>
For example, using the default settings on the machine with Pro Cloud Server installed:
http://localhost:1804/
Or
https://sparxcloud.com:1804/
If the Port is enabled this message is returned:
Sparx Systems Pro Cloud Server vX.X.XX
Congratulations, your server is now ready to host your models. Connect through the configuration client to add or remove models.
If this message is not displayed, confirm the server name and Port, check for other services listening on the specified Port, check the server log file for error messages, and check any firewalls between the client and the server to confirm there is connectivity and that the relevant Port(s) are open.
Connection Test
Where you have issues with the speed of response for an existing connection to a Pro Cloud Server server, then a simple initial check is to use the Pro Cloud Server Connection Test. This test is accessible from:
- Ribbon: Start > Help > Help > Pro Cloud Server Connection.
It returns the details in the System Output window in this format:
- The Pro Cloud Server version number
- The Ping response time in milliseconds from the current machine to the Pro Cloud Server Machine
- The timing to complete a simple query.
For example:
- Pro Cloud Server: Version '5.0.100'
- Pro Cloud Server: Response time: 26 ms
- Pro Cloud Server: Simple database query execution time: 23 ms
Where the Ping test is high, then the general connectivity, including the WAN connection or proxy servers, must be reviewed.
Where the Ping test is in a reasonable range, but the query execution is high, then there is reason to check the PCS connection to the DBMS or the response of the DBMS itself.
Errors shown in Enterprise Architect System Output
Error Message |
Meaning |
See also |
---|---|---|
Http Status Code: 503 Service Unavailable |
Indicates that the Pro Cloud Service is not running on the Server.
|
Pro Cloud Server Configuration |
HTTP Status 401 Access Denied |
Indicates a failure to authenticate with the server. With the built-in web server, this error will occur if an invalid username or password was provided, or no username or password were provided. |
|
HTTP Status 403 |
Indicates an attempt to access a model that is marked on the server as 'Require authenticated and secure connection'. This might indicate that you are connecting using an http protocol instead of https, or that the Port you are using is not providing authentication to the model you are connecting to. Check that you are using https. Check with the system administrator that the security authentication option is pointing to a model with security enabled. If the model in question had user security enabled after the 'Require authenticated and secure connection' option was enabled in the Pro Cloud Server get the system administrator to turn off and then back on again the 'Require secure and authenticated connection' option, making sure to save the Database Manager each time. This will reset the internal flag that Pro Cloud Server retains so that it can validate user credentials. |
Configure Database Manager Port Configuration |
HTTP Status 500 Unable to connect to service |
The connection is not being accepted.
|
Port Configuration Pro Cloud Server Configuration Firewall Settings |
The database manager for this database was shut down |
Enterprise Architect established a connection to a Pro Cloud Server, and requested to connect to a known repository, but the repository is currently disabled. Ask your system administrator to check the 'Enabled' option for the database manager in question. |
Configure Database Manager |
There is no database manager configured for the requested repository |
Enterprise Architect established a connection to a Pro Cloud Server, but the model name requested does not match any defined database on the server. When accessing the model using the Enterprise Architect Cloud Connection screen, ensure that the Model Name entered matches the Alias that is shown in the Pro Cloud Server Configuration Client. For the Alias see the Configure Database Manager Help topic. |
Configure Database Manager Connecting Enterprise Architect to a Cloud Model |
Unable to connect to Database |
Enterprise Architect established a connection to a Pro Cloud Server and requested to connect to a known repository; however, when the server attempted to open a connection to the database using the supplied details, it failed. Note: Whenever this error occurs, a Warning-level message that contains more detailed information will be written to the Pro Cloud Server logs. If the repository is:
|
|
12007 - The server name or address could not be resolved |
Indicates the server name (or IP address) is incorrect.
|
|
12029 - A connection with the server could not be established |
This could indicate that the Pro Cloud Server is not installed, the Service is not running, or an incorrect Port was entered.
|
Port Configuration |
12031 - The connection with the server was reset |
This can occur if you are attempting to connect with the Protocol HTTP, but the Port you have entered is configured for HTTPS (e.g 805).
See the Port Configuration Help topic for details. |
Port Configuration |
After Reinstall Enterprise Architect no longer works |
Your environment was working correctly, then you updated to the latest version of the Pro Cloud Server and now Enterprise Architect clients are not able to connect to your Cloud models. During the reinstall process the Pro Cloud Server installer actually uninstalls the original version and then installs the new one. As a result of this the Firewall exception that is automatically added by the installer is removed and re-created. If the default Firewall exception had been adjusted (after the original install) to suit your environment, these changes would have be lost by the re-install process. One method of stopping this from occurring in the future is to create a completely new firewall exception (with a different name) that is a copy of the one created by the installer, and make any manual changes to that exception. |
Reading Server Logs
As mentioned previously, the Sparx Systems Pro Cloud Server is a Windows Services application, and as such it needs to conform to some basic rules. Troubleshooting Windows Services can be problematic, since they run independently of all user input/interaction and as such do not contain screens/GUI of any kind. For this reason the Sparx Systems Pro Cloud Server writes any potential message to Log files.
The Pro Cloud Server configuration file contains a number of settings that control where, how many and how large log files can be. By default the Pro Cloud Server will save all log files to a \Logs\ folder under:
\Services\ (C:\Program Files (x86)\Sparx Systems\Pro Cloud Server\Service\Logs)
It will keep up to three files. A new file will be created whenever the Cloud Service is started or whenever the maximum file size if reached. Filename 'SSProCloudServerLog-1.log' will always be the most recent log file and each time a new file is created the older ones are renamed by increasing the number. For example, SSProCloudServerLog-2.log is renamed to SSProCloudServerLog-3.log.
The configuration file also contains a setting that controls the level of logging that is performed; see the logging related options in the Extended Server Properties Help topic for more details. When troubleshooting, it is recommended that the Pro Cloud Server LOG_LEVEL property be set to the highest level, SYSTEM.
Each log entry will consist of the Time, Log Level and Message; if an error occurs the Message will normally contain a description of the problem and from this description the appropriate action can be undertaken.
Log Message |
Explanation |
---|---|
Log File Header |
Each time new Log file is created the Pro Cloud Server will write out a summary of the main settings; this information is particularly useful if you are requesting support from Sparx Systems. |
Started database managers |
When a Pro Cloud Server is initially started, and the Log Level is set to INFO (or lower) it will log out a summary of each configured model that includes the connection string of the model. [INFO]: Added database manager - ConnectionStr: 'eaexample --- Connect=Provider=MSDASQL.1;... If the Log level is lower than INFO, additional log entries will be written for each model; for example: [SYSTEM]: SUCCESS Started database manager firebird:anonymous@eaexample |
House keeping |
The Pro Cloud Server performs regular 'house keeping' tasks, the frequency of which is controlled by the AUDIT_TIME_PERIOD setting in the Pro Cloud Server configuration file. When the log level is set to INFO, each time house keeping is performed the Pro Cloud Server will log out a summary of connections for each defined database manager and report how many are currently available, the maximum number used concurrently, and the total number of uses since the last audit. [AUDIT] firebird:anonymous@eaexample | Free: 0 | Max Active: 3 | Acquisitions: 192 | Normally these entries can be ignored as they are purely reference information only. |
Open Port list |
When a Pro Cloud Server is initially started, and the Log Level is set to SYSTEM, it will log out a success message for each configured Port, which includes the management Port (803) and any http/https Ports. You should see a line such as: [SYSTEM] SUCCESS Bound and listening on port 804. If the log file is missing any lines, or if the message doesn't read 'SUCCESS' this might indicate a problem with the server Port. A common error here is: Unable to create secure server on port 443. Possible causes of this are:
|
Unable to connect to database |
During general operations, the Pro Cloud Server will write entries to its log file, which include any failed attempts to open a model. This will generally not occur until a user attempts to connect to the database. Errors that can occur here include: REQUEST_CONNECT FAIL. Error (5): Unable to connect to database This means that the server attempted to open a connection but it failed. If you see this message, review the list of potential reasons outlined in the Errors shown in Enterprise Architect System Output table. |