Troubleshoot issues#
Learn how to resolve common errors or issues you may encounter when using the Ansys App Portal and One Node Deployment Templates™ platform.
Unable to login to the Ansys App Portal due to constant redirection to the login page#
To resolve this issue:
Close all browser tabs and windows.
Open a new browser window and access the Ansys App Portal again.
If the issue persists, clear the browser cache and cookies, close all browser tabs and windows and then try to access the Ansys App Portal again.
Platform services or portal is not accessible#
To resolve this issue:
Check network connectivity in WSL by running the following command in the WSL terminal:
ping google.com- Example of expected response:
You should see a response similar to the following if network connectivity is available:
If the network is not available, run the following commands on the host machine and then restart the host:
wsl --shutdown netsh winsock reset netsh int ip reset all netsh winhttp reset proxy ipconfig /flushdns
Check the
hostsfile entries.Note
On Windows operating systems, the
hostsfile is located atC:\\Windows\\System32\\drivers\\etc\\hosts.Ensure that the
hostsfile contains the correct mapping of the WSL Native IP address (WSL_MACHINE_IPin the.envfile) with platform services.- Example of correct mapping:
<wsl_native_ip> keycloak.<hostname>.<domain_name> <wsl_native_ip> traefik.<hostname>.<domain_name> <wsl_native_ip> oauth.<hostname>.<domain_name> <wsl_native_ip> portal.<hostname>.<domain_name>
Tip
To fetch the
<wsl_native_ip>value, run this command in the WSL terminal:ip addr show eth0
Ensure that there are no duplicate entries with different IP addresses in the
hostsfile for the platform services.- Example of incorrect duplicate entries:
<wsl_native_ip> portal.<hostname>.<domain_name> <some_other_ip> portal.<hostname>.<domain_name>
User cannot log in to portal or receives an error when accessing portal UI#
In this case, the user can access the Ansys App Portal™, but either cannot log in or receives an error when attempting to access the UI.
To resolve this issue:
Check the user registration details in the Keycloak Admin Console.
Search for the user with the correct name (as specified in the user registration form).
In the user details, verify that the user is registered with the correct email domain name (as specified in the .env file).
Note
The email address for the user must have the email domain specified while deploying the platform. Once platform is deployed, in the
.envfile, the email domain is specified asOP_EMAIL_DOMAIN.- Example of invalid email domain:
In this example, the user test1 is registered with a domain of @test.com. This is invalid because the platform was launched with a domain of @example.com.
For more information, see Manage users.
Error occurs while starting platform services#
To resolve this issue:
Check WSL network connectivity.
ping -c 4 google.com
If WSL network connectivity is not available, run these commands on the host machine and then restart the host:
netsh winsock reset netsh int ip reset all netsh winhttp reset proxy ipconfig /flushdns
Projects of an app deployed on the portal are not accessible#
To resolve this issue:
Check for the app service entry in the
hostsfile of the host machine.Tip
On Windows operating systems, the
hostsfile is located atC:\\Windows\\System32\\drivers\\etc\\hosts.Ensure that the
hostsfile contains the correct mapping of the WSL native IP address with the app service.- Example of correct mapping:
<wsl_native_ip> solutions.<hostname>.<domain_name>
Tip
To fetch the
<wsl_native_ip>value, run this command in the WSL terminal:ip addr show eth0
Ensure that there are no duplicate entries with different IP addresses in the
hostsfile for the app service.- Example of incorrect duplicate entries:
<wsl_native_ip> solutions.<hostname>.<domain_name> <some_other_ip> solutions.<hostname>.<domain_name>
Cannot start optiSLang#
When starting optiSlang, the following error message is shown:
Cannot start optiSLang 242. Please contact your IT admin to make sure that optiSLang is reachable and try again.
The error is likely caused by the host machine being unable to reach the WSL Linux distribution files system.
One way to verify this is to open the WSL file system from Windows Explorer. If you get an error like the one shown here, it confirms that the host machine is not able to reach the WSL file system.
To resolve this issue:
Restart WSL by running this script:
wsl --shutdown wsl
Restart the platform as described in Start the platform.
Connection to the site is not secure#
When accessing the platform services, you receive a warning message that the connection to the site is not secure.
To resolve this issue, click Continue to site.
Cannot connect to the Product Instance Manager. Please contact your IT admin to make sure that this component is reachable#
When you execute the optiSLang workflow, the following error message is shown:
To resolve this issue:
Go to the root directory of the platform where you extracted the Ansys App Portal and One Node Deployment Templates™ platform.
Go to the
deployment_scriptsdirectory.Run the following command in PowerShell:
.\Stop-Platform.ps1Run the following command in PowerShell:
.\Start-Platform.ps1
If issue persists, check the following:
Restart the host machine where the platform is deployed. Once the host machine is restarted, run the following commands in PowerShell:
.\deployment_scripts\Stop-Platform.ps1 .\deployment_scripts\Start-Platform.ps1
If the issue still persists, check the following:
Ensure that the port specified in the
.envfile for the Product Instance Manager is not being used by another service.If port is in use, try to free the port by using the following command in PowerShell:
netstat -ano | findstr :<port>
taskkill /pid <PID> /F
If the port is in use by system services and cannot be freed, you can change the port in the
.envfile and then restart the platform services..\deployment_scripts\Stop-Platform.ps1 .\deployment_scripts\Start-Platform.ps1
Cannot execute the Deploy-Platform.ps1 script#
When executing the Deploy-Platform.ps1 script, you get the following error messages:
- Script is not digitally signed:
To resolve this issue:
Locate Ansys_App_Portal_and_One_Node_Deployment_Templates-0.4.1.zip
Right-click the zip file and select Properties.
Unblock the file, click Apply and then click OK.
Unzip the Ansys_App_Portal_and_One_Node_Deployment_Templates-0.4.1.zip.
Continue the steps as defined in Deploy and start the platform.
Corrupt virtual environment#
If you receive the following messages, it means that your virtual environment is corrupt.
- Access is denied to the virtual environment activation script:
- Access is denied to the virtual environment files:
To resolve these issues:
Close all running terminals where the platform script was launched.
Navigate to the root directory of the platform and manually delete the
.venvdirectory.Continue the steps described in Clean deploy the new version of the platform.
Cannot execute the Start-Platform.ps1 script after operating system is restarted#
If you receive the following error message when executing the Start-Platform.ps1 script after restarting the operating system:
<port> is in use, please release it and try starting the platform again.
To resolve this issue:
Execute the
Stop-Platform.ps1script to stop the platform services and then re-execute theStart-Platform.ps1script..\deployment_scripts\Stop-Platform.ps1 .\deployment_scripts\Start-Platform.ps1
If the issue persists, you need to identify and terminate the process that is using the port. Follow below steps to identify and terminate the process:
Identify the process that is using the port by running the following command in PowerShell:
netstat -ano | findstr :<port>
Note the PID of the process that is using the port.
Terminate the process by running the following command in PowerShell:
taskkill /pid <PID> /F
Execute the
Start-Platform.ps1script again.
Gathering Service-Specific Logs#
To troubleshoot issues with specific services defined in the docker-compose.yaml file, you can gather logs for each service using the following steps.
Before you begin, navigate to the root of directory where you extracted the platform. This is where the docker-compose.yaml file is located. Open a terminal in the wsl environment. You can do this by running the following command in the WSL terminal:
cd /path/to/your/platform/root/directory
Ensure Docker is running and the services are up.
docker compose ps
Identify the container names for the services you want to gather logs for. These names can be found in the docker-compose.yaml file or by running:
docker compose ps
Use the following command to gather logs for a specific service:
docker logs <container_name>
Replace <container_name> with the name of the container corresponding to the service.
To gather logs for all services defined in the docker-compose.yaml file, you can use the following command:
docker compose logs
If you need to filter logs for a specific service, use:
docker compose logs <service_name>
Replace <service_name> with the name of the service as defined in the docker-compose.yaml file.
Save the logs to a file for further analysis:
docker compose logs > service_logs.txt
This will save all service logs to service_logs.txt.
For detailed logs, you can use the –tail option to specify the number of lines or –timestamps to include timestamps:
docker compose logs --tail 100 --timestamps