title: /tmp/laravel-excel does not exist
body: <p>so i am using <a href="https://github.com/SpartnerNL/Laravel-Excel/tree/3.1" rel="nofollow noreferrer">laravel excel</a> for importing .csv files and because the .csv files contain a lot of data then i running the import using laravel queue with redis driver</p>
  <p>everything working just fine at local server at my mac using valet</p>
  <p>but the problem occur when i tried the same code at production server at our vps that managed using runcloud</p>
  <p>and it is only happen if i am using queue driver beside snyc. so if i change it to use database driver or redis driver then the error come.</p>
  <p>after doing multiple debuging i find out that the error is because it can't create \tmp\ files for this plugins for doing import</p>
  <p>to help find the key issue here is my configuration</p>
  <pre><code>&quot;php&quot;: &quot;&gt;=7.1.3&quot;,
  &quot;maatwebsite/excel&quot;: &quot;^3.1&quot;,
  &quot;laravel/framework&quot;: &quot;5.6.*&quot;,
  &quot;predis/predis&quot;: &quot;^1.1&quot;, 
  </code></pre>
  <p>and here is stacktrace from laravel.log</p>
  <pre><code>[2022-01-06 14:57:14] local.ERROR: File &quot;/tmp/laravel-excel-kzUS1G2AIXnig0Z1VKs5AegK3ar98WRS.csv&quot; does not exist. {&quot;exception&quot;:&quot;[object] (InvalidArgumentException(code: 0): File \&quot;/tmp/laravel-excel-kzUS1G2AIXnig0Z1VKs5AegK3ar98WRS.csv\&quot; does not exist. at /home/runcloud/webapps/puskopcuina/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php:137)
  [stacktrace]
  #0 /home/runcloud/webapps/puskopcuina/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/BaseReader.php(152): PhpOffice\\PhpSpreadsheet\\Shared\\File::assertFile()
  #1 /home/runcloud/webapps/puskopcuina/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php(540): PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader-&gt;openFile()
  #2 /home/runcloud/webapps/puskopcuina/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php(349): PhpOffice\\PhpSpreadsheet\\Reader\\Csv-&gt;canRead()
  #3 /home/runcloud/webapps/puskopcuina/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php(330): PhpOffice\\PhpSpreadsheet\\Reader\\Csv-&gt;loadIntoExisting()
  #4 /home/runcloud/webapps/puskopcuina/vendor/maatwebsite/excel/src/Jobs/ReadChunk.php(118): PhpOffice\\PhpSpreadsheet\\Reader\\Csv-&gt;load()
  #5 [internal function]: Maatwebsite\\Excel\\Jobs\\ReadChunk-&gt;handle()
  #6 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array()
  #7 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
  #8 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod()
  #9 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\BoundMethod::call()
  #10 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\\Container\\Container-&gt;call()
  #11 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Bus\\Dispatcher-&gt;Illuminate\\Bus\\{closure}()
  #12 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Pipeline\\Pipeline-&gt;Illuminate\\Pipeline\\{closure}()
  #13 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline-&gt;then()
  #14 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(49): Illuminate\\Bus\\Dispatcher-&gt;dispatchNow()
  #15 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(83): Illuminate\\Queue\\CallQueuedHandler-&gt;call()
  #16 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(326): Illuminate\\Queue\\Jobs\\Job-&gt;fire()
  #17 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(276): Illuminate\\Queue\\Worker-&gt;process()
  #18 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\\Queue\\Worker-&gt;runJob()
  #19 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\\Queue\\Worker-&gt;daemon()
  #20 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(85): Illuminate\\Queue\\Console\\WorkCommand-&gt;runWorker()
  #21 [internal function]: Illuminate\\Queue\\Console\\WorkCommand-&gt;handle()
  #22 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array()
  #23 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
  #24 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\\Container\\BoundMethod::callBoundMethod()
  #25 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\BoundMethod::call()
  #26 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Console/Command.php(179): Illuminate\\Container\\Container-&gt;call()
  #27 /home/runcloud/webapps/puskopcuina/vendor/symfony/console/Command/Command.php(255): Illuminate\\Console\\Command-&gt;execute()
  #28 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Console/Command.php(166): Symfony\\Component\\Console\\Command\\Command-&gt;run()
  #29 /home/runcloud/webapps/puskopcuina/vendor/symfony/console/Application.php(1009): Illuminate\\Console\\Command-&gt;run()
  #30 /home/runcloud/webapps/puskopcuina/vendor/symfony/console/Application.php(273): Symfony\\Component\\Console\\Application-&gt;doRunCommand()
  #31 /home/runcloud/webapps/puskopcuina/vendor/symfony/console/Application.php(149): Symfony\\Component\\Console\\Application-&gt;doRun()
  #32 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Console/Application.php(89): Symfony\\Component\\Console\\Application-&gt;run()
  #33 /home/runcloud/webapps/puskopcuina/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Illuminate\\Console\\Application-&gt;run()
  #34 /home/runcloud/webapps/puskopcuina/artisan(37): Illuminate\\Foundation\\Console\\Kernel-&gt;handle()
  #35 {main}&quot;} 
  </code></pre>
  <p><strong>update</strong></p>
  <p>here is my config/excel.php</p>
  <pre><code>&lt;?php
  
  use Maatwebsite\Excel\Excel;
  
  return [
      'exports'            =&gt; [
  
          /*
          |--------------------------------------------------------------------------
          | Chunk size
          |--------------------------------------------------------------------------
          |
          | When using FromQuery, the query is automatically chunked.
          | Here you can specify how big the chunk should be.
          |
          */
          'chunk_size' =&gt; 1000,
  
          /*
          |--------------------------------------------------------------------------
          | Temporary path
          |--------------------------------------------------------------------------
          |
          | When exporting files, we use a temporary file, before storing
          | or downloading. Here you can customize that path.
          |
          */
          'temp_path'  =&gt; sys_get_temp_dir(),
  
          /*
          |--------------------------------------------------------------------------
          | CSV Settings
          |--------------------------------------------------------------------------
          |
          | Configure e.g. delimiter, enclosure and line ending for CSV exports.
          |
          */
          'csv'        =&gt; [
              'delimiter'              =&gt; ',',
              'enclosure'              =&gt; '&quot;',
              'line_ending'            =&gt; PHP_EOL,
              'use_bom'                =&gt; false,
              'include_separator_line' =&gt; false,
              'excel_compatibility'    =&gt; false,
          ],
      ],
  
      'imports' =&gt; [
  
          'heading_row' =&gt; [
  
              /*
              |--------------------------------------------------------------------------
              | Heading Row Formatter
              |--------------------------------------------------------------------------
              |
              | Configure the heading row formatter.
              | Available options: none|slug|custom
              |
              */
              'formatter' =&gt; 'slug',
          ],
  
          'csv' =&gt; [
              'delimiter'              =&gt; '|',
              'enclosure'              =&gt; '&quot;',
              'line_ending'            =&gt; PHP_EOL,
              'use_bom'                =&gt; false,
              'include_separator_line' =&gt; false,
              'excel_compatibility'    =&gt; false,
          ],
      ],
  
      /*
      |--------------------------------------------------------------------------
      | Extension detector
      |--------------------------------------------------------------------------
      |
      | Configure here which writer type should be used when
      | the package needs to guess the correct type
      | based on the extension alone.
      |
      */
      'extension_detector' =&gt; [
          'xlsx'     =&gt; Excel::XLSX,
          'xlsm'     =&gt; Excel::XLSX,
          'xltx'     =&gt; Excel::XLSX,
          'xltm'     =&gt; Excel::XLSX,
          'xls'      =&gt; Excel::XLS,
          'xlt'      =&gt; Excel::XLS,
          'ods'      =&gt; Excel::ODS,
          'ots'      =&gt; Excel::ODS,
          'slk'      =&gt; Excel::SLK,
          'xml'      =&gt; Excel::XML,
          'gnumeric' =&gt; Excel::GNUMERIC,
          'htm'      =&gt; Excel::HTML,
          'html'     =&gt; Excel::HTML,
          'csv'      =&gt; Excel::CSV,
          'tsv'      =&gt; Excel::TSV,
  
          /*
          |--------------------------------------------------------------------------
          | PDF Extension
          |--------------------------------------------------------------------------
          |
          | Configure here which Pdf driver should be used by default.
          | Available options: Excel::MPDF | Excel::TCPDF | Excel::DOMPDF
          |
          */
          'pdf'      =&gt; Excel::DOMPDF,
      ],
  ];
  </code></pre>