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

Cannot run multiqc #2514

Closed
4 tasks done
sjclare opened this issue Apr 29, 2024 · 4 comments
Closed
4 tasks done

Cannot run multiqc #2514

sjclare opened this issue Apr 29, 2024 · 4 comments

Comments

@sjclare
Copy link

sjclare commented Apr 29, 2024

Description of bug

Similar to #2198

I have tried different installs (conda, pip), brand new environments, older versions (1.17)and I get the same error. I've also tried --interactive, --flat and --no-report. I am not sure what has happened since multiqc has always worked for me

File that triggers the error

Example file: RAPiD-Genomics_F279_VAC_155003_P001_WA01_i5-19_i7-59_S2489_L002_R1_001.fastp.json

MultiQC Error log

/// MultiQC 🔍 | v1.21

|           multiqc | Search path : /mnt/e/VacCAP_155003_Cranberry/ForManuscript/qc
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 384/384
|             fastp | Found 192 reports
|           multiqc | Report      : multiqc_report.html
|           multiqc | Data        : multiqc_data
Traceback (most recent call last):
  File "/home/barlex/anaconda3/envs/multiqc/bin/multiqc", line 8, in <module>
    sys.exit(run_multiqc())
             ^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/multiqc/__main__.py", line 23, in run_multiqc
    multiqc.run_cli(prog_name="multiqc")
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/rich_click/rich_command.py", line 126, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/multiqc/multiqc.py", line 299, in run_cli
    multiqc_run = run(**kwargs)
                  ^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/site-packages/multiqc/multiqc.py", line 1084, in run
    shutil.copytree(
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/shutil.py", line 573, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/barlex/anaconda3/envs/multiqc/lib/python3.11/shutil.py", line 527, in _copytree
    raise Error(errors)
shutil.Error: [('/tmp/tmp3snv69_d/multiqc_data', '/mnt/e/VacCAP_155003_Cranberry/ForManuscript/qc/multiqc_data', '[Errno 1] Operation not permitted')]

Before submitting

  • I have read the troubleshooting documentation.
  • I am using the latest release of MultiQC.
  • I have included a full MultiQC log, not truncated.
  • I have attached an input file (.zip if necessary) that triggers the error.
@vladsavelyev
Copy link
Member

The error says it can't write to /mnt/e/VacCAP_155003_Cranberry/ForManuscript/qc/multiqc_data. Have you checked if /mnt is read-only?

@vladsavelyev vladsavelyev added the waiting: response Waiting for more information from user label May 2, 2024
@sjclare
Copy link
Author

sjclare commented May 2, 2024

I have full permissions:
(snp) barlex@DESKTOP-VDKQE0G:/mnt/e/VacCAP_155003_Cranberry/ForManuscript$ ls -ld qc drwxrwxrwx 1 root root 4096 Apr 29 17:32 qc

Also multiqc makes the multiqc_data directory with txt files and a json file

@sjclare sjclare closed this as completed May 8, 2024
@sjclare sjclare reopened this May 8, 2024
@vladsavelyev
Copy link
Member

vladsavelyev commented May 8, 2024

Hey @sjclare - MultiQC works for me correctly on your file:

multiqc RAPiD-Genomics_F279_VAC_155003_P001_WA01_i5-19_i7-59_S2489_L002_R1_001.fastp.json

The error has unlikely anything to do with MultiQC, but rather with the file system, which doesn't let MultiQC recursively copy '/tmp/tmp3snv69_d/multiqc_data' into '/mnt/e/VacCAP_155003_Cranberry/ForManuscript/qc/multiqc_data':

shutil.Error: [('/tmp/tmp3snv69_d/multiqc_data', '/mnt/e/VacCAP_155003_Cranberry/ForManuscript/qc/multiqc_data', '[Errno 1] Operation not permitted')]

Check if for some reason the file system doesn't allow copying from /tmp into /mnt. Try changing the /tmp location by setting TMPDIR, like this:

TMPDIR=/mnt multiqc RAPiD-Genomics_F279_VAC_155003_P001_WA01_i5-19_i7-59_S2489_L002_R1_001.fastp.json

Or try a different output location.

@vladsavelyev vladsavelyev removed the waiting: response Waiting for more information from user label May 8, 2024
@sjclare
Copy link
Author

sjclare commented May 11, 2024

Wasn't able to fix the permissions issue but running with sudo worked

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

2 participants