project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

packaging: pegaprox 1.1.0-1 postinst chowns an untracked file → appliance build fails

Open mkellermann97 opened this issue 3 months ago • 3 comments

Hey @gyptazy — heads up on the Debian package.

The v1.1.0 release-appliance build (build-lxc, both arches) fails at the pegaprox postinst:

chown: cannot access '/usr/lib/pegaprox/pegaprox/api/.ssh_ws_server.py': No such file or directory
dpkg: error processing package pegaprox (--configure): postinst subprocess returned error exit status 1
→ distrobuilder: Failed to run post-packages: exit status 100

Cause: we stopped tracking that generated dot-file in 54dbca4 (it's written at runtime into a temp dir now — the package's api/ is root-owned read-only for the service user, so vms.py falls back to tempfile.gettempdir(), and it never lands at that path). But debian/pegaprox.postinst still chown/chmod +x'd it by name, so dpkg bails.

Fixed in source on main (45f3312): dropped the stale chown/chmod from the postinst (+ the matching version.json update_files entry).

The pegaprox_1.1.0-1_all.deb on packages.gyptazy.com still carries the old postinst (I checked — lines 50-51), so re-running the appliance build just pulls the broken one again. Could you rebuild + republish the .deb from current main (a 1.1.0-2 is fine)? Then the appliance build goes green. Thanks a lot! 🙏

mkellermann97 avatar Sep 01 '26 06:09 mkellermann97

👋 Thanks for opening an issue!

It looks like the issue template was removed (or this was opened outside the templates). We rely on the Bug / Feature template so we can actually act on reports — a description-only issue with the template deleted almost always misses the details we need (version, repro, environment).

Please open a fresh issue using one of the templates (New issue → 🐛 Bug Report or ✨ Feature Request) and fill in the sections. 🐾

This is an automated message — closing for now; reopen with a completed template.

github-actions[bot] avatar Sep 01 '26 06:09 github-actions[bot]

Hey @mkellermann97,

thanks for already fixing this. I just took the time to ensure that this also works as the Debian package slightly modifies the data structure compared to the upstream ones. So far, it looks good:

package:

t# dpkg -l | grep pega
ii  pegaprox                         1.1.0-1                              all          Multi-Cluster Manager for Proxmox VE

service:

           | |-pegaprox.service
           | | |-18981 /usr/bin/python3 /usr/lib/pegaprox/pegaprox_multi_cluster.py
           | | `-18994 /usr/bin/python3 /tmp/.ssh_ws_server.py

Unfortunately, the pipeline is fully based on tags from the upstream repository. The easiest way to solve would be to move the upstream tag in project-pegaprox for a rebuild, or to create a new tag like v1.1.1. Alternatively, I can completely manually craft a release v.1.1.0-2 and upload this to the repository (manual things may always lead into issues).

  • I crafted 1.1.0-2 manually which can be found at: https://cdn.gyptazy.com/debian/pegaprox/pegaprox_1.1.0-2_all.deb
    • If there're confirmations that this one is working and @mkellermann97 & @MrMasterbay are confirming, I'm placing this manually into the repository

If you're moving the tag, please let me know to retrigger the pipeline.

Cheers, gyptazy

gyptazy avatar Sep 01 '26 09:09 gyptazy

Hey everyone,

as discussed with @MrMasterbay, we placed [pegaprox_1.1.0-2_all.deb](https://cdn.gyptazy.com/debian/pegaprox/pegaprox_1.1.0-2_all.deb) into the repository. This way, the package is also available for people who already upgraded to 1.1.0-1. This should fix the issue:

root@test-build:~# apt-get install pegaprox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  pegaprox
0 upgraded, 1 newly installed, 0 to remove and 74 not upgraded.
Need to get 8409 kB of archives.
After this operation, 31.7 MB of additional disk space will be used.
Get:1 https://packages.gyptazy.com/api/packages/gyptazy/debian trixie/main all pegaprox all 1.1.0-2 [8409 kB]
Fetched 8409 kB in 2s (5481 kB/s)   
Selecting previously unselected package pegaprox.
(Reading database ... 47589 files and directories currently installed.)
Preparing to unpack .../pegaprox_1.1.0-2_all.deb ...
Unpacking pegaprox (1.1.0-2) ...
Setting up pegaprox (1.1.0-2) ...
User 'pegaprox' already exists, skipping creation.

Cheers, gyptazy

gyptazy avatar Sep 01 '26 19:09 gyptazy