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

dokku_ports doesn't use the new 0.31+ ports commands, thus crashes #168

Closed
laurenskling opened this issue Dec 14, 2023 · 5 comments
Closed

Comments

@laurenskling
Copy link

Description of problem

fatal: [xxx.myserver.xxx]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "app": "myapp",
            "mappings": [
                "http:80:1337",
                "https:443:1337"
            ],
            "state": "present"
        }
    },
    "meta": {
        "error": "Command 'dokku --quiet proxy:ports-set myapp http:80:1337 https:443:1337' returned non-zero exit status 1.",
        "present": false
    },
    "msg": "Command 'dokku --quiet proxy:ports-set myapp http:80:1337 https:443:1337' returned non-zero exit status 1."
}

So manually on my server, I reproduce:

myuser@myserver:~# dokku proxy:ports-set myapp http:80:1337 https:443:1337
 !     Invalid plugin subcommand call: ports-set

this is because ports management changed in 0.31: https://dokku.com/docs/networking/port-management/

How reproducible

use dokku 0.31+, use ansible dokku_ports

Environment Information

this command fails :/ sorry

How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:

I installed Dokku on a VPS and trying to get ansible to install my projects

@ltalirz
Copy link
Member

ltalirz commented Dec 23, 2023

#169

@marcoklein
Copy link

Also related to #159 if you installed via Ansible Galaxy. If I pull latest master and drop that in the roles folder the ports plugin works just fine.

@ltalirz
Copy link
Member

ltalirz commented Mar 13, 2024

v2023.11.6 is now released on ansible galaxy, also just started a workflow to push the latest state of master https://github.com/dokku/ansible-dokku/actions/runs/8261254138

Please check whether this fixes your issue

@strugee
Copy link

strugee commented Mar 27, 2024

I can confirm that upgrading from v2021.11.28 to v2024.3.13 fixes this issue for me. Thank you!

@ltalirz
Copy link
Member

ltalirz commented Mar 27, 2024

Great, I'll close this then. Should something still need to be fixed, feel free to reopen

@ltalirz ltalirz closed this as completed Mar 27, 2024
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

4 participants