Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Sideloaded service configuration fails if pointers previously existed #2754

Open
elvece opened this issue Oct 15, 2024 · 2 comments
Open
Assignees
Milestone

Comments

@elvece
Copy link
Member

elvece commented Oct 15, 2024

After sideloading a service, attempting to configure it if the config had union pointers in 0351 fails with the following error:

Screenshot 2024-10-15 at 4 48 30 PM

The patch payload:

Screenshot 2024-10-15 at 4 48 22 PM

This error does not occur if the same service@version is installed from the marketplace.
Example:

  • sideload this btcpay version
  • attempt to save config
  • see error
  • uninstall
  • install same version of btcpay from the alpha marketplace
  • attempt to configure
  • configuration saves successfully
@elvece elvece added this to the 0.3.6 milestone Oct 15, 2024
@MattDHill
Copy link
Member

Some more context here, as there are multiple possible bugs:

  1. installing from alpha and sideloading are producing different behavior.
  2. when side loaded, the observed behavior might have nothing to do with pointers, might just be unions in general. Need to test another service with unions to confirm.
  3. when installed from alpha, running the action "works", meaning no error is produced, but neither does it result in the expected dependnecies being created. Upon running the action, BTCPay should have dependencies on both Bitcoin an LND/CLN, but neither are created.

@elvece
Copy link
Member Author

elvece commented Oct 16, 2024

This happens 100% of the time when you have a fresh OS image with no services installed and sideload or install btcpay from alpha. If you uninstall btcpay and sideload/ install from alpha it again, the error persists.

If you install bitcoin, configure it, and then configure btcpay, the error is not produced.

so perhaps its only if the first service you try to save is a service that previously had a config union with pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants