I'm having some trouble with modules, if I run `nf...
# tools
r
I'm having some trouble with modules, if I run
nf-core modules list remote
I get `CRITICAL Failed to clone from the remote: `https://github.com/nf-core/modules.git`` I can clone the repository successfully with just a git clone command but every nf-core modules command breaks with this error message if I try to run it. I also posted this in the modules channel
p
No need to double-post (I deleted your other in #modules)
What does the verbose log say with
-v
?
That should show the exact git commands being run under the hood
Sometimes just deleting your local clone and running the commands (to get a fresh clone) can fix this, if it got corrupted somehow
Copy code
rm -rf ~/.nfcore/nf-core/modules/
r
This is the output with the -v, I'll give the deleting a try just now
Copy code
Cloning from 'nf-core/modules' (https://github.com/nf-core/modules.git) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Waiting for responseDEBUG    Popen(['git', 'version'], cwd=/lustre1/project/stg_00096/home/rforsyth, stdin=None, shell=False, universal_newlines=False)                     cmd.py:1253
DEBUG    Popen(['git', 'clone', '-v', '--progress', '--', 'https://github.com/nf-core/modules.git',                                                     cmd.py:1253
         '/user/leuven/351/vsc35115/.config/nfcore/nf-core/modules'], cwd=/lustre1/project/stg_00096/home/rforsyth, stdin=None, shell=False,                       
         universal_newlines=True)                                                                                                                                  
Cloning from 'nf-core/modules' (https://github.com/nf-core/modules.git) ━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 27.0%DEBUG    AutoInterrupt wait stderr: b''                                                                                                                  cmd.py:833
CRITICAL Failed to clone from the remote: `https://github.com/nf-core/modules.git`                                                           commands_modules.py:28
Deleting and rerunning the command, unfortunately produces the same error (with the -v)
p
I probably got the path wrong in my
rm
command above
Looks like it's
/user/leuven/351/vsc35115/.config/nfcore/nf-core/modules
(we changed from
.nfcore
to
.config/nfcore
years ago, apparently that's been lurking in my home directory on my laptop since 2022 😅 )
r
I'm still getting the same error upon rerunning it with the edited path unfortunately,
I installed the nf-core through conda, is it possible theres some problem with the conda installation?
j
do you have writing permissions in
/user/leuven/351/vsc35115/.config/nfcore
?
r
Yes, I've got writing permissions
p
What happens if you try to run that git command manually?
Copy code
git clone -v --progress -- https://github.com/nf-core/modules.git /user/leuven/351/vsc35115/.config/nfcore/nf-core/modules
For reference, I get this (with a different target path):
Copy code
❯ git clone -v --progress -- https://github.com/nf-core/modules.git test
Cloning into 'test'...
POST git-upload-pack (175 bytes)
POST git-upload-pack (gzip 10802 to 5332 bytes)
remote: Enumerating objects: 139178, done.
remote: Counting objects: 100% (1010/1010), done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 139178 (delta 896), reused 740 (delta 733), pack-reused 138168 (from 3)
Receiving objects: 100% (139178/139178), 157.60 MiB | 24.68 MiB/s, done.
Resolving deltas: 100% (75787/75787), done.
Updating files: 100% (9299/9299), done.
@Júlia Mir could it be this? 🤔
Copy code
DEBUG    AutoInterrupt wait stderr: b''
I wonder if it's trying to prompt for a GitHub password or something? 🤔
j
it shouldn't require any password 🤔
r
I apparently went over my allotted disk usage (whoops), I've cleared up some files and it works, Thank you for the help!
homer disappear 1
🙌 1
🙌🏻 1
p
haha, classic 😆
Glad you got it sorted!