sonata-project / sandbox

[Abandoned] Sonata Project's sandbox
https://sonata-project.org
MIT License
268 stars 198 forks source link

Unable to install Sandbox on Wamp : An error occurs when running a command! #366

Closed mrsof closed 10 years ago

mrsof commented 10 years ago

Hi, I don't reach to install Sonata Sandbox. It hangs at the end with a command error...

D:\Program Files\cmder
λ cd D:/wamp/www/Sonata-oeg

D:\wamp\www\Sonata-oeg
λ php ../composer.phar create-project sonata-project/sandbox:2.3.x-dev
Installing sonata-project/sandbox (2.3.x-dev ef7eb5840b3178f3d3b6acd58d4d67376792c159)
  - Installing sonata-project/sandbox (2.3.x-dev ef7eb58)
    Cloning ef7eb5840b3178f3d3b6acd58d4d67376792c159

Created project in D:\wamp\www\Sonata-oeg\sandbox
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing twig/twig (v1.15.1)
    Loading from cache

  - Installing doctrine/lexer (v1.0)
    Loading from cache

  - Installing doctrine/annotations (v1.1.2)
    Loading from cache

  - Installing doctrine/collections (v1.2)
    Loading from cache

  - Installing doctrine/cache (v1.3.0)
    Loading from cache

  - Installing doctrine/inflector (v1.0)
    Loading from cache

  - Installing doctrine/common (v2.4.1)
    Loading from cache

  - Installing symfony/icu (v1.2.1)
    Loading from cache

  - Installing symfony/symfony (v2.3.12)
    Loading from cache

  - Installing kriswallsmith/assetic (v1.1.2)
    Loading from cache

  - Installing symfony/assetic-bundle (v2.3.0)
    Loading from cache

  - Installing doctrine/data-fixtures (dev-master e847b07)
    Cloning e847b073c2b5350045edbb40443645ad09a59538

  - Installing jdorn/sql-formatter (v1.2.17)
    Loading from cache

  - Installing doctrine/dbal (v2.4.2)
    Loading from cache

  - Installing doctrine/doctrine-bundle (v1.2.0)
    Loading from cache

  - Installing doctrine/doctrine-fixtures-bundle (v2.2.0)
    Loading from cache

  - Installing knplabs/gaufrette (v0.1.4)
    Loading from cache

  - Installing dflydev/markdown (v1.0.3)
    Loading from cache

  - Installing knplabs/knp-markdown-bundle (1.2.0)
    Loading from cache

  - Installing sonata-project/core-bundle (2.2.5)
    Loading from cache

  - Installing knplabs/knp-menu (v1.1.2)
    Loading from cache

  - Installing knplabs/knp-menu-bundle (1.1.x-dev 2fecac0)
    Cloning 2fecac02614e5a006f674dd5dd754eeaeca060b9

  - Installing sonata-project/cache (1.0.1)
    Loading from cache

  - Installing sonata-project/block-bundle (2.2.11)
    Loading from cache

  - Installing stephpy/timeline (dev-master b11695d)
    Cloning b11695d6c87d81a9c9536a355c930626e137967e

  - Installing stephpy/timelinebundle (dev-master 7451b00)
    Cloning 7451b0073a5a1c49f377da1d8baaa2794c99164a

  - Installing sonata-project/timeline-bundle (dev-master 190873b)
    Cloning 190873b646993905bedd6a90cbbff6dee0914d34

  - Installing michelf/php-markdown (1.4.0)
    Loading from cache

  - Installing nelmio/api-doc-bundle (2.5.1)
    Loading from cache

  - Installing willdurand/jsonp-callback-validator (v1.1.0)
    Loading from cache

  - Installing willdurand/negotiation (1.3.2)
    Loading from cache

  - Installing friendsofsymfony/rest-bundle (1.3.1)
    Loading from cache

  - Installing knplabs/knp-components (1.2.5)
    Loading from cache

  - Installing knplabs/knp-paginator-bundle (2.4.0)
    Loading from cache

  - Installing phpoption/phpoption (1.4.0)
    Loading from cache

  - Installing phpcollection/phpcollection (0.4.0)
    Loading from cache

  - Installing jms/parser-lib (1.0.0)
    Loading from cache

  - Installing jms/metadata (1.5.0)
    Loading from cache

  - Installing jms/serializer (0.16.0)
    Loading from cache

  - Installing jms/cg (1.0.0)
    Loading from cache

  - Installing jms/aop-bundle (1.0.1)
    Loading from cache

  - Installing jms/di-extra-bundle (1.4.0)
    Loading from cache

  - Installing jms/serializer-bundle (0.13.0)
    Loading from cache

  - Installing sensio/framework-extra-bundle (v2.3.4)
    Loading from cache

  - Installing friendsofsymfony/comment-bundle (dev-master 16712bd)
    Cloning 16712bda7d84c1e14c8e1cca9224d4516cadb619

  - Installing sonata-project/easy-extends-bundle (2.1.6)
    Loading from cache

  - Installing sonata-project/doctrine-extensions (1.0.2)
    Loading from cache

  - Installing doctrine/orm (v2.4.2)
    Loading from cache

    Skipped installation of bin bin/doctrine for package doctrine/orm: name conflicts with an existing file
    Skipped installation of bin bin/doctrine.php for package doctrine/orm: name conflicts with an existing file
  - Installing sonata-project/comment-bundle (dev-master c96315b)
    Cloning c96315bbe68955dbe1320cccc2c6162dc1b5e4d0

  - Installing sonata-project/notification-bundle (2.2.6)
    Loading from cache

  - Installing sonata-project/google-authenticator (1.0.2)
    Loading from cache

  - Installing friendsofsymfony/user-bundle (v1.3.3)
    Loading from cache

  - Installing sonata-project/exporter (1.3.3)
    Loading from cache

  - Installing sonata-project/jquery-bundle (1.8.3)
    Loading from cache

  - Installing twig/extensions (v1.0.1)
    Loading from cache

  - Installing sensio/generator-bundle (v2.3.4)
    Loading from cache

  - Installing sonata-project/admin-bundle (2.2.11)
    Loading from cache

  - Installing sonata-project/user-bundle (2.2.4)
    Loading from cache

  - Installing kriswallsmith/buzz (v0.10)
    Loading from cache

  - Installing imagine/imagine (v0.5.0)
    Loading from cache

  - Installing sonata-project/media-bundle (2.2.8)
    Loading from cache

  - Installing sonata-project/doctrine-orm-admin-bundle (2.2.7)
    Loading from cache

  - Installing sonata-project/classification-bundle (2.2.1)
    Loading from cache

  - Installing sonata-project/seo-bundle (1.1.6)
    Loading from cache

  - Installing sonata-project/intl-bundle (2.2.1)
    Loading from cache

  - Installing sonata-project/ecommerce (dev-master 4cf65e7)
    Cloning 4cf65e7c3d6ee293f27895446da71974a0353565

  - Installing mopa/composer-bridge (v1.3.0)
    Loading from cache

  - Installing mopa/bootstrap-bundle (v3.0.0-beta3)
    Loading from cache

  - Installing twbs/bootstrap (v3.0.0)
    Loading from cache

  - Installing gedmo/doctrine-extensions (v2.3.9)
    Loading from cache

  - Installing stof/doctrine-extensions-bundle (v1.1.0)
    Loading from cache

  - Installing behat/mink (v1.5.0)
    Loading from cache

  - Installing behat/gherkin (v2.3.5)
    Loading from cache

  - Installing behat/behat (v2.5.3)
    Loading from cache

    Skipped installation of bin bin/behat for package behat/behat: name conflicts with an existing file
  - Installing behat/mink-extension (v1.2.0)
    Loading from cache

  - Installing jms/security-extra-bundle (1.5.1)
    Loading from cache

  - Installing doctrine/migrations (dev-master 46a031d)
    Cloning 46a031ddaea47d0685200027cfe8c83b02aee6f6

  - Installing doctrine/doctrine-migrations-bundle (dev-master f713838)
    Cloning f7138381aa884c0f679da4de41e369b94ead9cd3

  - Installing simplethings/entity-audit-bundle (v0.5.1)
    Loading from cache

  - Installing swiftmailer/swiftmailer (v5.1.0)
    Loading from cache

  - Installing symfony/swiftmailer-bundle (v2.3.7)
    Loading from cache

  - Installing monolog/monolog (1.9.1)
    Loading from cache

  - Installing symfony/monolog-bundle (v2.5.1)
    Loading from cache

  - Installing sensio/distribution-bundle (v2.3.4)
    Loading from cache

  - Installing symfony-cmf/routing (1.1.0)
    Loading from cache

  - Installing symfony-cmf/routing-bundle (1.1.1)
    Loading from cache

  - Installing sonata-project/cache-bundle (2.1.6)
    Loading from cache

  - Installing sonata-project/page-bundle (2.3.6)
    Loading from cache

  - Installing sonata-project/markitup-bundle (2.1.0)
    Loading from cache

  - Installing egeloen/ckeditor-bundle (2.2.1)
    Loading from cache

  - Installing sonata-project/formatter-bundle (2.3.1)
    Loading from cache

  - Installing sonata-project/news-bundle (2.3.4)
    Loading from cache

  - Installing fzaninotto/faker (v1.3.0)
    Loading from cache

  - Installing willdurand/faker-bundle (1.2.0)
    Loading from cache

  - Installing incenteev/composer-parameter-handler (v2.1.0)
    Loading from cache

  - Installing phpunit/php-text-template (1.2.0)
    Loading from cache

  - Installing phpunit/phpunit-mock-objects (1.2.3)
    Loading from cache

  - Installing phpunit/php-timer (1.0.5)
    Loading from cache

  - Installing phpunit/php-token-stream (1.2.2)
    Loading from cache

  - Installing phpunit/php-file-iterator (1.3.4)
    Loading from cache

  - Installing phpunit/php-code-coverage (1.2.17)
    Loading from cache

  - Installing phpunit/phpunit (3.7.35)
    Loading from cache

    Skipped installation of bin composer/bin/phpunit for package phpunit/phpunit: name conflicts with an existing file
  - Installing guzzle/guzzle (v3.9.0)
    Loading from cache

  - Installing fabpot/goutte (v1.0.5)
    Loading from cache

  - Installing behat/mink-browserkit-driver (v1.1.0)
    Loading from cache

  - Installing behat/mink-goutte-driver (v1.0.9)
    Loading from cache

  - Installing instaclick/php-webdriver (1.0.17)
    Loading from cache

    Skipped installation of bin bin/webunit for package instaclick/php-webdriver: name conflicts with an existing file
  - Installing behat/mink-selenium2-driver (v1.1.1)
    Loading from cache

kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
doctrine/data-fixtures suggests installing doctrine/mongodb-odm (For loading MongoDB ODM fixtures)
doctrine/data-fixtures suggests installing doctrine/phpcr-odm (For loading PHPCR ODM fixtures)
knplabs/gaufrette suggests installing knplabs/knp-gaufrette-bundle (*)
knplabs/gaufrette suggests installing dropbox-php/dropbox-php (to use the Dropbox adapter)
knplabs/gaufrette suggests installing amazonwebservices/aws-sdk-for-php (to use the Amazon S3 adapter)
knplabs/gaufrette suggests installing ext-apc (to use the APC adapter)
knplabs/gaufrette suggests installing ext-mongo (*)
knplabs/knp-markdown-bundle suggests installing ext-sundown (to use optional support for php-sundown extension instead of php implementation)
knplabs/knp-menu suggests installing pimple/pimple (for the built-in implementations of the menu provider and renderer provider)
knplabs/knp-menu suggests installing silex/silex (for the integration with your silex application)
sonata-project/cache suggests installing doctrine/phpcr-odm (PHPCR ODM support)
sonata-project/cache suggests installing ext-apc (Caching with ext/apc)
sonata-project/cache suggests installing ext-memcached (Caching with ext/memcached)
sonata-project/cache suggests installing predis/predis (Install redis php)
stephpy/timeline suggests installing predis/predis (Redis PHP client library)
stephpy/timeline suggests installing pimple/pimple (Use ServiceLocator)
stephpy/timeline suggests installing ext-redis (Redis C extension for PHP)
stephpy/TimelineBundle suggests installing snc/redis-bundle (Use redis driver)
stephpy/TimelineBundle suggests installing doctrine/mongodb-odm-bundle (Use doctrine ODM driver)
knplabs/knp-components suggests installing doctrine/mongodb-odm (to allow usage pagination with Doctrine ODM MongoDB)
knplabs/knp-components suggests installing ruflin/Elastica (to allow usage pagination with ElasticSearch Client)
knplabs/knp-components suggests installing propel/propel1 (to allow usage pagination with Propel ORM)
knplabs/knp-components suggests installing solarium/solarium (to allow usage pagination with Solarium Client)
friendsofsymfony/comment-bundle suggests installing ornicar/akismet-bundle (Integrate Akismet for spamdetection.)
sonata-project/notification-bundle suggests installing liip/monitor-bundle (~1.0)
sonata-project/notification-bundle suggests installing videlalvaro/php-amqplib (2.0.*)
friendsofsymfony/user-bundle suggests installing willdurand/propel-typehintable-behavior (Needed when using the propel implementation)
sonata-project/exporter suggests installing propel/propel1 (~1.6)
sonata-project/admin-bundle suggests installing jms/translation-bundle (Extract message keys from Admins)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
sonata-project/media-bundle suggests installing liip/imagine-bundle (~0.9)
sonata-project/media-bundle suggests installing amazonwebservices/aws-sdk-for-php (~1.5)
sonata-project/media-bundle suggests installing rackspace/php-opencloud (~1.6)
sonata-project/media-bundle suggests installing tilleuls/ckeditor-sonata-mediabundle (~1.0)
mopa/bootstrap-bundle suggests installing mopa/bootstrap-sandbox-bundle (~2.3)
mopa/bootstrap-bundle suggests installing craue/formflow-bundle (~2.0)
mopa/bootstrap-bundle suggests installing jlong/sass-twitter-bootstrap (dev-master)
gedmo/doctrine-extensions suggests installing doctrine/mongodb (>=1.0.1)
gedmo/doctrine-extensions suggests installing doctrine/mongodb-odm (>=1.0.0-BETA7)
stof/doctrine-extensions-bundle suggests installing doctrine/mongodb-odm-bundle (to use the MongoDB ODM extensions)
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
symfony-cmf/routing-bundle suggests installing doctrine/phpcr-odm (To enable support for the PHPCR ODM documents)
symfony-cmf/routing-bundle suggests installing doctrine/phpcr-bundle (To enable support for the PHPCR ODM documents)
symfony-cmf/routing-bundle suggests installing symfony-cmf/content-bundle (To optionally use the configured value for 'content_basepath' from the CoreBundle)
symfony-cmf/routing-bundle suggests installing symfony-cmf/core-bundle (For compatibility with Symfony 2.2 and easier configuration)
symfony-cmf/routing-bundle suggests installing sonata-project/doctrine-phpcr-admin-bundle (To provide an admin interface for the PHPCR ODM documents)
sonata-project/cache-bundle suggests installing doctrine/phpcr-bundle (PHPCR ODM support)
sonata-project/cache-bundle suggests installing doctrine/phpcr-odm (PHPCR ODM support)
sonata-project/cache-bundle suggests installing ext-apc (Caching with ext/apc)
sonata-project/cache-bundle suggests installing ext-memcached (Caching with ext/memcached)
sonata-project/cache-bundle suggests installing predis/predis (Install redis php)
egeloen/ckeditor-bundle suggests installing helios-ag/fm-elfinder-bundle (Allows to use the elfinder as CKEditor file manager)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_driver (pdo_mysql):
database_host (127.0.0.1):
database_name (sonata_sandbox):
database_user (sonata): root
database_password (sonata): null
mailer_transport (smtp):
mailer_host (localhost):
mailer_user (null):
mailer_password (null):
locale (en):
secret (ThisTokenIsNotSoSecretChangeIt):
sonata_admin.title ('Sonata Project'):
sonata_admin.logo_title (/bundles/sonataadmin/logo_title.png):
sonata_news.blog_title ('My Awesome Blog'):
sonata_news.blog_link ('http://awesome-blog.ltd'):
sonata_news.blog_description ('My Awesome blog description'):
sonata_news.salt (ThisTokenIsNotSoSecretChangeIt):
sonata_news.comment.emails ([mail@example.org]):
sonata_news.comment.email_from (no-reply@example.org):
sonata_media.cdn.host (/uploads/media):
sonata_user.google_authenticator.server (demo.sonata-project.org):
sonata_page.varnish.command ('if [ ! -r "/etc/varnish/secret" ]; then echo "VALID ERROR :/"; else varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 {{ COMMAND }} "{{ EXPRESSION }}"; fi;'):
Clearing the cache for the dev environment with debug true
Checking SymlinkCreating Symlink: D:\wamp\www\Sonata-oeg\sandbox\vendor\mopa\bootstrap-bundle\Mopa\Bundle\BootstrapBundle\Resources\public\bootstrap ... OK
Installing assets using the symlink option
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for Sonata\PageBundle into web/bundles/sonatapage
Installing assets for Sonata\MediaBundle into web/bundles/sonatamedia
Installing assets for Sonata\MarkItUpBundle into web/bundles/sonatamarkitup
Installing assets for Ivory\CKEditorBundle into web/bundles/ivoryckeditor
Installing assets for Sonata\AdminBundle into web/bundles/sonataadmin
Installing assets for Nelmio\ApiDocBundle into web/bundles/nelmioapidoc
Installing assets for Sonata\BasketBundle into web/bundles/sonatabasket
Installing assets for Sonata\PaymentBundle into web/bundles/sonatapayment
Installing assets for Sonata\ProductBundle into web/bundles/sonataproduct
Installing assets for Sonata\CommentBundle into web/bundles/sonatacomment
Installing assets for Sonata\jQueryBundle into web/bundles/sonatajquery
Installing assets for Sonata\Bundle\DemoBundle into web/bundles/sonatademo
Installing assets for Mopa\Bundle\BootstrapBundle into web/bundles/mopabootstrap
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]?
Updating the "app/config/parameters.yml" file
Clearing the cache for the dev environment with debug true
Checking Symlink ... OK
Installing assets using the symlink option
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
Installing assets for Sonata\PageBundle into web/bundles/sonatapage
Installing assets for Sonata\MediaBundle into web/bundles/sonatamedia
Installing assets for Sonata\MarkItUpBundle into web/bundles/sonatamarkitup
Installing assets for Ivory\CKEditorBundle into web/bundles/ivoryckeditor
Installing assets for Sonata\AdminBundle into web/bundles/sonataadmin
Installing assets for Nelmio\ApiDocBundle into web/bundles/nelmioapidoc
Installing assets for Sonata\BasketBundle into web/bundles/sonatabasket
Installing assets for Sonata\PaymentBundle into web/bundles/sonatapayment
Installing assets for Sonata\ProductBundle into web/bundles/sonataproduct
Installing assets for Sonata\CommentBundle into web/bundles/sonatacomment
Installing assets for Sonata\jQueryBundle into web/bundles/sonatajquery
Installing assets for Sonata\Bundle\DemoBundle into web/bundles/sonatademo
Installing assets for Mopa\Bundle\BootstrapBundle into web/bundles/mopabootstrap
Resetting demo
Executing :  rm -rf ./app/cache/*

Executing :  ./app/console cache:warmup --env=prod --no-debug
'.' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
An error occurs when running a command!
Script php load_data.php handling the post-create-project-cmd event returned with an error

  [RuntimeException]
  Error Output:

create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]

D:\wamp\www\Sonata-oeg
λ

I'm on windows seven, wamp 2.2 and the command tool is executed with admin rigths Same error with develop Sandbox version. Thx for help

tranthienbinh1989 commented 10 years ago

you need edit someting load_data.php file. It can not run on windows. replace these lines.

'php app/console cache:warmup --env=prod --no-debug',
'php app/console cache:create-cache-class --env=prod --no-debug',
'php app/console doctrine:database:drop --force',
'php app/console doctrine:database:create',
'php app/console doctrine:schema:update --force',
'php -d memory_limit=1024M app/console doctrine:fixtures:load -n --verbose --env=dev',
'php app/console sonata:page:update-core-routes --site=all --no-debug',
'php app/console sonata:page:create-snapshots --site=all --no-debug',
'php app/console assets:install --symlink web',
'php app/console sonata:admin:setup-acl',

--- some file name can not find on windows. You need to change it follow dir : sandbox\src\Sonata\Bundle\DemoBundle\DataFixtures\data\files\hugo-canada you will see the file name with "á". Replace it to "a".

Finally : at command line run : php load_data.php to fixed. Good luck !!!

rande commented 10 years ago

This issue has been fixed on the 2.3-develop branch

baymaro commented 10 years ago

Facing the same issue, i install the 2.3 develop branch but i'm getting the same error

Here is the command i use: php composer.phar create-project sonata-project/sandbox:dev-2.3-develop