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

stack_file_name: No such file or directory #31

Open
flargargoyl opened this issue Sep 26, 2022 · 2 comments
Open

stack_file_name: No such file or directory #31

flargargoyl opened this issue Sep 26, 2022 · 2 comments

Comments

@flargargoyl
Copy link

How this path is taken? Ive tried:
absolute path within my repo (/docker-compose/{filename}-compose.yml )
Ive tried just the {filename}-compose.yml when it`s in the root of my repo
ive tried renaming it to docker-compose.yaml and using the default path
ive tried using my full repo link path

Every single one of them ends with No Such File or Directory.
How do i point it to a docker-compose.yaml in my repo to be copied to the host?

@yusben
Copy link

yusben commented Oct 6, 2022

How this path is taken? Ive tried: absolute path within my repo (/docker-compose/{filename}-compose.yml ) Ive tried just the {filename}-compose.yml when it`s in the root of my repo ive tried renaming it to docker-compose.yaml and using the default path ive tried using my full repo link path

Every single one of them ends with No Such File or Directory. How do i point it to a docker-compose.yaml in my repo to be copied to the host?

I am not sure about your case, but I had the same problem: No such file or dir.

Then I tried to test it without copy - took an example from here https://shihadeh.dev/actions/Docker-Deployment/ - Compose tab (without copy) and got the following:

Registering SSH keys... Agent pid 9 Identity added: /github/home/.ssh/id_rsa (/github/home/.ssh/id_rsa) Add known hosts Connecting to [email protected][12]()... /docker-entrypoint.sh: line 104: docker-compose: not found

Ip and user are not real here.
My guess it that it cannot establish ssh connection (just the line with "connecting" word and not success output) but continue to execute docker-compose command on the DockerHub machine (where docker-compose is not installed). Maybe the same situation can be in inability to find docker-compose file.
I rechecked all SSH credentials, keys according to docs and did not find any mistake in my config. Difficult to understand the reason without more detailed logs. I think the only way is dive into debugging (using another github action in marketplace).
Maybe I will come back to debug it but now it is quite sad that I was not able to make it work - it seemed to be a trivial action with a little effort to configure. =(

@diericx
Copy link

diericx commented Apr 26, 2023

I am able to establish a connection, with this one weird line in the logs

load pubkey "/github/home/.ssh/id_rsa": invalid format

If I specify any value for deploy_path other than the home directory of the ssh user it does not work. If I specify something like /root/ it will put the file in /root/docker-compose.yml and work fine. Looks like it copies the file but doesn't have any logic to run against it if it.

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