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

Error: missing server host #364

Open
PiotrBracha opened this issue Feb 5, 2025 · 6 comments
Open

Error: missing server host #364

PiotrBracha opened this issue Feb 5, 2025 · 6 comments
Labels
question Further information is requested

Comments

@PiotrBracha
Copy link

I use:

        uses: appleboy/[email protected]
        with:
          host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
          username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
          key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
          script: |

debug logs shows:

##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_IP
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_IP'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_USER
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_USER'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.ANSIBLE_MANAGEMENT_SSH_KEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'ANSIBLE_MANAGEMENT_SSH_KEY'
##[debug]=> null
##[debug]Result: null

[...]

2025/02/05 13:10:37 Error: missing server host
##[debug]Docker Action run completed with exit code 1

Somehow secret with ssh key, user and machine's ip are evaluated as "null". In another repository I also use the same part:

        uses: appleboy/[email protected]
        with:
          host: ${{ secrets.ANSIBLE_MANAGEMENT_IP }}
          username: ${{ secrets.ANSIBLE_MANAGEMENT_USER }}
          key: ${{ secrets.ANSIBLE_MANAGEMENT_SSH_KEY }}
          script: |

and there is no problem.

@appleboy
Copy link
Owner

@PiotrBracha Please use v1.2.0 first and check the secret value.

@appleboy
Copy link
Owner

@PiotrBracha Any feedbacks?

@PiotrBracha
Copy link
Author

I will let you know friend for 100% sure. Currently too much tasks. This one got a little lower priority. :)

@appleboy
Copy link
Owner

I will let you know friend for 100% sure. Currently too much tasks. This one got a little lower priority. :)

Thanks for your feedback.

@appleboy appleboy added the question Further information is requested label Feb 21, 2025
@PiotrBracha
Copy link
Author

I will let you know friend for 100% sure. Currently too much tasks. This one got a little lower priority. :)

Thanks for your feedback.

Let's stay in touch. I will try check it as soon as possible (possible next week).

@PiotrBracha
Copy link
Author

PiotrBracha commented Feb 25, 2025

We made an update and we still get failed. It happens only when in the comment field we write @dependabot merge and confirm it by clicking "Comment" button.

EDIT
Probably we find out what is the source of the problem. "Dependabot" and "Actions" have own secrets.

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

No branches or pull requests

2 participants