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

.deploy-running: No such file or directory #28

Open
glenthomas opened this issue Feb 26, 2024 · 3 comments
Open

.deploy-running: No such file or directory #28

glenthomas opened this issue Feb 26, 2024 · 3 comments

Comments

@glenthomas
Copy link

glenthomas commented Feb 26, 2024

I updated from 1.12 to 1.14 and saw this error:

Transfer files
  Protocol: sftp
  Synchronization: full
  Local path: asset
  Remote path: /asset
  ____________________________________________________________________________________________________
  put: /home/runner/work/something/something/.deploy-running: No such file or directory
  Error: Process completed with exit code 1.

I can see this commit in 1.13 updated the paths and I think this has introduced an issue. Reverting to 1.12 solved the problem.

@milanmk
Copy link
Owner

milanmk commented Feb 29, 2024

Version 1.3 has many path related fixes and I would not recommend to downgrade the version.

Please try the following:

  1. Use relative path for local path local-path: ./asset
  2. Double check that the current working directory is correct on remote by login in to SFTP manually and checking the current path. Adjust the remote-path accordingly. You should use relative path to avoid any path related issues.

@Djontleman
Copy link

Hi @milanmk, I was looking through the script and have found what I think may be causing the problem.

touch "${local_path_slash}.deploy-running"
if [ "${input_sync}" == "full" ]; then
${proxy_cmd} lftp -c "put -O \"${remote_path_unslash}\" .deploy-running;

On line 355 you are adding the file at {local_path_unslash}.deploy_running, but when on 358 when you try and put the file into the remote server you try search for just .deploy_running.

What that says to me is that if local_path_unslash is anything other than ./ then line 358 will fail.

(I'm not really familiar with lftp so I may be wrong)

@milanmk
Copy link
Owner

milanmk commented May 23, 2024

@Djontleman put -O option sets the base directory so upload files should only have filename without any path prefix.

What that says to me is that if local_path_unslash is anything other than ./ then line 358 will fail.

That depends on whether you are using absolute or relative path. For relative path of just . will work just fine.

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