Firstly thanks for taking the time to create this customised drupal install, I used the zip file from your GitHub and after a bit of trouble got drupal running on GAE 1.8.9

I've created a bucket in cloude storage to use but I get the following errors

    User warning: Cloud Storage Error: NOT FOUND in google\appengine\ext\cloud_storage_streams\CloudStorageDirectoryClient->mkdir() (line 158 of /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageDirectoryClient.php).
    The directory public:// does not exist and could not be created.
    User warning: Cloud Storage Error: NOT FOUND in google\appengine\ext\cloud_storage_streams\CloudStorageDirectoryClient->mkdir() (line 158 of /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageDirectoryClient.php).
    The directory temporary:// does not exist and could not be created.

I specified the bucketname in the config screen without the gs:// prefix

I thought it might be a permissions issue so I tried adding the GAE app service id as an writer to the bucket and upgraded it to owner but that didn't work.

In case its useful. When I add a file field to a content type its seen as must be less than 0 bytes even when I specify a limit of 80KB

Comments

hostdp6’s picture

Experiencing a similar issue, which seems to be stemming from the same route cause. My installation is all good, and I've followed the instructions for setting up Cloud Storage and it looks like the Drupal install is writing to the storage block (for example, I installed CTools and a folder structure was created for it in the bin).

I have a custom content type, which requires an image attachment but when I try to upload the attachment, I get the error:

An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (10 MB) that this server supports.

For reference, the file is ~125k. Originally, the max file size was defaulting to 0 and I was getting the same error. I modified the php.ini file to see if I could trick it into uploading the file, but although it is reflecting the new max size in the help text, it still isn't allowing uploads of any size. Is there an additional config setting that needs to be set for media files?

boombatower’s picture

To be clear you changed upload_max_filesize to something larger? The default provided by App Engine has changed a couple of times so that could by why this no longer works when I built this.

Seems like we should include in php.ini included with this module a sensible size.

mobcdi’s picture

FYI I added values
upload_max_filesize ="30M"
post_max_size="30M"
to php.ini and it was detected by GAE and when I add a file field to a content type the settings page in drupal where I define the allowed extensions mentions the max upload size is my 30M but when I go to upload a file it returns
An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (30 MB) that this server supports.

Latest build also seems to now use the CS Bucket defined and adds some folder structure but seems to have a problem serving files from it and saving files to it

User warning: Cloud Storage Error: NOT FOUND in google\appengine\ext\cloud_storage_streams\CloudStorageWriteClient->initialize() (line 122 of /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageWriteClient.php).
Warning: file_put_contents(public:///.htaccess): failed to open stream: "DrupalPublicCloudStorageStreamWrapper::stream_open" call failed in file_create_htaccess() (line 494 of /base/data/home/apps/APPPROJECTNAME/APPVersion.Number/includes/file.inc).
User warning: Cloud Storage Error: NOT FOUND in google\appengine\ext\cloud_storage_streams\CloudStorageWriteClient->initialize() (line 122 of /base/data/home/runtimes/php/sdk/google/appengine/ext/cloud_storage_streams/CloudStorageWriteClient.php).
Warning: file_put_contents(temporary:///.htaccess): failed to open stream: "DrupalTemporaryCloudStorageStreamWrapper::stream_open" call failed in file_create_htaccess() (line 494 of /base/data/home/ apps/APPPROJECTNAME/APPVersion.Number/includes/file.inc).

Beefy’s picture

I have setup drupal on local and also on gae. I have followed all the instructions and everything works fine except image uploads.
When uploading images i get this message
"An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (30 MB) that this server supports."
Are their any fixes for this?
Sadly, if i cant upload images i dont see Drupal being able to run on gae as it is an essential part of the CMS
Ta

kuldeep_kumar’s picture

I am also facing same problem. Every drupal functionality is working fine at GAE except image upload. When I browse any image from browse button and click on Save button directly without clicking on upload button of image field, original image is uploading properly at provided destination but thumbnail is not creating for selected Image style of that filed.

But if I browse an image and click on Upload button the I am getting the issue "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (10 MB) that this server supports." same as others afcing.

Please let me know what should I do to resolve this problem.

Thanks

hoanghua’s picture

Same issue for our trial with Drupal site on GAE. Did someone find any solution for that? Please share with us if the solution is available. Thanks a lot.

jazztini’s picture

Same here. This one's a show-stopper.