Logs and troubleshooting
Where each part of the platform writes its logs, what to check when something does not work, and what common messages mean.
The server does not write log files. Errors are stored in the databases and shown in Management and Studio. This page tells you where to look and what the most common messages mean.
Where the logs are
| Where | What you find there |
|---|---|
Management: LOGS | Errors that concern the whole installation: the services, the synchronization with the licensing server, the import and export of tenants, tenants that cannot be read. |
| Studio: the logs under Security | Errors of one tenant: requests from Studio and from apps, workflows, the Tile Service, the mobile server. |
Studio: DEVICE LOGS under Mobile | Messages sent by mobile devices, with the user, the app and the device. |
| Desktop client | A log file on the user's computer. Ctrl+L opens the file, Ctrl+Shift+L opens its folder. A new file is created at every start. |
| Browser apps, Studio, Management | The console of the browser (F12). |
Each entry in Management and Studio has a message and, where available, a stack trace that you open from the list. To download entries as a file, select them and use Download in the toolbar. You delete a single entry in its row, or several entries by selecting them.
The list has no levels such as warning or error. The time is shown as a relative value, for example three hours ago; the exact time appears when the pointer rests on it. The same message is recorded at most once per minute, so one entry can stand for many occurrences. A message longer than 1,024 characters is cut off.
The entries are not deleted automatically. Delete old entries from time to time.
First checks
When an app, Studio or Management does not work, check these points in this order:
- The logs. Open the logs in Management and in the Studio of the tenant and look at the newest entries.
- The Windows services.
M.App ServiceandM.App Tile Servicehave to be running. Without the Tile Service, published vector data and WMTS caches are not built. - IIS. The application pools
M.App,M.App WorkflowsandM.App Mobilehave to be started. - The databases. The master database and the tenant database have to be reachable from the server.
- The certificate. The HTTPS certificate must be valid and trusted by the clients.
- Outgoing connections. For licenses that report usage, the server needs HTTPS access to
maelicensing.hexagon.com.
Messages and what to do
| Message | Meaning | What to do |
|---|---|---|
| Can not connect to database. Error opening connection. | The database did not accept the connection. | Check server name, port, database name, user and password, and the firewall between the servers. The log holds the answer of the database. |
| Connection already contains a tenant. | The database you selected for a new tenant already holds a tenant. | Create an empty database and use that. |
| Connection is already in use for tenant management. | You selected the master database for a tenant. | Use a separate database for each tenant. |
| Given Oracle UserId does not match. Did you mean '…'? | The user name is written differently from the name the Oracle database reports. | Enter the user name as suggested in the message. |
| Invalid tenant configuration. Check out logs for further details. | Management cannot read the database of this tenant. | Open the logs in Management. Check the connection of the tenant and whether its database server is running. |
| M.App Enterprise Studio Access has been declined. (No license) M.App Enterprise Apps Access has been declined. (No license) | There is no valid license. | Upload a charge in Management. See License, charges and usage. |
| M.App Enterprise Access has been declined. (Last sync too long ago) | The installation has not reported its usage for two months. | Make sure the M.App Service is running and the server reaches the licensing server. |
| M.App Enterprise Studio Access has been declined. (No studio account) | The user is an app user, not a Studio administrator. | Log in with a Studio account, or open the Apps page instead. |
| The user is not activated. | The user has not completed the activation from the e-mail. | Ask the user to use the link in the activation e-mail. If no e-mail arrived, check the mail server settings. |
| The specified tenant doesn't exist. | The tenant name in the address is wrong. | Check the part ?tenant=… of the address. |
| Too many failed login attempts. | Several wrong logins for the same user from the same address within a very short time. | Wait a moment and try again. |
| Charge cannot be verified. | The uploaded license file is damaged or was changed. | Upload the original file. |
| Charge cannot be added, license version does not match product version. | A permanent license for an older version. | Request a license for the installed version. |
| The tenant you are trying to import does not match the current database version. | The export was made with another version. | Export and import with the same version of M.App Enterprise. |
| Something went wrong while processing the zip file. You may have entered the wrong password. | The export file could not be opened. | Check the password of the export. |
| Layer bounds outside of CRS bounds. | The extent of the layer does not fit the coordinate system. | Check the EPSG code of the dataset. See Lesson 3. |
| Could not validate. Internal server error. | The server rejected the input. | The reason is in the logs, in an entry that starts with Server validation error. |
E-mails do not arrive
There is no own message for mail problems. If activation or password e-mails do not arrive:
- Check the mail server in Management under
SETTINGS, sectionMail Server Configuration(since version 17.0). The values entered there take priority over the ones from the installation. - Look for an entry in the logs from the time the e-mail should have been sent.
- Check the spam folder of the recipient.