title: How to fix this EACCES error when uploading files Apache, Passenger, Node
body: <p>I've installed the app on Debian Wheezy with Apache and it is running just fine. I have trouble with uploading files however. </p>
  
  <p>I want to mention, that previously I had this very same app running on a hosting service that provided Node+Passenger option. I am pretty sure we experienced the same issue. I reported it to customer service and they fixed it day after. Unfortunately without explaining what was causing the error. Obviously it works just fine hosted locally, no errors on Nodejitsu hosting as well.</p>
  
  <p>So, my app use this module for handling file uploads: <a href="https://www.npmjs.com/package/blueimp-file-upload-expressjs" rel="nofollow">https://www.npmjs.com/package/blueimp-file-upload-expressjs</a></p>
  
  <p>The logs:</p>
  
  <p>App 32309 stdout: EACCES, open '/var/passenger_node_test/data/uploaded/tmp/upload_b71d67685c771daa8dfabf8630f688f2'</p>
  
  <p>App 32309 stdout: Error: EACCES, open '/var/passenger_node_test/data/uploaded/tmp/upload_b71d67685c771daa8dfabf8630f688f2'</p>
  
  <p>App 32309 stdout: </p>
  
  <p>App 32309 stdout: cleaning</p>
  
  <p>App 32309 stdout: cleaning</p>
  
  <p>[ 2015-01-24 20:53:01.0740 32234/b5fa2b70 EventedBufferedInput.h:146 ]: [EventedBufferedInput 0x84005dc fd=28, state=LIVE, buffer(0)="", paused=0, socketPaused=0, nextTickInstalled=0, generation=2, error=0] onReadable</p>
  
  <p>[ 2015-01-24 20:53:01.0741 32234/b5fa2b70 EventedBufferedInput.h:172 ]: [EventedBufferedInput 0x84005dc fd=28, state=LIVE, buffer(0)="", paused=0, socketPaused=0, nextTickInstalled=0, generation=2, error=0] end of stream</p>
  
  <p>[ 2015-01-24 20:53:01.0741 32234/b5fa2b70 agents/HelperAgent/RequestHandler.h:1223 ]: [Client 25] Event: onAppInputData</p>
  
  <p>[ 2015-01-24 20:53:01.0741 32234/b5fa2b70 agents/HelperAgent/RequestHandler.h:1313 ]: [Client 25] Event: onAppInputEof</p>
  
  <p>[ 2015-01-24 20:53:01.0742 32234/b5fa2b70 agents/HelperAgent/RequestHandler.h:1323 ]: [Client 25] Application sent EOF</p>
  
  <p>[ 2015-01-24 20:53:01.0742 32234/b5fa2b70 Pool2/Implementation.cpp:583 ]: Session closed for process (pid=32309, group=/var/passenger_node_test#default)</p>
  
  <p>[ 2015-01-24 20:53:01.0742 32234/b5fa2b70 agents/HelperAgent/RequestHandler.h:1406 ]: [Client 25] Event: onClientOutputPipeEnd</p>
  
  <p>[ 2015-01-24 20:53:01.0742 32234/b5fa2b70 agents/HelperAgent/RequestHandler.h:1411 ]: [Client 25] Client output pipe ended; disconnecting client</p>
  
  <p>What I think happens. Server received file and saved it as temporary data but for some reason couldn't read it just after. What might cause this error? I tried to run chown -R root on app folder but it didn't help.</p>
  
  <p>Please help, regards</p>
  
  <p>Konrad</p>