Details
-
Bug
-
Resolution: Duplicate
-
High
-
None
-
5.2
-
None
-
tar --strip-components=1 -xzf ezpublish5-5.2.0-ee-bul-full.tar.gz
rm -Rf ezpublish5-5.2.0-ee-bul-full.tar.gz
mkdir -p ezpublish_legacy/extension/ezfind
cd ezpublish_legacy/extension/ezfind
tar --strip-components=1 -xzf ezfind-5.2.0.tar.gz
rm -Rf ezfind-5.2.0.tar.gz
cd ..
cd ..
cd ..#rm -Rf ezpublish_legacy/extension/ezformtoken/
{ # 0,/a/s|^[[:blank:]]*enabled\:[[:blank:]]*.*$| enabled: false| # }
#sed -i "/[[:blank:]]*csrf_protection:/,/\:/" ezpublish/config/config.yml
sed -i "s/CURLOPT_CONNECTTIMEOUT, 3/CURLOPT_CONNECTTIMEOUT, 10/g" ezpublish_legacy/kernel/setup/steps/ezstep_site_types.php
sed -i "s/\/\/umask(/umask(/g" ezpublish/consolecd ezpublish_legacy
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
php composer.phar install --profile
cd ..rm -rf ezpublish/cache/*
{cache,logs,config},ezpublish_legacy/{design,extension,settings,var},web} -type d | sudo xargs chmod -R 777
rm -rf ezpublish/logs/*
find {ezpublish/
find {ezpublish/{cache,logs,config},ezpublish_legacy/
{design,extension,settings,var},web} -type f | sudo xargs chmod -R 666
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"php ezpublish/console assets:install --symlink --relative web
php ezpublish/console ezpublish:legacy:assets_install --symlink web
php ezpublish/console assetic:dump web
php ezpublish/console assetic:dump --env=prod web
cd web
wget http://s3-eu-west-1.amazonaws.com/xrow/downloads/ezcluster/robots.txt
wget http://s3-eu-west-1.amazonaws.com/xrow/downloads/ezcluster/.htaccesscd ..
cat <<EOL > ./reset.shrm -Rf ezpublish_legacy/var/cache/*
rm -Rf ezpublish_legacy/var/log/*
rm -Rf ezpublish_legacy/settings/override/*
rm -Rf ezpublish_legacy/settings/siteaccess/*
rm -Rf ezpublish/cache/*
rm -Rf ezpublish/log/*
rm -Rf ezpublish_legacy/var/ezdemo_site/cache/*
rm -Rf ezpublish_legacy/var/ezdemo_site/log/*
rm -Rf web/var/cache/*
rm -Rf web/var/log/*
rm -Rf ezpublish/config/ezpublish.yml
rm -Rf ezpublish/config/ezpublish_dev.yml
rm -Rf ezpublish/config/ezpublish_prod.yml
mysql -e'drop database xrow52'
mysql -e'create database xrow52'
cd ezpublish_legacy/
php bin/php/ezpgenerateautoloads.php
cd ..chmod -R 777 .
/etc/init.d/httpd restart
/etc/init.d/varnish restarttar --strip-components=1 -xzf ezpublish5-5.2.0-ee-bul-full.tar.gz rm -Rf ezpublish5-5.2.0-ee-bul-full.tar.gz mkdir -p ezpublish_legacy/extension/ezfind cd ezpublish_legacy/extension/ezfind tar --strip-components=1 -xzf ezfind-5.2.0.tar.gz rm -Rf ezfind-5.2.0.tar.gz cd .. cd .. cd .. #rm -Rf ezpublish_legacy/extension/ezformtoken/ #sed -i "/ [ [:blank:] ]*csrf_protection:/,/ \:/ { # 0,/a/s|^[[:blank:]]*enabled\:[[:blank:]]*.*$| enabled: false| # } " ezpublish/config/config.yml sed -i "s/CURLOPT_CONNECTTIMEOUT, 3/CURLOPT_CONNECTTIMEOUT, 10/g" ezpublish_legacy/kernel/setup/steps/ezstep_site_types.php sed -i "s/\/\/umask(/umask(/g" ezpublish/console cd ezpublish_legacy php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));" php composer.phar install --profile cd .. rm -rf ezpublish/cache/* rm -rf ezpublish/logs/* find {ezpublish/ {cache,logs,config},ezpublish_legacy/{design,extension,settings,var},web} -type d | sudo xargs chmod -R 777 find {ezpublish/{cache,logs,config} ,ezpublish_legacy/ {design,extension,settings,var} ,web} -type f | sudo xargs chmod -R 666 php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));" php ezpublish/console assets:install --symlink --relative web php ezpublish/console ezpublish:legacy:assets_install --symlink web php ezpublish/console assetic:dump web php ezpublish/console assetic:dump --env=prod web cd web wget http://s3-eu-west-1.amazonaws.com/xrow/downloads/ezcluster/robots.txt wget http://s3-eu-west-1.amazonaws.com/xrow/downloads/ezcluster/.htaccess cd .. cat <<EOL > ./reset.sh rm -Rf ezpublish_legacy/var/cache/* rm -Rf ezpublish_legacy/var/log/* rm -Rf ezpublish_legacy/settings/override/* rm -Rf ezpublish_legacy/settings/siteaccess/* rm -Rf ezpublish/cache/* rm -Rf ezpublish/log/* rm -Rf ezpublish_legacy/var/ezdemo_site/cache/* rm -Rf ezpublish_legacy/var/ezdemo_site/log/* rm -Rf web/var/cache/* rm -Rf web/var/log/* rm -Rf ezpublish/config/ezpublish.yml rm -Rf ezpublish/config/ezpublish_dev.yml rm -Rf ezpublish/config/ezpublish_prod.yml mysql -e'drop database xrow52' mysql -e'create database xrow52' cd ezpublish_legacy/ php bin/php/ezpgenerateautoloads.php cd .. chmod -R 777 . /etc/init.d/httpd restart /etc/init.d/varnish restart
Description
The installer crashes when I install the demo package without content. After I run sh reset after the crash the install works fine on the second try.
[root@localhost 5.2]# tail -n 25 ezpublish/logs/prod.log
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestSetup". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\SessionListener::onKernelRequest". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Publish\Core\MVC\Symfony\EventListener\SiteAccessMatchListener::onKernelRequest". [] []
[2013-11-30 05:03:21] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess. [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest". [] []
[2013-11-30 05:03:21] request.INFO: Matched route "ezpublishSetup" (parameters: "_controller": "ezpublish_legacy.setup.controller:init", "_route": "ezpublishSetup") [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\LocaleListener::onKernelRequest". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestForward". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\Security\Http\Firewall::onKernelRequest". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestUserHash". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener::injectLogger". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\RequestEventListener::onKernelRequestRedirect". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.request" to listener "eZ\Bundle\EzPublishRestBundle\EventListener\RestListener::onKernelRequest". [] []
[2013-11-30 05:03:21] event.DEBUG: Notified event "kernel.controller" to listener "eZ\Bundle\EzPublishCoreBundle\EventListener\ViewControllerListener::getController". [] []
[2013-11-30 05:03:29] emergency.EMERGENCY: Class 'eZPage' not foundUnknown macro: {"type"}[]