Skip to content

Instantly share code, notes, and snippets.

@suderman
Last active July 10, 2019 18:27
Show Gist options
  • Save suderman/9fb604aa7b4d14d175a6cdcb782fb85e to your computer and use it in GitHub Desktop.
Save suderman/9fb604aa7b4d14d175a6cdcb782fb85e to your computer and use it in GitHub Desktop.

sudo -u www-data nice -n 20 php /var/www/apega/vendor/silverstripe/framework/cli-script.php dev/tasks/MemberImportTask "flush=all"

Running Task Imports Members

Starting Download
Download Finished
Getting all Records
Got all Records
Starting the Loop
Find or create
Done. 
ERROR [User Warning]: None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
"
IN GET dev/tasks/MemberImportTask
Line 215 in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php

Source
======
  206:             $message .= print_r($templates, true);
  207: 
  208:             $themes = self::get_themes();
  209:             if (!$themes) {
  210:                 $message .= ' (no theme in use)';
  211:             } else {
  212:                 $message .= ' in themes "' . print_r($themes, true) . '"';
  213:             }
  214: 
* 215:             user_error($message, E_USER_WARNING);
  216:         }
  217:     }
  218: 
  219:     /**
  220:      * Triggered early in the request when someone requests a flush.
  221:      */

Trace
=====
user_error(None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
", 512)
SSViewer.php:215

SilverStripe\View\SSViewer->__construct(APIemail)

ReflectionClass->newInstanceArgs(Array)
InjectionCreator.php:23

SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\View\SSViewer, Array)
Injector.php:594

SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\View\SSViewer, prototype)
Injector.php:1002

SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\SSViewer, , Array)
Injector.php:955

SilverStripe\Core\Injector\Injector->get(SilverStripe\View\SSViewer, , Array)
Injector.php:1125

SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\SSViewer, Array)
Injectable.php:30

SilverStripe\View\SSViewer::create(APIemail)
ViewableData.php:392

SilverStripe\View\ViewableData->renderWith(APIemail, SilverStripe\View\ArrayData)
Email.php:803

SilverStripe\Control\Email\Email->render()
Email.php:751

SilverStripe\Control\Email\Email->send()
MemberImportTask.php:43

App\Web\Task\MemberImportTask->statusEmail(NO ERROR - SUCCESS)
MemberImportTask.php:172

App\Web\Task\MemberImportTask->run(SilverStripe\Control\HTTPRequest)
TaskRunner.php:104

SilverStripe\Dev\TaskRunner->runTask(SilverStripe\Control\HTTPRequest)
RequestHandler.php:323

SilverStripe\Control\RequestHandler->handleAction(SilverStripe\Control\HTTPRequest, runTask)
Controller.php:284

SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest, runTask)
RequestHandler.php:202

SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
Controller.php:212

SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
RequestHandler.php:226

SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPRequest)
Controller.php:212

SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest)
Director.php:360

SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
VersionedHTTPMiddleware.php:41

SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
ConfirmationMiddleware.php:246

SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
ConfirmationMiddleware.php:246

SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
BasicAuthMiddleware.php:68

SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
AuthenticationMiddleware.php:61

SilverStripe\Security\AuthenticationMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
ExecMetricMiddleware.php:20

SilverStripe\Control\Middleware\ExecMetricMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
CanonicalURLMiddleware.php:190

SilverStripe\Control\Middleware\CanonicalURLMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
HTTPCacheControlMiddleware.php:42

SilverStripe\Control\Middleware\HTTPCacheControlMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
ChangeDetectionMiddleware.php:27

SilverStripe\Control\Middleware\ChangeDetectionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
FlushMiddleware.php:27

SilverStripe\Control\Middleware\FlushMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
RequestProcessor.php:66

SilverStripe\Control\RequestProcessor->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
SessionMiddleware.php:20

SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
AllowedHostsMiddleware.php:60

SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
TrustedProxyMiddleware.php:176

SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
HTTPMiddlewareAware.php:65

SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
Director.php:369

SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
HTTPApplication.php:117

SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)

call_user_func(Closure, SilverStripe\Control\HTTPRequest)
HTTPApplication.php:136

SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
HTTPMiddlewareAware.php:65

SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
HTTPApplication.php:137

SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, 1)
HTTPApplication.php:118

SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
cli-script.php:22

[2019-07-10 18:20:26] error-log.WARNING: E_USER_WARNING: None of the following templates could be found: APIemail in themes "Array (     [0] => apega     [1] => $public     [2] => $default ) " {"code":512,"message":"None of the following templates could be found: APIemail in themes \"Array\n(\n    [0] => apega\n    [1] => $public\n    [2] => $default\n)\n\"","file":"/var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php","line":215} []
PHP Warning:  None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
" in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php on line 215
[2019-07-10 18:20:26] error-log.WARNING: E_WARNING: file_get_contents(): Filename cannot be empty {"code":2,"message":"file_get_contents(): Filename cannot be empty","file":"/var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php","line":639} []
PHP Warning:  file_get_contents(): Filename cannot be empty in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php on line 639

sudo -u www-data nice -n 20 php /var/www/apega/vendor/silverstripe/framework/cli-script.php dev/tasks/PermitImportTask "flush=all"

Running Task Imports Permit Task

Starting Download

Download done. 
No errors. 
Starting to find current records 
Deleted records - 4601
Starting loop to find or create
4598 Permitholder Records Added 
ERROR [User Warning]: None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
"
IN GET dev/tasks/PermitImportTask
Line 215 in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php

Source
======
  206:             $message .= print_r($templates, true);
  207: 
  208:             $themes = self::get_themes();
  209:             if (!$themes) {
  210:                 $message .= ' (no theme in use)';
  211:             } else {
  212:                 $message .= ' in themes "' . print_r($themes, true) . '"';
  213:             }
  214: 
* 215:             user_error($message, E_USER_WARNING);
  216:         }
  217:     }
  218: 
  219:     /**
  220:      * Triggered early in the request when someone requests a flush.
  221:      */

Trace
=====
user_error(None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
", 512)
SSViewer.php:215

SilverStripe\View\SSViewer->__construct(APIemail)

ReflectionClass->newInstanceArgs(Array)
InjectionCreator.php:23

SilverStripe\Core\Injector\InjectionCreator->create(SilverStripe\View\SSViewer, Array)
Injector.php:594

SilverStripe\Core\Injector\Injector->instantiate(Array, SilverStripe\View\SSViewer, prototype)
Injector.php:1002

SilverStripe\Core\Injector\Injector->getNamedService(SilverStripe\View\SSViewer, , Array)
Injector.php:955

SilverStripe\Core\Injector\Injector->get(SilverStripe\View\SSViewer, , Array)
Injector.php:1125

SilverStripe\Core\Injector\Injector->createWithArgs(SilverStripe\View\SSViewer, Array)
Injectable.php:30

SilverStripe\View\SSViewer::create(APIemail)
ViewableData.php:392

//  SilverStripe\View\ViewableData->renderWith(APIemail, SilverStripe\View\ArrayDat
a)
Email.php:803
SilverStripe\Control\Email\Email->render()
Email.php:751
SilverStripe\Control\Email\Email->send()
PermitImportTask.php:43
App\Web\Task\PermitImportTask->statusEmail(NO ERROR - SUCCESS Permit Holder)
PermitImportTask.php:177
App\Web\Task\PermitImportTask->run(SilverStripe\Control\HTTPRequest)
TaskRunner.php:104
SilverStripe\Dev\TaskRunner->runTask(SilverStripe\Control\HTTPRequest)
RequestHandler.php:323
SilverStripe\Control\RequestHandler->handleAction(SilverStripe\Control\HTTPRequ
est, runTask)
Controller.php:284
SilverStripe\Control\Controller->handleAction(SilverStripe\Control\HTTPRequest,
 runTask)
RequestHandler.php:202
SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPReq
uest)
Controller.php:212
SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest
)
RequestHandler.php:226
SilverStripe\Control\RequestHandler->handleRequest(SilverStripe\Control\HTTPReq
uest)
Controller.php:212
SilverStripe\Control\Controller->handleRequest(SilverStripe\Control\HTTPRequest
)
Director.php:360
SilverStripe\Control\Director->SilverStripe\Control\{closure}(SilverStripe\Cont
rol\HTTPRequest)
VersionedHTTPMiddleware.php:41
SilverStripe\Versioned\VersionedHTTPMiddleware->process(SilverStripe\Control\HT
TPRequest, Closure)
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(Silver
Stripe\Control\HTTPRequest)
ConfirmationMiddleware.php:246
SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Co
ntrol\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(Silver
Stripe\Control\HTTPRequest)
ConfirmationMiddleware.php:246
SilverStripe\Control\Middleware\ConfirmationMiddleware->process(SilverStripe\Co
ntrol\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(Silver
Stripe\Control\HTTPRequest)
BasicAuthMiddleware.php:68
SilverStripe\Security\BasicAuthMiddleware->process(SilverStripe\Control\HTTPReq
uest, Closure)
HTTPMiddlewareAware.php:62
SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(Silver
Stripe\Control\HTTPRequest)

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
SessionMiddleware.php:20

SilverStripe\Control\Middleware\SessionMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
AllowedHostsMiddleware.php:60

SilverStripe\Control\Middleware\AllowedHostsMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
TrustedProxyMiddleware.php:176

SilverStripe\Control\Middleware\TrustedProxyMiddleware->process(SilverStripe\Control\HTTPRequest, Closure)
HTTPMiddlewareAware.php:62

SilverStripe\Control\Director->SilverStripe\Control\Middleware\{closure}(SilverStripe\Control\HTTPRequest)
HTTPMiddlewareAware.php:65

SilverStripe\Control\Director->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
Director.php:369

SilverStripe\Control\Director->handleRequest(SilverStripe\Control\HTTPRequest)
HTTPApplication.php:117

SilverStripe\Control\HTTPApplication::SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)

call_user_func(Closure, SilverStripe\Control\HTTPRequest)
HTTPApplication.php:136

SilverStripe\Control\HTTPApplication->SilverStripe\Control\{closure}(SilverStripe\Control\HTTPRequest)
HTTPMiddlewareAware.php:65

SilverStripe\Control\HTTPApplication->callMiddleware(SilverStripe\Control\HTTPRequest, Closure)
HTTPApplication.php:137

SilverStripe\Control\HTTPApplication->execute(SilverStripe\Control\HTTPRequest, Closure, 1)
HTTPApplication.php:118

SilverStripe\Control\HTTPApplication->handle(SilverStripe\Control\HTTPRequest)
cli-script.php:22

[2019-07-10 17:51:03] error-log.WARNING: E_USER_WARNING: None of the following templates could be found: APIemail in themes "Array (     [0] => apega     [1] => $public     [2] => $default ) " {"code":512,"message":"None of the following templates could be found: APIemail in themes \"Array\n(\n    [0] => apega\n    [1] => $public\n    [2] => $default\n)\n\"","file":"/var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php","line":215} []
PHP Warning:  None of the following templates could be found: APIemail in themes "Array
(
    [0] => apega
    [1] => $public
    [2] => $default
)
" in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php on line 215
[2019-07-10 17:51:03] error-log.WARNING: E_WARNING: file_get_contents(): Filename cannot be empty {"code":2,"message":"file_get_contents(): Filename cannot be empty","file":"/var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php","line":639} []
PHP Warning:  file_get_contents(): Filename cannot be empty in /var/www/apega/vendor/silverstripe/framework/src/View/SSViewer.php on line 639

sudo -u www-data php /var/www/apega/vendor/silverstripe/framework/cli-script.php dev/tasks/ProcessJobQueueTask

Running Task Symbiote\QueuedJobs\Tasks\ProcessJobQueueTask

[2019-07-10 18:26:25] error-log.ERROR: Array (     [errno] => 0     [errstr] => Broken jobs were found in the job queue     [errfile] => /var/www/apega/vendor/symbiote/silverstripe-queuedjobs/src/Services/QueuedJobService.php     [errline] => 377     [errcontext] => Array         (         )  )  {"file":"/var/www/apega/vendor/symbiote/silverstripe-queuedjobs/src/Services/QueuedJobService.php","line":384} []
[2019-07-10 18:26:25] No new jobs on queue 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment