Body: <p>I built Krakenuniq on an HPC, and I've been trying to run it on my data using the following command:</p>
  <pre><code>krakenuniq --db DBDIR --threads 1 All_reads.fastq
  </code></pre>
  <p>This definitely isn't powerful enough to get any reasonable output, but this is just a test run. However, I got the following error:</p>
  <pre><code>classify: unable to mmap ./DBDIR/database.kdb: Invalid argument
  </code></pre>
  <p>I haven't been able to find anything about this error online. DBDIR is 1TB, which seemed huge, so I was wondering if there might have been a problem with the build, but I saw no issues in the log.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-01T17:46:42.790Z
Comments.Text: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Comments.UserDisplayName: Community
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-02T17:47:35.583Z
Comments.Text: Is DBDIR in your working directory? Did you perhaps mean to write `--db ${DBDIR}`?
Comments.UserDisplayName: acvill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-03T08:13:05.293Z
Comments.Text: That's not how it's done in the documentation, and in any case it causes its own error:
Comments.UserDisplayName: schmiggle
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-03T08:20:40.357Z
Comments.Text: `krakenuniq: unable to find --threads in $KRAKEN_DB_PATH (undefined)` DBDIR appears to be in the working directory (ls lists it there).
Comments.UserDisplayName: schmiggle
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-19T07:15:36.107Z
Comments.Text: I have run into the same issue with the default Kraken using a prebuilt database at the university HPC.
Comments.UserDisplayName: haegglund
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-18T05:08:33.397Z
Comments.Text: @schmiggle Did you ever find a solution to this? I can see the database file (for example, ./DBDIR/database.kdb) is there, but I get the same error.
Comments.UserDisplayName: isabel31672
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-20T02:20:46.120Z
Comments.Text: I switched to using Kraken2 instead because of issues like this. Didn't ever find a solution.
Comments.UserDisplayName: schmiggle
Tags: <metagenome>
Title: Krakenuniq mmap error
ThreadText: # Krakenuniq mmap error
  
  (Asked by: username_0 on 2022-05-01)
  
  I built Krakenuniq on an HPC, and I've been trying to run it on my data using the following command:
  
  ```
  krakenuniq --db DBDIR --threads 1 All_reads.fastq
  
  ```
  
  This definitely isn't powerful enough to get any reasonable output, but this is just a test run. However, I got the following error:
  
  ```
  classify: unable to mmap ./DBDIR/database.kdb: Invalid argument
  
  ```
  
  I haven't been able to find anything about this error online. DBDIR is 1TB, which seemed huge, so I was wondering if there might have been a problem with the build, but I saw no issues in the log.
  
  **Tags:** metagenome
  
  > **Comments:**
  > **username_1**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  
  > **username_2**: Is DBDIR in your working directory? Did you perhaps mean to write `--db ${DBDIR}`?  
  > **username_0**: That's not how it's done in the documentation, and in any case it causes its own error:  
  > **username_0**: `krakenuniq: unable to find --threads in $KRAKEN_DB_PATH (undefined)` DBDIR appears to be in the working directory (ls lists it there).  
  > **username_3**: I have run into the same issue with the default Kraken using a prebuilt database at the university HPC.  
  > **username_4**: @username_0 Did you ever find a solution to this? I can see the database file (for example, ./DBDIR/database.kdb) is there, but I get the same error.  
  > **username_0**: I switched to using Kraken2 instead because of issues like this. Didn't ever find a solution.  
  
  ---
  
  ## 0 answers
  
  