contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
122 stars 57 forks source link

Failed to create symbolic link from "../../vendor/contao/core-bundle/src/Resources/contao/themes/flexible" to #432

Closed kzorluoglu closed 8 years ago

kzorluoglu commented 8 years ago

i have ubuntu 14.04 server, trying contao4 installation with composer, always get this error..

It looks like your system doesn't support symbolic links, so the assets were installed by copying them.
Installing assets for Contao\NewsletterBundle into web/bundles/contaonewsletter
It looks like your system doesn't support symbolic links, so the assets were installed by copying them.
Installing assets for Sensio\Bundle\DistributionBundle into web/bundles/sensiodistribution
It looks like your system doesn't support symbolic links, so the assets were installed by copying them.
> Contao\CoreBundle\Composer\ScriptHandler::addDirectories
Created the /var/www/contao/system directory.
Created the /var/www/contao/templates directory.
Created the /var/www/contao/web/system directory.
Created the /var/www/contao/files directory.
Created the /var/www/contao/assets/css directory.
Added the /var/www/contao/assets/css/.gitignore file.
Created the /var/www/contao/assets/js directory.
Added the /var/www/contao/assets/js/.gitignore file.
Created the /var/www/contao/system/cache directory.
Added the /var/www/contao/system/cache/.gitignore file.
Created the /var/www/contao/system/config directory.
Added the /var/www/contao/system/config/.gitignore file.
Created the /var/www/contao/system/modules directory.
Added the /var/www/contao/system/modules/.gitignore file.
Created the /var/www/contao/system/themes directory.
Added the /var/www/contao/system/themes/.gitignore file.
Created the /var/www/contao/system/tmp directory.
Added the /var/www/contao/system/tmp/.gitignore file.
Created the /var/www/contao/web/share directory.
Added the /var/www/contao/web/share/.gitignore file.
Created the /var/www/contao/web/system/cron directory.
Added the /var/www/contao/web/system/cron/.gitignore file.
Created the /var/www/contao/assets/images directory.
Added the /var/www/contao/assets/images/.gitignore file.
Added the /var/www/contao/system/initialize.php file.
> Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks

  [Symfony\Component\Filesystem\Exception\IOException]                                                                       
  Failed to create symbolic link from "../../vendor/contao/core-bundle/src/Resources/contao/themes/flexible" to "/var/www/contao/system/themes/flexible".

contao:symlinks

Script Contao\CoreBundle\Composer\ScriptHandler::generateSymlinks handling the post-install-cmd event terminated with an exception

  [RuntimeException]
  An error occurred while executing the "contao:symlinks" command.

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
aschempp commented 8 years ago

The first message is added by Symfony, which tells us your system does not support symbolic links. Symbolic links are a requirement to run Contao 4, so you might need to fix this or change your server.

kzorluoglu commented 8 years ago

Hmm okey, thanks for answer. I can try again after symbolic extension installation.

DanielSchwiperich commented 8 years ago

I think we had this error once where the user had insufficient rights to create files / links. Not sure though

kzorluoglu commented 8 years ago

Fixed in Vagrantbox config file My Vagrant config file;

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|

  config.vm.box = "ubuntu/trusty64"
  config.vm.network "public_network", ip: "192.168.178.200"
  config.vm.hostname = "korayserver"
  config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

   config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
  #   vb.gui = true
  #
  #   # Customize the amount of memory on the VM:
      vb.memory = "2048"
      vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate//vagrant","1"]

  end
end