Problem Description: Nginix service will fail to come up with the below ERROR in IWX v4.x,v5.x when started using the start.sh script.
2021-03-09 14:03:23,635 - ERROR - sudo: no tty present and no askpass program specified
2021-03-09 14:03:23,669 - ERROR - Failed to execute child process, exit code: 1
Traceback (most recent call last):
File "/opt/infoworks/bin/start-iw-services/start/driver.py", line 229, in start_services
Root cause: This issue happens if UI is configured with SSL to run on port 80 or port 443 or any port less than 1024. The Ports below 1024 can be opened only by root in Linux distributions.
Solution: Enable passwordless sudo for the Infoworks user if the UI service is configured over SSL to run on port 80 or 443 and then restart Nginx and the UI services.
You can check the file $IW_HOME/resources/nginx-portable/conf/infoworks/platform.conf file and see if SSL is enabled and look for the below format.
listen <port> SSL;
How to enable passwordless sudo for a specific user is provided below.
Applicable Infoworks versions: