我在App Engine上部署了一个应用程序到两个单独的模块。除模块名称外,yaml文件是相同的,并且它们都可以正常部署。当我直接浏览它们或进行API调用时,它们都是相同的。当我尝试从我的'API'模块添加一个以我的'Worker'模块为目标的Task时,会出现问题。当任务运行时,我收到此错误:open_basedir restriction in effect
如果我运行完全相同的代码但是将队列的目标从“Worker”更改为“API”,则它可以正常运行。如何在模块之间正确地将任务队列送到worker?
以下是我的日志文件。
0.1.0.2 - - [01/May/2014:14:31:22 -0700] "POST /workers/rankings/retrieve HTTP/1.1" 200 53435 "http://api.nozzle.io/workers/rankings/request" "AppEngine-Google; (+http://code.google.com/appengine)" "worker.nozzle-app.appspot.com" ms=1643 cpu_ms=887 cpm_usd=0.005972 queue_name=rankings task_name=4250758058839605876 loading_request=1 instance=00c61b117c159c92e66308ef5304fea71208e266 app_engine_release=1.9.4
W 15:31:21.586 PHP Warning: include(): open_basedir restriction in effect. File(/base/data/home/apps/s~nozzle-app/api:1.375535794405971741/Vendor/pear-pear.cakephp.org/CakePHP/Cake/Error/ErrorHandler.php) is not within the allowed path(s): (/base/data/home/apps/s~nozzle-app/worker:1.375535782205207071/;/base/data/home/runtimes/php/sdk;/php_runtime/versions;/etc) in /base/data/home/apps/s~nozzle-app/worker:1.375535782205207071/Vendor/pear-pear.cakephp.org/CakePHP/Cake/Core/App.php on line 545