Wazuh Dashboard --port override not working: 443 Conflict. Installation failed

392 views
Skip to first unread message

Jeeva DotNet

unread,
Sep 12, 2023, 5:06:38 AM9/12/23
to Wazuh | Mailing List

Wazuh version

v.4.5.2
Wazuh Assistant Installer
Ubuntu 20.04 LTS

Issue
Installing the Wazuh Dashboard using the assistant installer. I'm running my reverse proxy on 443 for wazuh and other services and want to change the port during the installation process.

bash wazuh-install.sh --wazuh-dashboard dashboard -p 5601 

with -p as per the documentation.

Getting the error that the installation has failed.

12/09/2023 10:50:58 INFO: Wazuh web interface port will be 5601. 12/09/2023 10:50:59 ERROR: Port 443 is being used by another process. Please, check it before installing Wazuh. 12/09/2023 10:50:59 INFO: The installation can not continue due to port usage by other processes.

cat /var/log/wazuh-install.log

12/09/2023 10:50:51 INFO: Starting Wazuh installation assistant. Wazuh version: 4.5.2 12/09/2023 10:50:51 INFO: Verbose logging redirected to /var/log/wazuh-install.log Get:1 https://apt.grafana.com stable InRelease [5984 B] Err:1 https://apt.grafana.com stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 Hit:2 http://mariadb.mirror.liquidtelecom.com/repo/10.4/ubuntu focal InRelease Hit:3 https://download.docker.com/linux/ubuntu focal InRelease Hit:5 http://ppa.launchpad.net/ansible/ansible/ubuntu focal InRelease Hit:6 http://archive.ubuntu.com/ubuntu focal InRelease Get:7 https://dlm.mariadb.com/repo/mariadb-server/10.5/repo/ubuntu focal InRelease [7767 B] Hit:4 https://downloads.mariadb.com/Tools/ubuntu focal InRelease Hit:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease Hit:9 https://repos.influxdata.com/debian stable InRelease Hit:10 http://archive.ubuntu.com/ubuntu focal-security InRelease Hit:11 https://repos.influxdata.com/ubuntu focal InRelease Get:12 https://dlm.mariadb.com/repo/maxscale/latest/apt focal InRelease [9344 B] Hit:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease Hit:14 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu focal InRelease Hit:15 https://repo.zabbix.com/zabbix/6.0/ubuntu focal InRelease Fetched 17.1 kB in 2s (7288 B/s) Reading package lists... W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.grafana.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Failed to fetch https://apt.grafana.com/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 963FA27710458545 W: Some index files failed to download. They have been ignored, or old ones used instead. 12/09/2023 10:50:58 INFO: Wazuh web interface port will be 5601. 12/09/2023 10:50:59 ERROR: Port 443 is being used by another process. Please, check it before installing Wazuh. 12/09/2023 10:50:59 INFO: The installation can not continue due to port usage by other processes. 12/09/2023 10:50:59 INFO: --- Removing existing Wazuh installation --- 12/09/2023 10:50:59 INFO: Wazuh GPG key was not found in the system 12/09/2023 10:50:59 INFO: Installation cleaned. Check the /var/log/wazuh-install.log file to learn more about the issue.

Md. Nazmur Sakib

unread,
Sep 12, 2023, 6:18:01 AM9/12/23
to Wazuh | Mailing List

Hi Jeeva DotNet,


Hope you are doing well. Thank you for using Wazuh.


I guess you are installing the Wazuh dashboard using the assistant process.

Please allow me sometimes to recreate this issue in my lab and come up with findings.


Regards

Md. Nazmur Sakib

unread,
Sep 12, 2023, 8:11:50 AM9/12/23
to Wazuh | Mailing List

Hi Jeeva,


I have looked into your issue and found some interesting facts about wazuh-dashboard installation using the port option. Even if you are using a port other than 443, for some reason Wazuh dashboard needs 443 port during the installation process. So I have tried to stop my nginx server that was running on 443 port and the dashboard installation worked. After installation, I checked the dashboard was running on the 5061 port. Also, I have restarted the Nginx that was running on the 443 port and it is not conflicting with wazuh-dashbaord. You can try this method if possible. I will let you know if I find any alternative.




I hope this helps. Please let me know if you need any further help.


Regards

Reply all
Reply to author
Forward
0 new messages