-
Notifications
You must be signed in to change notification settings - Fork 295
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
Having Errors with no logs #78
Comments
These is my workflow: jobs: |
Hi @instance0f , I would expect after the line in your screenshot:
And quite a few more. Is there anything else? I'm specially interested in what's after: (I hope to see some kind of error that helps debugging it) |
Also, I see that you use a hosted server. I think that the action will try to reach it on the port 22 from a GitHub server, is it reachable? If you had access to the ssh logs to see if a connection is attempted (with success or error) it might also help. Thanks for (trying to) use the action :-) |
Hi cpina,
Hi Cpina, Ive tried using this in my personal github and it worked. But in my enterprise it doesnt. |
Hi @cpina , Thanks for your prompt reply. I am using a self-hosted linux runner without admin permissions. Should there be an issue? |
Shouldn't be the problem. I will prepare a branch to try to gather more information. I will comment here with some steps :-) |
Hi @instance0f , Instead of:
Could you use:
It might be fixed in this version: please let me know and I'll move the fix to master.
And maybe:
Let me know of the messages please to continue debugging. Thanks for your report! |
Please see image. Additional line of
|
How can i check port 22? and ssh logs? Thanks |
Thanks, I see the additional line but I still don't know why the ssh-keyscan would fail silently. Could you do another build? (same debug-78 branch, just make sure that it triggers the build again with the action). You should see: And hopefully some more information (a path, the output of an ls -l) and the commands being executed. Let's see if this helps. About:
Thanks for executing the branch debug-78 I don't think that this is the problem (or not yet, so let's try one more run to see if it works) |
Please see screenshot above. (used debug-78 branch)
|
Hi @instance0f , Could you try again? I had the lines in the wrong order so it failed before it could gather the information that I think that might be useful. Actually I have an idea but I'd like to confirm it in the output. We might need two more tests but if you could try again and show the output will be useful, I hope! Thanks! |
Hi @cpina , |
I've added some more debug information - could you try a new execution please? No availability for now for a Skype and anyway I need to think between attempts :-) thanks for your patience! |
Hi @cpina this should be regarding the following parameters:
|
I'm more interested in the output of the area near: It failed "later" because the action had So, a screenshot near Thanks! |
Added another bits of debugging - mind running again please and screenshot around |
Hi @instance0f , I read that I had expected When I disabled the "early exit if an error" we can also see Your worker, where the action is executed, cannot connect to github.com. Is there anyone in the company that you could work with? The problem, for sure, is that the "instance" (the network, or the container, etc.) where the action is executed cannot connect to github.com port 22. This needs to be enabled if you want to push into it. Also, can you confirm that the destination repository is in "github.com", right? Not in some other hosted enterprise GitHub installation? To access the files in the "destination repository": are you using something like https://github.com/YourOrganisation/DestinationRepo ? If instead of github.com you are using something else then you would need to set the GITHUB_SERVER in the action (it's one of the parameters). |
No, the destination repo is in the same server: "github.gisd88.com" my whole source repo url is: https://github.gisd88.com/Business-Technology/deployment-manifest-secret server: github.gisd88.com Thanks! |
In this case you need, in your action, to set the But I see in a message above that you had done this. Do you know if this is still the case? Because in your screenshot of the configuration I see that you had |
(note that today I will not be around the computer, if I don't answer I will do in the evening or next days) |
Hi @cpina, Thanks for the immediate response. These are the parameters i am using:
Thanks, |
Hi @cpina, Can we cross this issue out? |
Yes, we can cross this issue out. I thought that the destination was in github.com. |
Hi @instance0f ,
We need to double check something... In your very first screenshot (https://user-images.githubusercontent.com/77665552/188066047-1544c4f9-545c-4be7-8258-81db4b70b5bd.png) I see:
This is correct. In the pre-last line of blue-text (done by GitHub before it reaches the action) I see:
At this point it made it to the action but because of an error (fixed) in the action the But from that moment on, all the screenshots that you attached, don't have, in the blue lines, the "github.gisd88.com" and the screenshots have "github.com" (which is the default value for Yesterday night I tried to set in one of the examples the So, I wonder how is this possible. If you could double check all the steps and everything like:
With the output of
I've made some changes in |
hi @cpina Sorry for the late response, i was away last weekends.
These are the parameters im using now. not sure which is the branch to use currently. Im at main ATM |
Hi, Could you take a screenshot similar to https://user-images.githubusercontent.com/77665552/188463817-393fc683-2656-4b3e-97ca-9fdfb2032420.png (I'm after the lines in blue) of the latest execution? I want to see if the github-server is still github.com or is the one that you specify. Also, to be sure that there are no duplicates / typos could you do in the root of your repo: and copy-paste all the output? (edit individual lines if it would have confidential information). I'd like to see all the workflows in complete. I'm really curious to understand what will be the final issue. At the moment (for what I see in the lines in blue) the action is receiving as Thanks! |
Hi @cpina
maybe in the SSH deploy. do i need to login as an enterprise user before generating the ssh key? |
Good news: in the set of blue lines I finally see "github.gisd88.com" as specified in the "github-server". As you can see now it also does "Using SSH_DEPLOY_KEY" (with a few lines) and continues with "Git version". We progressed (initially this didn't happen because of a bug in the action that I fixed, then github.gisd88.com was not passed to the action and I'm not sure why not... but all is good now on this front). The action says that cannot list "output/" in an unexpected way. I'm unsure why is trying to do "ls: output/" at this point. But before this, the step "creates output" is executing "Run sh./build.sh" and does "mkdir: cannot create directory" and "generated_at" is strange. Some things that I see and how to proceed:
Thanks! |
Hi @cpina, Thanks for patiently answering to my concerns, i think we are nearing completion :) the previous error is that /output is already existing so i modified the
i also created a very simple build.sh
Please see screenshot of result. it seems this is reading a different source folder: |
Would it be possible that you copy-paste (or take a screenshot) of your whole workflow file? Thanks! :-) |
|
Ha! I had written a longer answer but meanwhile I saw (and reproduced!) the problem. I hope that in your So, could you add a line: So like this:
It seems that the Let me know what happens! |
If it does not work copy-paste your configuration YAML file and the output, as always. Thanks! |
I'm looking a bit more and it might not be needed to have the container (as I see the action used without the container). But let's try this since it might be needed in the |
Note that I edited an earlier comment. Please note that it is:
Not "ubuntu-latest" as I had in a previous version of the message. |
Hi @cpina , I added container: ubuntu after the runner. Please see logs. I think there is an issue with our github runner as you mentioned. It's not able to create containers |
Today I will be away from the computer. I will follow up in the evening or tomorrow. I have an idea that I want to test first and then try that might help. Thanks! |
By the way, if they could enable using docker containers it would also solve the problems I think :-) |
As you suggested: it seems to be that your hosted GitHub cannot create containers. Could this be fixed? Second thing: I've done, more as an experiment (that might help you) than a final solution a change in the branch
Use:
Thanks! |
Hi @cpina , Thanks for all the help! same error with the debug-78 branch |
Hi @instance0f - apologies, I forgot to mention to also remove the line To clarify: the branch Is your git runner (the self-hosted) a Linux with a apt-get available? or is a Windows or Mac? Cheers, |
Hi @cpina, |
This is promising but it might be a dead end. Let's try building it again. If the packages |
Hi @cpina Sorry for the late update. I was able to fix my code by adding path upon checkout. Please see below:
It seems there are some issues with the self-hosted runner and your code. |
Hurray! That approach was one of my next ideas :-) Happy that you got it working! Thanks to your discussion I got one bug fixed and one good idea for the future, so win-win. BTW, I think that with your current approach if a file was in Cheers! |
please see screenshot
The text was updated successfully, but these errors were encountered: