contao / manager-bundle

[READ-ONLY] Contao Manager Bundle
GNU Lesser General Public License v3.0
17 stars 10 forks source link

sporadic symlink error (file exists already) #32

Closed m-vo closed 7 years ago

m-vo commented 7 years ago

When ScriptHandler::initializeApplication() gets executed during a composer operation, I've come across this problem (had it two or three times before but unfortunately don't know by what it's caused):

WARNING   ContaoCoreBundle                absolute symlink
WARNING   ContaoCommentsBundle            absolute symlink
ERROR     ContaoNewsletterBundle          Failed to create "web/bundles/contaonewsletter": mkdir(): File exists.

(Output is from a console under windows - so that's why there are absolute symlinks and the warnings are as expected.)

One of the symlinks cannot be created. I don't know why composer tries to create the symlink in the first place as it is already existing and I don't know why the problem only happens for one of the packages.

m-vo commented 7 years ago

This might probably rather be a symfony problem than a contao issue as it happens in the assets:install --symlink --relative command.

aschempp commented 7 years ago

is the target an existing symlink or an actual folder?

m-vo commented 7 years ago

An existing symlink.

m-vo commented 7 years ago

I now ran vendor/bin/contao-console assets:install --symlink --relative lots of times in a row.

Findings:

Is there a way to get more verbose output on the error?

fritzmg commented 7 years ago

Is there a way to get more verbose output on the error?

Yes, with -v, -vv and -vvv ;)

m-vo commented 7 years ago

This never appeared again. I am therefore closing it.