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

Issue for new release of gliderlabs-sigil package #6899

Open
ronazst opened this issue May 19, 2024 · 6 comments
Open

Issue for new release of gliderlabs-sigil package #6899

ronazst opened this issue May 19, 2024 · 6 comments

Comments

@ronazst
Copy link

ronazst commented May 19, 2024

Description of problem

The new released gliderlabs-sigil package having Permission deined issue due to no execute x permission for /usr/bin/sigil.

After grant x permission to the sigil file, then it will has new error:

/usr/bin/sigil: line 1: syntax error near unexpected token `newline'
/usr/bin/sigil: line 1: `!<arch>'

User will see the following error, if they just upgrade the package:

/var/lib/dokku/plugins/enabled/nginx-vhosts/install: line 116: /usr/bin/sigil: Permission denied

Steps to reproduce

Debian bookworm:

apt update && apt upgrade

dokku report $APP_NAME

this not related to any app, it's about dokku install.

Additional information

No response

Output of failing commands after running: dokku trace:off

No response

Output of failing commands after running: dokku trace:on

No response

@ronazst
Copy link
Author

ronazst commented May 19, 2024

Any people having the same issue can try pin the gliderlabs-sigil to old version.

If you are using the apt as package manage system, you can juse put the following content to file: /etc/apt/preferences.d/pin-gliderlabs-sigil-dokku-fix and reinstall gliderlabs-sigil

Package: gliderlabs-sigil
Pin: version 0.10.1
Pin-Priority: 1002

@ronazst ronazst changed the title Issue for new released of gliderlabs-sigil package Issue for new release of gliderlabs-sigil package May 19, 2024
@josegonzalez
Copy link
Member

I pulled the bad sigil release and will inspect what is going on that breaks releases.

I'll also think about how we can ensure bad dokku dependencies can't make it out to users.

@ronazst
Copy link
Author

ronazst commented May 20, 2024

I pulled the bad sigil release and will inspect what is going on that breaks releases.

I'll also think about how we can ensure bad dokku dependencies can't make it out to users.

seems you also own the gliderlabs-sigil package, how about add dokku usage as unit test in gliderlabs-sigil?

but for other dependencies not own by dokku team, how about just let it go?
It's really hard to controll other dependencies, unless we also do "pin" dependency during dokku install, and update the pin version during upgrade.

BTW: the new gliderlabs-sigil missed the execution permission (chmod +x) which should also be another issue for package/install script.

@josegonzalez
Copy link
Member

There is, but a release downstream doesn't (yet) trigger - rebuild (and it works be weird to hate downstream releases on dokku).

@kbuilds
Copy link
Contributor

kbuilds commented May 22, 2024

I actually ran into this the other day when I upgraded my dokku installation to v0.34.4. The upgrade was performed using apt. This prevented the core plugins from updating properly until I manually patched /usr/bin/sigil file.

As the OP said, this was causing an issue during the install file here:

https://github.com/dokku/dokku/blob/master/plugins/nginx-vhosts/install#L116

I am not sure where the upgrade process got the new /usr/bin/sigil file from, but the output from the sigil command was the exact same as the OP.

@josegonzalez
Copy link
Member

Okay I think whats happening is that we didn't compile the released package from cmd/sigil.go, but instead root. I'll see if I can change that and ensure we test that in CI before attempting a release.

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

No branches or pull requests

3 participants