Getting stuck with upgrade 2.0.1 to 2.1.x


#1

I’m following the guide, but when trying to use php composer.phar install --no-dev I’m getting an error

Generating autoload files

php artisan clear-compiled

[Symfony\Component\Console\Exception\CommandNotFoundException]
Command “clear-compiled” is not defined.

Script php artisan clear-compiled handling the post-install-cmd event returned with an error

[RuntimeException]
Error Output:

Any idea’s?


#2

Ok, actually found a fix for it…

in htdocs use the following command: rm -Rf bootstrap/cache/*


#3

@mrjohny thanks. Let me know how that goes I’ve heard the upgrade 2.0.1 to 2.1.x presents some challenges.


#4

Alhthough now i’m stuck with the next step…

php artisan migrate --seed

Error:

SQLSTATE[HY000] [2002] Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

When starting mysql it says.

mysql started at port 3306 ; so it’s running…

No idea what could be the issue…


#5

In the end it was fixed by some of the engineers here, not sure what exactly was done, but it was a bit of a challenge :slight_smile:


#6

If you ever get an error with MySQL indicating it can’t connect through socket, try changing the connection to be 127.0.0.1 rather than localhost.