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

No such file or directory: '/home/***/proabc2-work/session.log #14

Closed
AbDiscover opened this issue Jun 5, 2024 · 14 comments
Closed

No such file or directory: '/home/***/proabc2-work/session.log #14

AbDiscover opened this issue Jun 5, 2024 · 14 comments
Assignees

Comments

@AbDiscover
Copy link

I used docker as " docker run ghcr.io/haddocking/proabc-2:latest /home//proabc2-work h.fasta l.fasta", however, the error cames"[Errno 2] No such file or directory: '/home//proabc2-work/session.log". May I have your advice on this?

@rvhonorato rvhonorato self-assigned this Jun 5, 2024
@rvhonorato
Copy link
Member

From your command it seems that you are missing the -v flag;

docker run \
    ghcr.io/haddocking/proabc-2:latest \
    -v `pwd`:/data \ ## This line
    /home/user/proabc2-work h.fasta l.fasta

you might need to adjust the paths to your case

@AbDiscover
Copy link
Author

“yilu@localhost:~/proabc2-work$ docker run ghcr.io/haddocking/proabc-2:latest -v /home/yilu/proabc2-work h.fasta l.fasta
usage: proabc2 [-h] folder heavy light
proabc2: error: unrecognized arguments: -v” It seems that “-v” can be recognized

@rvhonorato
Copy link
Member

The -v goes inside the docker arguments, try this:

Go into your home directory

cd /home/yilu

Run the command:

docker run \
  -v `pwd`:/data
  ghcr.io/haddocking/proabc-2:latest \
  proabc2-work h.fasta l.fasta

@AbDiscover
Copy link
Author

AbDiscover commented Jun 6, 2024 via email

@rvhonorato
Copy link
Member

It's ` not '

docker run \
  -v `pwd`:/data
  ghcr.io/haddocking/proabc-2:latest \
  proabc2-work h.fasta l.fasta

@rvhonorato rvhonorato changed the title [Errno 2] No such file or directory: '/home/***/proabc2-work/session.log". No such file or directory: '/home/***/proabc2-work/session.log Jun 12, 2024
@Iqrarshad

This comment was marked as resolved.

@rvhonorato
Copy link
Member

Could you please share what command you tried to input?

@rvhonorato
Copy link
Member

Thanks @Iqrarshad, indeed with powershell/cmd i'm also getting this error. Could you instead try via WSL and check if that works for you?

@Iqrarshad
Copy link

My issue has been resolved. The folder we created earlier, "proabc2-prediction," required permission to write a log file. I updated the permissions of the folder, and it worked for me.

@rvhonorato
Copy link
Member

Thanks for the update on the workaround 👍🏽

@PCRandChill
Copy link

Hey - I'm running the following command

docker run \
  -v `pwd`:/data \
  ghcr.io/haddocking/proabc-2:latest \
  proabc2-prediction/ heavy.fasta light.fasta

and I still have the following error:
[Errno 2] No such file or directory: 'proabc2-prediction/session.log'

The tried the permission fix and I have all permissions for "proabc2-prediction" directory. However the error persists.
ls -l drwxrwxrwx 2 root root 4096 Feb 5 10:35 proabc2-prediction

@rvhonorato rvhonorato reopened this Feb 5, 2025
@rvhonorato
Copy link
Member

rvhonorato commented Feb 5, 2025

@PCRandChill could you please post here the full error and try running this command instead?

docker run \
  --rm \
  --user $(id -u):$(id -g) \
  -v `pwd`:/data \
  ghcr.io/haddocking/proabc-2:latest \
  proabc2-prediction/ heavy.fasta light.fasta

@PCRandChill
Copy link

@rvhonorato Thanks for the reply. I figured out my problem was in the directory creation. My top level directory is proabc2-prediction and I have the two .fasta files in there. So, when I mount this directory to the /data directory of the container only the files inside we mounted essentially making the next call proabc2-prediction/ heavy.fasta light.fastainvalid. I modified it as below and it works.
docker run \ -v /home/user/proabc2-prediction:/data \ ghcr.io/haddocking/proabc-2:latest \ /data heavy.fasta light.fasta

@rvhonorato
Copy link
Member

Thanks for the update - we will think of a execution script to facilitate execution and avoid these issues.

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