Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

'No project ID was provided, ..." on GAE #44

Closed
gianni-di-noia opened this issue May 10, 2017 · 20 comments
Closed

'No project ID was provided, ..." on GAE #44

gianni-di-noia opened this issue May 10, 2017 · 20 comments
Labels

Comments

@gianni-di-noia
Copy link

I'm facing the same error of #38 but I'm on a GAE project.
Any idea what I could forget?

@CaptainPatate
Copy link

I got the same issue from a fresh deployment on GAE. I think gcs-media-plugin dependency evolved somewhat and it now depends on GoogleCloudPlatform/google-cloud-php which does not seem to have project ID detection capability for the GAE platform.

A dirty patch is to specify your GCP project in gcs.php file:

$config = ['projectId' => 'my-gcp-project'];
$storageClient = new \Google\Cloud\Storage\StorageClient($config);

@chingor13
Copy link
Member

Is this on App Engine Standard or Flexible Environment?

@gianni-di-noia
Copy link
Author

@chingor13 standard.

@gianni-di-noia
Copy link
Author

@CaptainPatate ok, it works.

@CaptainPatate
Copy link

CaptainPatate commented May 10, 2017

@presveva good :)

Yes, this appears on App Engine Standard and I think I found the underlying issue. I was not able to find the link back when I wrote my first comment, but here it is now: googleapis/google-auth-library-php#135

@gianni-di-noia
Copy link
Author

@CaptainPatate thank you for the workaround.

@Microserf
Copy link

Your fix worked for me @CaptainPatate! Thanks!

@csadai
Copy link

csadai commented Sep 8, 2017

FYI For some reason, some official Google cloud librairies expect a GCLOUD_PROJECT envvar (and not only GOOGLE_CLOUD_PROJECT)

@JamesVanWaza
Copy link

@CaptainPatate when you deployed to your domain, where did you save your package.json file?

@CaptainPatate
Copy link

@jgacuca567 I don't remember having any file named package.json on my wordpress project.

@JamesVanWaza
Copy link

@CaptainPatate I meant your json file, when you deployed to example.com where did you save the file? Mine works locally but when I run gcloud app deploy I get the error.

@CaptainPatate
Copy link

Oh you mean the app.yaml file @jgacuca567? I think I put it in my project root folder. What error message did you get when you deploy?

@JamesVanWaza
Copy link

JamesVanWaza commented Nov 23, 2017

@CaptainPatate even though the site works locally on localhost:8080
screen shot 2017-11-22 at 8 09 41 pm

@ran-dall
Copy link

ran-dall commented Oct 23, 2018

@JamesVanWaza I don't know if you still are having the issue. But I was having this issue when my .json key was saved to my project root. I moved it to /etc and it worked. Check my issue #61 for some details but I'm pretty sure if you move the key and you update your gcs.php, you'll be fine.

@JamesVanWaza
Copy link

@ran-dall do you mind, creating a video, showing the fix? How can I assist?

@ran-dall
Copy link

@JamesVanWaza I'd be happy to create a video or walkthrough of some kind for you. I don't have time right now cause I'm about to leave for the holiday but maybe during, I'll have some extra time. I created an issue (#61) before with some details, have you checked that?

@JamesVanWaza
Copy link

JamesVanWaza commented Jan 17, 2019

@ran-dall I am still having problems, with it. Maybe you can create a video showing the solution.

@ran-dall What's the ETA for the video?

@ran-dall
Copy link

@JamesVanWaza I apologize for not seeing your message. 😁. I'll look into it over the next couple of days and let you know what I come up with...

@JamesVanWaza
Copy link

@ran-dall its been 5 months. Any help?

@ToddKopriva
Copy link
Member

The Issues section of this GitHub repository is not the best place to get such questions answered quickly. I recommend bringing your question to one of the forums described here:
https://cloud.google.com/support/docs/community

Many members of the GCP community---including Google employees and other experts---help out on those forums.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants