Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JhumanJ's avatar

Vapor: Compressing Application step fails

Hello,

Just getting started with Laravel Vapor and i'm getting the following error:

==> Compressing Application

In Process.php line 1237:
                                                                                                                                   
  The process "'zip' '-r' '/Users/Julien/Documents/MAMP_Server/PTB/.vapor/build/app.zip' '.'" exceeded the timeout of 60 seconds.  
                                                                                                                                   

Any ideas? I don't know where to ask for help for Vapor...

0 likes
5 replies
Tray2's avatar

Try deleting all the files in you vendors directory. After you backed it up of course.

JhumanJ's avatar

Thanks, but unfortunately that did not work.

fichby's avatar

try and set in the php.ini file

max_execution_time= 600
JhumanJ's avatar

Unfortunately that did not help. I think it's composer's process timeout, I just didn't figured out yet where to set it to make it work.

JhumanJ's avatar
JhumanJ
OP
Best Answer
Level 1

I dived into the Vapor code to find out it was timing out because of Synfony's Process default timeout (60s). In fact zipping was taking a very long time because I had a huge file in the root folder, which was copied by Vapor. Removing it fixed the issue.

1 like

Please or to participate in this conversation.