bug(installer): missing certs dir causes error #262

Closed
opened 2026-03-28 04:22:51 +00:00 by mfreeman451 · 0 comments
Owner

Imported from GitHub.

Original GitHub issue: #753
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/753
Original created: 2025-05-09T19:34:23Z


[ServiceRadar] Installing packages: serviceradar-core serviceradar-proton serviceradar-web serviceradar-nats serviceradar-kv serviceradar-sync serviceradar-poller serviceradar-agent
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'serviceradar-core' instead of '/tmp/serviceradar-install/serviceradar-core.deb'
Note, selecting 'serviceradar-proton' instead of '/tmp/serviceradar-install/serviceradar-proton.deb'
Note, selecting 'serviceradar-web' instead of '/tmp/serviceradar-install/serviceradar-web.deb'
Note, selecting 'serviceradar-nats' instead of '/tmp/serviceradar-install/serviceradar-nats.deb'
Note, selecting 'serviceradar-kv' instead of '/tmp/serviceradar-install/serviceradar-kv.deb'
Note, selecting 'serviceradar-sync' instead of '/tmp/serviceradar-install/serviceradar-sync.deb'
Note, selecting 'serviceradar-poller' instead of '/tmp/serviceradar-install/serviceradar-poller.deb'
Note, selecting 'serviceradar-agent' instead of '/tmp/serviceradar-install/serviceradar-agent.deb'
The following packages were automatically installed and are no longer required:
  libcares2 libuv1t64 node-busboy node-cjs-module-lexer node-undici node-xtend python3-netifaces
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  serviceradar-core serviceradar-proton
The following packages will be upgraded:
  serviceradar-agent serviceradar-kv serviceradar-nats serviceradar-poller serviceradar-sync serviceradar-web
6 upgraded, 2 newly installed, 0 to remove and 51 not upgraded.
Need to get 0 B/163 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 /tmp/serviceradar-install/serviceradar-agent.deb serviceradar-agent amd64 1.0.36 [9929 kB]
Get:2 /tmp/serviceradar-install/serviceradar-core.deb serviceradar-core amd64 1.0.36 [13.8 MB]
Get:3 /tmp/serviceradar-install/serviceradar-kv.deb serviceradar-kv amd64 1.0.36 [9828 kB]
Get:4 /tmp/serviceradar-install/serviceradar-nats.deb serviceradar-nats amd64 1.0.36 [5068 kB]
Get:5 /tmp/serviceradar-install/serviceradar-poller.deb serviceradar-poller amd64 1.0.36 [8749 kB]
Get:6 /tmp/serviceradar-install/serviceradar-proton.deb serviceradar-proton amd64 1.0.36 [89.5 MB]
Get:7 /tmp/serviceradar-install/serviceradar-sync.deb serviceradar-sync amd64 1.0.36 [9173 kB]
Get:8 /tmp/serviceradar-install/serviceradar-web.deb serviceradar-web amd64 1.0.36 [17.3 MB]
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 137817 files and directories currently installed.)
Preparing to unpack .../0-serviceradar-agent.deb ...
Unpacking serviceradar-agent (1.0.36) over (1.0.33) ...
Selecting previously unselected package serviceradar-core.
Preparing to unpack .../1-serviceradar-core.deb ...
Unpacking serviceradar-core (1.0.36) ...
Preparing to unpack .../2-serviceradar-kv.deb ...
Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-kv.service".
Unpacking serviceradar-kv (1.0.36) over (1.0.30) ...
Preparing to unpack .../3-serviceradar-nats.deb ...
Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-nats.service".
Removed "/etc/systemd/system/nats.service".
Unpacking serviceradar-nats (1.0.36) over (1.0.30) ...
Preparing to unpack .../4-serviceradar-poller.deb ...
Unpacking serviceradar-poller (1.0.36) over (1.0.33) ...
Selecting previously unselected package serviceradar-proton.
Preparing to unpack .../5-serviceradar-proton.deb ...
Unpacking serviceradar-proton (1.0.36) ...
Preparing to unpack .../6-serviceradar-sync.deb ...
Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-sync.service".
Unpacking serviceradar-sync (1.0.36) over (1.0.30) ...
Preparing to unpack .../7-serviceradar-web.deb ...
Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-web.service".
Unpacking serviceradar-web (1.0.36) over (1.0.28) ...
Setting up serviceradar-nats (1.0.36) ...
chmod: cannot access '/etc/serviceradar/certs/*.pem': No such file or directory
dpkg: error processing package serviceradar-nats (--configure):
 installed serviceradar-nats package post-installation script subprocess returned error exit status 1
Setting up serviceradar-sync (1.0.36) ...
Setting up serviceradar-agent (1.0.36) ...

Configuration file '/etc/serviceradar/agent.json'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** agent.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-agent (--configure):
 end of file on stdin at conffile prompt
Setting up serviceradar-core (1.0.36) ...

Configuration file '/etc/serviceradar/core.json'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** core.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-core (--configure):
 end of file on stdin at conffile prompt
Setting up serviceradar-poller (1.0.36) ...

Configuration file '/etc/serviceradar/poller.json'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** poller.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-poller (--configure):
 end of file on stdin at conffile prompt
Setting up serviceradar-kv (1.0.36) ...
No apport report written because MaxReports is reached already
chmod: cannot access '/etc/serviceradar/certs/*.pem': No such file or directory
dpkg: error processing package serviceradar-kv (--configure):
 installed serviceradar-kv package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Setting up serviceradar-web (1.0.36) ...
Installing new version of config file /etc/nginx/conf.d/serviceradar-web.conf ...
2025/05/09 19:32:50 [warn] 343401#343401: conflicting server name "_" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Nginx configuration updated successfully.
Created symlink /etc/systemd/system/multi-user.target.wants/serviceradar-web.service → /usr/lib/systemd/system/serviceradar-web.service.
ServiceRadar Web Interface installed successfully!
Web UI is running on port 3000
Access the UI through Nginx at http://your-server-ip/
Setting up serviceradar-proton (1.0.36) ...
ServiceRadar Proton: Setting up ServiceRadar Proton Server...
ServiceRadar Proton: Creating proton group...
ServiceRadar Proton: Creating proton user...
ServiceRadar Proton: Setting up ulimits for proton user...
ServiceRadar Proton: Configuring sysctl settings...
ServiceRadar Proton: Disabling transparent huge pages...
ServiceRadar Proton: Creating required directories...
ServiceRadar Proton: Copying configuration files...
ServiceRadar Proton: Copied /usr/share/serviceradar-proton/config.yaml to /etc/proton-server/config.yaml
ServiceRadar Proton: Copied /usr/share/serviceradar-proton/users.yaml to /etc/proton-server/users.yaml
ServiceRadar Proton: Copied /usr/share/serviceradar-proton/grok-patterns to /etc/proton-server/grok-patterns
ServiceRadar Proton: Verifying configuration files...
ServiceRadar Proton: Verified /etc/proton-server/config.yaml
ServiceRadar Proton: Verified /etc/proton-server/users.yaml
ServiceRadar Proton: Verified /etc/proton-server/grok-patterns
ServiceRadar Proton: Generating random password...
ServiceRadar Proton: Configuring default user password...
ServiceRadar Proton: Updating /etc/serviceradar/core.json with database password...
ServiceRadar Proton WARNING: /etc/serviceradar/core.json not found, skipping database password update
ServiceRadar Proton: Creating symbolic links...
ServiceRadar Proton: Verifying configuration files...
ServiceRadar Proton: Verified /etc/proton-server/config.yaml
ServiceRadar Proton: Verified /etc/proton-server/users.yaml
ServiceRadar Proton: Verified /etc/proton-server/grok-patterns
ServiceRadar Proton: Setting capabilities for proton binary...
ServiceRadar Proton: Setting ownership and permissions...
ServiceRadar Proton: Configuring systemd service...
ServiceRadar Proton: ServiceRadar Proton service started successfully
ServiceRadar Proton: Fixing permissions of log files...
ServiceRadar Proton: Fixing permissions on /etc/serviceradar/certs/
ServiceRadar Proton: Restarting proton service...
ServiceRadar Proton: Restarting serviceradar-core service...
ServiceRadar Proton: ServiceRadar Proton Server installed successfully!
ServiceRadar Proton: A secure password has been generated and saved to /etc/proton-server/generated_password.txt
ServiceRadar Proton: Note: Password authentication is not used due to mTLS configuration.
Errors were encountered while processing:
 serviceradar-nats
 serviceradar-agent
 serviceradar-core
 serviceradar-poller
 serviceradar-kv
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
[ServiceRadar] ERROR: Failed to install packages
root@serviceradar-demo-staging:/etc/serviceradar#
Imported from GitHub. Original GitHub issue: #753 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/753 Original created: 2025-05-09T19:34:23Z --- ``` [ServiceRadar] Installing packages: serviceradar-core serviceradar-proton serviceradar-web serviceradar-nats serviceradar-kv serviceradar-sync serviceradar-poller serviceradar-agent Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'serviceradar-core' instead of '/tmp/serviceradar-install/serviceradar-core.deb' Note, selecting 'serviceradar-proton' instead of '/tmp/serviceradar-install/serviceradar-proton.deb' Note, selecting 'serviceradar-web' instead of '/tmp/serviceradar-install/serviceradar-web.deb' Note, selecting 'serviceradar-nats' instead of '/tmp/serviceradar-install/serviceradar-nats.deb' Note, selecting 'serviceradar-kv' instead of '/tmp/serviceradar-install/serviceradar-kv.deb' Note, selecting 'serviceradar-sync' instead of '/tmp/serviceradar-install/serviceradar-sync.deb' Note, selecting 'serviceradar-poller' instead of '/tmp/serviceradar-install/serviceradar-poller.deb' Note, selecting 'serviceradar-agent' instead of '/tmp/serviceradar-install/serviceradar-agent.deb' The following packages were automatically installed and are no longer required: libcares2 libuv1t64 node-busboy node-cjs-module-lexer node-undici node-xtend python3-netifaces Use 'apt autoremove' to remove them. The following NEW packages will be installed: serviceradar-core serviceradar-proton The following packages will be upgraded: serviceradar-agent serviceradar-kv serviceradar-nats serviceradar-poller serviceradar-sync serviceradar-web 6 upgraded, 2 newly installed, 0 to remove and 51 not upgraded. Need to get 0 B/163 MB of archives. After this operation, 0 B of additional disk space will be used. Get:1 /tmp/serviceradar-install/serviceradar-agent.deb serviceradar-agent amd64 1.0.36 [9929 kB] Get:2 /tmp/serviceradar-install/serviceradar-core.deb serviceradar-core amd64 1.0.36 [13.8 MB] Get:3 /tmp/serviceradar-install/serviceradar-kv.deb serviceradar-kv amd64 1.0.36 [9828 kB] Get:4 /tmp/serviceradar-install/serviceradar-nats.deb serviceradar-nats amd64 1.0.36 [5068 kB] Get:5 /tmp/serviceradar-install/serviceradar-poller.deb serviceradar-poller amd64 1.0.36 [8749 kB] Get:6 /tmp/serviceradar-install/serviceradar-proton.deb serviceradar-proton amd64 1.0.36 [89.5 MB] Get:7 /tmp/serviceradar-install/serviceradar-sync.deb serviceradar-sync amd64 1.0.36 [9173 kB] Get:8 /tmp/serviceradar-install/serviceradar-web.deb serviceradar-web amd64 1.0.36 [17.3 MB] debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 137817 files and directories currently installed.) Preparing to unpack .../0-serviceradar-agent.deb ... Unpacking serviceradar-agent (1.0.36) over (1.0.33) ... Selecting previously unselected package serviceradar-core. Preparing to unpack .../1-serviceradar-core.deb ... Unpacking serviceradar-core (1.0.36) ... Preparing to unpack .../2-serviceradar-kv.deb ... Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-kv.service". Unpacking serviceradar-kv (1.0.36) over (1.0.30) ... Preparing to unpack .../3-serviceradar-nats.deb ... Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-nats.service". Removed "/etc/systemd/system/nats.service". Unpacking serviceradar-nats (1.0.36) over (1.0.30) ... Preparing to unpack .../4-serviceradar-poller.deb ... Unpacking serviceradar-poller (1.0.36) over (1.0.33) ... Selecting previously unselected package serviceradar-proton. Preparing to unpack .../5-serviceradar-proton.deb ... Unpacking serviceradar-proton (1.0.36) ... Preparing to unpack .../6-serviceradar-sync.deb ... Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-sync.service". Unpacking serviceradar-sync (1.0.36) over (1.0.30) ... Preparing to unpack .../7-serviceradar-web.deb ... Removed "/etc/systemd/system/multi-user.target.wants/serviceradar-web.service". Unpacking serviceradar-web (1.0.36) over (1.0.28) ... Setting up serviceradar-nats (1.0.36) ... chmod: cannot access '/etc/serviceradar/certs/*.pem': No such file or directory dpkg: error processing package serviceradar-nats (--configure): installed serviceradar-nats package post-installation script subprocess returned error exit status 1 Setting up serviceradar-sync (1.0.36) ... Setting up serviceradar-agent (1.0.36) ... Configuration file '/etc/serviceradar/agent.json' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** agent.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-agent (--configure): end of file on stdin at conffile prompt Setting up serviceradar-core (1.0.36) ... Configuration file '/etc/serviceradar/core.json' ==> Deleted (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** core.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-core (--configure): end of file on stdin at conffile prompt Setting up serviceradar-poller (1.0.36) ... Configuration file '/etc/serviceradar/poller.json' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** poller.json (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package serviceradar-poller (--configure): end of file on stdin at conffile prompt Setting up serviceradar-kv (1.0.36) ... No apport report written because MaxReports is reached already chmod: cannot access '/etc/serviceradar/certs/*.pem': No such file or directory dpkg: error processing package serviceradar-kv (--configure): installed serviceradar-kv package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already Setting up serviceradar-web (1.0.36) ... Installing new version of config file /etc/nginx/conf.d/serviceradar-web.conf ... 2025/05/09 19:32:50 [warn] 343401#343401: conflicting server name "_" on 0.0.0.0:80, ignored nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Nginx configuration updated successfully. Created symlink /etc/systemd/system/multi-user.target.wants/serviceradar-web.service → /usr/lib/systemd/system/serviceradar-web.service. ServiceRadar Web Interface installed successfully! Web UI is running on port 3000 Access the UI through Nginx at http://your-server-ip/ Setting up serviceradar-proton (1.0.36) ... ServiceRadar Proton: Setting up ServiceRadar Proton Server... ServiceRadar Proton: Creating proton group... ServiceRadar Proton: Creating proton user... ServiceRadar Proton: Setting up ulimits for proton user... ServiceRadar Proton: Configuring sysctl settings... ServiceRadar Proton: Disabling transparent huge pages... ServiceRadar Proton: Creating required directories... ServiceRadar Proton: Copying configuration files... ServiceRadar Proton: Copied /usr/share/serviceradar-proton/config.yaml to /etc/proton-server/config.yaml ServiceRadar Proton: Copied /usr/share/serviceradar-proton/users.yaml to /etc/proton-server/users.yaml ServiceRadar Proton: Copied /usr/share/serviceradar-proton/grok-patterns to /etc/proton-server/grok-patterns ServiceRadar Proton: Verifying configuration files... ServiceRadar Proton: Verified /etc/proton-server/config.yaml ServiceRadar Proton: Verified /etc/proton-server/users.yaml ServiceRadar Proton: Verified /etc/proton-server/grok-patterns ServiceRadar Proton: Generating random password... ServiceRadar Proton: Configuring default user password... ServiceRadar Proton: Updating /etc/serviceradar/core.json with database password... ServiceRadar Proton WARNING: /etc/serviceradar/core.json not found, skipping database password update ServiceRadar Proton: Creating symbolic links... ServiceRadar Proton: Verifying configuration files... ServiceRadar Proton: Verified /etc/proton-server/config.yaml ServiceRadar Proton: Verified /etc/proton-server/users.yaml ServiceRadar Proton: Verified /etc/proton-server/grok-patterns ServiceRadar Proton: Setting capabilities for proton binary... ServiceRadar Proton: Setting ownership and permissions... ServiceRadar Proton: Configuring systemd service... ServiceRadar Proton: ServiceRadar Proton service started successfully ServiceRadar Proton: Fixing permissions of log files... ServiceRadar Proton: Fixing permissions on /etc/serviceradar/certs/ ServiceRadar Proton: Restarting proton service... ServiceRadar Proton: Restarting serviceradar-core service... ServiceRadar Proton: ServiceRadar Proton Server installed successfully! ServiceRadar Proton: A secure password has been generated and saved to /etc/proton-server/generated_password.txt ServiceRadar Proton: Note: Password authentication is not used due to mTLS configuration. Errors were encountered while processing: serviceradar-nats serviceradar-agent serviceradar-core serviceradar-poller serviceradar-kv needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (1) [ServiceRadar] ERROR: Failed to install packages root@serviceradar-demo-staging:/etc/serviceradar# ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar#262
No description provided.