koel / docker

A minimal docker image for the koel music streaming server.
https://hub.docker.com/r/phanan/koel/
MIT License
166 stars 54 forks source link

Sync Fails even after increasing MEMORY_LIMIT #176

Open yashaskm11 opened 1 year ago

yashaskm11 commented 1 year ago

   INFO  Scanning /Flac.  

  972/3482 [=======>--------------------]  27%
   ValueError 

  fread(): Argument #2 ($length) must be greater than 0

  at vendor/james-heinrich/getid3/getid3/getid3.php:2215
    2211▕                       //if (($this->getid3->memory_limit > 0) && ($bytes > $this->getid3->memory_limit)) {
    2212▕                       if (($this->getid3->memory_limit > 0) && (($bytes / $this->getid3->memory_limit) > 0.99)) { // enable a more-fuzzy match to prevent close misses generating errors like "PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 33554464 bytes)"
    2213▕                               throw new getid3_exception('cannot fread('.$bytes.' from '.$this->ftell().') that is more than available PHP memory ('.$this->getid3->memory_limit.')', 10);
    2214▕                       }
  ➜ 2215▕                       $part = fread($this->getid3->fp, $bytes);
    2216▕                       $partLength  = strlen($part);
    2217▕                       $bytes      -= $partLength;
    2218▕                       $contents   .= $part;
    2219▕               } while (($bytes > 0) && ($partLength > 0));

      +5 vendor frames 
  6   app/Services/FileSynchronizer.php:52
      getID3::analyze()

  7   app/Services/FileSynchronizer.php:79
      App\Services\FileSynchronizer::getFileScanInformation()

No results after trying all these - MEMORY_LIMIT=2048 - MEMORY_LIMIT=2048M - MEMORY_LIMIT="2048"