semaphore icon indicating copy to clipboard operation
semaphore copied to clipboard

Problem: Configuration is misleading

Open whisperzer0 opened this issue 5 months ago • 2 comments

Issue

This is installation from the RPM package on Rocky Linux.

Issue one: The Running path is invalid. I assume this is designed for the single binary install and not the RPM? When completing the configuration wizard, it displays the following command to execute:

./semaphore server --config /opt/semaphore/output/config.json

The actual binary is stored in /usr/bin so the command presented above won't execute.

Issue two:

During configuration of the setup script, it asks the following questions: Public URL (optional, example: https://example.com/semaphore): I enter my host's IP: https://192.168.xx.xx and then after completing the default server configuration, I get 404 within the browser. However semaphore is actually running on port 3000.

/usr/bin/semaphore server --config /opt/semaphore/output/config.json

SQLite @/opt/semaphore/main.db semaphore
Tmp Path (projects home) /opt/semaphore/playbooks
Semaphore 2.18.12-8a4dcf0-1780941761
Interface 
Port :3000
Server is running

There was no information that this will run on port 3000, and so if I try to access the URL on port 3000, I get a blank page.

Viewing the source, it appears that all links originate to the defined parameter given in the installation script. However these are invalid because the actual URL / application is running on port 3000.

<!DOCTYPE html>
<html lang="en">
  <head>
    <base href="https://192.168.xx.xx/">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="[favicon.png](view-source:https://192.168.xx.xx/favicon.png)">
    <title>Dashboard - Semaphore UI</title>
  <script defer src="[js/chunk-vendors.69e569a9.js](view-source:https://192.168.14.235/js/chunk-vendors.69e569a9.js)"></script><script defer src="[js/app.3fd09e46.js](view-source:https://192.168.xx.xx/js/app.3fd09e46.js)"></script><link href="[css/chunk-vendors.b6bd358c.css](view-source:https://192.168.xx.xx/css/chunk-vendors.b6bd358c.css)" rel="stylesheet"><link href="[css/app.a9ed4876.css](view-source:https://192.168.xx.xx/css/app.a9ed4876.css)" rel="stylesheet"></head>
  <body>
    <noscript>
      <strong>
          We're sorry but web doesn't work properly
          without JavaScript enabled. Please enable it to continue.
      </strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>

And after updating the configuration I still receive the "Without JavaScript enabled" Javascript is enabled and is the same error on Waterfox, Firefox and Chromium.

<!DOCTYPE html>
<html lang="en">
  <head>
    <base href="[https://192.168.xx.xx:3000/](view-source:https://192.168.xx.xx:3000/)">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="[favicon.png](view-source:https://192.168.xx.xx:3000/favicon.png)">
    <title>Dashboard - Semaphore UI</title>
  <script defer src="[js/chunk-vendors.69e569a9.js](view-source:https://192.168.xx.xx:3000/js/chunk-vendors.69e569a9.js)"></script><script defer src="[js/app.3fd09e46.js](view-source:https://192.168.xx.xx:3000/js/app.3fd09e46.js)"></script><link href="[css/chunk-vendors.b6bd358c.css](view-source:https://192.168.x.xx:3000/css/chunk-vendors.b6bd358c.css)" rel="stylesheet"><link href="[css/app.a9ed4876.css](view-source:https://192.168.xx.xx:3000/css/app.a9ed4876.css)" rel="stylesheet"></head>
  <body>
    <noscript>
      <strong>
          We're sorry but web doesn't work properly
          without JavaScript enabled. Please enable it to continue.
      </strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>

Impact

Web-Frontend (what users interact with)

Installation method

Docker

Database

No response

Browser

No response

Semaphore Version

2.18.12-8a4dcf0-1780941761

Ansible Version


Logs & errors

No response

Manual installation - system information

No response

Configuration

No response

Additional information

No response

whisperzer0 avatar Jun 11 '26 12:06 whisperzer0

Not sure where you're getting the information from but the install docs dont have ./ before the semaphore command. /usr/bin is in the path by default so you can just run "semaphore server --config /opt/semaphore/output/config.json" also the default port is 3000 taken from: https://semaphoreui.com/docs/admin-guide/installation/package-manager Also you will need javascript enabled in your web bwroser to be able to use the app.

Have you generated a config file doing: semaphore setup ??

BumblingWelshman avatar Jun 12 '26 19:06 BumblingWelshman

Ok found where you get this from. When running semaphore setup after you go through the interective config the commands at the end are pre-fixed with ./ and yes the interactive setup doesn't set the port so defaults to 3000.

The main reason for this is if you are running semaphore as a non-privileged (e.g root) user you wont be able to open a port below 1024, semaphore doesn't require root privileges to run as long as ansible is installed and useable by the user account running semaphore. Obviously if you are running as root then you can add the port in the config file and restart.

BumblingWelshman avatar Jun 13 '26 09:06 BumblingWelshman