Skip to content

Instantly share code, notes, and snippets.

View ajohnstone's full-sized avatar

Andrew Johnstone ajohnstone

View GitHub Profile
#!/opt/perl/bin/perl
use Cache::Memcached::libmemcached;
use POSIX qw/strftime/;
use Digest::MD5 qw(md5 md5_base64 md5_hex);
use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep
clock_gettime clock_getres clock_nanosleep clock
stat );
use Data::Dumper;
andrew@andrew-OptiPlex-7010:/var/www/cms/cmf-sandbox/app/config$ ab -n 200 -c 50 -A admin:m0flag http://andrew.ponie.org/about-us
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking andrew.ponie.org (be patient)
Completed 100 requests
Completed 200 requests
Finished 200 requests
ErrorException: Catchable Fatal Error: Argument 1 passed to IA\WebBundle\Security\Authentication\Provider\WebserviceProvider::__construct() must implement interface Symfony\Component\Security\Core\User\UserProviderInterface, string given, called in /opt/src/web/symfony/app/cache/dev/appDevDebugProjectContainer.php on line 1551 and defined in /opt/src/web/symfony/src/IA/WebBundle/Security/Authentication/Provider/WebserviceProvider.php line 30
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="security.user.provider.webservice.service.class">Acme\DemoBundle\Security\Core\User\WebserviceUserProvider</parameter>
<parameter key="ia.service.class">Acme\DemoBundle\Service\Service</parameter>
services:
ia.rest.client:
class: IA\WebBundle\Models\RestClient
public: true
ia.model.babel.member:
class: IA\WebBundle\Models\Babel\Member
public: true
calls:
- [ setRestClient, [ @ia.rest.client ] ]
Whoops, looks like something went wrong.
1/1FatalErrorException: Error: Class 'ezxFormToken' not found in /var/www/announcements-ez/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 119
in /var/www/announcements-ez/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 119
at ErrorHandler->handleFatal() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 0
at Configuration->onBuildKernel() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at ??call_user_func() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php line 164
at EventDispatcher->doDispatch() in /var/www/announcements-ez/web/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher
# Provisioning
cd /opt/src/provisioning/;
git checkout migration
git submodule init
git submodule update
puppet apply --debug --verbose /etc/puppet/manifests/sandbox.pp
cd /opt/src/;
git checkout migration
git submodule init
FatalErrorException: Error: Class 'ezxFormToken' not found in /opt/src/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 126
in /opt/src/web/symfony/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishLegacyBundle/LegacyMapper/Configuration.php line 126
WIRED ME:
[11:53:55] Andrew Johnstone: andrew@andrew-OptiPlex-7010:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=49 time=10.6 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=49 time=10.7 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=49 time=12.9 ms
^C
*************************** 10. row ***************************
Id: 11408
User: root
Host: localhost
db: glt
Command: Query
Time: 212
State: Sending data
Info: SELECT (t1.cid + 1) as gap_starts_at,
(SELECT MIN(t3.cid) -1 FROM acid_event t3 WHERE t3.cid > t1.cid) as gap_ends_at