Fixing Laravel artisan migration timeout issues

A quick tip if you are getting timeout issues when creating new Laravel migrations:

$ php artisan migrate:make create_users_table --table=users --create
Created Migration: 2013_06_25_100053_create_users_table
Generating optimized class loader

[Symfony\Component\Process\Exception\RuntimeException]
The process timed-out.

Open up the vendor/symfony/process/Symfony/Component/Process/Process.php
file within your Laravel application and change the constructor from:

    public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = 60, array $options = array())

to this:

    public function __construct($commandline, $cwd = null, array $env = null, $stdin = null, $timeout = null, array $options = array())

This removes the timeout, and will prevent the error from happening.

Looking for reliable hosting for your Laravel projects? I recommend Clook Internet.

Glen Scott

I’m a freelance software developer with 18 years’ professional experience in web development. I specialise in creating tailor-made, web-based systems that can help your business run like clockwork. I am the Managing Director of Yellow Square Development.

More Posts

Follow Me:
TwitterFacebookLinkedIn

4 thoughts on “Fixing Laravel artisan migration timeout issues

  1. Martyn

    Hi, Any idea about this error: [Symfony\Component\Process\Exception\RuntimeException]
    The process has been signaled with signal “11”. Every time I use terminal (OSX) for laravel via composer I get this issue.

    I tried the above but nothing changed.

    Reply
  2. Johan Eliasson

    Hi,

    I know that this thread is old, and hopefully you’ve already solved it, but people arriving in this thread may be intrested in trying to adjust the “process-timeout” value in the Composer.json-file.

    “`xml
    “config” : {
    “process-timeout”: 0
    }
    ““

    The change of this value fixed my issue with timeout.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.