【发布时间】:2015-11-27 22:29:37
【问题描述】:
我正在关注谷歌官方教程“How to Run Symfony Hello World on App Engine”,了解如何部署https://github.com/GoogleCloudPlatform/symfony-standard.git
我已经设置了默认的云存储桶,但我还没有设置 SQL 数据库,因为我现在没有使用学说。
使用 GoogleAppEngineLauncher 在本地运行应用时,会显示以下错误:
Fatal error: Uncaught exception 'InvalidArgumentException' with message '[WARNING 1549] failed to load external entity "file:////Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd" (in n/a - line 0, column 0) [WARNING 3084] Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'file:////Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd'. Skipping the import. (in in_memory_buffer - line 8, column 0) [ERROR 1845] Element '{http://symfony.com/schema/dic/services}container': No matching global declaration available for the validation root. (in /Users/gl/Repos/symfony-standard/web/ - line 5, column 0)' in /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php:96 Stack trace: #0 /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Compone in /Users/gl/Repos/symfony-standard/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 234
部署到 AppEngine 时,在显示正确的输出(即“主页”一词)之前会显示以下错误:
Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/monolog-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/swiftmailer-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/symfony/assetic-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/doctrine/doctrine-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/vendor/sensio/framework-extra-bundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Warning: opendir(/base/data/home/apps/e~sy-be/1.306537434952097690/src/AppBundle/Resources/config/doctrine): failed to open dir: No such file or directory in /base/data/home/runtimes/php/sdk/google/appengine/runtime/Glob.php on line 124 Homepage.
我不明白我做错了什么..
【问题讨论】:
标签: php symfony google-app-engine