GoogleCloudPlatform / appengine-symfony-starter-project

Symfony Starter Project on Google App Engine
Apache License 2.0
42 stars 13 forks source link

Unable to create the cache directory (Local) #6

Closed pvaass closed 8 years ago

pvaass commented 8 years ago

I can't get symfony to work because of the following error:

Unable to create the cache directory (gs://testing/symfony/cache)

php.ini

google_app_engine.allow_include_gs_buckets="testing"

app.yaml

env_variables:
  GCS_BUCKET_NAME: "testing"
  CURRENT_VERSION_ID: "0.0.1"
  CACHE_DIR: "gs://#default#/symfony/cache"
  LOG_DIR: "gs://#default#/symfony/log"

Using the latest version of this repository and latest version of AppEngine on Linux. GAE is loaded, verified by calling get_loaded_extensions. I'm running AppEngine locally with the following command:

/home/vagrant/google_appengine/dev_appserver.py --php_executable_path=/bin/php-cgi --php_gae_extension_path=/usr/lib64/php/modules/gae_runtime_module.so --admin_host=0.0.0.0 --host=0.0.0.0 /vagrant/www

Can someone please help?

jose-ochoa commented 8 years ago

I ran into this yesterday, I had to remove the --admin_host=0.0.0.0 and it worked

bshaffer commented 8 years ago

thanks @jose-ochoa

pvaass commented 8 years ago

@jose-ochoa I only added the --admin_host=0.0.0.0 to check out the developer console for troubleshooting this issue. So the problem can't be there.

bshaffer commented 8 years ago

It's possible the bucket testing hasn't been created yet? Though if this is local, that wouldn't happen. Have you updated dev_appserver.py and the AppEngine console to the latest version?

I ran this locally and could not duplicate your issue.