-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when setting up Cloud Scheduler Email #89
Comments
Could you try this with the latest GitHub version (on CRAN this week) It checks for missing service keys. If not then I can add it, it's usually when it's an older GCP project that hasn't had the service activated before, so you could also try adding it yourself via the IAM section in the web console. |
Its now on CRAN v0.3.0 - can you update and see if that solves the issue? |
It’s updated recently to “Desktop app” from previously “Other”
…________________________________
From: Bill Petti <notifications@github.com>
Sent: Friday, September 11, 2020 3:32:29 PM
To: MarkEdmondson1234/googleCloudRunner <googleCloudRunner@noreply.github.com>
Cc: Mark <github@markedmondson.me>; Comment <comment@noreply.github.com>
Subject: Re: [MarkEdmondson1234/googleCloudRunner] Error when setting up Cloud Scheduler Email (#89)
Thanks, I did update but was still running into issues. I decided to create a brand new project, but when I get to the step for creating a client ID I cannot select "Other" from the drop down:
[Screen Shot 2020-09-11 at 9 30 37 AM]<https://user-images.githubusercontent.com/1923057/92931559-a0588a80-f411-11ea-8415-0006d2f9fe36.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#89 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAYCPLETMLKGRRAG2FZESADSFIRG3ANCNFSM4RF3VREQ>.
|
If you check the IAM console is the service key in question there? I wonder if it takes a few minutes to register. Should be at this link: https://console.cloud.google.com/iam-admin/iam |
Could you also confirm your |
Ok I think I found it, it was not checking to make the service email before assigning it a role. This should be fixed if you manually create the email in the console, but should also be fixed in the GitHub version you can install via The issue should only affect projects where Cloud Scheduler has not been activated before and the service key is missing. |
Interesting, so the service account isn't there. I created it through When I created my own service account via the console I have this (plumber@plumber-take-3.iam.gserviceaccount.com). But it doesn't seem to be associating that service account. |
Yes, that is the version I have installed |
As well as the service key you create for the library, the Cloud Scheduler service key ( |
Hi, Thanks a lot for this package! I have a different error message at the Cloud Scheduler email step after successfully passing the previous steps.
Any idea where the issue could be? Thank you very much in advance for your help! |
Hi @lgnbhl - did the issue still persist after an R session restart? Or does it still happen if you choose "Configure Cloud Scheduler build email" in the wizard setup screen? May I also see your |
I added some more messaging around this workflow which may help pinpoint what the issue is, but its most likely an invalid auth json file. |
Looks related to #94 It seems not possible to check for the existence of the scheduler email (its not in the list of IAM API calls) so the end user will need to set it up in the console (e.g. activate App Engine and choose a region). Once the email is present, then the roles should be already set. |
@BillPetti this should work now, which was caused by a failure when checking for the scheduler email. Google has changed the format of the file/email and its too much for me to keep up so I removed it. |
I am following the process via
cr_setup()
and I am running into an error when I reach the step for setting up Cloud Scheduler email.To this point, the setup has found an environmental variable for
GCE_DEFAULT_PROJECT_ID
,GCE_AUTH_FILE
, andGCS_DEFAULT_BUCKET
.I select 'Yes' when asked if I want to set up an email and then Yes (recommended) when it asks if I want to use the email from my JSON service account auth key. I then select my pre-authorized account and the result is the following:
ℹ 2020-09-10 16:59:26 > Request Status Code: 400 Error: API returned: Service account service-[my service clientid]@gcp-sa-cloudscheduler.iam.gserviceaccount.com does not exist.
Not sure where the issue may be.
The text was updated successfully, but these errors were encountered: